Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Fixed size annotations. #1205

Merged
merged 1 commit into from
May 13, 2022
Merged

perf: Fixed size annotations. #1205

merged 1 commit into from
May 13, 2022

Conversation

manthey
Copy link
Contributor

@manthey manthey commented May 13, 2022

Add options to the default annotation constraint function to allow for fixed size annotations.

You can try this out with the annotation example. Select the rectangle or ellipse annotation, and from the console type: annotationDebug.layer.annotations()[0]._selectionConstraint = geo.annotation.constrainAspectRatio([{width: 15000, height: 12000}]);, and only that size annotation can be created.

Add options to the default annotation constraint function to allow for
fixed size annotations.
@manthey manthey merged commit 819c5c8 into master May 13, 2022
@manthey manthey deleted the fixed-size-annotations branch May 13, 2022 14:29
@github-actions
Copy link

🎉 This PR is included in version 1.8.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant