-
Notifications
You must be signed in to change notification settings - Fork 49
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
Feature/1243 new measure tool #1292
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! MeasurerModel
is passed to MeasurerView
but is not used and can be removed from the props. Maybe the MeasurerModel
can be removed since it is barely used ;)
- I had to change the listener from 'keyup' to 'keydown' though, as the e.metaKey only exists on 'keydown', for some reason. - Please test and verify that this still works as before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic! Just a small addition for macOS compatibility (the Cmd+Z is customary). Works great for me, good job!
Works fine now regarding the delete interaction. One last thing I noticed is that the layer is called Is there a chance that this name can be customised and called something more plugin-specific? Perhaps @Hallbergs knows too? |
Yes its hardcoded in DrawModel, I will look at it. I have never used the "Active layer" feature so I havnt noticed these things :/ |
…aption to 'Draw layer' instead of 'Draw model' and set the Measure tools caption correctly.
So..... now thats addressed too :) Note that you will get 2 Measure layers if you don't remove the old Measure tool. |
A long overdue PR.
Closes #1243