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
@@ -284,57 +307,11 @@ The line width with which new annotations are drawn initially. Units are pixels
284
307
285
308
URL to a page that gives annotation instructions.
286
309
287
-
### `config_data`
288
-
289
-
*object* -- An object to configure much of ULabel's behaviors.
310
+
### `toolbox_order`
311
+
An array of numbers that defines the vertical order of items in the toolbox. At least one item must be included in the array. Any excluded items will not be displayed in the toolbox.
Keybinds can be set to control the annotation session. The default values are:
335
+
```javascript
336
+
{
337
+
"annotation_size_small":"s",
338
+
"annotation_size_large":"l",
339
+
"annotation_size_plus":"=",
340
+
"annotation_size_minus":"-",
341
+
"annotation_vanish":"v"
342
+
}
343
+
```
344
+
345
+
### `distance_filter_toolbox_item`
346
+
Configuration object for the `FilterDistance` toolbox item with the following custom definitions:
347
+
```javascript
351
348
type DistanceFromPolyline = {
352
349
distance: number // distance in pixels
353
350
}
@@ -374,7 +371,49 @@ type FilterDistanceConfig = {
374
371
// since it will not update the filter/overlay until polyline moves/edits are complete.
375
372
}
376
373
```
377
-
Where all `config_data` properties are optional.
374
+
375
+
### `change_zoom_keybind`
376
+
Keybind to change the zoom level. Must be a letter, and the lowercase version of the letter will set the zoom level to the `initial_crop`, while the capitalized version will show the full image. Default is `r`.
377
+
378
+
### `create_point_annotation_keybind`
379
+
Keybind to create a point annotation at the mouse location. Default is `c`. Requires the active subtask to have a `point` mode.
380
+
381
+
### `default_annotation_size`
382
+
Default size of annotations in pixels. Default is `6`.
383
+
384
+
### `delete_annotation_keybind`
385
+
Keybind to delete the annotation that the mouse is hovering over. Default is `d`.
386
+
387
+
### `keypoint_slider_default_value`
388
+
Default value for the keypoint slider. Must be a number between 0 and 1. Default is `0`.
389
+
390
+
### `filter_annotations_on_load`
391
+
If true, the annotations will be filtered on load based on the `keypoint_slider_default_value`. Default is `true`.
392
+
393
+
### `switch_subtask_keybind`
394
+
Keybind to switch between subtasks. Default is `z`.
395
+
396
+
### `toggle_annotation_mode_keybind`
397
+
Keybind to toggle between annotation and selection modes. Default is `u`.
398
+
399
+
### `create_bbox_on_initial_crop`
400
+
Keybind to create a bounding box annotation around the `initial_crop`. Default is `f`. Requires the active subtask to have a `bbox` mode.
401
+
402
+
### `toggle_brush_mode_keybind`
403
+
Keybind to toggle brush mode for polygon annotations. Default is `g`. Requires the active subtask to have a `polygon` mode.
404
+
405
+
### `toggle_erase_mode_keybind`
406
+
Keybind to toggle erase mode for polygon annotations. Default is `e`. Requires the active subtask to have a `polygon` mode.
407
+
408
+
### `increase_brush_size_keybind`
409
+
Keybind to increase the brush size. Default is `]`. Requires the active subtask to have a `polygon` mode.
410
+
411
+
### `decrease_brush_size_keybind`
412
+
Keybind to decrease the brush size. Default is `[`. Requires the active subtask to have a `polygon` mode.
413
+
414
+
### `n_annos_per_canvas`
415
+
The number of annotations to render on a single canvas. Default is `100`. Increasing this number may improve performance for jobs with a large number of annotations.
Copy file name to clipboardExpand all lines: changelog.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented here.
5
5
## [unreleased]
6
6
7
7
Nothing yet.
8
+
## [0.13.0] - Sept 26th, 2024
9
+
- Fix bug where the `filter_annotations_on_load = true` option would not work as expected.
10
+
- The `keypoint_slider_default_value` option was not being properly multiplied by 100 internally.
11
+
- Move several config argument defaults into the configuration class instead of in the ULabel constructor.
12
+
- Add `get_allowed_toolbox_item_enum()` static method to ULabel.
13
+
#### Breaking Changes
14
+
- Changed default for `filter_annotations_on_load` from `false` to `true`.
15
+
- Deprecated the `default_toolbox_item_order` argument in the ULabel constructor. Use `toolbox_order` instead.
16
+
- Deprecated `config_data` argument in the ULabel constructor. Instead, pass all configuration options as keyword arguments directly to the ULabel constructor.
17
+
- For now, the `config_data` argument will still work, but may be removed in a future release.
8
18
9
19
## [0.12.5] - Sept 26th, 2024
10
20
- Fix release workflow using actions on `node` 16, which is now deprecated.
0 commit comments