@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.
Files changed (57) hide show
  1. package/Annotator/examplePhotos.js +28 -28
  2. package/Annotator/index.js +15 -21
  3. package/Annotator/reducers/combine-reducers.js +18 -3
  4. package/Annotator/reducers/convert-expanding-line-to-polygon.js +15 -16
  5. package/Annotator/reducers/get-implied-video-regions.js +18 -30
  6. package/ClassSelectionMenu/index.js +8 -8
  7. package/Crosshairs/index.js +2 -2
  8. package/DebugSidebarBox/index.js +4 -4
  9. package/DemoSite/Editor.js +15 -15
  10. package/DemoSite/ErrorBoundaryDialog.js +3 -5
  11. package/DemoSite/index.js +3 -3
  12. package/Editor/annotation-plugin/annotation.js +1 -3
  13. package/Editor/index.js +12 -31
  14. package/Editor/readOnly.js +395 -47
  15. package/Errorer/index.js +2 -2
  16. package/FullImageSegmentationAnnotator/index.js +1 -1
  17. package/GroupSelectorSidebarBox/index.js +7 -7
  18. package/GroupsEditorSidebarBox/index.js +11 -11
  19. package/HelpSidebarBox/index.js +4 -4
  20. package/HighlightBox/index.js +3 -3
  21. package/HistorySidebarBox/index.js +8 -8
  22. package/ImageCanvas/index.js +16 -16
  23. package/ImageMask/index.js +1 -1
  24. package/ImageSelectorSidebarBox/index.js +7 -7
  25. package/KeyframeTimeline/index.js +30 -14
  26. package/KeyframesSelectorSidebarBox/index.js +8 -8
  27. package/LandingPage/index.js +12 -12
  28. package/Locker/index.js +2 -2
  29. package/MainLayout/RightSidebarItemsWrapper.js +1 -1
  30. package/MainLayout/icon-dictionary.js +11 -11
  31. package/MainLayout/index.js +25 -23
  32. package/MetadataEditorSidebarBox/index.js +18 -18
  33. package/PageSelector/index.js +21 -21
  34. package/PointDistances/index.js +4 -4
  35. package/PreventScrollToParents/index.js +3 -3
  36. package/RegionLabel/index.js +24 -24
  37. package/RegionSelectAndTransformBoxes/index.js +8 -8
  38. package/RegionSelectorSidebarBox/index.js +33 -33
  39. package/RegionShapes/index.js +22 -22
  40. package/RegionTags/index.js +6 -6
  41. package/SettingsDialog/index.js +4 -4
  42. package/SettingsProvider/index.js +1 -1
  43. package/Shortcuts/ShortcutField.js +3 -3
  44. package/Shortcuts/index.js +2 -2
  45. package/ShortcutsManager/index.js +9 -9
  46. package/Sidebar/index.js +7 -7
  47. package/SidebarBoxContainer/index.js +3 -3
  48. package/SmallToolButton/index.js +2 -2
  49. package/TagsSidebarBox/index.js +6 -6
  50. package/TaskDescriptionSidebarBox/index.js +4 -4
  51. package/Theme/index.js +2 -2
  52. package/VideoOrImageCanvasBackground/index.js +5 -5
  53. package/mj_smaz_hist.log +20015 -0
  54. package/package.json +4 -3
  55. package/utils/blocks-to-article.js +3 -3
  56. package/utils/get-landmarks-with-transform.js +13 -15
  57. 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.80",
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.1.3",
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 _ref = curr === null || curr === void 0 ? void 0 : curr.data,
38
- labelName = _ref.labelName,
39
- text = _ref.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
- var _iteratorNormalCompletion = true;
8
- var _didIteratorError = false;
9
- var _iteratorError = undefined;
14
+
15
+ var _iterator = _createForOfIteratorHelper(Object.entries(landmarks)),
16
+ _step;
10
17
 
11
18
  try {
12
- for (var _iterator = Object.entries(landmarks)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
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
- _didIteratorError = true;
26
- _iteratorError = err;
32
+ _iterator.e(err);
27
33
  } finally {
28
- try {
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;