react-image-annotate-master-custom 0.0.9 → 0.0.10
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/HighlightBox/index.js +4 -38
- package/package.json +1 -1
package/HighlightBox/index.js
CHANGED
|
@@ -98,24 +98,7 @@ export var HighlightBox = function HighlightBox(_ref) {
|
|
|
98
98
|
className: classnames(classes.highlightLight, {
|
|
99
99
|
highlighted: r.highlighted
|
|
100
100
|
})
|
|
101
|
-
}, mouseEvents,
|
|
102
|
-
onMouseDown: function onMouseDown(e) {
|
|
103
|
-
// if (
|
|
104
|
-
// !r.locked &&
|
|
105
|
-
// r.type === "point" &&
|
|
106
|
-
// r.highlighted &&
|
|
107
|
-
// e.button === 0
|
|
108
|
-
// ) {
|
|
109
|
-
// return onBeginMovePoint(r)
|
|
110
|
-
// }
|
|
111
|
-
if (e.button === 0 && !createWithPrimary) {
|
|
112
|
-
return onSelectRegion(r);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
onSelectRegion(r);
|
|
116
|
-
mouseEvents.onMouseDown(e);
|
|
117
|
-
}
|
|
118
|
-
} : {}, {
|
|
101
|
+
}, mouseEvents, {
|
|
119
102
|
style: _objectSpread({}, r.highlighted && {
|
|
120
103
|
pointerEvents: r.type !== "point" ? "none" : undefined
|
|
121
104
|
}, {
|
|
@@ -129,24 +112,7 @@ export var HighlightBox = function HighlightBox(_ref) {
|
|
|
129
112
|
className: classnames(classes.highlightLight, {
|
|
130
113
|
highlighted: r.highlighted
|
|
131
114
|
})
|
|
132
|
-
}, mouseEvents,
|
|
133
|
-
onMouseDown: function onMouseDown(e) {
|
|
134
|
-
// if (
|
|
135
|
-
// !r.locked &&
|
|
136
|
-
// r.type === "point" &&
|
|
137
|
-
// r.highlighted &&
|
|
138
|
-
// e.button === 0
|
|
139
|
-
// ) {
|
|
140
|
-
// return onBeginMovePoint(r)
|
|
141
|
-
// }
|
|
142
|
-
if (e.button === 0 && !createWithPrimary) {
|
|
143
|
-
return onSelectRegion(r);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
onSelectRegion(r);
|
|
147
|
-
mouseEvents.onMouseDown(e);
|
|
148
|
-
}
|
|
149
|
-
} : {}, {
|
|
115
|
+
}, mouseEvents, {
|
|
150
116
|
style: _objectSpread({}, r.highlighted && {
|
|
151
117
|
pointerEvents: r.type !== "point" ? "none" : undefined
|
|
152
118
|
}, {
|
|
@@ -155,8 +121,8 @@ export var HighlightBox = function HighlightBox(_ref) {
|
|
|
155
121
|
}), React.createElement("path", {
|
|
156
122
|
d: pathDVertical
|
|
157
123
|
})), React.createElement("svg", Object.assign({
|
|
158
|
-
key: "".concat(r.id
|
|
159
|
-
id: "".concat(r.id
|
|
124
|
+
key: "".concat(r.id),
|
|
125
|
+
id: "".concat(r.id),
|
|
160
126
|
className: classnames(classes.highlightLight, {
|
|
161
127
|
highlighted: r.highlighted
|
|
162
128
|
})
|