@kitware/vtk.js 28.10.0 → 28.10.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.
|
@@ -128,7 +128,7 @@ function vtkRenderWindowInteractor(publicAPI, model) {
|
|
|
128
128
|
return model.currentRenderer;
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
function
|
|
131
|
+
function _getScreenEventPositionFor(source) {
|
|
132
132
|
var canvas = model._view.getCanvas();
|
|
133
133
|
|
|
134
134
|
var bounds = canvas.getBoundingClientRect();
|
|
@@ -145,7 +145,10 @@ function vtkRenderWindowInteractor(publicAPI, model) {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
return position;
|
|
148
|
-
}
|
|
148
|
+
} // Allow user to override it
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
var getScreenEventPositionFor = model._getScreenEventPositionFor || _getScreenEventPositionFor;
|
|
149
152
|
|
|
150
153
|
function getModifierKeysFor(event) {
|
|
151
154
|
return {
|