@cornerstonejs/tools 2.0.0-beta.20 → 2.0.0-beta.22
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/esm/cursors/SVGCursorDescriptor.d.ts +1 -1
- package/dist/esm/cursors/SVGCursorDescriptor.js +7 -0
- package/dist/esm/cursors/SVGMouseCursor.d.ts +1 -1
- package/dist/esm/cursors/elementCursor.d.ts +1 -1
- package/dist/esm/cursors/elementCursor.js +1 -1
- package/dist/esm/drawingSvg/draw.d.ts +2 -1
- package/dist/esm/drawingSvg/drawArrow.d.ts +1 -1
- package/dist/esm/drawingSvg/drawCircle.d.ts +1 -1
- package/dist/esm/drawingSvg/drawEllipse.d.ts +1 -1
- package/dist/esm/drawingSvg/drawEllipse.js +1 -0
- package/dist/esm/drawingSvg/drawEllipseByCoordinates.d.ts +1 -1
- package/dist/esm/drawingSvg/drawHandle.d.ts +1 -1
- package/dist/esm/drawingSvg/drawHandles.d.ts +1 -1
- package/dist/esm/drawingSvg/drawHeight.d.ts +3 -0
- package/dist/esm/drawingSvg/drawHeight.js +42 -0
- package/dist/esm/drawingSvg/drawLine.d.ts +1 -1
- package/dist/esm/drawingSvg/drawLink.d.ts +1 -1
- package/dist/esm/drawingSvg/drawLinkedTextBox.d.ts +1 -1
- package/dist/esm/drawingSvg/drawPath.d.ts +1 -1
- package/dist/esm/drawingSvg/drawPolyline.d.ts +1 -1
- package/dist/esm/drawingSvg/drawRect.d.ts +1 -1
- package/dist/esm/drawingSvg/drawRect.js +1 -0
- package/dist/esm/drawingSvg/drawRectByCoordinates.d.ts +1 -1
- package/dist/esm/drawingSvg/drawRedactionRect.d.ts +3 -1
- package/dist/esm/drawingSvg/drawTextBox.d.ts +1 -1
- package/dist/esm/drawingSvg/getSvgDrawingHelper.d.ts +1 -1
- package/dist/esm/drawingSvg/getSvgDrawingHelper.js +2 -2
- package/dist/esm/drawingSvg/index.d.ts +2 -1
- package/dist/esm/drawingSvg/index.js +2 -1
- package/dist/esm/enums/ToolBindings.d.ts +3 -1
- package/dist/esm/enums/ToolBindings.js +2 -0
- package/dist/esm/eventDispatchers/keyboardEventHandlers/keyDown.d.ts +1 -1
- package/dist/esm/eventDispatchers/keyboardEventHandlers/keyDown.js +2 -2
- package/dist/esm/eventDispatchers/keyboardEventHandlers/keyUp.d.ts +1 -1
- package/dist/esm/eventDispatchers/keyboardEventHandlers/keyUp.js +2 -2
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDown.d.ts +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDown.js +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDownActivate.d.ts +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDownActivate.js +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDownAnnotationAction.d.ts +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDownAnnotationAction.js +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDrag.d.ts +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseDrag.js +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseMove.d.ts +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseMove.js +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseWheel.d.ts +2 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseWheel.js +15 -2
- package/dist/esm/eventDispatchers/shared/customCallbackHandler.js +3 -2
- package/dist/esm/eventDispatchers/shared/getActiveToolForKeyboardEvent.d.ts +1 -1
- package/dist/esm/eventDispatchers/shared/getActiveToolForKeyboardEvent.js +2 -2
- package/dist/esm/eventDispatchers/shared/getActiveToolForMouseEvent.d.ts +1 -1
- package/dist/esm/eventDispatchers/shared/getActiveToolForMouseEvent.js +5 -6
- package/dist/esm/eventDispatchers/shared/getActiveToolForTouchEvent.d.ts +1 -1
- package/dist/esm/eventDispatchers/shared/getActiveToolForTouchEvent.js +2 -2
- package/dist/esm/eventDispatchers/shared/getToolsWithActionsForKeyboardEvents.d.ts +2 -2
- package/dist/esm/eventDispatchers/shared/getToolsWithActionsForKeyboardEvents.js +2 -2
- package/dist/esm/eventDispatchers/shared/getToolsWithActionsForMouseEvent.d.ts +4 -3
- package/dist/esm/eventDispatchers/shared/getToolsWithActionsForMouseEvent.js +2 -2
- package/dist/esm/eventDispatchers/shared/getToolsWithModesForMouseEvent.d.ts +3 -3
- package/dist/esm/eventDispatchers/shared/getToolsWithModesForMouseEvent.js +2 -2
- package/dist/esm/eventDispatchers/shared/getToolsWithModesForTouchEvent.d.ts +2 -2
- package/dist/esm/eventDispatchers/shared/getToolsWithModesForTouchEvent.js +2 -2
- package/dist/esm/eventDispatchers/touchEventHandlers/touchDrag.d.ts +1 -1
- package/dist/esm/eventDispatchers/touchEventHandlers/touchDrag.js +1 -1
- package/dist/esm/eventDispatchers/touchEventHandlers/touchStart.d.ts +1 -1
- package/dist/esm/eventDispatchers/touchEventHandlers/touchStart.js +1 -1
- package/dist/esm/eventDispatchers/touchEventHandlers/touchStartActivate.d.ts +1 -1
- package/dist/esm/eventDispatchers/touchEventHandlers/touchStartActivate.js +1 -1
- package/dist/esm/eventListeners/annotations/annotationCompletedListener.d.ts +1 -1
- package/dist/esm/eventListeners/annotations/annotationRemovedListener.d.ts +1 -1
- package/dist/esm/eventListeners/annotations/annotationSelectionListener.js +1 -1
- package/dist/esm/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.d.ts +3 -3
- package/dist/esm/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js +22 -21
- package/dist/esm/eventListeners/mouse/getMouseEventPoints.d.ts +1 -1
- package/dist/esm/eventListeners/mouse/getMouseEventPoints.js +4 -1
- package/dist/esm/eventListeners/mouse/mouseDownListener.js +9 -1
- package/dist/esm/eventListeners/segmentation/imageChangeEventListener.js +9 -7
- package/dist/esm/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.d.ts +1 -1
- package/dist/esm/eventListeners/segmentation/labelmap/onLabelmapSegmentationDataModified.js +3 -3
- package/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.d.ts +1 -1
- package/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.js +2 -2
- package/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +1 -1
- package/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.js +3 -2
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +1 -1
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js +5 -5
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +1 -1
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js +4 -2
- package/dist/esm/eventListeners/touch/getTouchEventPoints.d.ts +1 -1
- package/dist/esm/index.d.ts +4 -3
- package/dist/esm/index.js +4 -3
- package/dist/esm/init.js +2 -2
- package/dist/esm/stateManagement/annotation/AnnotationRenderingEngine.d.ts +20 -0
- package/dist/esm/stateManagement/annotation/AnnotationRenderingEngine.js +112 -0
- package/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.d.ts +3 -3
- package/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js +0 -2
- package/dist/esm/stateManagement/annotation/annotationLocking.d.ts +1 -1
- package/dist/esm/stateManagement/annotation/annotationSelection.js +1 -1
- package/dist/esm/stateManagement/annotation/annotationState.d.ts +4 -4
- package/dist/esm/stateManagement/annotation/annotationState.js +4 -6
- package/dist/esm/stateManagement/annotation/annotationVisibility.d.ts +1 -1
- package/dist/esm/stateManagement/annotation/annotationVisibility.js +1 -1
- package/dist/esm/stateManagement/annotation/config/ToolStyle.d.ts +1 -1
- package/dist/esm/stateManagement/annotation/config/getFont.d.ts +2 -2
- package/dist/esm/stateManagement/annotation/config/getState.d.ts +1 -1
- package/dist/esm/stateManagement/annotation/config/helpers.d.ts +2 -2
- package/dist/esm/stateManagement/annotation/getAnnotation.d.ts +2 -0
- package/dist/esm/stateManagement/annotation/getAnnotation.js +6 -0
- package/dist/esm/stateManagement/annotation/helpers/state.d.ts +2 -2
- package/dist/esm/stateManagement/annotation/utilities/defineProperties.d.ts +1 -1
- package/dist/esm/stateManagement/index.d.ts +1 -3
- package/dist/esm/stateManagement/index.js +3 -2
- package/dist/esm/{tools/displayTools → stateManagement/segmentation}/SegmentationRenderingEngine.d.ts +6 -4
- package/dist/esm/{tools/displayTools → stateManagement/segmentation}/SegmentationRenderingEngine.js +23 -19
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.d.ts +29 -13
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js +73 -23
- package/dist/esm/stateManagement/segmentation/activeSegmentation.d.ts +5 -4
- package/dist/esm/stateManagement/segmentation/activeSegmentation.js +15 -6
- package/dist/esm/stateManagement/segmentation/addColorLUT.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/addColorLUT.js +5 -0
- package/dist/esm/stateManagement/segmentation/addRepresentationData.d.ts +3 -3
- package/dist/esm/stateManagement/segmentation/addRepresentationData.js +1 -1
- package/dist/esm/stateManagement/segmentation/addSegmentation.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/addSegmentation.js +11 -0
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentation.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/{addRepresentation.js → addSegmentationRepresentation.js} +31 -10
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentationState.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentationState.js +10 -0
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.js +9 -0
- package/dist/esm/stateManagement/segmentation/addSegmentations.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/config/index.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/config/index.js +2 -2
- package/dist/esm/stateManagement/segmentation/config/segmentationColor.js +8 -6
- package/dist/esm/stateManagement/segmentation/config/segmentationConfig.d.ts +5 -5
- package/dist/esm/stateManagement/segmentation/config/segmentationConfig.js +17 -12
- package/dist/esm/stateManagement/segmentation/config/segmentationVisibility.d.ts +5 -5
- package/dist/esm/stateManagement/segmentation/config/segmentationVisibility.js +16 -13
- package/dist/esm/stateManagement/segmentation/convertVolumeToStackSegmentation.d.ts +0 -8
- package/dist/esm/stateManagement/segmentation/convertVolumeToStackSegmentation.js +7 -82
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationDataModified.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationDataModified.js +11 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationModified.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationModified.js +18 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationRemoved.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationRemoved.js +8 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationRepresentationModified.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationRepresentationModified.js +8 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationRepresentationRemoved.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/events/triggerSegmentationRepresentationRemoved.js +8 -0
- package/dist/esm/stateManagement/segmentation/getActiveSegmentIndex.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/getActiveSegmentIndex.js +7 -0
- package/dist/esm/stateManagement/segmentation/getActiveSegmentationRepresentation.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getActiveSegmentationRepresentation.js +5 -0
- package/dist/esm/stateManagement/segmentation/getAllSegmentationRepresentations.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getAllSegmentationRepresentations.js +6 -0
- package/dist/esm/stateManagement/segmentation/getColorLUT.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getColorLUT.js +5 -0
- package/dist/esm/stateManagement/segmentation/getCurrentLabelmapImageIdForViewport.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/getCurrentLabelmapImageIdForViewport.js +5 -0
- package/dist/esm/stateManagement/segmentation/getGlobalConfig.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getGlobalConfig.js +5 -0
- package/dist/esm/stateManagement/segmentation/getNextColorLUTIndex.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/getNextColorLUTIndex.js +5 -0
- package/dist/esm/stateManagement/segmentation/getPerSegmentConfig.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getPerSegmentConfig.js +5 -0
- package/dist/esm/stateManagement/segmentation/getSegmentation.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getSegmentation.js +5 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentation.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentation.js +5 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentationConfig.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentationConfig.js +5 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentationViewportStates.d.ts +7 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentationViewportStates.js +6 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentationVisibility.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentationVisibility.js +5 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentations.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentations.js +12 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentationsForSegmentation.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getSegmentationRepresentationsForSegmentation.js +5 -0
- package/dist/esm/stateManagement/segmentation/getSegmentations.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/getSegmentations.js +6 -0
- package/dist/esm/stateManagement/segmentation/getViewportIdsWithSegmentation.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/getViewportIdsWithSegmentation.js +10 -0
- package/dist/esm/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/helpers/clipAndCacheSurfacesForViewport.js +1 -1
- package/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/helpers/updateStackSegmentationState.d.ts +8 -0
- package/dist/esm/stateManagement/segmentation/helpers/updateStackSegmentationState.js +31 -0
- package/dist/esm/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/index.d.ts +4 -4
- package/dist/esm/stateManagement/segmentation/index.js +4 -4
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/computeAndAddContourRepresentation.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/contourComputationStrategies.js +5 -4
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/createAndAddContourSegmentationsFromClippedSurfaces.js +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Contour/utils/extractContourData.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/computeAndAddLabelmapRepresentation.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/convertContourToLabelmap.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/convertContourToLabelmap.js +13 -22
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/convertSurfaceToLabelmap.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/convertSurfaceToLabelmap.js +2 -6
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Labelmap/labelmapComputationStrategies.js +10 -15
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/computeAndAddSurfaceRepresentation.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/convertContourToSurface.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/convertContourToSurface.js +2 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/convertLabelmapToSurface.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/convertLabelmapToSurface.js +3 -4
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/createAndCacheSurfacesFromRaw.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/createAndCacheSurfacesFromRaw.js +3 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/surfaceComputationStrategies.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/surfaceComputationStrategies.js +2 -2
- package/dist/esm/stateManagement/segmentation/polySeg/Surface/updateSurfaceData.js +4 -4
- package/dist/esm/stateManagement/segmentation/polySeg/canComputeRequestedRepresentation.js +4 -3
- package/dist/esm/stateManagement/segmentation/polySeg/computeAndAddRepresentation.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/polySeg/computeAndAddRepresentation.js +1 -1
- package/dist/esm/stateManagement/segmentation/removeColorLUT.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/removeColorLUT.js +5 -0
- package/dist/esm/stateManagement/segmentation/removeRepresentation.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/removeRepresentation.js +9 -0
- package/dist/esm/stateManagement/segmentation/removeSegmentation.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/removeSegmentation.js +7 -0
- package/dist/esm/stateManagement/segmentation/removeSegmentationRepresentations.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/{removeRepresentationsFromViewport.js → removeSegmentationRepresentations.js} +11 -8
- package/dist/esm/stateManagement/segmentation/segmentIndex.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/segmentIndex.js +6 -10
- package/dist/esm/stateManagement/segmentation/segmentLocking.d.ts +2 -2
- package/dist/esm/stateManagement/segmentation/segmentLocking.js +3 -3
- package/dist/esm/stateManagement/segmentation/segmentationState.d.ts +29 -38
- package/dist/esm/stateManagement/segmentation/segmentationState.js +29 -157
- package/dist/esm/stateManagement/segmentation/setActiveSegmentationRepresentation.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/setActiveSegmentationRepresentation.js +9 -0
- package/dist/esm/stateManagement/segmentation/setGlobalConfig.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/setGlobalConfig.js +9 -0
- package/dist/esm/stateManagement/segmentation/setPerSegmentConfig.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/setPerSegmentConfig.js +9 -0
- package/dist/esm/stateManagement/segmentation/setSegmentationRepresentationConfig.d.ts +2 -0
- package/dist/esm/stateManagement/segmentation/setSegmentationRepresentationConfig.js +9 -0
- package/dist/esm/stateManagement/segmentation/setSegmentationRepresentationVisibility.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/setSegmentationRepresentationVisibility.js +5 -0
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.d.ts +5 -5
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js +5 -45
- package/dist/esm/stateManagement/segmentation/updateLabelmapSegmentationImageReferences.d.ts +1 -0
- package/dist/esm/stateManagement/segmentation/updateLabelmapSegmentationImageReferences.js +5 -0
- package/dist/esm/store/SynchronizerManager/Synchronizer.d.ts +7 -3
- package/dist/esm/store/SynchronizerManager/Synchronizer.js +2 -1
- package/dist/esm/store/SynchronizerManager/createSynchronizer.d.ts +3 -3
- package/dist/esm/store/SynchronizerManager/createSynchronizer.js +2 -2
- package/dist/esm/store/SynchronizerManager/destroy.js +1 -1
- package/dist/esm/store/SynchronizerManager/destroySynchronizer.js +1 -1
- package/dist/esm/store/SynchronizerManager/getAllSynchronizers.d.ts +1 -1
- package/dist/esm/store/SynchronizerManager/getAllSynchronizers.js +1 -1
- package/dist/esm/store/SynchronizerManager/getSynchronizer.d.ts +1 -1
- package/dist/esm/store/SynchronizerManager/getSynchronizer.js +1 -1
- package/dist/esm/store/SynchronizerManager/getSynchronizersForViewport.d.ts +1 -1
- package/dist/esm/store/SynchronizerManager/getSynchronizersForViewport.js +1 -1
- package/dist/esm/store/ToolGroupManager/ToolGroup.d.ts +3 -3
- package/dist/esm/store/ToolGroupManager/ToolGroup.js +12 -8
- package/dist/esm/store/ToolGroupManager/createToolGroup.d.ts +1 -1
- package/dist/esm/store/ToolGroupManager/createToolGroup.js +1 -1
- package/dist/esm/store/ToolGroupManager/destroy.js +3 -3
- package/dist/esm/store/ToolGroupManager/destroyToolGroup.js +1 -1
- package/dist/esm/store/ToolGroupManager/getAllToolGroups.d.ts +1 -1
- package/dist/esm/store/ToolGroupManager/getAllToolGroups.js +1 -1
- package/dist/esm/store/ToolGroupManager/getToolGroup.d.ts +1 -1
- package/dist/esm/store/ToolGroupManager/getToolGroup.js +1 -1
- package/dist/esm/store/ToolGroupManager/getToolGroupForViewport.d.ts +1 -1
- package/dist/esm/store/ToolGroupManager/getToolGroupForViewport.js +1 -1
- package/dist/esm/store/ToolGroupManager/getToolGroupsWithToolName.d.ts +1 -1
- package/dist/esm/store/ToolGroupManager/getToolGroupsWithToolName.js +1 -1
- package/dist/esm/store/addEnabledElement.d.ts +1 -1
- package/dist/esm/store/addEnabledElement.js +1 -1
- package/dist/esm/store/addTool.d.ts +1 -0
- package/dist/esm/store/addTool.js +3 -3
- package/dist/esm/store/filterMoveableAnnotationTools.d.ts +1 -1
- package/dist/esm/store/filterToolsWithAnnotationsForElement.d.ts +1 -1
- package/dist/esm/store/filterToolsWithMoveableHandles.d.ts +1 -1
- package/dist/esm/store/index.d.ts +1 -2
- package/dist/esm/store/index.js +1 -2
- package/dist/esm/store/removeEnabledElement.d.ts +1 -1
- package/dist/esm/store/removeEnabledElement.js +1 -1
- package/dist/esm/store/state.d.ts +4 -3
- package/dist/esm/store/state.js +1 -1
- package/dist/esm/synchronizers/callbacks/areViewportsCoplanar .d.ts +1 -1
- package/dist/esm/synchronizers/callbacks/cameraSyncCallback.d.ts +2 -2
- package/dist/esm/synchronizers/callbacks/imageSliceSyncCallback.d.ts +2 -2
- package/dist/esm/synchronizers/callbacks/presentationViewSyncCallback.d.ts +1 -1
- package/dist/esm/synchronizers/callbacks/slabThicknessSyncCallback.d.ts +1 -1
- package/dist/esm/synchronizers/callbacks/voiSyncCallback.d.ts +5 -2
- package/dist/esm/synchronizers/callbacks/zoomPanSyncCallback.d.ts +2 -2
- package/dist/esm/synchronizers/synchronizers/createCameraPositionSynchronizer.d.ts +1 -1
- package/dist/esm/synchronizers/synchronizers/createImageSliceSynchronizer.d.ts +1 -1
- package/dist/esm/synchronizers/synchronizers/createPresentationViewSynchronizer.d.ts +2 -2
- package/dist/esm/synchronizers/synchronizers/createPresentationViewSynchronizer.js +1 -1
- package/dist/esm/synchronizers/synchronizers/createSlabThicknessSynchronizer.d.ts +1 -1
- package/dist/esm/synchronizers/synchronizers/createVOISynchronizer.d.ts +1 -1
- package/dist/esm/synchronizers/synchronizers/createZoomPanSynchronizer.d.ts +1 -1
- package/dist/esm/tools/AdvancedMagnifyTool.d.ts +97 -8
- package/dist/esm/tools/AdvancedMagnifyTool.js +506 -4
- package/dist/esm/tools/AnnotationEraserTool.d.ts +1 -1
- package/dist/esm/tools/AnnotationEraserTool.js +2 -2
- package/dist/esm/tools/CrosshairsTool.d.ts +5 -5
- package/dist/esm/tools/CrosshairsTool.js +5 -4
- package/dist/esm/tools/MIPJumpToClickTool.d.ts +1 -2
- package/dist/esm/tools/MIPJumpToClickTool.js +2 -3
- package/dist/esm/tools/MagnifyTool.d.ts +2 -3
- package/dist/esm/tools/MagnifyTool.js +1 -1
- package/dist/esm/tools/OrientationMarkerTool.d.ts +41 -58
- package/dist/esm/tools/OrientationMarkerTool.js +8 -7
- package/dist/esm/tools/OverlayGridTool.d.ts +2 -4
- package/dist/esm/tools/OverlayGridTool.js +1 -1
- package/dist/esm/tools/PanTool.d.ts +1 -1
- package/dist/esm/tools/PanTool.js +5 -0
- package/dist/esm/tools/PlanarRotateTool.d.ts +3 -1
- package/dist/esm/tools/PlanarRotateTool.js +18 -4
- package/dist/esm/tools/ReferenceCursors.d.ts +2 -5
- package/dist/esm/tools/ReferenceLinesTool.d.ts +4 -6
- package/dist/esm/tools/ReferenceLinesTool.js +1 -1
- package/dist/esm/tools/ScaleOverlayTool.d.ts +7 -9
- package/dist/esm/tools/ScaleOverlayTool.js +1 -2
- package/dist/esm/tools/SculptorTool/CircleSculptCursor.d.ts +4 -4
- package/dist/esm/tools/SculptorTool.d.ts +1 -1
- package/dist/esm/tools/SculptorTool.js +3 -3
- package/dist/esm/tools/SegmentationIntersectionTool.d.ts +2 -2
- package/dist/esm/tools/StackScrollTool.d.ts +2 -1
- package/dist/esm/tools/StackScrollTool.js +17 -3
- package/dist/esm/tools/StackScrollToolMouseWheelTool.d.ts +1 -2
- package/dist/esm/tools/StackScrollToolMouseWheelTool.js +1 -2
- package/dist/esm/tools/TrackballRotateTool.d.ts +1 -1
- package/dist/esm/tools/TrackballRotateTool.js +4 -0
- package/dist/esm/tools/VolumeRotateMouseWheelTool.d.ts +2 -3
- package/dist/esm/tools/WindowLevelRegionTool.d.ts +3 -3
- package/dist/esm/tools/WindowLevelRegionTool.js +2 -4
- package/dist/esm/tools/WindowLevelTool.d.ts +1 -1
- package/dist/esm/tools/WindowLevelTool.js +12 -7
- package/dist/esm/tools/ZoomTool.d.ts +2 -2
- package/dist/esm/tools/ZoomTool.js +2 -2
- package/dist/esm/tools/annotation/AngleTool.d.ts +5 -7
- package/dist/esm/tools/annotation/AngleTool.js +4 -3
- package/dist/esm/tools/annotation/ArrowAnnotateTool.d.ts +5 -7
- package/dist/esm/tools/annotation/ArrowAnnotateTool.js +1 -1
- package/dist/esm/tools/annotation/BidirectionalTool.d.ts +5 -7
- package/dist/esm/tools/annotation/BidirectionalTool.js +2 -3
- package/dist/esm/tools/annotation/CircleROITool.d.ts +5 -7
- package/dist/esm/tools/annotation/CircleROITool.js +15 -13
- package/dist/esm/tools/annotation/CobbAngleTool.d.ts +5 -7
- package/dist/esm/tools/annotation/CobbAngleTool.js +1 -1
- package/dist/esm/tools/annotation/DragProbeTool.d.ts +3 -5
- package/dist/esm/tools/annotation/DragProbeTool.js +0 -5
- package/dist/esm/tools/annotation/EllipticalROITool.d.ts +5 -7
- package/dist/esm/tools/annotation/EllipticalROITool.js +13 -9
- package/dist/esm/tools/annotation/HeightTool.d.ts +36 -0
- package/dist/esm/tools/annotation/HeightTool.js +434 -0
- package/dist/esm/tools/annotation/KeyImageTool.d.ts +4 -6
- package/dist/esm/tools/annotation/KeyImageTool.js +1 -1
- package/dist/esm/tools/annotation/LengthTool.d.ts +5 -7
- package/dist/esm/tools/annotation/LengthTool.js +8 -7
- package/dist/esm/tools/annotation/LivewireContourTool.d.ts +3 -4
- package/dist/esm/tools/annotation/LivewireContourTool.js +5 -3
- package/dist/esm/tools/annotation/PlanarFreehandContourSegmentationTool.d.ts +1 -2
- package/dist/esm/tools/annotation/PlanarFreehandROITool.d.ts +21 -4
- package/dist/esm/tools/annotation/PlanarFreehandROITool.js +160 -118
- package/dist/esm/tools/annotation/ProbeTool.d.ts +4 -6
- package/dist/esm/tools/annotation/ProbeTool.js +17 -33
- package/dist/esm/tools/annotation/RectangleROITool.d.ts +5 -5
- package/dist/esm/tools/annotation/RectangleROITool.js +12 -9
- package/dist/esm/tools/annotation/SplineContourSegmentationTool.d.ts +1 -1
- package/dist/esm/tools/annotation/SplineROITool.d.ts +1 -3
- package/dist/esm/tools/annotation/SplineROITool.js +9 -6
- package/dist/esm/tools/annotation/UltrasoundDirectionalTool.d.ts +5 -7
- package/dist/esm/tools/annotation/UltrasoundDirectionalTool.js +6 -7
- package/dist/esm/tools/annotation/VideoRedactionTool.d.ts +4 -5
- package/dist/esm/tools/annotation/VideoRedactionTool.js +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/closedContourEditLoop.js +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/drawLoop.js +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/findOpenUShapedContourVectorToPeak.d.ts +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/openContourEditLoop.js +2 -2
- package/dist/esm/tools/annotation/planarFreehandROITool/openContourEndEditLoop.js +1 -1
- package/dist/esm/tools/annotation/planarFreehandROITool/renderMethods.js +1 -1
- package/dist/esm/tools/annotation/splines/CardinalSpline.d.ts +1 -1
- package/dist/esm/tools/annotation/splines/CubicSpline.d.ts +1 -1
- package/dist/esm/tools/annotation/splines/QuadraticSpline.d.ts +1 -1
- package/dist/esm/tools/annotation/splines/Spline.d.ts +1 -1
- package/dist/esm/tools/base/AnnotationDisplayTool.d.ts +3 -3
- package/dist/esm/tools/base/AnnotationDisplayTool.js +3 -9
- package/dist/esm/tools/base/AnnotationTool.d.ts +3 -14
- package/dist/esm/tools/base/BaseTool.d.ts +5 -5
- package/dist/esm/tools/base/BaseTool.js +1 -1
- package/dist/esm/tools/base/ContourBaseTool.d.ts +1 -1
- package/dist/esm/tools/base/ContourBaseTool.js +5 -5
- package/dist/esm/tools/base/ContourSegmentationBaseTool.js +28 -19
- package/dist/esm/tools/displayTools/Contour/contourConfig.d.ts +1 -1
- package/dist/esm/tools/displayTools/Contour/contourDisplay.d.ts +2 -2
- package/dist/esm/tools/displayTools/Contour/contourDisplay.js +9 -7
- package/dist/esm/tools/displayTools/Contour/contourHandler/handleContourSegmentation.d.ts +2 -2
- package/dist/esm/tools/displayTools/Contour/contourHandler/handleContourSegmentation.js +6 -6
- package/dist/esm/tools/displayTools/Contour/contourHandler/utils.d.ts +1 -1
- package/dist/esm/tools/displayTools/Contour/removeContourFromElement.js +2 -2
- package/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +1 -1
- package/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.js +4 -3
- package/dist/esm/tools/displayTools/Labelmap/labelmapConfig.d.ts +1 -1
- package/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.d.ts +3 -10
- package/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.js +24 -28
- package/dist/esm/tools/displayTools/Labelmap/validateLabelmap.d.ts +2 -2
- package/dist/esm/tools/displayTools/Surface/surfaceConfig.d.ts +1 -1
- package/dist/esm/tools/displayTools/Surface/surfaceDisplay.d.ts +2 -2
- package/dist/esm/tools/displayTools/Surface/surfaceDisplay.js +10 -7
- package/dist/esm/tools/distancePointToContour.d.ts +1 -1
- package/dist/esm/tools/index.d.ts +2 -1
- package/dist/esm/tools/index.js +2 -1
- package/dist/esm/tools/segmentation/BrushTool.js +11 -9
- package/dist/esm/tools/segmentation/CircleROIStartEndThresholdTool.d.ts +20 -15
- package/dist/esm/tools/segmentation/CircleROIStartEndThresholdTool.js +198 -67
- package/dist/esm/tools/segmentation/CircleScissorsTool.d.ts +3 -3
- package/dist/esm/tools/segmentation/CircleScissorsTool.js +10 -3
- package/dist/esm/tools/segmentation/PaintFillTool.d.ts +1 -1
- package/dist/esm/tools/segmentation/PaintFillTool.js +15 -14
- package/dist/esm/tools/segmentation/RectangleROIStartEndThresholdTool.d.ts +20 -10
- package/dist/esm/tools/segmentation/RectangleROIStartEndThresholdTool.js +172 -55
- package/dist/esm/tools/segmentation/RectangleROIThresholdTool.d.ts +3 -3
- package/dist/esm/tools/segmentation/RectangleScissorsTool.d.ts +4 -3
- package/dist/esm/tools/segmentation/RectangleScissorsTool.js +8 -5
- package/dist/esm/tools/segmentation/SegmentSelectTool.d.ts +2 -2
- package/dist/esm/tools/segmentation/SegmentSelectTool.js +3 -3
- package/dist/esm/tools/segmentation/SphereScissorsTool.d.ts +3 -2
- package/dist/esm/tools/segmentation/SphereScissorsTool.js +12 -4
- package/dist/esm/tools/segmentation/strategies/BrushStrategy.d.ts +4 -5
- package/dist/esm/tools/segmentation/strategies/BrushStrategy.js +3 -1
- package/dist/esm/tools/segmentation/strategies/compositions/determineSegmentIndex.js +6 -3
- package/dist/esm/tools/segmentation/strategies/compositions/dynamicThreshold.js +1 -1
- package/dist/esm/tools/segmentation/strategies/compositions/islandRemoval.js +1 -1
- package/dist/esm/tools/segmentation/strategies/compositions/preview.js +6 -6
- package/dist/esm/tools/segmentation/strategies/compositions/regionFill.js +6 -3
- package/dist/esm/tools/segmentation/strategies/compositions/setValue.js +1 -1
- package/dist/esm/tools/segmentation/strategies/eraseRectangle.d.ts +1 -1
- package/dist/esm/tools/segmentation/strategies/fillCircle.js +1 -1
- package/dist/esm/tools/segmentation/strategies/fillRectangle.d.ts +1 -1
- package/dist/esm/tools/segmentation/strategies/fillRectangle.js +10 -7
- package/dist/esm/tools/segmentation/strategies/fillSphere.js +1 -1
- package/dist/esm/tools/segmentation/strategies/utils/getStrategyData.d.ts +1 -1
- package/dist/esm/tools/segmentation/strategies/utils/getStrategyData.js +7 -24
- package/dist/esm/tools/segmentation/strategies/utils/isWithinThreshold.d.ts +9 -2
- package/dist/esm/tools/segmentation/strategies/utils/stackVolumeCheck.d.ts +3 -3
- package/dist/esm/tools/segmentation/strategies/utils/stackVolumeCheck.js +0 -3
- package/dist/esm/types/AnnotationGroupSelector.d.ts +1 -1
- package/dist/esm/types/AnnotationRenderContext.d.ts +3 -2
- package/dist/esm/types/AnnotationStyle.d.ts +2 -2
- package/dist/esm/types/AnnotationTypes.d.ts +3 -3
- package/dist/esm/types/BoundsIJK.d.ts +1 -1
- package/dist/esm/types/CINETypes.d.ts +1 -0
- package/dist/esm/types/CalculatorTypes.d.ts +1 -1
- package/dist/esm/types/CardinalSplineProps.d.ts +1 -1
- package/dist/esm/types/ClosestPoint.d.ts +1 -1
- package/dist/esm/types/ContourAnnotation.d.ts +1 -1
- package/dist/esm/types/ContourSegmentationAnnotation.d.ts +2 -2
- package/dist/esm/types/ControlPointInfo.d.ts +1 -1
- package/dist/esm/types/EventTypes.d.ts +13 -12
- package/dist/esm/types/FloodFillTypes.d.ts +2 -2
- package/dist/esm/types/IAnnotationManager.d.ts +3 -3
- package/dist/esm/types/IDistance.d.ts +1 -1
- package/dist/esm/types/IPoints.d.ts +2 -2
- package/dist/esm/types/ISetToolModeOptions.d.ts +2 -2
- package/dist/esm/types/ISpline.d.ts +1 -1
- package/dist/esm/types/ISynchronizerEventHandler.d.ts +3 -3
- package/dist/esm/types/IToolClassReference.d.ts +3 -3
- package/dist/esm/types/IToolGroup.d.ts +8 -8
- package/dist/esm/types/ITouchPoints.d.ts +2 -2
- package/dist/esm/types/InteractionTypes.d.ts +1 -1
- package/dist/esm/types/InternalToolTypes.d.ts +4 -4
- package/dist/esm/types/InterpolationTypes.d.ts +3 -3
- package/dist/esm/types/JumpToSliceOptions.d.ts +1 -1
- package/dist/esm/types/LabelmapToolOperationData.d.ts +3 -2
- package/dist/esm/types/PlanarBoundingBox.d.ts +1 -1
- package/dist/esm/types/SVGDrawingHelper.d.ts +1 -1
- package/dist/esm/types/ScrollOptions.d.ts +1 -1
- package/dist/esm/types/SegmentationStateTypes.d.ts +7 -6
- package/dist/esm/types/SplineCurveSegment.d.ts +1 -1
- package/dist/esm/types/SplineLineSegment.d.ts +1 -1
- package/dist/esm/types/ToolAction.d.ts +1 -1
- package/dist/esm/types/ToolHandle.d.ts +1 -1
- package/dist/esm/types/ToolProps.d.ts +1 -1
- package/dist/esm/types/ToolSpecificAnnotationTypes.d.ts +34 -12
- package/dist/esm/types/index.d.ts +2 -2
- package/dist/esm/utilities/annotationFrameRange.d.ts +1 -1
- package/dist/esm/utilities/annotationHydration.d.ts +3 -2
- package/dist/esm/utilities/annotationHydration.js +1 -1
- package/dist/esm/utilities/cine/playClip.d.ts +6 -2
- package/dist/esm/utilities/cine/playClip.js +53 -6
- package/dist/esm/utilities/cine/state.d.ts +1 -1
- package/dist/esm/utilities/contourSegmentation/addContourSegmentationAnnotation.d.ts +1 -1
- package/dist/esm/utilities/contourSegmentation/addContourSegmentationAnnotation.js +1 -1
- package/dist/esm/utilities/contourSegmentation/areSameSegment.d.ts +1 -1
- package/dist/esm/utilities/contourSegmentation/isContourSegmentationAnnotation.d.ts +2 -2
- package/dist/esm/utilities/contourSegmentation/removeContourSegmentationAnnotation.d.ts +1 -1
- package/dist/esm/utilities/contourSegmentation/removeContourSegmentationAnnotation.js +2 -2
- package/dist/esm/utilities/contours/AnnotationToPointData.d.ts +1 -1
- package/dist/esm/utilities/contours/areCoplanarContours.d.ts +1 -1
- package/dist/esm/utilities/contours/findHandlePolylineIndex.d.ts +1 -1
- package/dist/esm/utilities/contours/generateContourSetsFromLabelmap.js +1 -1
- package/dist/esm/utilities/contours/getContourHolesDataWorld.js +1 -1
- package/dist/esm/utilities/contours/index.d.ts +1 -2
- package/dist/esm/utilities/contours/index.js +1 -2
- package/dist/esm/utilities/contours/interpolation/createPolylineToolData.d.ts +1 -1
- package/dist/esm/utilities/contours/interpolation/getInterpolationData.d.ts +1 -1
- package/dist/esm/utilities/contours/interpolation/interpolate.d.ts +1 -1
- package/dist/esm/utilities/contours/reverseIfAntiClockwise.d.ts +1 -1
- package/dist/esm/utilities/contours/updateContourPolyline.d.ts +1 -1
- package/dist/esm/utilities/contours/updateContourPolyline.js +1 -1
- package/dist/esm/utilities/dynamicVolume/generateImageFromTimeData.d.ts +3 -2
- package/dist/esm/utilities/dynamicVolume/generateImageFromTimeData.js +31 -23
- package/dist/esm/utilities/dynamicVolume/getDataInTime.d.ts +1 -1
- package/dist/esm/utilities/dynamicVolume/getDataInTime.js +14 -9
- package/dist/esm/utilities/getAnnotationNearPoint.d.ts +1 -1
- package/dist/esm/utilities/getCalibratedUnits.d.ts +0 -6
- package/dist/esm/utilities/getCalibratedUnits.js +13 -4
- package/dist/esm/utilities/getPixelValueUnits.d.ts +2 -1
- package/dist/esm/utilities/getPixelValueUnits.js +1 -0
- package/dist/esm/utilities/getSphereBoundsInfo.d.ts +1 -1
- package/dist/esm/utilities/getToolsWithModesForElement.d.ts +1 -1
- package/dist/esm/utilities/getToolsWithModesForElement.js +2 -2
- package/dist/esm/utilities/getVOIMultipliers.d.ts +1 -1
- package/dist/esm/utilities/index.d.ts +2 -5
- package/dist/esm/utilities/index.js +2 -5
- package/dist/esm/utilities/livewire/LiveWirePath.d.ts +1 -1
- package/dist/esm/utilities/livewire/LivewireScissors.d.ts +1 -1
- package/dist/esm/utilities/math/aabb/distanceToPoint.d.ts +1 -1
- package/dist/esm/utilities/math/aabb/distanceToPointSquared.d.ts +1 -1
- package/dist/esm/utilities/math/aabb/intersectAABB.d.ts +1 -1
- package/dist/esm/utilities/math/basic/BasicStatsCalculator.d.ts +2 -2
- package/dist/esm/utilities/math/basic/BasicStatsCalculator.js +1 -1
- package/dist/esm/utilities/math/basic/Calculator.d.ts +1 -1
- package/dist/esm/utilities/math/circle/getCanvasCircleCorners.d.ts +1 -1
- package/dist/esm/utilities/math/circle/getCanvasCircleRadius.d.ts +1 -1
- package/dist/esm/utilities/math/line/distanceToPointSquared.d.ts +1 -1
- package/dist/esm/utilities/math/line/distanceToPointSquaredInfo.js +3 -3
- package/dist/esm/utilities/math/midPoint.d.ts +1 -1
- package/dist/esm/utilities/math/point/mirror.d.ts +1 -1
- package/dist/esm/utilities/math/polyline/addCanvasPointsToArray.d.ts +1 -1
- package/dist/esm/utilities/math/polyline/combinePolyline.d.ts +1 -1
- package/dist/esm/utilities/math/polyline/getAABB.d.ts +1 -1
- package/dist/esm/utilities/math/polyline/getLinesIntersection.d.ts +1 -1
- package/dist/esm/utilities/math/polyline/getNormal2.d.ts +1 -1
- package/dist/esm/utilities/math/polyline/getNormal3.d.ts +1 -1
- package/dist/esm/utilities/math/polyline/intersectPolyline.d.ts +1 -1
- package/dist/esm/utilities/math/polyline/isClosed.js +2 -2
- package/dist/esm/utilities/math/polyline/planarFreehandROIInternalTypes.d.ts +2 -2
- package/dist/esm/utilities/math/sphere/pointInSphere.d.ts +1 -1
- package/dist/esm/utilities/orientation/getOrientationStringLPS.d.ts +1 -1
- package/dist/esm/utilities/planar/filterAnnotationsForDisplay.d.ts +1 -1
- package/dist/esm/utilities/planar/filterAnnotationsWithinPlane.d.ts +3 -0
- package/dist/esm/utilities/planar/filterAnnotationsWithinPlane.js +26 -0
- package/dist/esm/utilities/planar/filterAnnotationsWithinSlice.d.ts +1 -1
- package/dist/esm/utilities/planar/index.d.ts +3 -1
- package/dist/esm/utilities/planar/index.js +3 -1
- package/dist/esm/utilities/planarFreehandROITool/interpolation/algorithms/bspline.d.ts +1 -1
- package/dist/esm/utilities/planarFreehandROITool/interpolation/interpolateSegmentPoints.d.ts +1 -1
- package/dist/esm/utilities/planarFreehandROITool/smoothAnnotation.d.ts +2 -2
- package/dist/esm/utilities/planarFreehandROITool/smoothAnnotation.js +3 -3
- package/dist/esm/utilities/planarFreehandROITool/smoothPoints.d.ts +11 -3
- package/dist/esm/utilities/polyData/utils.d.ts +1 -1
- package/dist/esm/utilities/scroll.d.ts +4 -3
- package/dist/esm/utilities/scroll.js +3 -10
- package/dist/esm/utilities/segmentation/InterpolationManager/InterpolationManager.d.ts +1 -1
- package/dist/esm/utilities/segmentation/brushSizeForToolGroup.js +1 -1
- package/dist/esm/utilities/segmentation/brushThresholdForToolGroup.js +1 -1
- package/dist/esm/utilities/segmentation/createLabelmapVolumeForViewport.d.ts +2 -11
- package/dist/esm/utilities/segmentation/createLabelmapVolumeForViewport.js +1 -1
- package/dist/esm/utilities/segmentation/createMergedLabelmapForIndex.d.ts +1 -1
- package/dist/esm/utilities/segmentation/createMergedLabelmapForIndex.js +7 -7
- package/dist/esm/utilities/segmentation/floodFill.d.ts +1 -1
- package/dist/esm/utilities/segmentation/getBrushToolInstances.d.ts +1 -0
- package/dist/esm/utilities/segmentation/getBrushToolInstances.js +17 -0
- package/dist/esm/utilities/segmentation/getDefaultRepresentationConfig.d.ts +1 -1
- package/dist/esm/utilities/segmentation/getSegmentIndexAtLabelmapBorder.js +8 -5
- package/dist/esm/utilities/segmentation/getSegmentIndexAtWorldPoint.d.ts +1 -1
- package/dist/esm/utilities/segmentation/getSegmentIndexAtWorldPoint.js +7 -4
- package/dist/esm/utilities/segmentation/getUniqueSegmentIndices.d.ts +0 -2
- package/dist/esm/utilities/segmentation/getUniqueSegmentIndices.js +7 -27
- package/dist/esm/utilities/segmentation/index.d.ts +3 -3
- package/dist/esm/utilities/segmentation/index.js +3 -3
- package/dist/esm/utilities/segmentation/invalidateBrushCursor.js +1 -4
- package/dist/esm/utilities/segmentation/isValidRepresentationConfig.d.ts +1 -1
- package/dist/esm/utilities/segmentation/rectangleROIThresholdVolumeByRange.d.ts +1 -1
- package/dist/esm/utilities/segmentation/rectangleROIThresholdVolumeByRange.js +5 -3
- package/dist/esm/utilities/segmentation/segmentContourAction.d.ts +1 -1
- package/dist/esm/utilities/segmentation/segmentContourAction.js +9 -9
- package/dist/esm/utilities/segmentation/thresholdSegmentationByRange.d.ts +2 -2
- package/dist/esm/utilities/segmentation/thresholdSegmentationByRange.js +24 -17
- package/dist/esm/utilities/segmentation/thresholdVolumeByRange.d.ts +3 -3
- package/dist/esm/utilities/segmentation/thresholdVolumeByRange.js +21 -12
- package/dist/esm/utilities/segmentation/utilities.d.ts +16 -3
- package/dist/esm/utilities/segmentation/utilities.js +28 -23
- package/dist/esm/utilities/stackPrefetch/stackContextPrefetch.js +30 -25
- package/dist/esm/utilities/stackPrefetch/stackPrefetch.js +3 -8
- package/dist/esm/utilities/stackPrefetch/stackPrefetchUtils.js +2 -3
- package/dist/esm/utilities/stackPrefetch/state.d.ts +20 -1
- package/dist/esm/utilities/touch/index.d.ts +1 -1
- package/dist/esm/utilities/triggerAnnotationRender.d.ts +0 -20
- package/dist/esm/utilities/triggerAnnotationRender.js +1 -112
- package/dist/esm/utilities/viewport/isViewportPreScaled.d.ts +1 -1
- package/dist/esm/utilities/viewport/isViewportPreScaled.js +2 -5
- package/dist/esm/utilities/viewport/jumpToSlice.d.ts +1 -1
- package/dist/esm/utilities/viewport/jumpToSlice.js +4 -6
- package/dist/esm/utilities/viewportFilters/filterViewportsWithToolEnabled.js +2 -2
- package/dist/esm/utilities/voi/colorbar/ColorbarCanvas.d.ts +2 -2
- package/dist/esm/utilities/voi/colorbar/ViewportColorbar.d.ts +1 -1
- package/dist/esm/utilities/voi/colorbar/ViewportColorbar.js +1 -1
- package/dist/esm/utilities/voi/colorbar/types/ColorbarCanvasProps.d.ts +1 -1
- package/dist/esm/utilities/voi/colorbar/types/ColorbarCommonProps.d.ts +1 -1
- package/dist/esm/utilities/voi/colorbar/types/ColorbarProps.d.ts +3 -3
- package/dist/esm/utilities/voi/windowlevel/extractWindowLevelRegionToolData.d.ts +8 -0
- package/dist/esm/utilities/voi/windowlevel/extractWindowLevelRegionToolData.js +4 -10
- package/dist/esm/widgets/types/index.d.ts +2 -2
- package/dist/esm/workers/polySegConverters.js +65 -32
- package/dist/umd/78.index.js +1 -1
- package/dist/umd/78.index.js.map +1 -1
- package/dist/umd/985.index.js +1 -1
- package/dist/umd/985.index.js.map +1 -1
- package/dist/umd/index.js +2 -1
- package/dist/umd/index.js.LICENSE.txt +6 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +7 -8
- package/dist/esm/stateManagement/segmentation/addRepresentation.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/addRepresentations.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/addRepresentations.js +0 -9
- package/dist/esm/stateManagement/segmentation/convertStackToVolumeSegmentation.d.ts +0 -17
- package/dist/esm/stateManagement/segmentation/convertStackToVolumeSegmentation.js +0 -54
- package/dist/esm/stateManagement/segmentation/helpers/getRepresentationRenderingConfig.d.ts +0 -2
- package/dist/esm/stateManagement/segmentation/helpers/getRepresentationRenderingConfig.js +0 -11
- package/dist/esm/stateManagement/segmentation/removeRepresentationsFromViewport.d.ts +0 -2
- package/dist/esm/tools/AdvancedMagnifyViewport.d.ts +0 -76
- package/dist/esm/tools/AdvancedMagnifyViewport.js +0 -351
- package/dist/esm/tools/AdvancedMagnifyViewportManager.d.ts +0 -37
- package/dist/esm/tools/AdvancedMagnifyViewportManager.js +0 -161
- package/dist/esm/utilities/contours/interpolation/index.d.ts +0 -2
- package/dist/esm/utilities/contours/interpolation/index.js +0 -2
- package/dist/esm/utilities/pointInShapeCallback.d.ts +0 -18
- package/dist/esm/utilities/pointInShapeCallback.js +0 -82
- package/dist/esm/utilities/pointInSurroundingSphereCallback.d.ts +0 -4
- package/dist/esm/utilities/pointInSurroundingSphereCallback.js +0 -63
- package/dist/esm/utilities/segmentation/triggerSegmentationRender.d.ts +0 -3
- package/dist/esm/utilities/segmentation/triggerSegmentationRender.js +0 -6
- package/dist/esm/utilities/segmentation/triggerSegmentationRenderForViewports.d.ts +0 -3
- package/dist/esm/utilities/segmentation/triggerSegmentationRenderForViewports.js +0 -6
|
@@ -47,8 +47,7 @@ class WindowLevelTool extends BaseTool {
|
|
|
47
47
|
let isPreScaled = false;
|
|
48
48
|
const properties = viewport.getProperties();
|
|
49
49
|
if (viewport instanceof VolumeViewport) {
|
|
50
|
-
|
|
51
|
-
volumeId = utilities.getVolumeId(targetId);
|
|
50
|
+
volumeId = this.getTargetVolumeId(viewport);
|
|
52
51
|
viewportsContainingVolumeUID = utilities.getViewportsWithVolumeId(volumeId, renderingEngine.id);
|
|
53
52
|
({ lower, upper } = properties.voiRange);
|
|
54
53
|
const volume = cache.getVolume(volumeId);
|
|
@@ -135,9 +134,11 @@ class WindowLevelTool extends BaseTool {
|
|
|
135
134
|
let imageDynamicRange;
|
|
136
135
|
if (volumeId) {
|
|
137
136
|
const imageVolume = cache.getVolume(volumeId);
|
|
138
|
-
const {
|
|
139
|
-
const
|
|
140
|
-
const calculatedDynamicRange =
|
|
137
|
+
const { voxelManager } = viewport.getImageData();
|
|
138
|
+
const middleSlicePixelData = voxelManager.getMiddleSliceData();
|
|
139
|
+
const calculatedDynamicRange = middleSlicePixelData.reduce((acc, pixel) => {
|
|
140
|
+
return [Math.min(acc[0], pixel), Math.max(acc[1], pixel)];
|
|
141
|
+
}, [Infinity, -Infinity]);
|
|
141
142
|
const BitsStored = imageVolume?.metadata?.BitsStored;
|
|
142
143
|
const metadataDynamicRange = BitsStored ? 2 ** BitsStored : Infinity;
|
|
143
144
|
imageDynamicRange = Math.min(calculatedDynamicRange, metadataDynamicRange);
|
|
@@ -149,7 +150,11 @@ class WindowLevelTool extends BaseTool {
|
|
|
149
150
|
return ratio > 1 ? Math.round(ratio) : ratio;
|
|
150
151
|
}
|
|
151
152
|
_getImageDynamicRangeFromViewport(viewport) {
|
|
152
|
-
const { imageData } = viewport.getImageData();
|
|
153
|
+
const { imageData, voxelManager } = viewport.getImageData();
|
|
154
|
+
if (voxelManager?.getRange) {
|
|
155
|
+
const range = voxelManager.getRange();
|
|
156
|
+
return range[1] - range[0];
|
|
157
|
+
}
|
|
153
158
|
const dimensions = imageData.getDimensions();
|
|
154
159
|
if (imageData.getRange) {
|
|
155
160
|
const imageDataRange = imageData.getRange();
|
|
@@ -160,7 +165,7 @@ class WindowLevelTool extends BaseTool {
|
|
|
160
165
|
scalarData = imageData.getScalarData();
|
|
161
166
|
}
|
|
162
167
|
else {
|
|
163
|
-
scalarData = imageData.getPointData().getScalars();
|
|
168
|
+
scalarData = imageData.getPointData().getScalars().getData();
|
|
164
169
|
}
|
|
165
170
|
if (dimensions[2] !== 1) {
|
|
166
171
|
return this._getImageDynamicRangeFromMiddleSlice(scalarData, dimensions);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Types } from '@cornerstonejs/core';
|
|
1
|
+
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { BaseTool } from './base';
|
|
3
|
-
import { EventTypes, PublicToolProps, ToolProps } from '../types';
|
|
3
|
+
import type { EventTypes, PublicToolProps, ToolProps } from '../types';
|
|
4
4
|
declare class ZoomTool extends BaseTool {
|
|
5
5
|
static toolName: any;
|
|
6
6
|
touchDragCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
@@ -7,8 +7,8 @@ class ZoomTool extends BaseTool {
|
|
|
7
7
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
8
8
|
configuration: {
|
|
9
9
|
zoomToCenter: false,
|
|
10
|
-
minZoomScale: 0.
|
|
11
|
-
maxZoomScale:
|
|
10
|
+
minZoomScale: 0.001,
|
|
11
|
+
maxZoomScale: 3000,
|
|
12
12
|
pinchToZoom: true,
|
|
13
13
|
pan: true,
|
|
14
14
|
invert: false,
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { AnnotationTool } from '../base';
|
|
3
|
-
import { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper } from '../../types';
|
|
4
|
-
import { AngleAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
3
|
+
import type { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper, Annotation } from '../../types';
|
|
4
|
+
import type { AngleAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
5
|
declare class AngleTool extends AnnotationTool {
|
|
6
6
|
static toolName: any;
|
|
7
|
-
touchDragCallback: any;
|
|
8
|
-
mouseDragCallback: any;
|
|
9
7
|
angleStartedNotYetCompleted: boolean;
|
|
10
|
-
_throttledCalculateCachedStats:
|
|
8
|
+
_throttledCalculateCachedStats: Function;
|
|
11
9
|
editData: {
|
|
12
|
-
annotation:
|
|
10
|
+
annotation: Annotation;
|
|
13
11
|
viewportIdsToRender: string[];
|
|
14
12
|
handleIndex?: number;
|
|
15
13
|
movingTextBox?: boolean;
|
|
@@ -25,7 +23,7 @@ declare class AngleTool extends AnnotationTool {
|
|
|
25
23
|
handleSelectedCallback(evt: EventTypes.InteractionEventType, annotation: AngleAnnotation, handle: ToolHandle): void;
|
|
26
24
|
_endCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
27
25
|
_dragCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
28
|
-
cancel: (element: HTMLDivElement) =>
|
|
26
|
+
cancel: (element: HTMLDivElement) => string;
|
|
29
27
|
_activateModify: (element: HTMLDivElement) => void;
|
|
30
28
|
_deactivateModify: (element: HTMLDivElement) => void;
|
|
31
29
|
_activateDraw: (element: HTMLDivElement) => void;
|
|
@@ -6,9 +6,8 @@ import { addAnnotation, getAnnotations, removeAnnotation, } from '../../stateMan
|
|
|
6
6
|
import { isAnnotationLocked } from '../../stateManagement/annotation/annotationLocking';
|
|
7
7
|
import * as lineSegment from '../../utilities/math/line';
|
|
8
8
|
import angleBetweenLines from '../../utilities/math/angle/angleBetweenLines';
|
|
9
|
-
import { roundNumber } from '../../utilities';
|
|
10
9
|
import { drawHandles as drawHandlesSvg, drawLine as drawLineSvg, drawLinkedTextBox as drawLinkedTextBoxSvg, } from '../../drawingSvg';
|
|
11
|
-
import { state } from '../../store';
|
|
10
|
+
import { state } from '../../store/state';
|
|
12
11
|
import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters';
|
|
13
12
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
14
13
|
import { triggerAnnotationCompleted, triggerAnnotationModified, } from '../../stateManagement/annotation/helpers/state';
|
|
@@ -441,7 +440,9 @@ function defaultGetTextLines(data, targetId) {
|
|
|
441
440
|
if (isNaN(angle)) {
|
|
442
441
|
return [`${angle}`];
|
|
443
442
|
}
|
|
444
|
-
const textLines = [
|
|
443
|
+
const textLines = [
|
|
444
|
+
`${csUtils.roundNumber(angle)} ${String.fromCharCode(176)}`,
|
|
445
|
+
];
|
|
445
446
|
return textLines;
|
|
446
447
|
}
|
|
447
448
|
AngleTool.toolName = 'Angle';
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { AnnotationTool } from '../base';
|
|
3
|
-
import { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper } from '../../types';
|
|
4
|
-
import { ArrowAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
3
|
+
import type { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper, Annotation } from '../../types';
|
|
4
|
+
import type { ArrowAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
5
|
declare class ArrowAnnotateTool extends AnnotationTool {
|
|
6
6
|
static toolName: any;
|
|
7
|
-
|
|
8
|
-
mouseDragCallback: any;
|
|
9
|
-
_throttledCalculateCachedStats: any;
|
|
7
|
+
_throttledCalculateCachedStats: Function;
|
|
10
8
|
editData: {
|
|
11
|
-
annotation:
|
|
9
|
+
annotation: Annotation;
|
|
12
10
|
viewportIdsToRender: string[];
|
|
13
11
|
handleIndex?: number;
|
|
14
12
|
movingTextBox?: boolean;
|
|
@@ -27,7 +25,7 @@ declare class ArrowAnnotateTool extends AnnotationTool {
|
|
|
27
25
|
touchTapCallback: (evt: EventTypes.TouchTapEventType) => void;
|
|
28
26
|
doubleClickCallback: (evt: EventTypes.TouchTapEventType) => void;
|
|
29
27
|
_doneChangingTextCallback(element: any, annotation: any, updatedText: any): void;
|
|
30
|
-
cancel: (element: HTMLDivElement) =>
|
|
28
|
+
cancel: (element: HTMLDivElement) => string;
|
|
31
29
|
_activateModify: (element: HTMLDivElement) => void;
|
|
32
30
|
_deactivateModify: (element: HTMLDivElement) => void;
|
|
33
31
|
_activateDraw: (element: HTMLDivElement) => void;
|
|
@@ -5,7 +5,7 @@ import { addAnnotation, getAnnotations, removeAnnotation, } from '../../stateMan
|
|
|
5
5
|
import { isAnnotationLocked } from '../../stateManagement/annotation/annotationLocking';
|
|
6
6
|
import * as lineSegment from '../../utilities/math/line';
|
|
7
7
|
import { drawHandles as drawHandlesSvg, drawArrow as drawArrowSvg, drawLinkedTextBox as drawLinkedTextBoxSvg, } from '../../drawingSvg';
|
|
8
|
-
import { state } from '../../store';
|
|
8
|
+
import { state } from '../../store/state';
|
|
9
9
|
import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters';
|
|
10
10
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
11
11
|
import { triggerAnnotationCompleted, triggerAnnotationModified, } from '../../stateManagement/annotation/helpers/state';
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { AnnotationTool } from '../base';
|
|
3
|
-
import { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper } from '../../types';
|
|
4
|
-
import { BidirectionalAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
3
|
+
import type { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper, Annotation } from '../../types';
|
|
4
|
+
import type { BidirectionalAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
5
|
declare class BidirectionalTool extends AnnotationTool {
|
|
6
6
|
static toolName: any;
|
|
7
|
-
|
|
8
|
-
mouseDragCallback: any;
|
|
9
|
-
_throttledCalculateCachedStats: any;
|
|
7
|
+
_throttledCalculateCachedStats: Function;
|
|
10
8
|
editData: {
|
|
11
|
-
annotation:
|
|
9
|
+
annotation: Annotation;
|
|
12
10
|
viewportIdsToRender: string[];
|
|
13
11
|
handleIndex?: number;
|
|
14
12
|
movingTextBox: boolean;
|
|
@@ -27,7 +25,7 @@ declare class BidirectionalTool extends AnnotationTool {
|
|
|
27
25
|
_dragDrawCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
28
26
|
_dragModifyCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
29
27
|
_dragModifyHandle: (evt: EventTypes.InteractionEventType) => void;
|
|
30
|
-
cancel: (element: HTMLDivElement) =>
|
|
28
|
+
cancel: (element: HTMLDivElement) => string;
|
|
31
29
|
_activateDraw: (element: any) => void;
|
|
32
30
|
_deactivateDraw: (element: any) => void;
|
|
33
31
|
_activateModify: (element: any) => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { vec2, vec3 } from 'gl-matrix';
|
|
2
2
|
import { getEnabledElement, utilities as csUtils } from '@cornerstonejs/core';
|
|
3
3
|
import { getCalibratedLengthUnitsAndScale } from '../../utilities/getCalibratedUnits';
|
|
4
|
-
import { roundNumber } from '../../utilities';
|
|
5
4
|
import { AnnotationTool } from '../base';
|
|
6
5
|
import throttle from '../../utilities/throttle';
|
|
7
6
|
import { addAnnotation, getAnnotations, removeAnnotation, } from '../../stateManagement/annotation/annotationState';
|
|
@@ -9,7 +8,7 @@ import { isAnnotationLocked } from '../../stateManagement/annotation/annotationL
|
|
|
9
8
|
import { isAnnotationVisible } from '../../stateManagement/annotation/annotationVisibility';
|
|
10
9
|
import { triggerAnnotationCompleted, triggerAnnotationModified, } from '../../stateManagement/annotation/helpers/state';
|
|
11
10
|
import { drawLine as drawLineSvg, drawHandles as drawHandlesSvg, drawLinkedTextBox as drawLinkedTextBoxSvg, } from '../../drawingSvg';
|
|
12
|
-
import { state } from '../../store';
|
|
11
|
+
import { state } from '../../store/state';
|
|
13
12
|
import { Events } from '../../enums';
|
|
14
13
|
import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters';
|
|
15
14
|
import * as lineSegment from '../../utilities/math/line';
|
|
@@ -721,7 +720,7 @@ function defaultGetTextLines(data, targetId) {
|
|
|
721
720
|
if (length === undefined) {
|
|
722
721
|
return textLines;
|
|
723
722
|
}
|
|
724
|
-
textLines.push(`L: ${roundNumber(length)} ${lengthUnits || unit}`, `W: ${roundNumber(width)} ${widthUnit || unit}`);
|
|
723
|
+
textLines.push(`L: ${csUtils.roundNumber(length)} ${lengthUnits || unit}`, `W: ${csUtils.roundNumber(width)} ${widthUnit || unit}`);
|
|
725
724
|
return textLines;
|
|
726
725
|
}
|
|
727
726
|
BidirectionalTool.toolName = 'Bidirectional';
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { AnnotationTool } from '../base';
|
|
2
2
|
import type { Types } from '@cornerstonejs/core';
|
|
3
|
-
import { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper } from '../../types';
|
|
4
|
-
import { CircleROIAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
3
|
+
import type { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper, Annotation } from '../../types';
|
|
4
|
+
import type { CircleROIAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
5
|
declare class CircleROITool extends AnnotationTool {
|
|
6
6
|
static toolName: any;
|
|
7
|
-
|
|
8
|
-
mouseDragCallback: any;
|
|
9
|
-
_throttledCalculateCachedStats: any;
|
|
7
|
+
_throttledCalculateCachedStats: Function;
|
|
10
8
|
editData: {
|
|
11
|
-
annotation:
|
|
9
|
+
annotation: Annotation;
|
|
12
10
|
viewportIdsToRender: Array<string>;
|
|
13
11
|
handleIndex?: number;
|
|
14
12
|
movingTextBox?: boolean;
|
|
@@ -26,7 +24,7 @@ declare class CircleROITool extends AnnotationTool {
|
|
|
26
24
|
_dragDrawCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
27
25
|
_dragModifyCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
28
26
|
_dragHandle: (evt: EventTypes.InteractionEventType) => void;
|
|
29
|
-
cancel: (element: HTMLDivElement) =>
|
|
27
|
+
cancel: (element: HTMLDivElement) => string;
|
|
30
28
|
_activateModify: (element: any) => void;
|
|
31
29
|
_deactivateModify: (element: any) => void;
|
|
32
30
|
_activateDraw: (element: any) => void;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { AnnotationTool } from '../base';
|
|
2
2
|
import { getEnabledElement, VolumeViewport, utilities as csUtils, } from '@cornerstonejs/core';
|
|
3
|
-
import { getCalibratedAspect } from '../../utilities/getCalibratedUnits';
|
|
4
|
-
import { getCalibratedLengthUnitsAndScale, roundNumber } from '../../utilities';
|
|
3
|
+
import { getCalibratedAspect, getCalibratedLengthUnitsAndScale, } from '../../utilities/getCalibratedUnits';
|
|
5
4
|
import throttle from '../../utilities/throttle';
|
|
6
5
|
import { addAnnotation, getAnnotations, removeAnnotation, } from '../../stateManagement/annotation/annotationState';
|
|
7
6
|
import { isAnnotationLocked } from '../../stateManagement/annotation/annotationLocking';
|
|
8
7
|
import { isAnnotationVisible } from '../../stateManagement/annotation/annotationVisibility';
|
|
9
8
|
import { triggerAnnotationCompleted, triggerAnnotationModified, } from '../../stateManagement/annotation/helpers/state';
|
|
10
9
|
import { drawCircle as drawCircleSvg, drawHandles as drawHandlesSvg, drawLinkedTextBox as drawLinkedTextBoxSvg, } from '../../drawingSvg';
|
|
11
|
-
import { state } from '../../store';
|
|
10
|
+
import { state } from '../../store/state';
|
|
12
11
|
import { Events } from '../../enums';
|
|
13
12
|
import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters';
|
|
14
13
|
import { getTextBoxCoordsCanvas } from '../../utilities/drawing';
|
|
15
14
|
import getWorldWidthAndHeightFromTwoPoints from '../../utilities/planar/getWorldWidthAndHeightFromTwoPoints';
|
|
16
15
|
import { resetElementCursor, hideElementCursor, } from '../../cursors/elementCursor';
|
|
17
16
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
18
|
-
import { pointInShapeCallback } from '../../utilities';
|
|
19
17
|
import { getPixelValueUnits } from '../../utilities/getPixelValueUnits';
|
|
20
18
|
import { isViewportPreScaled } from '../../utilities/viewport/isViewportPreScaled';
|
|
21
19
|
import { getCanvasCircleCorners, getCanvasCircleRadius, } from '../../utilities/math/circle';
|
|
@@ -28,6 +26,7 @@ class CircleROITool extends AnnotationTool {
|
|
|
28
26
|
configuration: {
|
|
29
27
|
shadow: true,
|
|
30
28
|
preventHandleOutsideImage: false,
|
|
29
|
+
storePointData: false,
|
|
31
30
|
centerPointRadius: 0,
|
|
32
31
|
getTextLines: defaultGetTextLines,
|
|
33
32
|
statsCalculator: BasicStatsCalculator,
|
|
@@ -473,7 +472,7 @@ class CircleROITool extends AnnotationTool {
|
|
|
473
472
|
if (!image) {
|
|
474
473
|
continue;
|
|
475
474
|
}
|
|
476
|
-
const { dimensions, imageData, metadata,
|
|
475
|
+
const { dimensions, imageData, metadata, voxelManager } = image;
|
|
477
476
|
const pos1Index = transformWorldToIndex(imageData, worldPos1);
|
|
478
477
|
pos1Index[0] = Math.floor(pos1Index[0]);
|
|
479
478
|
pos1Index[1] = Math.floor(pos1Index[1]);
|
|
@@ -518,9 +517,12 @@ class CircleROITool extends AnnotationTool {
|
|
|
518
517
|
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
519
518
|
};
|
|
520
519
|
const pixelValueUnits = getPixelValueUnits(metadata.Modality, annotation.metadata.referencedImageId, pixelUnitsOptions);
|
|
521
|
-
const pointsInShape =
|
|
522
|
-
fast: true,
|
|
523
|
-
|
|
520
|
+
const pointsInShape = voxelManager.forEach(this.configuration.statsCalculator.statsCallback, {
|
|
521
|
+
isInObject: (pointLPS) => pointInEllipse(ellipseObj, pointLPS, { fast: true }),
|
|
522
|
+
boundsIJK,
|
|
523
|
+
imageData,
|
|
524
|
+
returnPoints: this.configuration.storePointData,
|
|
525
|
+
});
|
|
524
526
|
const stats = this.configuration.statsCalculator.getStatistics();
|
|
525
527
|
cachedStats[targetId] = {
|
|
526
528
|
Modality: metadata.Modality,
|
|
@@ -563,23 +565,23 @@ function defaultGetTextLines(data, targetId) {
|
|
|
563
565
|
if (radius) {
|
|
564
566
|
const radiusLine = isEmptyArea
|
|
565
567
|
? `Radius: Oblique not supported`
|
|
566
|
-
: `Radius: ${roundNumber(radius)} ${radiusUnit}`;
|
|
568
|
+
: `Radius: ${csUtils.roundNumber(radius)} ${radiusUnit}`;
|
|
567
569
|
textLines.push(radiusLine);
|
|
568
570
|
}
|
|
569
571
|
if (area) {
|
|
570
572
|
const areaLine = isEmptyArea
|
|
571
573
|
? `Area: Oblique not supported`
|
|
572
|
-
: `Area: ${roundNumber(area)} ${areaUnits}`;
|
|
574
|
+
: `Area: ${csUtils.roundNumber(area)} ${areaUnits}`;
|
|
573
575
|
textLines.push(areaLine);
|
|
574
576
|
}
|
|
575
577
|
if (mean) {
|
|
576
|
-
textLines.push(`Mean: ${roundNumber(mean)} ${pixelValueUnits}`);
|
|
578
|
+
textLines.push(`Mean: ${csUtils.roundNumber(mean)} ${pixelValueUnits}`);
|
|
577
579
|
}
|
|
578
580
|
if (max) {
|
|
579
|
-
textLines.push(`Max: ${roundNumber(max)} ${pixelValueUnits}`);
|
|
581
|
+
textLines.push(`Max: ${csUtils.roundNumber(max)} ${pixelValueUnits}`);
|
|
580
582
|
}
|
|
581
583
|
if (stdDev) {
|
|
582
|
-
textLines.push(`Std Dev: ${roundNumber(stdDev)} ${pixelValueUnits}`);
|
|
584
|
+
textLines.push(`Std Dev: ${csUtils.roundNumber(stdDev)} ${pixelValueUnits}`);
|
|
583
585
|
}
|
|
584
586
|
return textLines;
|
|
585
587
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
2
|
import { AnnotationTool } from '../base';
|
|
3
|
-
import { EventTypes, ToolHandle, PublicToolProps, ToolProps, InteractionTypes, SVGDrawingHelper } from '../../types';
|
|
4
|
-
import { CobbAngleAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
3
|
+
import type { EventTypes, ToolHandle, PublicToolProps, ToolProps, InteractionTypes, SVGDrawingHelper, Annotation } from '../../types';
|
|
4
|
+
import type { CobbAngleAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
5
|
declare class CobbAngleTool extends AnnotationTool {
|
|
6
6
|
static toolName: any;
|
|
7
|
-
touchDragCallback: any;
|
|
8
|
-
mouseDragCallback: any;
|
|
9
7
|
angleStartedNotYetCompleted: boolean;
|
|
10
|
-
_throttledCalculateCachedStats:
|
|
8
|
+
_throttledCalculateCachedStats: Function;
|
|
11
9
|
editData: {
|
|
12
|
-
annotation:
|
|
10
|
+
annotation: Annotation;
|
|
13
11
|
viewportIdsToRender: string[];
|
|
14
12
|
handleIndex?: number;
|
|
15
13
|
movingTextBox?: boolean;
|
|
@@ -28,7 +26,7 @@ declare class CobbAngleTool extends AnnotationTool {
|
|
|
28
26
|
_mouseUpCallback: (evt: EventTypes.MouseUpEventType | EventTypes.MouseClickEventType) => void;
|
|
29
27
|
_mouseDownCallback: (evt: EventTypes.MouseUpEventType | EventTypes.MouseClickEventType) => void;
|
|
30
28
|
_mouseDragCallback: (evt: EventTypes.MouseDragEventType | EventTypes.MouseMoveEventType) => void;
|
|
31
|
-
cancel: (element: HTMLDivElement) =>
|
|
29
|
+
cancel: (element: HTMLDivElement) => string;
|
|
32
30
|
_activateModify: (element: HTMLDivElement) => void;
|
|
33
31
|
_deactivateModify: (element: HTMLDivElement) => void;
|
|
34
32
|
_activateDraw: (element: HTMLDivElement) => void;
|
|
@@ -10,7 +10,7 @@ import * as lineSegment from '../../utilities/math/line';
|
|
|
10
10
|
import angleBetweenLines from '../../utilities/math/angle/angleBetweenLines';
|
|
11
11
|
import { midPoint2 } from '../../utilities/math/midPoint';
|
|
12
12
|
import { drawHandles as drawHandlesSvg, drawLine as drawLineSvg, drawLinkedTextBox as drawLinkedTextBoxSvg, drawTextBox as drawTextBoxSvg, } from '../../drawingSvg';
|
|
13
|
-
import { state } from '../../store';
|
|
13
|
+
import { state } from '../../store/state';
|
|
14
14
|
import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters';
|
|
15
15
|
import { getTextBoxCoordsCanvas } from '../../utilities/drawing';
|
|
16
16
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
-
import { EventTypes, PublicToolProps, SVGDrawingHelper, ToolProps } from '../../types';
|
|
2
|
+
import type { Annotation, EventTypes, PublicToolProps, SVGDrawingHelper, ToolProps } from '../../types';
|
|
3
3
|
import ProbeTool from './ProbeTool';
|
|
4
|
-
import { ProbeAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
4
|
+
import type { ProbeAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
5
|
declare class DragProbeTool extends ProbeTool {
|
|
6
6
|
static toolName: any;
|
|
7
|
-
touchDragCallback: any;
|
|
8
|
-
mouseDragCallback: any;
|
|
9
7
|
editData: {
|
|
10
|
-
annotation:
|
|
8
|
+
annotation: Annotation;
|
|
11
9
|
viewportIdsToRender: string[];
|
|
12
10
|
newAnnotation?: boolean;
|
|
13
11
|
} | null;
|
|
@@ -4,7 +4,6 @@ import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters'
|
|
|
4
4
|
import { hideElementCursor } from '../../cursors/elementCursor';
|
|
5
5
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
6
6
|
import ProbeTool from './ProbeTool';
|
|
7
|
-
import { isViewportPreScaled } from '../../utilities/viewport/isViewportPreScaled';
|
|
8
7
|
class DragProbeTool extends ProbeTool {
|
|
9
8
|
constructor(toolProps = {}, defaultToolProps = {
|
|
10
9
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -84,10 +83,6 @@ class DragProbeTool extends ProbeTool {
|
|
|
84
83
|
annotation,
|
|
85
84
|
styleSpecifier,
|
|
86
85
|
});
|
|
87
|
-
const pixelUnitsOptions = {
|
|
88
|
-
isPreScaled: isViewportPreScaled(viewport, targetId),
|
|
89
|
-
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
90
|
-
};
|
|
91
86
|
if (!data.cachedStats[targetId] ||
|
|
92
87
|
data.cachedStats[targetId].value == null) {
|
|
93
88
|
data.cachedStats[targetId] = {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { AnnotationTool } from '../base';
|
|
2
2
|
import type { Types } from '@cornerstonejs/core';
|
|
3
|
-
import { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper } from '../../types';
|
|
4
|
-
import { EllipticalROIAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
3
|
+
import type { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper, Annotation } from '../../types';
|
|
4
|
+
import type { EllipticalROIAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
5
|
declare class EllipticalROITool extends AnnotationTool {
|
|
6
6
|
static toolName: any;
|
|
7
|
-
|
|
8
|
-
mouseDragCallback: any;
|
|
9
|
-
_throttledCalculateCachedStats: any;
|
|
7
|
+
_throttledCalculateCachedStats: Function;
|
|
10
8
|
editData: {
|
|
11
|
-
annotation:
|
|
9
|
+
annotation: Annotation;
|
|
12
10
|
viewportIdsToRender: Array<string>;
|
|
13
11
|
handleIndex?: number;
|
|
14
12
|
movingTextBox?: boolean;
|
|
@@ -30,7 +28,7 @@ declare class EllipticalROITool extends AnnotationTool {
|
|
|
30
28
|
_dragDrawCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
31
29
|
_dragModifyCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
32
30
|
_dragHandle: (evt: EventTypes.InteractionEventType) => void;
|
|
33
|
-
cancel: (element: HTMLDivElement) =>
|
|
31
|
+
cancel: (element: HTMLDivElement) => string;
|
|
34
32
|
_activateModify: (element: any) => void;
|
|
35
33
|
_deactivateModify: (element: any) => void;
|
|
36
34
|
_activateDraw: (element: any) => void;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { AnnotationTool } from '../base';
|
|
2
2
|
import { getEnabledElement, VolumeViewport, utilities as csUtils, } from '@cornerstonejs/core';
|
|
3
3
|
import { getCalibratedLengthUnitsAndScale } from '../../utilities/getCalibratedUnits';
|
|
4
|
-
import { roundNumber } from '../../utilities';
|
|
5
4
|
import throttle from '../../utilities/throttle';
|
|
6
5
|
import { addAnnotation, getAnnotations, removeAnnotation, } from '../../stateManagement/annotation/annotationState';
|
|
7
6
|
import { isAnnotationLocked } from '../../stateManagement/annotation/annotationLocking';
|
|
8
7
|
import { isAnnotationVisible } from '../../stateManagement/annotation/annotationVisibility';
|
|
9
8
|
import { triggerAnnotationCompleted, triggerAnnotationModified, } from '../../stateManagement/annotation/helpers/state';
|
|
10
9
|
import { drawCircle as drawCircleSvg, drawEllipseByCoordinates as drawEllipseSvg, drawHandles as drawHandlesSvg, drawLinkedTextBox as drawLinkedTextBoxSvg, } from '../../drawingSvg';
|
|
11
|
-
import { state } from '../../store';
|
|
10
|
+
import { state } from '../../store/state';
|
|
12
11
|
import { Events } from '../../enums';
|
|
13
12
|
import { getViewportIdsWithToolToRender } from '../../utilities/viewportFilters';
|
|
14
13
|
import { getTextBoxCoordsCanvas } from '../../utilities/drawing';
|
|
@@ -16,7 +15,6 @@ import getWorldWidthAndHeightFromTwoPoints from '../../utilities/planar/getWorld
|
|
|
16
15
|
import { pointInEllipse, getCanvasEllipseCorners, } from '../../utilities/math/ellipse';
|
|
17
16
|
import { resetElementCursor, hideElementCursor, } from '../../cursors/elementCursor';
|
|
18
17
|
import triggerAnnotationRenderForViewportIds from '../../utilities/triggerAnnotationRenderForViewportIds';
|
|
19
|
-
import { pointInShapeCallback } from '../../utilities/';
|
|
20
18
|
import { getPixelValueUnits } from '../../utilities/getPixelValueUnits';
|
|
21
19
|
import { isViewportPreScaled } from '../../utilities/viewport/isViewportPreScaled';
|
|
22
20
|
import { BasicStatsCalculator } from '../../utilities/math/basic';
|
|
@@ -27,6 +25,7 @@ class EllipticalROITool extends AnnotationTool {
|
|
|
27
25
|
configuration: {
|
|
28
26
|
shadow: true,
|
|
29
27
|
preventHandleOutsideImage: false,
|
|
28
|
+
storePointData: false,
|
|
30
29
|
centerPointRadius: 0,
|
|
31
30
|
getTextLines: defaultGetTextLines,
|
|
32
31
|
statsCalculator: BasicStatsCalculator,
|
|
@@ -553,7 +552,7 @@ class EllipticalROITool extends AnnotationTool {
|
|
|
553
552
|
if (!image) {
|
|
554
553
|
continue;
|
|
555
554
|
}
|
|
556
|
-
const { dimensions, imageData, metadata } = image;
|
|
555
|
+
const { dimensions, imageData, metadata, voxelManager } = image;
|
|
557
556
|
const pos1Index = transformWorldToIndex(imageData, worldPos1);
|
|
558
557
|
pos1Index[0] = Math.floor(pos1Index[0]);
|
|
559
558
|
pos1Index[1] = Math.floor(pos1Index[1]);
|
|
@@ -597,7 +596,12 @@ class EllipticalROITool extends AnnotationTool {
|
|
|
597
596
|
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
598
597
|
};
|
|
599
598
|
const pixelValueUnits = getPixelValueUnits(metadata.Modality, annotation.metadata.referencedImageId, pixelUnitsOptions);
|
|
600
|
-
const pointsInShape =
|
|
599
|
+
const pointsInShape = voxelManager.forEach(this.configuration.statsCalculator.statsCallback, {
|
|
600
|
+
boundsIJK,
|
|
601
|
+
imageData,
|
|
602
|
+
isInObject: (pointLPS) => pointInEllipse(ellipseObj, pointLPS, { fast: true }),
|
|
603
|
+
returnPoints: this.configuration.storePointData,
|
|
604
|
+
});
|
|
601
605
|
const stats = this.configuration.statsCalculator.getStatistics();
|
|
602
606
|
cachedStats[targetId] = {
|
|
603
607
|
Modality: metadata.Modality,
|
|
@@ -652,17 +656,17 @@ function defaultGetTextLines(data, targetId) {
|
|
|
652
656
|
if (area) {
|
|
653
657
|
const areaLine = isEmptyArea
|
|
654
658
|
? `Area: Oblique not supported`
|
|
655
|
-
: `Area: ${roundNumber(area)} ${areaUnits}`;
|
|
659
|
+
: `Area: ${csUtils.roundNumber(area)} ${areaUnits}`;
|
|
656
660
|
textLines.push(areaLine);
|
|
657
661
|
}
|
|
658
662
|
if (mean) {
|
|
659
|
-
textLines.push(`Mean: ${roundNumber(mean)} ${pixelValueUnits}`);
|
|
663
|
+
textLines.push(`Mean: ${csUtils.roundNumber(mean)} ${pixelValueUnits}`);
|
|
660
664
|
}
|
|
661
665
|
if (max) {
|
|
662
|
-
textLines.push(`Max: ${roundNumber(max)} ${pixelValueUnits}`);
|
|
666
|
+
textLines.push(`Max: ${csUtils.roundNumber(max)} ${pixelValueUnits}`);
|
|
663
667
|
}
|
|
664
668
|
if (stdDev) {
|
|
665
|
-
textLines.push(`Std Dev: ${roundNumber(stdDev)} ${pixelValueUnits}`);
|
|
669
|
+
textLines.push(`Std Dev: ${csUtils.roundNumber(stdDev)} ${pixelValueUnits}`);
|
|
666
670
|
}
|
|
667
671
|
return textLines;
|
|
668
672
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Types } from '@cornerstonejs/core';
|
|
2
|
+
import { AnnotationTool } from '../base';
|
|
3
|
+
import type { EventTypes, ToolHandle, PublicToolProps, ToolProps, SVGDrawingHelper, Annotation } from '../../types';
|
|
4
|
+
import type { LengthAnnotation } from '../../types/ToolSpecificAnnotationTypes';
|
|
5
|
+
declare class HeightTool extends AnnotationTool {
|
|
6
|
+
static toolName: any;
|
|
7
|
+
_throttledCalculateCachedStats: Function;
|
|
8
|
+
editData: {
|
|
9
|
+
annotation: Annotation;
|
|
10
|
+
viewportIdsToRender: string[];
|
|
11
|
+
handleIndex?: number;
|
|
12
|
+
movingTextBox?: boolean;
|
|
13
|
+
newAnnotation?: boolean;
|
|
14
|
+
hasMoved?: boolean;
|
|
15
|
+
} | null;
|
|
16
|
+
isDrawing: boolean;
|
|
17
|
+
isHandleOutsideImage: boolean;
|
|
18
|
+
midX: number;
|
|
19
|
+
constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps);
|
|
20
|
+
addNewAnnotation: (evt: EventTypes.InteractionEventType) => LengthAnnotation;
|
|
21
|
+
isPointNearTool: (element: HTMLDivElement, annotation: LengthAnnotation, canvasCoords: Types.Point2, proximity: number) => boolean;
|
|
22
|
+
toolSelectedCallback: (evt: EventTypes.InteractionEventType, annotation: LengthAnnotation) => void;
|
|
23
|
+
handleSelectedCallback(evt: EventTypes.InteractionEventType, annotation: LengthAnnotation, handle: ToolHandle): void;
|
|
24
|
+
_endCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
25
|
+
_dragCallback: (evt: EventTypes.InteractionEventType) => void;
|
|
26
|
+
cancel: (element: HTMLDivElement) => string;
|
|
27
|
+
_activateModify: (element: HTMLDivElement) => void;
|
|
28
|
+
_deactivateModify: (element: HTMLDivElement) => void;
|
|
29
|
+
_activateDraw: (element: HTMLDivElement) => void;
|
|
30
|
+
_deactivateDraw: (element: HTMLDivElement) => void;
|
|
31
|
+
renderAnnotation: (enabledElement: Types.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean;
|
|
32
|
+
_calculateHeight(pos1: any, pos2: any): number;
|
|
33
|
+
_calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any): any;
|
|
34
|
+
_isInsideVolume(index1: any, index2: any, dimensions: any): boolean;
|
|
35
|
+
}
|
|
36
|
+
export default HeightTool;
|