@kitware/vtk.js 22.4.2 → 22.5.0
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.
|
@@ -74,7 +74,14 @@ function fetchArray(instance, baseURL, array) {
|
|
|
74
74
|
|
|
75
75
|
if (array.ref && !array.ref.pending) {
|
|
76
76
|
return new Promise(function (resolve, reject) {
|
|
77
|
-
var url =
|
|
77
|
+
var url = null;
|
|
78
|
+
|
|
79
|
+
if (array.ref.url) {
|
|
80
|
+
url = array.ref.url;
|
|
81
|
+
} else {
|
|
82
|
+
url = [baseURL, array.ref.basepath, options.compression ? "".concat(array.ref.id, ".gz") : array.ref.id].join('/');
|
|
83
|
+
}
|
|
84
|
+
|
|
78
85
|
var xhr = openAsyncXHR('GET', url, options);
|
|
79
86
|
|
|
80
87
|
xhr.onreadystatechange = function (e) {
|
|
@@ -388,7 +388,7 @@ function widgetBehavior(publicAPI, model) {
|
|
|
388
388
|
publicAPI.invokeInteractionEvent();
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
return model.hasFocus ? macro.EVENT_ABORT : macro.VOID;
|
|
391
|
+
return model.hasFocus || model.isDragging ? macro.EVENT_ABORT : macro.VOID;
|
|
392
392
|
}; // --------------------------------------------------------------------------
|
|
393
393
|
// Left click: Add point / End interaction
|
|
394
394
|
// --------------------------------------------------------------------------
|