@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,24 +1,24 @@
|
|
|
1
1
|
import * as Enums from '../enums';
|
|
2
2
|
import { ContourConfig, ContourRenderingConfig, ContourSegmentationData } from './ContourTypes';
|
|
3
3
|
import type { LabelmapConfig, LabelmapRenderingConfig, LabelmapSegmentationData } from './LabelmapTypes';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
export type Color = [number, number, number, number];
|
|
5
|
+
export type ColorLUT = Array<Color>;
|
|
6
|
+
export type SegmentSpecificRepresentationConfig = {
|
|
7
7
|
[key: number | string]: RepresentationConfig;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type RepresentationConfig = {
|
|
10
10
|
LABELMAP?: LabelmapConfig;
|
|
11
11
|
CONTOUR?: ContourConfig;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type SegmentationRepresentationConfig = {
|
|
14
14
|
renderInactiveSegmentations: boolean;
|
|
15
15
|
representations: RepresentationConfig;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type SegmentationRepresentationData = {
|
|
18
18
|
LABELMAP?: LabelmapSegmentationData;
|
|
19
19
|
CONTOUR?: ContourSegmentationData;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type Segmentation = {
|
|
22
22
|
segmentationId: string;
|
|
23
23
|
type: Enums.SegmentationRepresentations;
|
|
24
24
|
label: string;
|
|
@@ -32,7 +32,7 @@ export declare type Segmentation = {
|
|
|
32
32
|
};
|
|
33
33
|
representationData: SegmentationRepresentationData;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type ToolGroupSpecificRepresentationState = {
|
|
36
36
|
segmentationRepresentationUID: string;
|
|
37
37
|
segmentationId: string;
|
|
38
38
|
type: Enums.SegmentationRepresentations;
|
|
@@ -40,19 +40,19 @@ export declare type ToolGroupSpecificRepresentationState = {
|
|
|
40
40
|
segmentsHidden: Set<number>;
|
|
41
41
|
colorLUTIndex: number;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
43
|
+
export type ToolGroupSpecificLabelmapRepresentation = ToolGroupSpecificRepresentationState & {
|
|
44
44
|
config: LabelmapRenderingConfig;
|
|
45
45
|
segmentationRepresentationSpecificConfig?: RepresentationConfig;
|
|
46
46
|
segmentSpecificConfig?: SegmentSpecificRepresentationConfig;
|
|
47
47
|
};
|
|
48
|
-
export
|
|
48
|
+
export type ToolGroupSpecificContourRepresentation = ToolGroupSpecificRepresentationState & {
|
|
49
49
|
config: ContourRenderingConfig;
|
|
50
50
|
segmentationRepresentationSpecificConfig?: RepresentationConfig;
|
|
51
51
|
segmentSpecificConfig?: SegmentSpecificRepresentationConfig;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
53
|
+
export type ToolGroupSpecificRepresentation = ToolGroupSpecificLabelmapRepresentation | ToolGroupSpecificContourRepresentation;
|
|
54
|
+
export type ToolGroupSpecificRepresentations = Array<ToolGroupSpecificRepresentation>;
|
|
55
|
+
export type SegmentationState = {
|
|
56
56
|
colorLUT: ColorLUT[];
|
|
57
57
|
segmentations: Segmentation[];
|
|
58
58
|
globalConfig: SegmentationRepresentationConfig;
|
|
@@ -63,14 +63,14 @@ export declare type SegmentationState = {
|
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
export
|
|
66
|
+
export type SegmentationPublicInput = {
|
|
67
67
|
segmentationId: string;
|
|
68
68
|
representation: {
|
|
69
69
|
type: Enums.SegmentationRepresentations;
|
|
70
70
|
data: LabelmapSegmentationData | ContourSegmentationData;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type RepresentationPublicInput = {
|
|
74
74
|
segmentationId: string;
|
|
75
75
|
type: Enums.SegmentationRepresentations;
|
|
76
76
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Annotation } from './AnnotationTypes';
|
|
2
2
|
import type { InteractionEventType } from './EventTypes';
|
|
3
3
|
import type { SetToolBindingsType } from './ISetToolModeOptions';
|
|
4
|
-
|
|
4
|
+
type ToolAction = {
|
|
5
5
|
method: string | ((evt: InteractionEventType, annotation: Annotation) => void);
|
|
6
6
|
bindings: SetToolBindingsType[];
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type AnnotationHandle = Types.Point3;
|
|
3
|
+
type TextBoxHandle = {
|
|
4
4
|
hasMoved: boolean;
|
|
5
5
|
worldBoundingBox: {
|
|
6
6
|
bottomLeft: Types.Point3;
|
|
@@ -10,6 +10,6 @@ declare type TextBoxHandle = {
|
|
|
10
10
|
};
|
|
11
11
|
worldPosition: Types.Point3;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type ToolHandle = AnnotationHandle | TextBoxHandle;
|
|
14
14
|
export default ToolHandle;
|
|
15
15
|
export type { AnnotationHandle, TextBoxHandle };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Calculator } from '../utilities/math/basic';
|
|
2
|
-
|
|
2
|
+
type SharedToolProp = {
|
|
3
3
|
supportedInteractionTypes?: Array<string>;
|
|
4
4
|
configuration?: ToolConfiguration;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ToolConfiguration = Record<string, any> & {
|
|
7
7
|
statsCalculator?: Calculator;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type ToolProps = SharedToolProp;
|
|
10
|
+
export type PublicToolProps = SharedToolProp & {
|
|
11
11
|
name?: string;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -21,11 +21,11 @@ import type BoundsIJK from './BoundsIJK';
|
|
|
21
21
|
import type SVGDrawingHelper from './SVGDrawingHelper';
|
|
22
22
|
import type * as CINETypes from './CINETypes';
|
|
23
23
|
import type { Color, ColorLUT, RepresentationConfig, SegmentationRepresentationConfig, SegmentationRepresentationData, Segmentation, ToolGroupSpecificRepresentationState, ToolGroupSpecificContourRepresentation, ToolGroupSpecificLabelmapRepresentation, ToolGroupSpecificRepresentation, SegmentationState, RepresentationPublicInput } from './SegmentationStateTypes';
|
|
24
|
-
import ISynchronizerEventHandler from './ISynchronizerEventHandler';
|
|
25
|
-
import { FloodFillGetter, FloodFillOptions, FloodFillResult } from './FloodFillTypes';
|
|
26
|
-
import IToolClassReference from './IToolClassReference';
|
|
27
|
-
import { ContourSegmentationData } from './ContourTypes';
|
|
28
|
-
import IAnnotationManager from './IAnnotationManager';
|
|
29
|
-
import AnnotationGroupSelector from './AnnotationGroupSelector';
|
|
30
|
-
import { Statistics } from './CalculatorTypes';
|
|
24
|
+
import type ISynchronizerEventHandler from './ISynchronizerEventHandler';
|
|
25
|
+
import type { FloodFillGetter, FloodFillOptions, FloodFillResult } from './FloodFillTypes';
|
|
26
|
+
import type IToolClassReference from './IToolClassReference';
|
|
27
|
+
import type { ContourSegmentationData } from './ContourTypes';
|
|
28
|
+
import type IAnnotationManager from './IAnnotationManager';
|
|
29
|
+
import type AnnotationGroupSelector from './AnnotationGroupSelector';
|
|
30
|
+
import type { Statistics } from './CalculatorTypes';
|
|
31
31
|
export type { Annotation, Annotations, IAnnotationManager, GroupSpecificAnnotations, AnnotationState, AnnotationStyle, ToolSpecificAnnotationTypes, JumpToSliceOptions, AnnotationGroupSelector, PlanarBoundingBox, ToolProps, PublicToolProps, ToolConfiguration, EventTypes, IPoints, ITouchPoints, IDistance, IToolBinding, SetToolBindingsType, ToolOptionsType, InteractionTypes, ToolAction, IToolGroup, IToolClassReference, ISynchronizerEventHandler, ToolHandle, AnnotationHandle, TextBoxHandle, Segmentation, SegmentationState, SegmentationRepresentationData, SegmentationRepresentationConfig, RepresentationConfig, ToolGroupSpecificRepresentationState, ToolGroupSpecificContourRepresentation, ToolGroupSpecificLabelmapRepresentation, ToolGroupSpecificRepresentation, RepresentationPublicInput, Color, ColorLUT, LabelmapTypes, SVGCursorDescriptor, SVGPoint, ScrollOptions, CINETypes, BoundsIJK, SVGDrawingHelper, FloodFillResult, FloodFillGetter, FloodFillOptions, ContourSegmentationData, Statistics, };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { PlanarFreehandROIAnnotation } from '../../../types/ToolSpecificAnnotationTypes';
|
|
3
|
-
|
|
3
|
+
type PlanarFreehandROIDrawData = {
|
|
4
4
|
polylineIndex: number;
|
|
5
5
|
canvasPoints: Types.Point2[];
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type PlanarFreehandROIEditData = {
|
|
8
8
|
prevCanvasPoints: Types.Point2[];
|
|
9
9
|
editCanvasPoints: Types.Point2[];
|
|
10
10
|
fusedCanvasPoints: Types.Point2[];
|
|
@@ -12,7 +12,7 @@ declare type PlanarFreehandROIEditData = {
|
|
|
12
12
|
editIndex: number;
|
|
13
13
|
snapIndex?: number;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type PlanarFreehandROICommonData = {
|
|
16
16
|
annotation: PlanarFreehandROIAnnotation;
|
|
17
17
|
viewportIdsToRender: string[];
|
|
18
18
|
spacing: Types.Point2;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import type { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData';
|
|
3
3
|
import BoundsIJK from '../types/BoundsIJK';
|
|
4
|
-
export
|
|
4
|
+
export type PointInShape = {
|
|
5
5
|
value: number;
|
|
6
6
|
index: number;
|
|
7
7
|
pointIJK: Types.Point3;
|
|
8
8
|
pointLPS: Types.Point3;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type PointInShapeCallback = ({ value, index, pointIJK, pointLPS, }: {
|
|
11
11
|
value: number;
|
|
12
12
|
index: number;
|
|
13
13
|
pointIJK: Types.Point3;
|
|
14
14
|
pointLPS: Types.Point3;
|
|
15
15
|
}) => void;
|
|
16
|
-
export
|
|
16
|
+
export type ShapeFnCriteria = (pointIJK: Types.Point3, pointLPS: Types.Point3) => boolean;
|
|
17
17
|
export default function pointInShapeCallback(imageData: vtkImageData | Types.CPUImageData, pointInShapeFn: ShapeFnCriteria, callback?: PointInShapeCallback, boundsIJK?: BoundsIJK): Array<PointInShape>;
|
|
@@ -4,15 +4,15 @@ export default function createLabelmapVolumeForViewport(input: {
|
|
|
4
4
|
renderingEngineId: string;
|
|
5
5
|
segmentationId?: string;
|
|
6
6
|
options?: {
|
|
7
|
-
volumeId
|
|
8
|
-
scalarData
|
|
9
|
-
targetBuffer
|
|
7
|
+
volumeId: string;
|
|
8
|
+
scalarData: Float32Array | Uint8Array | Uint16Array | Int16Array;
|
|
9
|
+
targetBuffer: {
|
|
10
10
|
type: 'Float32Array' | 'Uint8Array' | 'Uint16Array' | 'Int8Array';
|
|
11
11
|
};
|
|
12
|
-
metadata
|
|
13
|
-
dimensions
|
|
14
|
-
spacing
|
|
15
|
-
origin
|
|
16
|
-
direction
|
|
12
|
+
metadata: Types.Metadata;
|
|
13
|
+
dimensions: Types.Point3;
|
|
14
|
+
spacing: Types.Point3;
|
|
15
|
+
origin: Types.Point3;
|
|
16
|
+
direction: Types.Mat3;
|
|
17
17
|
};
|
|
18
18
|
}): Promise<string>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { ThresholdInformation } from './utilities';
|
|
3
|
-
export
|
|
3
|
+
export type ThresholdOptions = {
|
|
4
4
|
numSlicesToProject?: number;
|
|
5
5
|
overwrite: boolean;
|
|
6
6
|
overlapType?: number;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type AnnotationForThresholding = {
|
|
9
9
|
data: {
|
|
10
10
|
handles: {
|
|
11
11
|
points: Types.Point3[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { BoundsIJK } from '../../types';
|
|
3
3
|
import { ThresholdInformation } from './utilities';
|
|
4
|
-
export
|
|
4
|
+
export type ThresholdRangeOptions = {
|
|
5
5
|
overwrite: boolean;
|
|
6
6
|
boundsIJK: BoundsIJK;
|
|
7
7
|
overlapType?: number;
|