react-image-annotate-master-custom 0.0.1 → 0.0.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.
@@ -502,7 +502,7 @@ export default (function (state, action) {
502
502
 
503
503
  case "MOUSE_DOWN":
504
504
  {
505
- var _getIn$regions;
505
+ var _getIn$regions, _getIn$regions2;
506
506
 
507
507
  if (!activeImage) return state;
508
508
  var _x = action.x,
@@ -763,10 +763,10 @@ export default (function (state, action) {
763
763
 
764
764
  default:
765
765
  break;
766
- }
766
+ } // customize create only one annotation
767
+
767
768
 
768
- if ( // customize create only one annotation
769
- (_getIn$regions = getIn(state, pathToActiveImage).regions[getIn(state, pathToActiveImage).regions.length - 1]) === null || _getIn$regions === void 0 ? void 0 : _getIn$regions.isNew) {
769
+ if (((_getIn$regions = getIn(state, pathToActiveImage).regions) === null || _getIn$regions === void 0 ? void 0 : _getIn$regions.length) > 0 && ((_getIn$regions2 = getIn(state, pathToActiveImage).regions[getIn(state, pathToActiveImage).regions.length - 1]) === null || _getIn$regions2 === void 0 ? void 0 : _getIn$regions2.isNew)) {
770
770
  var _regions = _toConsumableArray(getIn(state, pathToActiveImage).regions || []);
771
771
 
772
772
  return setIn(state, [].concat(_toConsumableArray(pathToActiveImage), ["regions"]), _regions);
package/package.json CHANGED
@@ -1,91 +1,91 @@
1
1
  {
2
- "name": "react-image-annotate-master-custom",
3
- "version": "0.0.1",
4
- "dependencies": {
5
- "@fortawesome/fontawesome-svg-core": "^1.2.12",
6
- "@fortawesome/free-solid-svg-icons": "^5.6.3",
7
- "@fortawesome/react-fontawesome": "^0.1.3",
8
- "@mui/icons-material": "^5.2.1",
9
- "@mui/material": "^5.2.3",
10
- "@mui/styles": "^5.2.3",
11
- "@semantic-release/git": "^9.0.0",
12
- "autoseg": "^0.0.12",
13
- "clamp": "^1.0.1",
14
- "color-alpha": "^1.0.4",
15
- "get-image-data": "^3.0.1",
16
- "material-survey": "^2.1.0",
17
- "mmgc1-cpp": "^1.0.50",
18
- "moment": "^2.23.0",
19
- "react": "^17.0.2",
20
- "react-dom": "^17.0.2",
21
- "react-full-screen": "^0.3.1",
22
- "react-hotkeys": "^2.0.0",
23
- "react-json-view": "^1.19.1",
24
- "react-markdown": "^4.0.6",
25
- "react-material-workspace-layout": "^1.0.10",
26
- "react-monaco-editor": "^0.25.1",
27
- "react-remove-scroll": "^2.0.4",
28
- "react-select": "^3.0.8",
29
- "react-syntax-highlighter": "^12.2.1",
30
- "react-use": "^13.27.0",
31
- "react-use-measure": "^2.0.0",
32
- "seamless-immutable": "^7.1.4",
33
- "shallow-equal": "^1.2.1",
34
- "storybook": "^5.3.14",
35
- "styled-components": "^5.2.1",
36
- "transformation-matrix-js": "^2.7.6",
37
- "use-event-callback": "^0.1.0",
38
- "use-key-hook": "^1.3.0"
39
- },
40
- "peerDependencies": {
41
- "react": "^17.0.0",
42
- "react-dom": "^17.0.0"
43
- },
44
- "homepage": "https://github.com/Novus-Solutions/react-image-annotate-master-custom.git",
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/Novus-Solutions/react-image-annotate-master-custom.git"
48
- },
49
- "scripts": {
50
- "start": "react-scripts start",
51
- "test": "react-scripts test",
52
- "eject": "react-scripts eject",
53
- "storybook": "start-storybook -p 9090 -s public",
54
- "build": "npm run build:babel && cp ./package.json ./dist/package.json && cp ./README.md ./dist/README.md",
55
- "dist": "npm run build && cd dist && npm publish",
56
- "build:babel": "NODE_ENV=production babel ./src --ignore \"src/**/*.story.js\" --out-dir=./dist && rm dist/index.js && cp dist/lib.js dist/index.js",
57
- "build-storybook": "build-storybook",
58
- "build:gh-pages": "CI=false react-scripts build && mkdir build/demo && cp build/index.html build/demo/index.html",
59
- "gh-pages": "npm run build:gh-pages && gh-pages -d build",
60
- "prettier": "prettier --write \"src/**/*.js\"",
61
- "prettier:test": "prettier --check \"src/**/*.js\""
62
- },
63
- "eslintConfig": {
64
- "extends": "react-app"
65
- },
66
- "browserslist": [
67
- ">0.2%",
68
- "not dead",
69
- "not ie <= 11",
70
- "not op_mini all"
71
- ],
72
- "devDependencies": {
73
- "@babel/cli": "^7.2.3",
74
- "@babel/core": "^7.2.2",
75
- "@babel/plugin-proposal-optional-chaining": "^7.11.0",
76
- "@storybook/addon-actions": "^5.3.14",
77
- "@storybook/addon-links": "^5.3.14",
78
- "@storybook/addons": "^5.3.14",
79
- "@storybook/react": "^5.3.14",
80
- "babel-loader": "^8.0.5",
81
- "babel-preset-react-app": "^7.0.0",
82
- "gh-pages": "^2.0.1",
83
- "prettier": "^2.5.1",
84
- "raw.macro": "^0.3.0",
85
- "react-github-btn": "^1.1.1",
86
- "react-scripts": "^3.4.1"
87
- },
88
- "prettier": {
89
- "semi": false
90
- }
91
- }
2
+ "name": "react-image-annotate-master-custom",
3
+ "version": "0.0.2",
4
+ "dependencies": {
5
+ "@fortawesome/fontawesome-svg-core": "^1.2.12",
6
+ "@fortawesome/free-solid-svg-icons": "^5.6.3",
7
+ "@fortawesome/react-fontawesome": "^0.1.3",
8
+ "@mui/icons-material": "^5.2.1",
9
+ "@mui/material": "^5.2.3",
10
+ "@mui/styles": "^5.2.3",
11
+ "@semantic-release/git": "^9.0.0",
12
+ "autoseg": "^0.0.12",
13
+ "clamp": "^1.0.1",
14
+ "color-alpha": "^1.0.4",
15
+ "get-image-data": "^3.0.1",
16
+ "material-survey": "^2.1.0",
17
+ "mmgc1-cpp": "^1.0.50",
18
+ "moment": "^2.23.0",
19
+ "react": "^17.0.2",
20
+ "react-dom": "^17.0.2",
21
+ "react-full-screen": "^0.3.1",
22
+ "react-hotkeys": "^2.0.0",
23
+ "react-json-view": "^1.19.1",
24
+ "react-markdown": "^4.0.6",
25
+ "react-material-workspace-layout": "^1.0.10",
26
+ "react-monaco-editor": "^0.25.1",
27
+ "react-remove-scroll": "^2.0.4",
28
+ "react-select": "^3.0.8",
29
+ "react-syntax-highlighter": "^12.2.1",
30
+ "react-use": "^13.27.0",
31
+ "react-use-measure": "^2.0.0",
32
+ "seamless-immutable": "^7.1.4",
33
+ "shallow-equal": "^1.2.1",
34
+ "storybook": "^5.3.14",
35
+ "styled-components": "^5.2.1",
36
+ "transformation-matrix-js": "^2.7.6",
37
+ "use-event-callback": "^0.1.0",
38
+ "use-key-hook": "^1.3.0"
39
+ },
40
+ "peerDependencies": {
41
+ "react": "^17.0.0",
42
+ "react-dom": "^17.0.0"
43
+ },
44
+ "homepage": "https://github.com/Novus-Solutions/react-image-annotate-master-custom.git",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://github.com/Novus-Solutions/react-image-annotate-master-custom.git"
48
+ },
49
+ "scripts": {
50
+ "start": "react-scripts start",
51
+ "test": "react-scripts test",
52
+ "eject": "react-scripts eject",
53
+ "storybook": "start-storybook -p 9090 -s public",
54
+ "build": "npm run build:babel && cp ./package.json ./dist/package.json && cp ./README.md ./dist/README.md",
55
+ "dist": "npm run build && cd dist && npm publish",
56
+ "build:babel": "NODE_ENV=production babel ./src --ignore \"src/**/*.story.js\" --out-dir=./dist && rm dist/index.js && cp dist/lib.js dist/index.js",
57
+ "build-storybook": "build-storybook",
58
+ "build:gh-pages": "CI=false react-scripts build && mkdir build/demo && cp build/index.html build/demo/index.html",
59
+ "gh-pages": "npm run build:gh-pages && gh-pages -d build",
60
+ "prettier": "prettier --write \"src/**/*.js\"",
61
+ "prettier:test": "prettier --check \"src/**/*.js\""
62
+ },
63
+ "eslintConfig": {
64
+ "extends": "react-app"
65
+ },
66
+ "browserslist": [
67
+ ">0.2%",
68
+ "not dead",
69
+ "not ie <= 11",
70
+ "not op_mini all"
71
+ ],
72
+ "devDependencies": {
73
+ "@babel/cli": "^7.2.3",
74
+ "@babel/core": "^7.2.2",
75
+ "@babel/plugin-proposal-optional-chaining": "^7.11.0",
76
+ "@storybook/addon-actions": "^5.3.14",
77
+ "@storybook/addon-links": "^5.3.14",
78
+ "@storybook/addons": "^5.3.14",
79
+ "@storybook/react": "^5.3.14",
80
+ "babel-loader": "^8.0.5",
81
+ "babel-preset-react-app": "^7.0.0",
82
+ "gh-pages": "^2.0.1",
83
+ "prettier": "^2.5.1",
84
+ "raw.macro": "^0.3.0",
85
+ "react-github-btn": "^1.1.1",
86
+ "react-scripts": "^3.4.1"
87
+ },
88
+ "prettier": {
89
+ "semi": false
90
+ }
91
+ }