You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[x] Remove the "line_size" property from ULabelAnnotation. Update the entire codebase to ensure no reference to it remains. Instead, use the line_size defined for the annotation's subtask when we need a line size for drawing the annotation.
2
+
-[x] Read the discussion in issue [#159](https://github.com/SenteraLLC/ulabel/issues/159)
3
+
-[x] Implement a vertex deletion keybind for polygon and polyline spatial types it should:
4
+
-[x] Delete the vertex when pressed when hovering over it such that the edit suggestion is showing
5
+
-[x] Delete the vertex when pressed when dragging/editing the vertex
6
+
-[x] For polylines, if only one point remains in the polyline, it should delete the polyline
7
+
-[x] For polygons, if fewer than 3 points remain in a polygon layer, the layer should be removed
8
+
-[x] Add a test for the keybind in keybind-functionality.spec.js
Copy file name to clipboardExpand all lines: api_spec.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ class ULabel({
56
56
show_full_image_keybind: string,
57
57
create_point_annotation_keybind: string,
58
58
delete_annotation_keybind: string,
59
+
delete_vertex_keybind: string,
59
60
keypoint_slider_default_value: number,
60
61
filter_annotations_on_load: boolean,
61
62
switch_subtask_keybind: string,
@@ -433,6 +434,9 @@ Keybind to create a point annotation at the mouse location. Default is `c`. Requ
433
434
### `delete_annotation_keybind`
434
435
Keybind to delete the annotation that the mouse is hovering over. Default is `d`.
435
436
437
+
### `delete_vertex_keybind`
438
+
Keybind to delete a vertex of a polygon or polyline annotation. The vertex must be the one currently being hovered (showing an edit suggestion) or actively being edited. For polylines, if only one point remains after deletion, the entire polyline is deleted. For polygons, if fewer than 3 points remain in a layer after deletion, that layer is removed. Default is `x`.
439
+
436
440
### `keypoint_slider_default_value`
437
441
Default value for the keypoint slider. Must be a number between 0 and 1. Default is `0`.
0 commit comments