react-image-annotate-master-custom 0.0.18 → 0.0.20
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/RegionShapes/index.js +17 -4
- package/package.json +1 -1
package/RegionShapes/index.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread";
|
|
1
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
3
|
import React, { memo } from "react";
|
|
3
4
|
import colorAlpha from "color-alpha";
|
|
4
|
-
|
|
5
|
+
var noSelectStyle = {
|
|
6
|
+
WebkitUserSelect: 'none',
|
|
7
|
+
|
|
8
|
+
/* Chrome, Safari, Opera */
|
|
9
|
+
MozUserSelect: 'none',
|
|
10
|
+
|
|
11
|
+
/* Firefox */
|
|
12
|
+
MsUserSelect: 'none',
|
|
13
|
+
|
|
14
|
+
/* Internet Explorer/Edge */
|
|
15
|
+
userSelect: 'none'
|
|
16
|
+
/* Non-prefixed version */
|
|
17
|
+
|
|
18
|
+
};
|
|
5
19
|
|
|
6
20
|
function clamp(num, min, max) {
|
|
7
21
|
return num <= min ? min : num >= max ? max : num;
|
|
@@ -256,7 +270,7 @@ export var WrappedRegionListSid = memo(function (_ref20) {
|
|
|
256
270
|
return r.visible !== false;
|
|
257
271
|
}).map(function (r) {
|
|
258
272
|
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
259
|
-
style: {
|
|
273
|
+
style: _objectSpread({
|
|
260
274
|
color: '#800020',
|
|
261
275
|
position: 'absolute',
|
|
262
276
|
zIndex: 1000,
|
|
@@ -264,8 +278,7 @@ export var WrappedRegionListSid = memo(function (_ref20) {
|
|
|
264
278
|
top: r.y * ih + 18,
|
|
265
279
|
fontSize: '13px',
|
|
266
280
|
fontWeight: 500
|
|
267
|
-
},
|
|
268
|
-
className: "noselect"
|
|
281
|
+
}, noSelectStyle)
|
|
269
282
|
}, (r === null || r === void 0 ? void 0 : r.sid) && "#".concat(r === null || r === void 0 ? void 0 : r.sid)));
|
|
270
283
|
});
|
|
271
284
|
}, function (n, p) {
|