Skip to content

Commit a73f1d8

Browse files
Default for filter_annotations_on_load from false -> true
1 parent debdc77 commit a73f1d8

6 files changed

Lines changed: 5 additions & 8 deletions

File tree

api_spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Keybind to delete the annotation that the mouse is hovering over. Default is `d`
384384
Default value for the keypoint slider. Must be a number between 0 and 1. Default is `0`.
385385
386386
### `filter_annotations_on_load`
387-
If true, the annotations will be filtered on load based on the `keypoint_slider_default_value`. Default is `false`.
387+
If true, the annotations will be filtered on load based on the `keypoint_slider_default_value`. Default is `true`.
388388
389389
### `switch_subtask_keybind`
390390
Keybind to switch between subtasks. Default is `z`.

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Nothing yet.
1010
- The `keypoint_slider_default_value` option was not being properly multiplied by 100 internally.
1111
- Move several config argument defaults into the configuration class instead of in the ULabel constructor.
1212
#### Breaking Changes
13+
- Changed default for `filter_annotations_on_load` from `false` to `true`.
1314
- Deprecated the `default_toolbox_item_order` argument in the ULabel constructor. Use `toolbox_order` instead.
1415
- Deprecated `config_data` argument in the ULabel constructor. Instead, pass all configuration options as keyword arguments directly to the ULabel constructor.
1516
- For now, the `config_data` argument will still work, but may be removed in a future release.

demo/row-filtering-example.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
<!-- ULabel Usage -->
1515
<script>
16-
/* global $ */
17-
/* global ULabel */
18-
1916
$(window).on("load", function () {
2017

2118
function on_submit(annotations) {
@@ -773,7 +770,6 @@
773770
// "filter_during_polyline_move": false,
774771
},
775772
"keypoint_slider_default_value": 0.2,
776-
"filter_annotations_on_load": true,
777773
});
778774
// Wait for ULabel instance to finish initialization
779775
ulabel.init(function () {

dist/ulabel.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ulabel.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class Configuration {
148148

149149
public keypoint_slider_default_value: number;
150150

151-
public filter_annotations_on_load: boolean = false;
151+
public filter_annotations_on_load: boolean = true;
152152

153153
public switch_subtask_keybind: string = "z";
154154

0 commit comments

Comments
 (0)