@cornerstonejs/tools 2.0.0-beta.3 → 2.0.0-beta.5
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/dist/cjs/eventDispatchers/shared/getToolsWithModesForMouseEvent.d.ts +1 -1
- package/dist/cjs/eventDispatchers/shared/getToolsWithModesForTouchEvent.d.ts +1 -1
- package/dist/cjs/eventListeners/keyboard/keyDownListener.js +1 -2
- package/dist/cjs/eventListeners/keyboard/keyDownListener.js.map +1 -1
- package/dist/cjs/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js +4 -8
- package/dist/cjs/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.js +2 -3
- package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/addSegmentationRepresentations.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/addSegmentations.js +1 -5
- package/dist/cjs/stateManagement/segmentation/addSegmentations.js.map +1 -1
- package/dist/cjs/store/ToolGroupManager/ToolGroup.js +1 -2
- package/dist/cjs/store/ToolGroupManager/ToolGroup.js.map +1 -1
- package/dist/cjs/store/state.js +1 -5
- package/dist/cjs/store/state.js.map +1 -1
- package/dist/cjs/synchronizers/synchronizers/createVOISynchronizer.d.ts +1 -1
- package/dist/cjs/tools/AdvancedMagnifyViewport.d.ts +2 -2
- package/dist/cjs/tools/AdvancedMagnifyViewportManager.d.ts +1 -1
- package/dist/cjs/tools/WindowLevelTool.js +3 -0
- package/dist/cjs/tools/WindowLevelTool.js.map +1 -1
- package/dist/cjs/tools/displayTools/Contour/contourConfigCache.d.ts +1 -1
- package/dist/cjs/tools/displayTools/Contour/contourDisplay.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/eraseCircle.d.ts +1 -1
- package/dist/cjs/tools/segmentation/strategies/eraseRectangle.d.ts +1 -1
- package/dist/cjs/tools/segmentation/strategies/eraseSphere.d.ts +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillCircle.d.ts +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillRectangle.d.ts +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillSphere.d.ts +1 -1
- package/dist/cjs/types/AnnotationGroupSelector.d.ts +1 -1
- package/dist/cjs/types/AnnotationStyle.d.ts +7 -7
- package/dist/cjs/types/AnnotationTypes.d.ts +4 -4
- package/dist/cjs/types/BoundsIJK.d.ts +1 -1
- package/dist/cjs/types/CINETypes.d.ts +2 -2
- package/dist/cjs/types/CalculatorTypes.d.ts +1 -1
- package/dist/cjs/types/ContourTypes.d.ts +3 -3
- package/dist/cjs/types/CursorTypes.d.ts +2 -2
- package/dist/cjs/types/EventTypes.d.ts +81 -81
- package/dist/cjs/types/FloodFillTypes.d.ts +5 -5
- package/dist/cjs/types/IDistance.d.ts +1 -1
- package/dist/cjs/types/IPoints.d.ts +1 -1
- package/dist/cjs/types/ISetToolModeOptions.d.ts +5 -5
- package/dist/cjs/types/IToolClassReference.d.ts +1 -1
- package/dist/cjs/types/ITouchPoints.d.ts +1 -1
- package/dist/cjs/types/InteractionTypes.d.ts +1 -1
- package/dist/cjs/types/InternalToolTypes.d.ts +3 -3
- package/dist/cjs/types/JumpToSliceOptions.d.ts +1 -1
- package/dist/cjs/types/LabelmapTypes.d.ts +3 -3
- package/dist/cjs/types/PlanarBoundingBox.d.ts +1 -1
- package/dist/cjs/types/SVGDrawingHelper.d.ts +1 -1
- package/dist/cjs/types/ScrollOptions.d.ts +1 -1
- package/dist/cjs/types/SegmentationStateTypes.d.ts +15 -15
- package/dist/cjs/types/ToolAction.d.ts +1 -1
- package/dist/cjs/types/ToolHandle.d.ts +3 -3
- package/dist/cjs/types/ToolProps.d.ts +4 -4
- package/dist/cjs/types/index.d.ts +7 -7
- package/dist/cjs/utilities/getModalityUnit.d.ts +1 -1
- package/dist/cjs/utilities/getToolsWithModesForElement.d.ts +1 -1
- package/dist/cjs/utilities/math/angle/angleBetweenLines.d.ts +3 -3
- package/dist/cjs/utilities/math/basic/BasicStatsCalculator.js.map +1 -1
- package/dist/cjs/utilities/math/circle/_types.d.ts +1 -1
- package/dist/cjs/utilities/math/ellipse/getCanvasEllipseCorners.d.ts +1 -1
- package/dist/cjs/utilities/math/ellipse/pointInEllipse.d.ts +1 -1
- package/dist/cjs/utilities/math/ellipse/pointInEllipsoidWithConstraint.d.ts +1 -1
- package/dist/cjs/utilities/math/polyline/planarFreehandROIInternalTypes.d.ts +3 -3
- package/dist/cjs/utilities/math/sphere/pointInSphere.d.ts +1 -1
- package/dist/cjs/utilities/pointInShapeCallback.d.ts +3 -3
- package/dist/cjs/utilities/rectangleROITool/getBoundsIJKFromRectangleAnnotations.d.ts +1 -1
- package/dist/cjs/utilities/segmentation/createLabelmapVolumeForViewport.d.ts +8 -8
- package/dist/cjs/utilities/segmentation/createLabelmapVolumeForViewport.js +1 -2
- package/dist/cjs/utilities/segmentation/createLabelmapVolumeForViewport.js.map +1 -1
- package/dist/cjs/utilities/segmentation/rectangleROIThresholdVolumeByRange.d.ts +2 -2
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRange.d.ts +1 -1
- package/dist/cjs/utilities/segmentation/utilities.d.ts +1 -1
- package/dist/cjs/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
- package/dist/esm/eventListeners/keyboard/keyDownListener.js +1 -2
- package/dist/esm/eventListeners/keyboard/keyDownListener.js.map +1 -1
- package/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js +4 -5
- package/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js +2 -3
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/addSegmentations.js +1 -2
- package/dist/esm/stateManagement/segmentation/addSegmentations.js.map +1 -1
- package/dist/esm/store/ToolGroupManager/ToolGroup.js +1 -2
- package/dist/esm/store/ToolGroupManager/ToolGroup.js.map +1 -1
- package/dist/esm/store/state.js +9 -2
- package/dist/esm/store/state.js.map +1 -1
- package/dist/esm/tools/OrientationMarkerTool.js +4 -4
- package/dist/esm/tools/OrientationMarkerTool.js.map +1 -1
- package/dist/esm/tools/WindowLevelTool.js +3 -0
- package/dist/esm/tools/WindowLevelTool.js.map +1 -1
- package/dist/esm/tools/displayTools/Contour/contourDisplay.js.map +1 -1
- package/dist/esm/utilities/math/basic/BasicStatsCalculator.js.map +1 -1
- package/dist/esm/utilities/segmentation/createLabelmapVolumeForViewport.js +1 -2
- package/dist/esm/utilities/segmentation/createLabelmapVolumeForViewport.js.map +1 -1
- package/dist/esm/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
- package/dist/{esm → types}/eventDispatchers/shared/getToolsWithModesForMouseEvent.d.ts +1 -1
- package/dist/{esm → types}/eventDispatchers/shared/getToolsWithModesForTouchEvent.d.ts +1 -1
- package/dist/{esm → types}/synchronizers/synchronizers/createVOISynchronizer.d.ts +1 -1
- package/dist/{esm → types}/tools/AdvancedMagnifyViewport.d.ts +2 -2
- package/dist/{esm → types}/tools/AdvancedMagnifyViewportManager.d.ts +1 -1
- package/dist/{esm → types}/tools/displayTools/Contour/contourConfigCache.d.ts +1 -1
- package/dist/{esm → types}/tools/segmentation/strategies/eraseCircle.d.ts +1 -1
- package/dist/{esm → types}/tools/segmentation/strategies/eraseRectangle.d.ts +1 -1
- package/dist/{esm → types}/tools/segmentation/strategies/eraseSphere.d.ts +1 -1
- package/dist/{esm → types}/tools/segmentation/strategies/fillCircle.d.ts +1 -1
- package/dist/{esm → types}/tools/segmentation/strategies/fillRectangle.d.ts +1 -1
- package/dist/{esm → types}/tools/segmentation/strategies/fillSphere.d.ts +1 -1
- package/dist/types/types/AnnotationGroupSelector.d.ts +2 -0
- package/dist/{esm → types}/types/AnnotationStyle.d.ts +7 -7
- package/dist/{esm → types}/types/AnnotationTypes.d.ts +4 -4
- package/dist/{esm → types}/types/BoundsIJK.d.ts +1 -1
- package/dist/{esm → types}/types/CINETypes.d.ts +2 -2
- package/dist/{esm → types}/types/CalculatorTypes.d.ts +1 -1
- package/dist/{esm → types}/types/ContourTypes.d.ts +3 -3
- package/dist/{esm → types}/types/CursorTypes.d.ts +2 -2
- package/dist/types/types/EventTypes.d.ts +215 -0
- package/dist/{esm → types}/types/FloodFillTypes.d.ts +5 -5
- package/dist/{esm → types}/types/IDistance.d.ts +1 -1
- package/dist/{esm → types}/types/IPoints.d.ts +1 -1
- package/dist/{esm → types}/types/ISetToolModeOptions.d.ts +5 -5
- package/dist/types/types/IToolClassReference.d.ts +3 -0
- package/dist/{esm → types}/types/ITouchPoints.d.ts +1 -1
- package/dist/types/types/InteractionTypes.d.ts +2 -0
- package/dist/{esm → types}/types/InternalToolTypes.d.ts +3 -3
- package/dist/{esm → types}/types/JumpToSliceOptions.d.ts +1 -1
- package/dist/{esm → types}/types/LabelmapTypes.d.ts +3 -3
- package/dist/{esm → types}/types/PlanarBoundingBox.d.ts +1 -1
- package/dist/{esm → types}/types/SVGDrawingHelper.d.ts +1 -1
- package/dist/{esm → types}/types/ScrollOptions.d.ts +1 -1
- package/dist/{esm → types}/types/SegmentationStateTypes.d.ts +15 -15
- package/dist/{esm → types}/types/ToolAction.d.ts +1 -1
- package/dist/{esm → types}/types/ToolHandle.d.ts +3 -3
- package/dist/{esm → types}/types/ToolProps.d.ts +4 -4
- package/dist/{esm → types}/types/index.d.ts +7 -7
- package/dist/{esm → types}/utilities/getModalityUnit.d.ts +1 -1
- package/dist/{esm → types}/utilities/getToolsWithModesForElement.d.ts +1 -1
- package/dist/types/utilities/math/angle/angleBetweenLines.d.ts +6 -0
- package/dist/{esm → types}/utilities/math/circle/_types.d.ts +1 -1
- package/dist/{esm → types}/utilities/math/ellipse/getCanvasEllipseCorners.d.ts +1 -1
- package/dist/{esm → types}/utilities/math/ellipse/pointInEllipse.d.ts +1 -1
- package/dist/{esm → types}/utilities/math/ellipse/pointInEllipsoidWithConstraint.d.ts +1 -1
- package/dist/{esm → types}/utilities/math/polyline/planarFreehandROIInternalTypes.d.ts +3 -3
- package/dist/{esm → types}/utilities/math/sphere/pointInSphere.d.ts +1 -1
- package/dist/{esm → types}/utilities/pointInShapeCallback.d.ts +3 -3
- package/dist/{esm → types}/utilities/rectangleROITool/getBoundsIJKFromRectangleAnnotations.d.ts +1 -1
- package/dist/{esm → types}/utilities/segmentation/createLabelmapVolumeForViewport.d.ts +8 -8
- package/dist/{esm → types}/utilities/segmentation/rectangleROIThresholdVolumeByRange.d.ts +2 -2
- package/dist/{esm → types}/utilities/segmentation/thresholdVolumeByRange.d.ts +1 -1
- package/dist/{esm → types}/utilities/segmentation/utilities.d.ts +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +4 -4
- package/src/eventListeners/keyboard/keyDownListener.ts +1 -2
- package/src/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.ts +4 -5
- package/src/stateManagement/segmentation/SegmentationStateManager.ts +2 -3
- package/src/stateManagement/segmentation/addSegmentationRepresentations.ts +0 -1
- package/src/stateManagement/segmentation/addSegmentations.ts +1 -2
- package/src/store/ToolGroupManager/ToolGroup.ts +1 -2
- package/src/store/state.ts +9 -3
- package/src/tools/WindowLevelTool.ts +3 -0
- package/src/tools/displayTools/Contour/contourDisplay.ts +0 -1
- package/src/types/index.ts +7 -7
- package/src/utilities/segmentation/createLabelmapVolumeForViewport.ts +9 -10
- package/src/utilities/stackPrefetch/stackPrefetch.ts +0 -2
- package/dist/esm/types/AnnotationGroupSelector.d.ts +0 -2
- package/dist/esm/types/EventTypes.d.ts +0 -215
- package/dist/esm/types/IToolClassReference.d.ts +0 -3
- package/dist/esm/types/InteractionTypes.d.ts +0 -2
- package/dist/esm/utilities/math/angle/angleBetweenLines.d.ts +0 -6
- /package/dist/{esm → types}/constants/COLOR_LUT.d.ts +0 -0
- /package/dist/{esm → types}/constants/index.d.ts +0 -0
- /package/dist/{esm → types}/cursors/ImageMouseCursor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/MouseCursor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/SVGCursorDescriptor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/SVGMouseCursor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/elementCursor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/index.d.ts +0 -0
- /package/dist/{esm → types}/cursors/setCursorForElement.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/_getHash.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/clearByToolType.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/draw.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawArrow.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawCircle.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawEllipse.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawHandles.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawLine.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawLink.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawLinkedTextBox.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawPolyline.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawRect.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawTextBox.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/getSvgDrawingHelper.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/index.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/setAttributesIfNecessary.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/setNewAttributesIfValid.d.ts +0 -0
- /package/dist/{esm → types}/enums/AnnotationStyleStates.d.ts +0 -0
- /package/dist/{esm → types}/enums/Events.d.ts +0 -0
- /package/dist/{esm → types}/enums/SegmentationRepresentations.d.ts +0 -0
- /package/dist/{esm → types}/enums/ToolBindings.d.ts +0 -0
- /package/dist/{esm → types}/enums/ToolModes.d.ts +0 -0
- /package/dist/{esm → types}/enums/Touch.d.ts +0 -0
- /package/dist/{esm → types}/enums/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/annotationModifiedEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/cameraModifiedEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/imageRenderedEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/imageSpacingCalibratedEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/keyDown.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/keyUp.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/keyboardToolEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseClick.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDoubleClick.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDown.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownActivate.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownAnnotationAction.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDrag.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseMove.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseUp.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseWheel.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseToolEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/customCallbackHandler.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForKeyboardEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForMouseEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForTouchEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getMouseModifier.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getToolsWithActionsForMouseEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchDrag.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchEnd.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchPress.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchStart.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchStartActivate.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchTap.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchToolEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/annotations/annotationModifiedListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/annotations/annotationSelectionListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/annotations/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/keyboard/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/keyboard/keyDownListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/getMouseEventPoints.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/mouseDoubleClickListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/mouseDownListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/mouseMoveListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/segmentationDataModifiedEventListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/touch/getTouchEventPoints.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/touch/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/touch/preventGhostClick.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/touch/touchStartListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/wheel/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/wheel/normalizeWheel.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/wheel/wheelListener.d.ts +0 -0
- /package/dist/{esm → types}/index.d.ts +0 -0
- /package/dist/{esm → types}/init.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/annotationLocking.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/annotationSelection.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/annotationState.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/annotationVisibility.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/ToolStyle.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/getFont.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/getState.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/helpers.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/helpers/state.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/SegmentationStateManager.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/activeSegmentation.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/addSegmentationRepresentations.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/addSegmentations.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/config/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationColor.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationConfig.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationVisibility.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/helpers/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/segmentIndex.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/segmentLocking.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/segmentationState.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/triggerSegmentationEvents.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/Synchronizer.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/createSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/destroy.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/destroySynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/getAllSynchronizers.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/getSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/getSynchronizersForViewport.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/index.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/ToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/createToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/destroy.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/destroyToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/getAllToolGroups.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/getToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/getToolGroupForViewport.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/getToolGroupsWithToolName.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/index.d.ts +0 -0
- /package/dist/{esm → types}/store/addEnabledElement.d.ts +0 -0
- /package/dist/{esm → types}/store/addTool.d.ts +0 -0
- /package/dist/{esm → types}/store/cancelActiveManipulations.d.ts +0 -0
- /package/dist/{esm → types}/store/filterMoveableAnnotationTools.d.ts +0 -0
- /package/dist/{esm → types}/store/filterToolsWithAnnotationsForElement.d.ts +0 -0
- /package/dist/{esm → types}/store/filterToolsWithMoveableHandles.d.ts +0 -0
- /package/dist/{esm → types}/store/index.d.ts +0 -0
- /package/dist/{esm → types}/store/removeEnabledElement.d.ts +0 -0
- /package/dist/{esm → types}/store/state.d.ts +0 -0
- /package/dist/{esm → types}/store/svgNodeCache.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/areViewportsCoplanar .d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/cameraSyncCallback.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/stackImageSyncCallback.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/voiSyncCallback.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/zoomPanSyncCallback.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/index.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/createCameraPositionSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/createStackImageSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/createZoomPanSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/AdvancedMagnifyTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/CrosshairsTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/MIPJumpToClickTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/MagnifyTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/OrientationMarkerTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/OverlayGridTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/PanTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/PlanarRotateTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/ReferenceCursors.d.ts +0 -0
- /package/dist/{esm → types}/tools/ReferenceLinesTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/ScaleOverlayTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/StackScrollTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/StackScrollToolMouseWheelTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/TrackballRotateTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/VolumeRotateMouseWheelTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/WindowLevelTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/ZoomTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/AngleTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/ArrowAnnotateTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/BidirectionalTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/CircleROITool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/CobbAngleTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/DragProbeTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/EllipticalROITool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/LengthTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/PlanarFreehandROITool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/ProbeTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/RectangleROITool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/closedContourEditLoop.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/drawLoop.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/editLoopCommon.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/findOpenUShapedContourVectorToPeak.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/openContourEditLoop.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/openContourEndEditLoop.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/renderMethods.d.ts +0 -0
- /package/dist/{esm → types}/tools/base/AnnotationDisplayTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/base/AnnotationTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/base/BaseTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/base/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/addContourSetsToElement.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/addOrUpdateContourSets.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/contourConfig.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/contourDisplay.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/removeContourFromElement.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/updateContourSets.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/utils.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/labelmapConfig.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/labelmapDisplay.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/removeLabelmapFromElement.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/validateRepresentationData.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/SegmentationDisplayTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/BrushTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/CircleScissorsTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/PaintFillTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/RectangleROIStartEndThresholdTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/RectangleROIThresholdTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/RectangleScissorsTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/SphereScissorsTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/utils/isWithinThreshold.d.ts +0 -0
- /package/dist/{esm → types}/types/IAnnotationManager.d.ts +0 -0
- /package/dist/{esm → types}/types/ISynchronizerEventHandler.d.ts +0 -0
- /package/dist/{esm → types}/types/IToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/types/ToolSpecificAnnotationTypes.d.ts +0 -0
- /package/dist/{esm → types}/utilities/boundingBox/extend2DBoundingBoxInViewAxis.d.ts +0 -0
- /package/dist/{esm → types}/utilities/boundingBox/getBoundingBoxAroundShape.d.ts +0 -0
- /package/dist/{esm → types}/utilities/boundingBox/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/calibrateImageSpacing.d.ts +0 -0
- /package/dist/{esm → types}/utilities/cine/events.d.ts +0 -0
- /package/dist/{esm → types}/utilities/cine/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/cine/playClip.d.ts +0 -0
- /package/dist/{esm → types}/utilities/cine/state.d.ts +0 -0
- /package/dist/{esm → types}/utilities/clip.d.ts +0 -0
- /package/dist/{esm → types}/utilities/debounce.d.ts +0 -0
- /package/dist/{esm → types}/utilities/drawing/getTextBoxCoordsCanvas.d.ts +0 -0
- /package/dist/{esm → types}/utilities/drawing/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/dynamicVolume/generateImageFromTimeData.d.ts +0 -0
- /package/dist/{esm → types}/utilities/dynamicVolume/getDataInTime.d.ts +0 -0
- /package/dist/{esm → types}/utilities/dynamicVolume/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/getAnnotationNearPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/getCalibratedUnits.d.ts +0 -0
- /package/dist/{esm → types}/utilities/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/isObject.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/basic/BasicStatsCalculator.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/basic/Calculator.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/basic/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/circle/getCanvasCircleCorners.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/circle/getCanvasCircleRadius.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/circle/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/ellipse/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/line/distanceToPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/line/distanceToPointSquared.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/line/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/line/intersectLine.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/midPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/point/distanceToPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/point/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/addCanvasPointsToArray.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/calculateAreaOfPoints.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/getIntersectionWithPolyline.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/getSubPixelSpacingAndXYDirections.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/pointCanProjectOnLine.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/pointInPolyline.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/pointsAreWithinCloseContourProximity.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/rectangle/distanceToPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/rectangle/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/sphere/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/vec2/findClosestPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/vec2/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/vec2/liangBarksyClip.d.ts +0 -0
- /package/dist/{esm → types}/utilities/orientation/getOrientationStringLPS.d.ts +0 -0
- /package/dist/{esm → types}/utilities/orientation/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/orientation/invertOrientationStringLPS.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/filterAnnotationsForDisplay.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/filterAnnotationsWithinSlice.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/getPointInLineOfSightWithCriteria.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/getWorldWidthAndHeightFromCorners.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/getWorldWidthAndHeightFromTwoPoints.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolateAnnotation.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolatePoints.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolation/algorithms/bspline.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolation/interpolateSegmentPoints.d.ts +0 -0
- /package/dist/{esm → types}/utilities/pointInSurroundingSphereCallback.d.ts +0 -0
- /package/dist/{esm → types}/utilities/rectangleROITool/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/roundNumber.d.ts +0 -0
- /package/dist/{esm → types}/utilities/scroll.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/brushSizeForToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/brushThresholdForToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/createMergedLabelmapForIndex.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/floodFill.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/getDefaultRepresentationConfig.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/isValidRepresentationConfig.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/thresholdSegmentationByRange.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/triggerSegmentationRender.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/stackContextPrefetch.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/stackPrefetch.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/stackPrefetchUtils.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/state.d.ts +0 -0
- /package/dist/{esm → types}/utilities/throttle.d.ts +0 -0
- /package/dist/{esm → types}/utilities/touch/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/triggerAnnotationRender.d.ts +0 -0
- /package/dist/{esm → types}/utilities/triggerAnnotationRenderForViewportIds.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewport/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewport/isViewportPreScaled.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewport/jumpToSlice.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewport/jumpToWorld.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithFrameOfReferenceUID.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithParallelNormals.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithSameOrientation.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithToolEnabled.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/getViewportIdsWithToolToRender.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/index.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicStatsCalculator.js","sourceRoot":"","sources":["../../../../../src/utilities/math/basic/BasicStatsCalculator.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,UAAU;
|
|
1
|
+
{"version":3,"file":"BasicStatsCalculator.js","sourceRoot":"","sources":["../../../../../src/utilities/math/basic/BasicStatsCalculator.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,UAAU;aAC3C,QAAG,GAAG,CAAC,QAAQ,CAAC;aAChB,eAAU,GAAG,CAAC,CAAC;aACf,QAAG,GAAG,CAAC,CAAC;aACR,eAAU,GAAG,CAAC,CAAC;aACf,mBAAc,GAAG,CAAC,CAAC;aACnB,UAAK,GAAG,CAAC,CAAC;aAOlB,kBAAa,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAQ,EAAE;QACnD,IAAI,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE;YACvB,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC;YACpB,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC;SAC5B;QAED,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;QAEhB,IAAI,CAAC,GAAG,IAAI,QAAQ,CAAC;QACrB,IAAI,CAAC,UAAU,IAAI,QAAQ,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACvE,CAAC,CAAC;aAYK,kBAAa,GAAG,GAAiB,EAAE;QACxC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACnC,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3D,MAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CACnC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,CAAC,CACzC,CAAC;QAEF,IAAI,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC;QACrB,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QAEf,OAAO;YACL,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE;YACnD,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;YACzC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;YAC7C,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,IAAI,EAAE;SACxE,CAAC;IACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _cloneDeep } from 'lodash.clonedeep';
|
|
2
1
|
import { getEnabledElementByIds, volumeLoader, VolumeViewport, utilities as csUtils, } from '@cornerstonejs/core';
|
|
3
2
|
export default async function createLabelmapVolumeForViewport(input) {
|
|
4
3
|
const { viewportId, renderingEngineId, options } = input;
|
|
@@ -16,7 +15,7 @@ export default async function createLabelmapVolumeForViewport(input) {
|
|
|
16
15
|
segmentationId = `${uid}-based-segmentation-${options?.volumeId ?? csUtils.uuidv4().slice(0, 8)}`;
|
|
17
16
|
}
|
|
18
17
|
if (options) {
|
|
19
|
-
const properties =
|
|
18
|
+
const properties = structuredClone(options);
|
|
20
19
|
await volumeLoader.createLocalVolume(properties, segmentationId);
|
|
21
20
|
}
|
|
22
21
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLabelmapVolumeForViewport.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/createLabelmapVolumeForViewport.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"createLabelmapVolumeForViewport.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/createLabelmapVolumeForViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,SAAS,IAAI,OAAO,GACrB,MAAM,qBAAqB,CAAC;AAc7B,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,+BAA+B,CAAC,KAgB7D;IACC,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACzD,IAAI,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;IAE7E,IAAI,CAAC,cAAc,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACrC;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IACpC,IAAI,CAAC,CAAC,QAAQ,YAAY,cAAc,CAAC,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,MAAM,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;IAE3C,IAAI,cAAc,KAAK,SAAS,EAAE;QAEhC,cAAc,GAAG,GAAG,GAAG,uBACrB,OAAO,EAAE,QAAQ,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAClD,EAAE,CAAC;KACJ;IAED,IAAI,OAAO,EAAE;QAGX,MAAM,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,YAAY,CAAC,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;KAClE;SAAM;QAEL,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;QACrD,MAAM,YAAY,CAAC,2BAA2B,CAAC,QAAQ,EAAE;YACvD,QAAQ,EAAE,cAAc;SACzB,CAAC,CAAC;KACJ;IAED,OAAO,cAAc,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stackPrefetch.js","sourceRoot":"","sources":["../../../../src/utilities/stackPrefetch/stackPrefetch.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"stackPrefetch.js","sourceRoot":"","sources":["../../../../src/utilities/stackPrefetch/stackPrefetch.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,KAAK,EACL,WAAW,EACX,oBAAoB,EACpB,KAAK,EACL,gBAAgB,IAAI,oBAAoB,GACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,wBAAwB,EACxB,YAAY,EACZ,KAAK,GACN,MAAM,sBAAsB,CAAC;AAE9B,IAAI,aAAa,GAAG;IAClB,mBAAmB,EAAE,QAAQ;IAO7B,oBAAoB,EAAE,IAAI;CAC3B,CAAC;AAEF,IAAI,oBAAoB,CAAC;AACzB,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAE9B,SAAS,QAAQ,CAAC,OAAO;IAEvB,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAEhD,IAAI,CAAC,iBAAiB,EAAE;QACtB,OAAO;KACR;IAED,MAAM,aAAa,GAAG,iBAAiB,IAAI,EAAE,CAAC;IAC9C,MAAM,KAAK,GAAG,YAAY,CAA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CAC7B,KAAK,CAAC,MAAM,CAAC,yBAAyB,EACtC,qBAAqB,CACtB,CAAC;IACF,WAAW,CAAC,gBAAgB,CAC1B,KAAK,CAAC,MAAM,CAAC,yBAAyB,EACtC,qBAAqB,CACtB,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,OAAO;IACtB,YAAY,CAAC,oBAAoB,CAAC,CAAC;IACnC,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC;IAE1E,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAEhE,WAAW,CAAC,mBAAmB,CAC7B,KAAK,CAAC,MAAM,CAAC,yBAAyB,EACtC,qBAAqB,CACtB,CAAC;IAEF,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAGhD,IAAI,iBAAiB,IAAI,iBAAiB,CAAC,gBAAgB,CAAC,MAAM,EAAE;QAClE,iBAAiB,CAAC,OAAO,GAAG,KAAK,CAAC;QAGlC,oBAAoB,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;KACrD;AACH,CAAC;AAED,SAAS,gBAAgB;IACvB,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAM;IAC9B,aAAa,GAAG,MAAM,CAAC;AACzB,CAAC;AAED,MAAM,aAAa,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;AAE9E,eAAe,aAAa,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToolModes } from '../../enums';
|
|
2
2
|
import { EventTypes } from '../../types';
|
|
3
|
-
|
|
3
|
+
type ModesFilter = Array<ToolModes>;
|
|
4
4
|
export default function getToolsWithModesForMouseEvent(evt: EventTypes.MouseMoveEventType, modesFilter: ModesFilter, evtButton?: any): any[];
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToolModes } from '../../enums';
|
|
2
2
|
import { EventTypes } from '../../types';
|
|
3
|
-
|
|
3
|
+
type ModesFilter = Array<ToolModes>;
|
|
4
4
|
export default function getToolsWithModesForTouchEvent(evt: EventTypes.NormalizedTouchEventType, modesFilter: ModesFilter, numTouchPoints?: number): any[];
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Synchronizer from '../../store/SynchronizerManager/Synchronizer';
|
|
2
|
-
|
|
2
|
+
type VOISynchronizerOptions = {
|
|
3
3
|
syncInvertState: boolean;
|
|
4
4
|
};
|
|
5
5
|
export default function createVOISynchronizer(synchronizerName: string, options?: VOISynchronizerOptions): Synchronizer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
-
export
|
|
2
|
+
export type AutoPanCallbackData = {
|
|
3
3
|
points: {
|
|
4
4
|
currentPosition: {
|
|
5
5
|
canvas: Types.Point2;
|
|
@@ -15,7 +15,7 @@ export declare type AutoPanCallbackData = {
|
|
|
15
15
|
world: Types.Point3;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type AutoPanCallback = (data: AutoPanCallbackData) => void;
|
|
19
19
|
declare class AdvancedMagnifyViewport {
|
|
20
20
|
private _viewportId;
|
|
21
21
|
private _sourceEnabledElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { AdvancedMagnifyViewport, AutoPanCallback } from './AdvancedMagnifyViewport';
|
|
3
3
|
import { AdvancedMagnifyAnnotation } from '../types/ToolSpecificAnnotationTypes';
|
|
4
|
-
export
|
|
4
|
+
export type MagnifyViewportInfo = {
|
|
5
5
|
magnifyViewportId?: string;
|
|
6
6
|
sourceEnabledElement: Types.IEnabledElement;
|
|
7
7
|
position: Types.Point2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageVolume } from '@cornerstonejs/core';
|
|
2
2
|
import type { Types } from '@cornerstonejs/core';
|
|
3
|
-
|
|
3
|
+
type EraseOperationData = {
|
|
4
4
|
segmentationId: string;
|
|
5
5
|
points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
|
|
6
6
|
volume: ImageVolume;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageVolume } from '@cornerstonejs/core';
|
|
2
2
|
import type { Types } from '@cornerstonejs/core';
|
|
3
|
-
|
|
3
|
+
type OperationData = {
|
|
4
4
|
segmentationId: string;
|
|
5
5
|
points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
|
|
6
6
|
volume: ImageVolume;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
type Modes = '' | 'Active' | 'Passive' | 'Enabled';
|
|
2
|
+
type States = '' | 'Highlighted' | 'Selected' | 'Locked';
|
|
3
|
+
type Properties = 'color' | 'lineWidth' | 'lineDash' | 'textBoxFontFamily' | 'textBoxFontSize' | 'textBoxColor' | 'textBoxBackground' | 'textBoxLinkLineWidth' | 'textBoxLinkLineDash';
|
|
4
|
+
export type AnnotationStyle = {
|
|
5
5
|
[key in `${Properties}${States}${Modes}`]?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type ToolStyleConfig = {
|
|
8
8
|
[toolName: string]: AnnotationStyle;
|
|
9
9
|
} & {
|
|
10
10
|
global?: AnnotationStyle;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type StyleConfig = {
|
|
13
13
|
annotations?: {
|
|
14
14
|
[annotationUID: string]: AnnotationStyle;
|
|
15
15
|
};
|
|
@@ -21,7 +21,7 @@ export declare type StyleConfig = {
|
|
|
21
21
|
};
|
|
22
22
|
default: ToolStyleConfig;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type StyleSpecifier = {
|
|
25
25
|
viewportId?: string;
|
|
26
26
|
toolGroupId?: string;
|
|
27
27
|
toolName?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
-
|
|
2
|
+
type Annotation = {
|
|
3
3
|
annotationUID?: string;
|
|
4
4
|
highlighted?: boolean;
|
|
5
5
|
isLocked?: boolean;
|
|
@@ -35,11 +35,11 @@ declare type Annotation = {
|
|
|
35
35
|
cachedStats?: unknown;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
type Annotations = Array<Annotation>;
|
|
39
|
+
type GroupSpecificAnnotations = {
|
|
40
40
|
[toolName: string]: Annotations;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
type AnnotationState = {
|
|
43
43
|
[key: string]: GroupSpecificAnnotations;
|
|
44
44
|
};
|
|
45
45
|
export { Annotation, Annotations, GroupSpecificAnnotations, AnnotationState };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type PlayClipOptions = {
|
|
2
2
|
framesPerSecond?: number;
|
|
3
3
|
frameTimeVector?: number[];
|
|
4
4
|
reverse?: boolean;
|
|
@@ -19,7 +19,7 @@ interface ToolData {
|
|
|
19
19
|
loop: boolean;
|
|
20
20
|
dynamicCineEnabled?: boolean;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
type CinePlayContext = {
|
|
23
23
|
get numScrollSteps(): number;
|
|
24
24
|
get currentStepIndex(): number;
|
|
25
25
|
get frameTimeVectorEnabled(): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ContourConfig = {
|
|
2
2
|
outlineWidthActive?: number;
|
|
3
3
|
outlineWidthInactive?: number;
|
|
4
4
|
outlineOpacity?: number;
|
|
@@ -8,7 +8,7 @@ export declare type ContourConfig = {
|
|
|
8
8
|
fillAlpha?: number;
|
|
9
9
|
fillAlphaInactive?: number;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type ContourRenderingConfig = {};
|
|
12
|
+
export type ContourSegmentationData = {
|
|
13
13
|
geometryIds: string[];
|
|
14
14
|
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { Types } from '@cornerstonejs/core';
|
|
2
|
+
import { Annotation } from './AnnotationTypes';
|
|
3
|
+
import IPoints from './IPoints';
|
|
4
|
+
import ITouchPoints from './ITouchPoints';
|
|
5
|
+
import IDistance from './IDistance';
|
|
6
|
+
import { SetToolBindingsType } from './ISetToolModeOptions';
|
|
7
|
+
import { Swipe } from '../enums/Touch';
|
|
8
|
+
import { ToolModes } from '../enums';
|
|
9
|
+
type NormalizedInteractionEventDetail = {
|
|
10
|
+
eventName: string;
|
|
11
|
+
renderingEngineId: string;
|
|
12
|
+
viewportId: string;
|
|
13
|
+
camera: Record<string, unknown>;
|
|
14
|
+
element: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type MouseCustomEventDetail = NormalizedInteractionEventDetail & {
|
|
17
|
+
event: Record<string, unknown> | MouseEvent;
|
|
18
|
+
};
|
|
19
|
+
type TouchCustomEventDetail = NormalizedInteractionEventDetail & {
|
|
20
|
+
event: Record<string, unknown> | TouchEvent;
|
|
21
|
+
};
|
|
22
|
+
type MousePointsDetail = {
|
|
23
|
+
startPoints: IPoints;
|
|
24
|
+
lastPoints: IPoints;
|
|
25
|
+
currentPoints: IPoints;
|
|
26
|
+
deltaPoints: IPoints;
|
|
27
|
+
};
|
|
28
|
+
type TouchPointsDetail = {
|
|
29
|
+
startPoints: ITouchPoints;
|
|
30
|
+
lastPoints: ITouchPoints;
|
|
31
|
+
currentPoints: ITouchPoints;
|
|
32
|
+
startPointsList: ITouchPoints[];
|
|
33
|
+
lastPointsList: ITouchPoints[];
|
|
34
|
+
currentPointsList: ITouchPoints[];
|
|
35
|
+
deltaPoints: IPoints;
|
|
36
|
+
deltaDistance: IDistance;
|
|
37
|
+
};
|
|
38
|
+
type InteractionEventDetail = NormalizedInteractionEventDetail & (MouseCustomEventDetail | TouchCustomEventDetail) & (MousePointsDetail | TouchPointsDetail);
|
|
39
|
+
type InteractionStartEventDetail = InteractionEventDetail;
|
|
40
|
+
type InteractionEndEventDetail = InteractionEventDetail;
|
|
41
|
+
type ToolModeChangedEventDetail = {
|
|
42
|
+
toolGroupId: string;
|
|
43
|
+
toolName: string;
|
|
44
|
+
mode: ToolModes;
|
|
45
|
+
toolBindingsOptions?: SetToolBindingsType;
|
|
46
|
+
};
|
|
47
|
+
type ToolActivatedEventDetail = {
|
|
48
|
+
toolGroupId: string;
|
|
49
|
+
toolName: string;
|
|
50
|
+
toolBindingsOptions: SetToolBindingsType;
|
|
51
|
+
};
|
|
52
|
+
type AnnotationAddedEventDetail = {
|
|
53
|
+
viewportId: string;
|
|
54
|
+
renderingEngineId: string;
|
|
55
|
+
annotation: Annotation;
|
|
56
|
+
};
|
|
57
|
+
type AnnotationCompletedEventDetail = {
|
|
58
|
+
annotation: Annotation;
|
|
59
|
+
};
|
|
60
|
+
type AnnotationModifiedEventDetail = {
|
|
61
|
+
viewportId: string;
|
|
62
|
+
renderingEngineId: string;
|
|
63
|
+
annotation: Annotation;
|
|
64
|
+
};
|
|
65
|
+
type AnnotationRemovedEventDetail = {
|
|
66
|
+
annotation: Annotation;
|
|
67
|
+
annotationManagerUID: string;
|
|
68
|
+
};
|
|
69
|
+
type AnnotationSelectionChangeEventDetail = {
|
|
70
|
+
added: Array<string>;
|
|
71
|
+
removed: Array<string>;
|
|
72
|
+
selection: Array<string>;
|
|
73
|
+
};
|
|
74
|
+
type AnnotationLockChangeEventDetail = {
|
|
75
|
+
added: Array<Annotation>;
|
|
76
|
+
removed: Array<Annotation>;
|
|
77
|
+
locked: Array<Annotation>;
|
|
78
|
+
};
|
|
79
|
+
type AnnotationVisibilityChangeEventDetail = {
|
|
80
|
+
lastHidden: Array<string>;
|
|
81
|
+
lastVisible: Array<string>;
|
|
82
|
+
hidden: Array<string>;
|
|
83
|
+
};
|
|
84
|
+
type AnnotationRenderedEventDetail = {
|
|
85
|
+
element: HTMLDivElement;
|
|
86
|
+
viewportId: string;
|
|
87
|
+
renderingEngineId: string;
|
|
88
|
+
};
|
|
89
|
+
type SegmentationDataModifiedEventDetail = {
|
|
90
|
+
segmentationId: string;
|
|
91
|
+
modifiedSlicesToUse?: number[];
|
|
92
|
+
};
|
|
93
|
+
type SegmentationRenderedEventDetail = {
|
|
94
|
+
viewportId: string;
|
|
95
|
+
toolGroupId: string;
|
|
96
|
+
};
|
|
97
|
+
type SegmentationRepresentationModifiedEventDetail = {
|
|
98
|
+
toolGroupId: string;
|
|
99
|
+
segmentationRepresentationUID: string;
|
|
100
|
+
};
|
|
101
|
+
type SegmentationRemovedEventDetail = {
|
|
102
|
+
segmentationId: string;
|
|
103
|
+
};
|
|
104
|
+
type SegmentationRepresentationRemovedEventDetail = {
|
|
105
|
+
toolGroupId: string;
|
|
106
|
+
segmentationRepresentationUID: string;
|
|
107
|
+
};
|
|
108
|
+
type SegmentationModifiedEventDetail = {
|
|
109
|
+
segmentationId: string;
|
|
110
|
+
};
|
|
111
|
+
type KeyDownEventDetail = {
|
|
112
|
+
element: HTMLDivElement;
|
|
113
|
+
viewportId: string;
|
|
114
|
+
renderingEngineId: string;
|
|
115
|
+
key: string;
|
|
116
|
+
keyCode: number;
|
|
117
|
+
};
|
|
118
|
+
type KeyUpEventDetail = KeyDownEventDetail;
|
|
119
|
+
type MouseDownEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & {
|
|
120
|
+
mouseButton: number;
|
|
121
|
+
};
|
|
122
|
+
type TouchStartEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail;
|
|
123
|
+
type MouseDragEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & {
|
|
124
|
+
mouseButton: number;
|
|
125
|
+
};
|
|
126
|
+
type TouchDragEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail;
|
|
127
|
+
type MouseMoveEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & {
|
|
128
|
+
currentPoints: IPoints;
|
|
129
|
+
};
|
|
130
|
+
type MouseUpEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & {
|
|
131
|
+
mouseButton: number;
|
|
132
|
+
};
|
|
133
|
+
type TouchEndEventDetail = NormalizedInteractionEventDetail & TouchPointsDetail & TouchCustomEventDetail;
|
|
134
|
+
type MouseDownActivateEventDetail = NormalizedInteractionEventDetail & MousePointsDetail & MouseCustomEventDetail & {
|
|
135
|
+
mouseButton: number;
|
|
136
|
+
};
|
|
137
|
+
type TouchStartActivateEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail;
|
|
138
|
+
type MouseClickEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & {
|
|
139
|
+
mouseButton: number;
|
|
140
|
+
};
|
|
141
|
+
type MouseDoubleClickEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail;
|
|
142
|
+
type TouchTapEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & {
|
|
143
|
+
currentPointsList: ITouchPoints[];
|
|
144
|
+
currentPoints: ITouchPoints;
|
|
145
|
+
taps: number;
|
|
146
|
+
};
|
|
147
|
+
type TouchSwipeEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & {
|
|
148
|
+
swipe: Swipe;
|
|
149
|
+
};
|
|
150
|
+
type TouchPressEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & {
|
|
151
|
+
startPointsList: ITouchPoints[];
|
|
152
|
+
lastPointsList: ITouchPoints[];
|
|
153
|
+
startPoints: ITouchPoints;
|
|
154
|
+
lastPoints: ITouchPoints;
|
|
155
|
+
};
|
|
156
|
+
type MouseWheelEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & {
|
|
157
|
+
detail: Record<string, any>;
|
|
158
|
+
wheel: {
|
|
159
|
+
spinX: number;
|
|
160
|
+
spinY: number;
|
|
161
|
+
pixelX: number;
|
|
162
|
+
pixelY: number;
|
|
163
|
+
direction: number;
|
|
164
|
+
};
|
|
165
|
+
points: IPoints;
|
|
166
|
+
};
|
|
167
|
+
type VolumeScrollOutOfBoundsEventDetail = {
|
|
168
|
+
volumeId: string;
|
|
169
|
+
viewport: Types.IVolumeViewport;
|
|
170
|
+
desiredStepIndex: number;
|
|
171
|
+
currentStepIndex: number;
|
|
172
|
+
delta: number;
|
|
173
|
+
numScrollSteps: number;
|
|
174
|
+
currentImageId: string;
|
|
175
|
+
};
|
|
176
|
+
type NormalizedMouseEventType = Types.CustomEventType<MouseCustomEventDetail>;
|
|
177
|
+
type NormalizedTouchEventType = Types.CustomEventType<TouchCustomEventDetail>;
|
|
178
|
+
type ToolModeChangedEventType = Types.CustomEventType<ToolModeChangedEventDetail>;
|
|
179
|
+
type ToolActivatedEventType = Types.CustomEventType<ToolActivatedEventDetail>;
|
|
180
|
+
type AnnotationAddedEventType = Types.CustomEventType<AnnotationAddedEventDetail>;
|
|
181
|
+
type AnnotationCompletedEventType = Types.CustomEventType<AnnotationCompletedEventDetail>;
|
|
182
|
+
type AnnotationModifiedEventType = Types.CustomEventType<AnnotationModifiedEventDetail>;
|
|
183
|
+
type AnnotationRemovedEventType = Types.CustomEventType<AnnotationRemovedEventDetail>;
|
|
184
|
+
type AnnotationSelectionChangeEventType = Types.CustomEventType<AnnotationSelectionChangeEventDetail>;
|
|
185
|
+
type AnnotationRenderedEventType = Types.CustomEventType<AnnotationRenderedEventDetail>;
|
|
186
|
+
type AnnotationLockChangeEventType = Types.CustomEventType<AnnotationLockChangeEventDetail>;
|
|
187
|
+
type AnnotationVisibilityChangeEventType = Types.CustomEventType<AnnotationVisibilityChangeEventDetail>;
|
|
188
|
+
type SegmentationDataModifiedEventType = Types.CustomEventType<SegmentationDataModifiedEventDetail>;
|
|
189
|
+
type SegmentationRepresentationModifiedEventType = Types.CustomEventType<SegmentationRepresentationModifiedEventDetail>;
|
|
190
|
+
type SegmentationRemovedEventType = Types.CustomEventType<SegmentationRemovedEventDetail>;
|
|
191
|
+
type SegmentationRepresentationRemovedEventType = Types.CustomEventType<SegmentationRepresentationRemovedEventDetail>;
|
|
192
|
+
type SegmentationRenderedEventType = Types.CustomEventType<SegmentationRenderedEventDetail>;
|
|
193
|
+
type SegmentationModifiedEventType = Types.CustomEventType<SegmentationModifiedEventDetail>;
|
|
194
|
+
type KeyDownEventType = Types.CustomEventType<KeyDownEventDetail>;
|
|
195
|
+
type KeyUpEventType = Types.CustomEventType<KeyUpEventDetail>;
|
|
196
|
+
type MouseDownEventType = Types.CustomEventType<MouseDownEventDetail>;
|
|
197
|
+
type TouchTapEventType = Types.CustomEventType<TouchTapEventDetail>;
|
|
198
|
+
type TouchSwipeEventType = Types.CustomEventType<TouchSwipeEventDetail>;
|
|
199
|
+
type TouchPressEventType = Types.CustomEventType<TouchPressEventDetail>;
|
|
200
|
+
type TouchStartEventType = Types.CustomEventType<TouchStartEventDetail>;
|
|
201
|
+
type InteractionEventType = Types.CustomEventType<InteractionEventDetail>;
|
|
202
|
+
type InteractionStartType = Types.CustomEventType<InteractionStartEventDetail>;
|
|
203
|
+
type InteractionEndType = Types.CustomEventType<InteractionEndEventDetail>;
|
|
204
|
+
type MouseDownActivateEventType = Types.CustomEventType<MouseDownActivateEventDetail>;
|
|
205
|
+
type TouchStartActivateEventType = Types.CustomEventType<TouchStartActivateEventDetail>;
|
|
206
|
+
type MouseDragEventType = Types.CustomEventType<MouseDragEventDetail>;
|
|
207
|
+
type TouchDragEventType = Types.CustomEventType<TouchDragEventDetail>;
|
|
208
|
+
type MouseUpEventType = Types.CustomEventType<MouseUpEventDetail>;
|
|
209
|
+
type TouchEndEventType = Types.CustomEventType<TouchEndEventDetail>;
|
|
210
|
+
type MouseClickEventType = Types.CustomEventType<MouseClickEventDetail>;
|
|
211
|
+
type MouseMoveEventType = Types.CustomEventType<MouseMoveEventDetail>;
|
|
212
|
+
type MouseDoubleClickEventType = Types.CustomEventType<MouseDoubleClickEventDetail>;
|
|
213
|
+
type MouseWheelEventType = Types.CustomEventType<MouseWheelEventDetail>;
|
|
214
|
+
type VolumeScrollOutOfBoundsEventType = Types.CustomEventType<VolumeScrollOutOfBoundsEventDetail>;
|
|
215
|
+
export { InteractionStartType, InteractionEndType, InteractionEventType, NormalizedInteractionEventDetail, NormalizedMouseEventType, NormalizedTouchEventType, ToolModeChangedEventDetail, ToolModeChangedEventType, ToolActivatedEventDetail, ToolActivatedEventType, AnnotationAddedEventDetail, AnnotationAddedEventType, AnnotationCompletedEventDetail, AnnotationCompletedEventType, AnnotationModifiedEventDetail, AnnotationModifiedEventType, AnnotationRemovedEventDetail, AnnotationRemovedEventType, AnnotationSelectionChangeEventDetail, AnnotationSelectionChangeEventType, AnnotationRenderedEventDetail, AnnotationRenderedEventType, AnnotationLockChangeEventDetail, AnnotationVisibilityChangeEventDetail, AnnotationLockChangeEventType, AnnotationVisibilityChangeEventType, SegmentationDataModifiedEventType, SegmentationRepresentationModifiedEventDetail, SegmentationRepresentationModifiedEventType, SegmentationRepresentationRemovedEventDetail, SegmentationRepresentationRemovedEventType, SegmentationRemovedEventType, SegmentationRemovedEventDetail, SegmentationDataModifiedEventDetail, SegmentationRenderedEventType, SegmentationRenderedEventDetail, SegmentationModifiedEventType, SegmentationModifiedEventDetail, KeyDownEventDetail, KeyDownEventType, KeyUpEventDetail, KeyUpEventType, MouseDownEventDetail, TouchStartEventDetail, MouseDownEventType, TouchStartEventType, MouseDownActivateEventDetail, TouchStartActivateEventDetail, MouseDownActivateEventType, TouchStartActivateEventType, MouseDragEventDetail, TouchDragEventDetail, MouseDragEventType, TouchDragEventType, MouseUpEventDetail, TouchEndEventDetail, MouseUpEventType, TouchEndEventType, MouseClickEventDetail, MouseClickEventType, TouchTapEventDetail, TouchTapEventType, TouchSwipeEventDetail, TouchSwipeEventType, TouchPressEventDetail, TouchPressEventType, MouseMoveEventDetail, MouseMoveEventType, MouseDoubleClickEventDetail, MouseDoubleClickEventType, MouseWheelEventDetail, MouseWheelEventType, VolumeScrollOutOfBoundsEventDetail, VolumeScrollOutOfBoundsEventType, };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Types } from '@cornerstonejs/core';
|
|
2
|
-
|
|
2
|
+
type FloodFillResult = {
|
|
3
3
|
flooded: Types.Point2[] | Types.Point3[];
|
|
4
4
|
boundaries: Types.Point2[] | Types.Point3[];
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
type FloodFillGetter3D = (x: number, y: number, z: number) => number;
|
|
7
|
+
type FloodFillGetter2D = (x: number, y: number) => number;
|
|
8
|
+
type FloodFillGetter = FloodFillGetter2D | FloodFillGetter3D;
|
|
9
|
+
type FloodFillOptions = {
|
|
10
10
|
onFlood?: (x: any, y: any) => void;
|
|
11
11
|
onBoundary?: (x: any, y: any) => void;
|
|
12
12
|
equals?: (a: any, b: any) => boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ToolModes, MouseBindings, KeyboardBindings } from '../enums';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
type ToolBindingMouseType = (typeof MouseBindings)[keyof typeof MouseBindings];
|
|
3
|
+
type ToolBindingKeyboardType = (typeof KeyboardBindings)[keyof typeof KeyboardBindings];
|
|
4
|
+
type IToolBinding = {
|
|
5
5
|
mouseButton?: ToolBindingMouseType;
|
|
6
6
|
modifierKey?: ToolBindingKeyboardType;
|
|
7
7
|
numTouchPoints?: number;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type SetToolBindingsType = {
|
|
10
10
|
bindings: IToolBinding[];
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type ToolOptionsType = {
|
|
13
13
|
bindings: IToolBinding[];
|
|
14
14
|
mode: ToolModes;
|
|
15
15
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { AnnotationTool } from '../tools';
|
|
3
3
|
import { Annotation, Annotations } from './AnnotationTypes';
|
|
4
|
-
|
|
4
|
+
type ToolAnnotationsPair = {
|
|
5
5
|
tool: AnnotationTool;
|
|
6
6
|
annotations: Annotations;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type ToolAnnotationPair = {
|
|
9
9
|
tool: AnnotationTool;
|
|
10
10
|
annotation: Annotation;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type ToolsWithMoveableHandles = ToolAnnotationPair & {
|
|
13
13
|
handle: Types.Point3;
|
|
14
14
|
};
|
|
15
15
|
export { ToolsWithMoveableHandles, ToolAnnotationsPair, ToolAnnotationPair };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { vtkColorTransferFunction } from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction';
|
|
2
2
|
import type { vtkPiecewiseFunction } from '@kitware/vtk.js/Common/DataModel/PiecewiseFunction';
|
|
3
|
-
export
|
|
3
|
+
export type LabelmapConfig = {
|
|
4
4
|
renderOutline?: boolean;
|
|
5
5
|
outlineWidthActive?: number;
|
|
6
6
|
outlineWidthInactive?: number;
|
|
@@ -11,11 +11,11 @@ export declare type LabelmapConfig = {
|
|
|
11
11
|
outlineOpacity?: number;
|
|
12
12
|
outlineOpacityInactive?: number;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type LabelmapRenderingConfig = {
|
|
15
15
|
cfun?: vtkColorTransferFunction;
|
|
16
16
|
ofun?: vtkPiecewiseFunction;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type LabelmapSegmentationData = {
|
|
19
19
|
volumeId: string;
|
|
20
20
|
referencedVolumeId?: string;
|
|
21
21
|
};
|