@sis-cc/dotstatsuite-visions 10.0.0 → 10.0.1
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/es/VirtualizedTree/VirtualizedTree.js +9 -2
- package/lib/VirtualizedTree/VirtualizedTree.js +9 -2
- package/package.json +1 -1
- package/umd/@sis-cc/dotstatsuite-visions.js +77096 -0
- package/umd/@sis-cc/dotstatsuite-visions.min.js +110 -0
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +1 -0
- package/umd/all-selection.074cd4e9.png +0 -0
- package/umd/branch-selection.34eb1bca.png +0 -0
- package/umd/children-selection.3e0401b6.png +0 -0
- package/umd/level-selection.03c76f56.png +0 -0
- package/umd/single-selection.65ce95ea.png +0 -0
- package/umd/small-all-selection.22495fe9.png +0 -0
- package/umd/small-branch-selection.fb0ca231.png +0 -0
- package/umd/small-children-selection.1bec4eba.png +0 -0
- package/umd/small-level-selection.0abef565.png +0 -0
- package/umd/small-single-selection.d032e112.png +0 -0
|
@@ -167,20 +167,24 @@ var VirtualizedTree = function VirtualizedTree(props) {
|
|
|
167
167
|
};
|
|
168
168
|
var eventsCallbacks = function eventsCallbacks(id, index) {
|
|
169
169
|
return {
|
|
170
|
-
onMouseUp: isMouseDown ? function () {
|
|
170
|
+
onMouseUp: isMouseDown ? function (e) {
|
|
171
|
+
e.preventDefault();
|
|
171
172
|
apply();
|
|
172
173
|
if (!R.isEmpty(selectIds)) {
|
|
173
174
|
setLastItemId(id);
|
|
174
175
|
}
|
|
176
|
+
setIsMouseDown(false);
|
|
175
177
|
} : null,
|
|
176
178
|
onMouseDown: function onMouseDown(e) {
|
|
179
|
+
e.preventDefault();
|
|
177
180
|
if (e.ctrlKey || e.shiftKey) {
|
|
178
181
|
return;
|
|
179
182
|
}
|
|
180
|
-
multiSelect(id);
|
|
181
183
|
setIsMouseDown(true);
|
|
184
|
+
multiSelect(id);
|
|
182
185
|
},
|
|
183
186
|
onMouseEnter: isMouseDown ? function (e) {
|
|
187
|
+
e.preventDefault();
|
|
184
188
|
if (e.ctrlKey || e.shiftKey) {
|
|
185
189
|
return;
|
|
186
190
|
}
|
|
@@ -188,12 +192,15 @@ var VirtualizedTree = function VirtualizedTree(props) {
|
|
|
188
192
|
} : null,
|
|
189
193
|
onClick: function onClick(e) {
|
|
190
194
|
e.preventDefault();
|
|
195
|
+
setIsMouseDown(false);
|
|
196
|
+
setLastItemId(id);
|
|
191
197
|
if (e.ctrlKey) {
|
|
192
198
|
multiSelect(id);
|
|
193
199
|
} else if (e.shiftKey) {
|
|
194
200
|
shiftSelect(index);
|
|
195
201
|
}
|
|
196
202
|
}
|
|
203
|
+
// ondblclick: () => null
|
|
197
204
|
};
|
|
198
205
|
};
|
|
199
206
|
var onKeyUp = function onKeyUp(e) {
|
|
@@ -205,20 +205,24 @@ var VirtualizedTree = function VirtualizedTree(props) {
|
|
|
205
205
|
};
|
|
206
206
|
var eventsCallbacks = function eventsCallbacks(id, index) {
|
|
207
207
|
return {
|
|
208
|
-
onMouseUp: isMouseDown ? function () {
|
|
208
|
+
onMouseUp: isMouseDown ? function (e) {
|
|
209
|
+
e.preventDefault();
|
|
209
210
|
apply();
|
|
210
211
|
if (!R.isEmpty(selectIds)) {
|
|
211
212
|
setLastItemId(id);
|
|
212
213
|
}
|
|
214
|
+
setIsMouseDown(false);
|
|
213
215
|
} : null,
|
|
214
216
|
onMouseDown: function onMouseDown(e) {
|
|
217
|
+
e.preventDefault();
|
|
215
218
|
if (e.ctrlKey || e.shiftKey) {
|
|
216
219
|
return;
|
|
217
220
|
}
|
|
218
|
-
multiSelect(id);
|
|
219
221
|
setIsMouseDown(true);
|
|
222
|
+
multiSelect(id);
|
|
220
223
|
},
|
|
221
224
|
onMouseEnter: isMouseDown ? function (e) {
|
|
225
|
+
e.preventDefault();
|
|
222
226
|
if (e.ctrlKey || e.shiftKey) {
|
|
223
227
|
return;
|
|
224
228
|
}
|
|
@@ -226,12 +230,15 @@ var VirtualizedTree = function VirtualizedTree(props) {
|
|
|
226
230
|
} : null,
|
|
227
231
|
onClick: function onClick(e) {
|
|
228
232
|
e.preventDefault();
|
|
233
|
+
setIsMouseDown(false);
|
|
234
|
+
setLastItemId(id);
|
|
229
235
|
if (e.ctrlKey) {
|
|
230
236
|
multiSelect(id);
|
|
231
237
|
} else if (e.shiftKey) {
|
|
232
238
|
shiftSelect(index);
|
|
233
239
|
}
|
|
234
240
|
}
|
|
241
|
+
// ondblclick: () => null
|
|
235
242
|
};
|
|
236
243
|
};
|
|
237
244
|
var onKeyUp = function onKeyUp(e) {
|