2025-01-23 20:24:13 +01:00
|
|
|
import { Enums } from '@cornerstonejs/tools';
|
|
|
|
|
import { toolNames } from '../initCornerstoneTools';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
'cornerstone.overlayViewportTools': {
|
|
|
|
|
active: [
|
|
|
|
|
{
|
|
|
|
|
toolName: toolNames.WindowLevel,
|
|
|
|
|
bindings: [{ mouseButton: Enums.MouseBindings.Primary }],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
toolName: toolNames.Pan,
|
|
|
|
|
bindings: [{ mouseButton: Enums.MouseBindings.Auxiliary }],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
toolName: toolNames.Zoom,
|
2025-06-05 19:50:27 +02:00
|
|
|
bindings: [{ mouseButton: Enums.MouseBindings.Secondary }, { numTouchPoints: 2 }],
|
2025-01-23 20:24:13 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
toolName: toolNames.StackScroll,
|
2025-06-05 19:50:27 +02:00
|
|
|
bindings: [{ mouseButton: Enums.MouseBindings.Wheel }, { numTouchPoints: 3 }],
|
2025-01-23 20:24:13 +01:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
enabled: [
|
|
|
|
|
{
|
|
|
|
|
toolName: toolNames.PlanarFreehandContourSegmentation,
|
|
|
|
|
configuration: {
|
|
|
|
|
displayOnePointAsCrosshairs: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
};
|