lost-sia 2.0.1-alpha7 → 2.0.1-alpha8
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/package.json +3 -4
- package/src/Canvas.jsx +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lost-sia",
|
|
3
|
-
"version": "2.0.1-
|
|
3
|
+
"version": "2.0.1-alpha8",
|
|
4
4
|
"description": "Single Image Annotation Tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "l3p-cv/lost-sia",
|
|
@@ -61,11 +61,9 @@
|
|
|
61
61
|
"format": "prettier --write src/"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@coreui/react": "^5.7.0",
|
|
65
64
|
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
66
65
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
67
66
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
68
|
-
"lodash-es": "^4.17.21",
|
|
69
67
|
"react": "^18.0.0",
|
|
70
68
|
"react-dom": "^18.0.0",
|
|
71
69
|
"react-draggable": "^4.4.6",
|
|
@@ -74,7 +72,7 @@
|
|
|
74
72
|
"semantic-ui-react": "^2.0.3"
|
|
75
73
|
},
|
|
76
74
|
"peerDependencies": {
|
|
77
|
-
"
|
|
75
|
+
"@coreui/react": "^5.7.0",
|
|
78
76
|
"prop-types": "^15.5.4",
|
|
79
77
|
"react": "^18.0.0",
|
|
80
78
|
"react-dom": "^18.0.0"
|
|
@@ -96,6 +94,7 @@
|
|
|
96
94
|
"eslint-plugin-react": "^7.34.2",
|
|
97
95
|
"eslint-plugin-standard": "^5.0.0",
|
|
98
96
|
"glob": "^10.4.5",
|
|
97
|
+
"lodash-es": "^4.17.21",
|
|
99
98
|
"prettier": "^3.3.3",
|
|
100
99
|
"react-redux": "^9.1.2",
|
|
101
100
|
"redux": "^5.0.1",
|
package/src/Canvas.jsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _ from "lodash";
|
|
2
1
|
import React, { Component } from "react";
|
|
3
2
|
import { uniqueId } from "lodash-es";
|
|
4
3
|
import Annotation from "./Annotation/Annotation";
|
|
@@ -435,7 +434,7 @@ class Canvas extends Component {
|
|
|
435
434
|
handleKeyAction(action) {
|
|
436
435
|
const anno = this.findAnno(this.state.selectedAnnoId);
|
|
437
436
|
const camKeyStepSize = 20 * this.state.svg.scale;
|
|
438
|
-
console.log(
|
|
437
|
+
console.log("handleKeyAction", action, anno);
|
|
439
438
|
|
|
440
439
|
switch (action) {
|
|
441
440
|
case keyActions.EDIT_LABEL:
|
|
@@ -508,7 +507,7 @@ class Canvas extends Component {
|
|
|
508
507
|
this.recreateAnnotation(this.state.selectedAnnoId);
|
|
509
508
|
break;
|
|
510
509
|
default:
|
|
511
|
-
|
|
510
|
+
// console.warn("Unknown key action", action);
|
|
512
511
|
}
|
|
513
512
|
}
|
|
514
513
|
|
|
@@ -594,7 +593,7 @@ class Canvas extends Component {
|
|
|
594
593
|
// console.log("handleAnnoEvent", pAction, anno);
|
|
595
594
|
let newAnnos = undefined;
|
|
596
595
|
let actionHistoryStore = undefined;
|
|
597
|
-
console.log(
|
|
596
|
+
console.log("canvasActions: ", anno, pAction);
|
|
598
597
|
|
|
599
598
|
switch (pAction) {
|
|
600
599
|
case canvasActions.ANNO_ENTER_CREATE_MODE:
|
|
@@ -681,7 +680,7 @@ class Canvas extends Component {
|
|
|
681
680
|
newAnnos = this.updateSelectedAnno(anno, modes.DELETED);
|
|
682
681
|
this.showSingleAnno(undefined);
|
|
683
682
|
} else {
|
|
684
|
-
newAnnos = this.updateSelectedAnno(anno, modes.ADD)
|
|
683
|
+
newAnnos = this.updateSelectedAnno(anno, modes.ADD);
|
|
685
684
|
}
|
|
686
685
|
this.pushHist(newAnnos, anno.id, pAction, this.state.showSingleAnno);
|
|
687
686
|
if (anno.status !== annoStatus.NEW) {
|