-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When enabled, hovering over an annotation will highlight it. Clicking on the annotation will place it in edit mode. Dragging the edit handles will alter the annotation. Escape or clicking outside of edit handles will exit from edit mode. This PR can stand on its own, but there are a number of future improvements that are desired: - escape should revert the edit rather than just exit edit mode (and enter should exit edit mode, keeping the edit) - tab should switch between annotations; when an annotation is selected via the enter key, tab would switch between edit handles. - edit handles should be adjustable with the arrow keys - meta keys (shift, ctrl) should affect how moving edit handles is controlled (for instance, shift might constrain a rectangle's aspect ratio, or ensure 90 degree rotations). I'm not sure of the specifics. - the edit handles should be fancier than just points. I'd rather see squares on the vertices, a curved double-headed arrow on the rotation handle, and a double-headed arrow on the resize handle. This would benefit from a more generic marker option for points. - we should test with a touch device. - for lines, the ability to break or join a line could be disabled. - There could be other constraints, too, like discrete rotations or scales.
- Loading branch information
Showing
11 changed files
with
1,566 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.