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
{{ message }}
This repository was archived by the owner on Apr 18, 2024. It is now read-only.
fix: LEAP-33: Fixes for labels by Taxonomy (#1555)
* fix: LEAP-33: Mimic labeling Taxonomy result as Label
- `findLabel()` for starters to use in Label context
- fix `selectedLabels` back to act the same for Labels and Taxonomy
- fix styling detection
* Attempt to respect `showFullPath` in New Taxonomy
It should work, but it doesn't
* Fix node type detection
temporary fix, should find a proper fix and source of problem later
* Fix labeling=true for usual taxonomy (no api)
* Fix region removal upon deleting last label
Last label couldn't be deleted now, the same as for Labels
* Add color to Choice for labeling
Works only on regions, taxonomy item has no color yet
* Use colors in taxonomy as well
* Simplify styles, make global; move to .styl
* typo
* Fix last item removal for old taxonomy as well
* Allow to remove items when region is not selected
* Also fix this last item for new taxonomy
* Remove excess @todo
* Reorder imports and remove unused one
* Simplify Visibility checks
That also should improve performance for huge Taxonomies
* Currently revert old code and wrap new one with FF
Final decision about using stored values everywhere wil s=come soon.
For now stable bahaviour is always active with FF off.
FF on has regress for now.
---------
Co-authored-by: hlomzik <[email protected]>
Co-authored-by: farioas <[email protected]>
Copy file name to clipboardExpand all lines: src/tags/control/Choice.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,9 @@ import { HintTooltip } from '../../components/Taxonomy/Taxonomy';
44
44
* @param {string} [alias] - Alias for the choice. If used, the alias replaces the choice value in the annotation results. Alias does not display in the interface.
45
45
* @param {style} [style] - CSS style of the checkbox element
46
46
* @param {string} [hotkey] - Hotkey for the selection
47
-
* @param {string} [html] - can be used to show enriched content[^FF_DEV_2007], it has higher priority than `value`, however `value` will be used in the exported result (should be properly escaped)
47
+
* @param {string} [html] - Can be used to show enriched content[^FF_DEV_2007], it has higher priority than `value`, however `value` will be used in the exported result (should be properly escaped)
48
48
* @param {string} [hint] - Hint for choice on hover[^FF_PROD_309]
49
+
* @param {string} [color] - Color for Taxonomy item
0 commit comments