@searpent/react-image-annotate 2.0.73 → 2.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -996,6 +996,7 @@ export default (function (state, action) {
|
|
|
996
996
|
case "DELETE_SELECTED_REGION":
|
|
997
997
|
{
|
|
998
998
|
state = saveToHistory(state, "Delete selected region");
|
|
999
|
+
state = addSaveableAction(state, "DELETE_SELECTED_REGION");
|
|
999
1000
|
return setIn(state, [].concat(_toConsumableArray(pathToActiveImage), ["regions"]), (activeImage.regions || []).filter(function (r) {
|
|
1000
1001
|
return !r.highlighted;
|
|
1001
1002
|
}));
|
|
@@ -573,6 +573,11 @@ function () {
|
|
|
573
573
|
tag: 'p',
|
|
574
574
|
name: 'table',
|
|
575
575
|
backgroundColor: '#0000bb'
|
|
576
|
+
}, {
|
|
577
|
+
labelName: 'section',
|
|
578
|
+
tag: 'p',
|
|
579
|
+
name: 'section',
|
|
580
|
+
backgroundColor: '#ffcccc'
|
|
576
581
|
}];
|
|
577
582
|
return this._settings.labels ? availableLabels.filter(function (l) {
|
|
578
583
|
return _this5._settings.labels.includes(l.labelName);
|
package/Editor/readOnly.js
CHANGED
package/hooks/use-colors.js
CHANGED