@kitware/vtk.js 27.0.0 → 27.1.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.
|
@@ -55,8 +55,13 @@ function vtkInteractorStyleImage(publicAPI, model) {
|
|
|
55
55
|
|
|
56
56
|
publicAPI.startWindowLevel();
|
|
57
57
|
} else if (model.interactionMode === 'IMAGE3D' && callData.shiftKey) {
|
|
58
|
-
// If shift is held down,
|
|
59
|
-
|
|
58
|
+
// If ctrl+shift or alt+shift is held down, dolly the camera
|
|
59
|
+
if (callData.controlKey || callData.altKey) {
|
|
60
|
+
publicAPI.startDolly();
|
|
61
|
+
} else {
|
|
62
|
+
// If shift is held down, rotate
|
|
63
|
+
publicAPI.startRotate();
|
|
64
|
+
}
|
|
60
65
|
} else if (model.interactionMode === 'IMAGE_SLICING' && callData.controlKey) {
|
|
61
66
|
// If ctrl is held down in slicing mode, slice the image
|
|
62
67
|
model.lastSlicePosition = pos.y;
|