Repository navigation
Release/0.29.0 - #261
Merged
Merged
Release/0.29.0#261
Conversation
- Plain left-drag inside a spatial annotation body moves it; vertex handle drag still edits one vertex; drag over empty canvas draws. New config allow_body_move (default true) and force_draw_modifier (default alt). - Remove the hover ring (move/reid/delete anchors) and the hover pie thumbnail; show_id_dialog thumbnail param and suggest_edits force_refresh removed. get_edit_candidates reports whether the hit is containing. - Zero-diff click no longer records a move (no undo pollution, redo stack and edited flag preserved). - Canvas shows the move cursor when a drag would move the hovered annotation. - Confidence card flips below when there is no room above, clamps horizontally. - Tests: tests/body_move.test.js, tests/e2e/body-move.spec.js; docs updated.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.29.0
CVML-173
Description
Breaking Changes
contour,tbar, andbbox3). A drag on a vertex handle edits the vertex, and a drag anywhere else draws. HoldAltto draw over an annotation. Setallow_body_move: falsefor the old draw-everywhere behavior.show_id_dialog()lostthumbnailandsuggest_edits()lostforce_refresh.ULabelActionCandidategainedcontaining.Added
AnnotationListentry for Change class, Delete, Isolate / Show all, Details, and the items below. Newshow_context_menu(),hide_context_menu(), andis_context_menu_open().ctrl+c/ctrl+x/ctrl+v. The system clipboard holds JSON, so copies can be pasted into another ULabel instance whose image is the same size. A copy keeps its geometry, takes the target class matching its own (by id, then name), and recordsannotation_meta.copied_from. Both are undoable (paste_annotation/move_annotation). New config optionspaste_class_choiceandpaste_switch_to_target. Newcopy_annotation(),copy_annotation_to_clipboard(),paste_annotation_from_clipboard(),find_pasted_copy(),set_paste_switch_to_target()/get_paste_switch_to_target(), and theULabelClipboardEnvelopetype.copied_fromor by the newannotation_link_meta_keyconfig option. Newfind_counterparts(). The menu offers Delete from<subtask>(and Erase from<subtask>for bitmasks) viadelete_counterparts(), recorded as one undoable action. Copy to / Move to ask before duplicating a counterpart;hide_copy_to_linkedhides those targets instead.AnnotationListeye button (or the menu) hides all other annotations from the canvas and input until cleared. It is view-only. Newisolate_annotation(),get_isolated_annotation_id(), andon_isolate_change.focus_editedoption dims annotations not edited since load. Toggle it with the Edited Only checkbox,toggle_edit_focus_keybind(h), orset_focus_edited(). Newon_focus_edited_change.focus_deprecatedoption and is no longer persisted. Deprecated annotations are shown and in focus while live ones dim. Edits are locked except Restore and undo/redo, and a banner offers an Exit link. Toggle it withtoggle_deprecated_focus_keybind(shift+d) orset_focus_deprecated(). Newon_focus_deprecated_change.restore_annotation()for human-deleted annotations.subtasks(a whitelist of subtask keys) andedits_only(only annotations created, deleted, or modified since load, tagged withedit_type). Newhas_edits(subtasks?)reports whether anedits_onlysubmit would send anything.on_annotation_changecallback: fires for each action that changes annotations, or its undo/redo, with the other annotations it changed inaffected. Seton_annotation_change_in_progressto also reportcontinue_*actions.fly_to_on_undo(defaulttrue): an undo or redo whose changes are out of view centers the view on them.set_subtask_read_only(subtask_key, read_only)toggles read-only at runtime.origin_subtask_key. Newon_undo_redo_blockedcallback.Changed
edit_text_payloadaction.last_edited_at/last_edited_byare now stamped on annotations an action changes indirectly (delete-mode victims, carved masks) and restored on undo.Escapecloses the class pie.begin_move. Picking an annotation's current class no longer recordsassign_annotation_id.demo.jshonorsPORT, and demos load their image locally.Fixed
TypeErroron the first brush stroke after a subtask switch orset_annotations().NaNcircle radius error when entering a delete mode in a single-class subtask.#.PR Checklist
package.jsonhas been bumped since last releasepackage.jsonandsrc/version.jsapi_spec.md)changelog.mdBreaking API Changes
Altto draw on top of an existing body (listed in the Keybinds toolbox item). Newallow_body_moveconfig option (defaulttrue) restores draw-everywhere behavior whenfalse. Read-only subtasks and delete modes are unaffected. The canvas shows themovecursor whenever a left-drag would move the hovered annotation.show_id_dialog()lost itsthumbnailparameter andsuggest_edits()lost itsforce_refreshparameter;ULabelActionCandidategained acontainingflag.