Skip to content

Keep a detection's box corners editable while editing its line - #1932

Open
mattdawkins wants to merge 3 commits into
mainfrom
dev/edit-box-in-line-mode
Open

mattdawkins wants to merge 3 commits into
mainfrom
dev/edit-box-in-line-mode

Conversation

@mattdawkins

Copy link
Copy Markdown
Member
  • In line editing mode, when the detection also has a box and boxes are visible, the box corners get drag handles too, so the auto-generated box can be adjusted without leaving line mode.
  • Implemented as a second EditAnnotationLayer (companion: true, corner handles only) that is live whenever the selected track has both a saved line at the selected key and bounds; it stays off while the line is still being drawn.
  • GeoJS applies a handle drag to every annotation layer in edit mode, so each layer records at actiondown whether its own handle was grabbed and only that one moves and commits. A box commit does not rebuild the line layer, and a hovered handle's drag action is restored after the peer layer changes mode.
  • Covered by a real-GeoJS jsdom spec that drags a box corner and a line vertex with the other layer's handle previously hovered.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant