@searpent/react-image-annotate 2.0.80 → 2.0.82-cand-2
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.
- package/Annotator/examplePhotos.js +28 -28
- package/Annotator/index.js +15 -21
- package/Annotator/reducers/combine-reducers.js +18 -3
- package/Annotator/reducers/convert-expanding-line-to-polygon.js +15 -16
- package/Annotator/reducers/get-implied-video-regions.js +18 -30
- package/ClassSelectionMenu/index.js +8 -8
- package/Crosshairs/index.js +2 -2
- package/DebugSidebarBox/index.js +4 -4
- package/DemoSite/Editor.js +15 -15
- package/DemoSite/ErrorBoundaryDialog.js +3 -5
- package/DemoSite/index.js +3 -3
- package/Editor/annotation-plugin/annotation.js +1 -3
- package/Editor/index.js +12 -31
- package/Editor/readOnly.js +395 -47
- package/Errorer/index.js +2 -2
- package/FullImageSegmentationAnnotator/index.js +1 -1
- package/GroupSelectorSidebarBox/index.js +7 -7
- package/GroupsEditorSidebarBox/index.js +11 -11
- package/HelpSidebarBox/index.js +4 -4
- package/HighlightBox/index.js +3 -3
- package/HistorySidebarBox/index.js +8 -8
- package/ImageCanvas/index.js +16 -16
- package/ImageMask/index.js +1 -1
- package/ImageSelectorSidebarBox/index.js +7 -7
- package/KeyframeTimeline/index.js +30 -14
- package/KeyframesSelectorSidebarBox/index.js +8 -8
- package/LandingPage/index.js +12 -12
- package/Locker/index.js +2 -2
- package/MainLayout/RightSidebarItemsWrapper.js +1 -1
- package/MainLayout/icon-dictionary.js +11 -11
- package/MainLayout/index.js +25 -23
- package/MetadataEditorSidebarBox/index.js +18 -18
- package/PageSelector/index.js +21 -21
- package/PointDistances/index.js +4 -4
- package/PreventScrollToParents/index.js +3 -3
- package/RegionLabel/index.js +24 -24
- package/RegionSelectAndTransformBoxes/index.js +8 -8
- package/RegionSelectorSidebarBox/index.js +33 -33
- package/RegionShapes/index.js +22 -22
- package/RegionTags/index.js +6 -6
- package/SettingsDialog/index.js +4 -4
- package/SettingsProvider/index.js +1 -1
- package/Shortcuts/ShortcutField.js +3 -3
- package/Shortcuts/index.js +2 -2
- package/ShortcutsManager/index.js +9 -9
- package/Sidebar/index.js +7 -7
- package/SidebarBoxContainer/index.js +3 -3
- package/SmallToolButton/index.js +2 -2
- package/TagsSidebarBox/index.js +6 -6
- package/TaskDescriptionSidebarBox/index.js +4 -4
- package/Theme/index.js +2 -2
- package/VideoOrImageCanvasBackground/index.js +5 -5
- package/mj_smaz_hist.log +20015 -0
- package/package.json +4 -3
- package/utils/blocks-to-article.js +3 -3
- package/utils/get-landmarks-with-transform.js +13 -15
- package/utils/spellcheck-nspell.js +635 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searpent/react-image-annotate",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.82-cand-2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@editorjs/editorjs": "^2.25.0",
|
|
6
6
|
"@editorjs/paragraph": "^2.8.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@emotion/styled": "^11.6.0",
|
|
9
9
|
"@fortawesome/fontawesome-svg-core": "^1.2.12",
|
|
10
10
|
"@fortawesome/free-solid-svg-icons": "^5.6.3",
|
|
11
|
-
"@fortawesome/react-fontawesome": "^0.
|
|
11
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
12
12
|
"@mui/icons-material": "^5.2.1",
|
|
13
13
|
"@mui/material": "^5.2.3",
|
|
14
14
|
"@mui/styles": "^5.2.3",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"material-survey": "^2.1.0",
|
|
21
21
|
"mmgc1-cpp": "^1.0.50",
|
|
22
22
|
"moment": "^2.23.0",
|
|
23
|
+
"nspell": "^2.1.5",
|
|
23
24
|
"react": "^17.0.0",
|
|
24
25
|
"react-dom": "^17.0.0",
|
|
25
26
|
"react-editor-js": "^2.0.6",
|
|
@@ -94,4 +95,4 @@
|
|
|
94
95
|
"prettier": {
|
|
95
96
|
"semi": false
|
|
96
97
|
}
|
|
97
|
-
}
|
|
98
|
+
}
|
|
@@ -34,9 +34,9 @@ function blocksToArticle(blocks) {
|
|
|
34
34
|
return newBlock;
|
|
35
35
|
});
|
|
36
36
|
var article = renamedBlocks.reduce(function (acc, curr) {
|
|
37
|
-
var
|
|
38
|
-
labelName =
|
|
39
|
-
text =
|
|
37
|
+
var _curr$data = curr === null || curr === void 0 ? void 0 : curr.data,
|
|
38
|
+
labelName = _curr$data.labelName,
|
|
39
|
+
text = _curr$data.text;
|
|
40
40
|
|
|
41
41
|
if (acc[labelName] === undefined) {
|
|
42
42
|
acc[labelName] = "";
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
|
|
3
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
4
|
+
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
+
|
|
2
9
|
export default (function (_ref) {
|
|
3
10
|
var center = _ref.center,
|
|
4
11
|
scale = _ref.scale,
|
|
5
12
|
landmarks = _ref.landmarks;
|
|
6
13
|
var points = {};
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
14
|
+
|
|
15
|
+
var _iterator = _createForOfIteratorHelper(Object.entries(landmarks)),
|
|
16
|
+
_step;
|
|
10
17
|
|
|
11
18
|
try {
|
|
12
|
-
for (
|
|
19
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
13
20
|
var _ref4 = _step.value;
|
|
14
21
|
|
|
15
22
|
var _ref3 = _slicedToArray(_ref4, 2);
|
|
@@ -22,18 +29,9 @@ export default (function (_ref) {
|
|
|
22
29
|
};
|
|
23
30
|
}
|
|
24
31
|
} catch (err) {
|
|
25
|
-
|
|
26
|
-
_iteratorError = err;
|
|
32
|
+
_iterator.e(err);
|
|
27
33
|
} finally {
|
|
28
|
-
|
|
29
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
30
|
-
_iterator.return();
|
|
31
|
-
}
|
|
32
|
-
} finally {
|
|
33
|
-
if (_didIteratorError) {
|
|
34
|
-
throw _iteratorError;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
34
|
+
_iterator.f();
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
return points;
|