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.
@@ -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, !zoomWithPrimary && !dragWithPrimary ? {
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, !zoomWithPrimary && !dragWithPrimary ? {
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, "-box"),
159
- id: "".concat(r.id, "-box"),
124
+ key: "".concat(r.id),
125
+ id: "".concat(r.id),
160
126
  className: classnames(classes.highlightLight, {
161
127
  highlighted: r.highlighted
162
128
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-image-annotate-master-custom",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "dependencies": {
5
5
  "@fortawesome/fontawesome-svg-core": "^1.2.12",
6
6
  "@fortawesome/free-solid-svg-icons": "^5.6.3",