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

feat: Add a cursor annotation mode. #1224

Merged
merged 1 commit into from
Jun 22, 2022
Merged

feat: Add a cursor annotation mode. #1224

merged 1 commit into from
Jun 22, 2022

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Jun 21, 2022

See the annotation example for the utility of this mode.

This becomes slow with polygons with a large number of edges (easy to create with circles). Most of the time is in the polybool library, some of which is in the conversion to and from their segments and much is in the actual math. Additionally, formatting the geojson once updated also takes significant time.

One improvement could be made by adding a rotated rectangle between drag points when using a brush. This would reduce jaggedness and reduce the number of edges. Otherwise, looking into faster conversion to and from the polybool library is probably where the easiest speed-ups will occur.

@manthey manthey force-pushed the cursor-annotation-mode branch 2 times, most recently from a50ca92 to b8288b5 Compare June 21, 2022 21:00
See the annotation example for the utility of this mode.
@manthey manthey merged commit 4deaf91 into master Jun 22, 2022
@manthey manthey deleted the cursor-annotation-mode branch June 22, 2022 12:51
@github-actions
Copy link

🎉 This PR is included in version 1.10.0 🎉

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