@cornerstonejs/tools 0.1.3 → 0.4.1
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/{stateManagement/segmentation/helpers → constants}/COLOR_LUT.d.ts +0 -0
- package/dist/cjs/{stateManagement/segmentation/helpers → constants}/COLOR_LUT.js +0 -0
- package/dist/{esm/stateManagement/segmentation/helpers → cjs/constants}/COLOR_LUT.js.map +1 -1
- package/dist/cjs/constants/index.d.ts +2 -0
- package/dist/cjs/constants/index.js +9 -0
- package/dist/cjs/constants/index.js.map +1 -0
- package/dist/cjs/drawingSvg/index.d.ts +0 -11
- package/dist/cjs/drawingSvg/index.js +0 -10
- package/dist/cjs/drawingSvg/index.js.map +1 -1
- package/dist/cjs/enums/Events.d.ts +3 -2
- package/dist/cjs/enums/Events.js +3 -2
- package/dist/cjs/enums/Events.js.map +1 -1
- package/dist/cjs/eventDispatchers/mouseEventHandlers/mouseMove.js +9 -0
- package/dist/cjs/eventDispatchers/mouseEventHandlers/mouseMove.js.map +1 -1
- package/dist/cjs/eventListeners/index.d.ts +2 -2
- package/dist/cjs/eventListeners/index.js +4 -2
- package/dist/cjs/eventListeners/index.js.map +1 -1
- package/dist/cjs/eventListeners/segmentation/index.d.ts +4 -2
- package/dist/cjs/eventListeners/segmentation/index.js +7 -3
- package/dist/cjs/eventListeners/segmentation/index.js.map +1 -1
- package/dist/cjs/eventListeners/segmentation/segmentationDataModifiedEventListener.js +16 -15
- package/dist/cjs/eventListeners/segmentation/segmentationDataModifiedEventListener.js.map +1 -1
- package/dist/cjs/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +3 -0
- package/dist/cjs/eventListeners/segmentation/segmentationModifiedEventListener.js +18 -0
- package/dist/cjs/eventListeners/segmentation/segmentationModifiedEventListener.js.map +1 -0
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +3 -0
- package/dist/cjs/eventListeners/segmentation/{segmentationStateModifiedEventListener.js → segmentationRepresentationModifiedEventListener.js} +3 -3
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js.map +1 -0
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +3 -0
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js +12 -0
- package/dist/cjs/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js.map +1 -0
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/init.js +34 -22
- package/dist/cjs/init.js.map +1 -1
- package/dist/cjs/stateManagement/index.d.ts +2 -2
- package/dist/cjs/stateManagement/index.js +2 -2
- package/dist/cjs/stateManagement/index.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.d.ts +15 -18
- package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.js +87 -120
- package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.d.ts +4 -12
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.js +15 -19
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/addSegmentationRepresentations.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentationRepresentations.js +41 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentationRepresentations.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentations.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentations.js +17 -0
- package/dist/cjs/stateManagement/segmentation/addSegmentations.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/createNewSegmentationForToolGroup.js +5 -5
- package/dist/cjs/stateManagement/segmentation/createNewSegmentationForToolGroup.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/helpers/index.d.ts +2 -4
- package/dist/cjs/stateManagement/segmentation/helpers/index.js +3 -7
- package/dist/cjs/stateManagement/segmentation/helpers/index.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/helpers/normalizeSegmentationInput.js +18 -0
- package/dist/cjs/stateManagement/segmentation/helpers/normalizeSegmentationInput.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +3 -0
- package/dist/cjs/stateManagement/segmentation/helpers/validateSegmentationInput.js +45 -0
- package/dist/cjs/stateManagement/segmentation/helpers/validateSegmentationInput.js.map +1 -0
- package/dist/cjs/stateManagement/segmentation/index.d.ts +3 -2
- package/dist/cjs/stateManagement/segmentation/index.js +5 -3
- package/dist/cjs/stateManagement/segmentation/index.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts +1 -1
- package/dist/cjs/stateManagement/segmentation/removeSegmentationsFromToolGroup.js +21 -16
- package/dist/cjs/stateManagement/segmentation/removeSegmentationsFromToolGroup.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentIndex.d.ts +2 -9
- package/dist/cjs/stateManagement/segmentation/segmentIndex.js +22 -28
- package/dist/cjs/stateManagement/segmentation/segmentIndex.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentLocking.d.ts +3 -11
- package/dist/cjs/stateManagement/segmentation/segmentLocking.js +26 -33
- package/dist/cjs/stateManagement/segmentation/segmentLocking.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationColor.d.ts +3 -8
- package/dist/cjs/stateManagement/segmentation/segmentationColor.js +5 -6
- package/dist/cjs/stateManagement/segmentation/segmentationColor.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.d.ts +8 -25
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.js +16 -54
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationState.d.ts +16 -19
- package/dist/cjs/stateManagement/segmentation/segmentationState.js +80 -97
- package/dist/cjs/stateManagement/segmentation/segmentationState.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.d.ts +2 -7
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.js +12 -11
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/triggerSegmentationEvents.d.ts +5 -4
- package/dist/cjs/stateManagement/segmentation/triggerSegmentationEvents.js +37 -21
- package/dist/cjs/stateManagement/segmentation/triggerSegmentationEvents.js.map +1 -1
- package/dist/cjs/store/ToolGroupManager/destroy.js +2 -2
- package/dist/cjs/store/ToolGroupManager/destroy.js.map +1 -1
- package/dist/cjs/store/ToolGroupManager/destroyToolGroupById.d.ts +2 -0
- package/dist/cjs/store/ToolGroupManager/{destroyToolGroupByToolGroupId.js → destroyToolGroupById.js} +3 -3
- package/dist/cjs/store/ToolGroupManager/destroyToolGroupById.js.map +1 -0
- package/dist/cjs/store/ToolGroupManager/getToolGroupById.d.ts +3 -0
- package/dist/cjs/store/ToolGroupManager/{getToolGroupByToolGroupId.js → getToolGroupById.js} +3 -3
- package/dist/cjs/store/ToolGroupManager/getToolGroupById.js.map +1 -0
- package/dist/cjs/store/ToolGroupManager/index.d.ts +3 -12
- package/dist/cjs/store/ToolGroupManager/index.js +5 -13
- package/dist/cjs/store/ToolGroupManager/index.js.map +1 -1
- package/dist/cjs/tools/CrosshairsTool.js +26 -7
- package/dist/cjs/tools/CrosshairsTool.js.map +1 -1
- package/dist/cjs/tools/annotation/BidirectionalTool.js +25 -6
- package/dist/cjs/tools/annotation/BidirectionalTool.js.map +1 -1
- package/dist/cjs/tools/annotation/LengthTool.js +21 -2
- package/dist/cjs/tools/annotation/LengthTool.js.map +1 -1
- package/dist/cjs/tools/annotation/RectangleRoiTool.js +21 -2
- package/dist/cjs/tools/annotation/RectangleRoiTool.js.map +1 -1
- package/dist/cjs/tools/base/AnnotationTool.d.ts +1 -1
- package/dist/cjs/tools/base/AnnotationTool.js +3 -0
- package/dist/cjs/tools/base/AnnotationTool.js.map +1 -1
- package/dist/cjs/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +2 -0
- package/dist/cjs/tools/displayTools/Labelmap/addLabelmapToElement.js +29 -0
- package/dist/cjs/tools/displayTools/Labelmap/addLabelmapToElement.js.map +1 -0
- package/dist/cjs/tools/displayTools/Labelmap/index.d.ts +3 -3
- package/dist/cjs/tools/displayTools/Labelmap/index.js +5 -5
- package/dist/cjs/tools/displayTools/Labelmap/labelmapConfig.d.ts +5 -0
- package/dist/cjs/tools/displayTools/Labelmap/{LabelmapConfig.js → labelmapConfig.js} +1 -1
- package/dist/cjs/tools/displayTools/Labelmap/labelmapConfig.js.map +1 -0
- package/dist/cjs/tools/displayTools/Labelmap/labelmapDisplay.d.ts +11 -0
- package/dist/cjs/tools/displayTools/Labelmap/{LabelmapDisplay.js → labelmapDisplay.js} +68 -59
- package/dist/cjs/tools/displayTools/Labelmap/labelmapDisplay.js.map +1 -0
- package/dist/cjs/tools/displayTools/Labelmap/removeLabelmapFromElement.d.ts +2 -0
- package/dist/cjs/tools/displayTools/Labelmap/removeLabelmapFromElement.js +12 -0
- package/dist/cjs/tools/displayTools/Labelmap/removeLabelmapFromElement.js.map +1 -0
- package/dist/cjs/tools/displayTools/Labelmap/validateRepresentationData.d.ts +3 -0
- package/dist/cjs/tools/displayTools/Labelmap/validateRepresentationData.js +18 -0
- package/dist/cjs/tools/displayTools/Labelmap/validateRepresentationData.js.map +1 -0
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.d.ts +2 -2
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.js +20 -19
- package/dist/cjs/tools/displayTools/SegmentationDisplayTool.js.map +1 -1
- package/dist/cjs/tools/index.d.ts +2 -1
- package/dist/cjs/tools/index.js +3 -1
- package/dist/cjs/tools/index.js.map +1 -1
- package/dist/cjs/tools/segmentation/BrushTool.d.ts +17 -0
- package/dist/cjs/tools/segmentation/BrushTool.js +285 -0
- package/dist/cjs/tools/segmentation/BrushTool.js.map +1 -0
- package/dist/cjs/tools/segmentation/CircleScissorsTool.d.ts +2 -2
- package/dist/cjs/tools/segmentation/CircleScissorsTool.js +13 -10
- package/dist/cjs/tools/segmentation/CircleScissorsTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/RectangleRoiThresholdTool.d.ts +1 -1
- package/dist/cjs/tools/segmentation/RectangleRoiThresholdTool.js +1 -1
- package/dist/cjs/tools/segmentation/RectangleRoiThresholdTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/RectangleScissorsTool.d.ts +2 -2
- package/dist/cjs/tools/segmentation/RectangleScissorsTool.js +13 -10
- package/dist/cjs/tools/segmentation/RectangleScissorsTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/SphereScissorsTool.d.ts +2 -2
- package/dist/cjs/tools/segmentation/SphereScissorsTool.js +13 -10
- package/dist/cjs/tools/segmentation/SphereScissorsTool.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/eraseRectangle.d.ts +1 -2
- package/dist/cjs/tools/segmentation/strategies/eraseRectangle.js +2 -2
- package/dist/cjs/tools/segmentation/strategies/eraseRectangle.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillCircle.d.ts +1 -2
- package/dist/cjs/tools/segmentation/strategies/fillCircle.js +6 -3
- package/dist/cjs/tools/segmentation/strategies/fillCircle.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillRectangle.d.ts +1 -2
- package/dist/cjs/tools/segmentation/strategies/fillRectangle.js +2 -2
- package/dist/cjs/tools/segmentation/strategies/fillRectangle.js.map +1 -1
- package/dist/cjs/tools/segmentation/strategies/fillSphere.d.ts +1 -2
- package/dist/cjs/tools/segmentation/strategies/fillSphere.js +2 -2
- package/dist/cjs/tools/segmentation/strategies/fillSphere.js.map +1 -1
- package/dist/cjs/types/EventTypes.d.ts +14 -8
- package/dist/cjs/types/LabelmapTypes.d.ts +19 -0
- package/dist/cjs/types/{SegmentationRepresentationTypes.js → LabelmapTypes.js} +1 -1
- package/dist/cjs/types/LabelmapTypes.js.map +1 -0
- package/dist/cjs/types/SegmentationStateTypes.d.ts +41 -32
- package/dist/cjs/types/index.d.ts +2 -3
- package/dist/cjs/utilities/drawing/index.d.ts +0 -4
- package/dist/cjs/utilities/drawing/index.js +0 -1
- package/dist/cjs/utilities/drawing/index.js.map +1 -1
- package/dist/cjs/utilities/getAnnotationNearPoint.js +20 -4
- package/dist/cjs/utilities/getAnnotationNearPoint.js.map +1 -1
- package/dist/cjs/utilities/index.d.ts +0 -21
- package/dist/cjs/utilities/index.js +0 -20
- package/dist/cjs/utilities/index.js.map +1 -1
- package/dist/cjs/utilities/math/ellipse/index.d.ts +0 -5
- package/dist/cjs/utilities/math/ellipse/index.js +0 -1
- package/dist/cjs/utilities/math/ellipse/index.js.map +1 -1
- package/dist/cjs/utilities/math/index.d.ts +4 -23
- package/dist/cjs/utilities/math/index.js +26 -11
- package/dist/cjs/utilities/math/index.js.map +1 -1
- package/dist/cjs/utilities/math/line/distanceToPoint.d.ts +1 -1
- package/dist/cjs/utilities/math/line/index.d.ts +1 -6
- package/dist/cjs/utilities/math/line/index.js +4 -6
- package/dist/cjs/utilities/math/line/index.js.map +1 -1
- package/dist/cjs/utilities/math/line/intersectLine.d.ts +1 -1
- package/dist/cjs/utilities/math/rectangle/distanceToPoint.js +20 -4
- package/dist/cjs/utilities/math/rectangle/distanceToPoint.js.map +1 -1
- package/dist/cjs/utilities/math/rectangle/index.d.ts +1 -4
- package/dist/cjs/utilities/math/rectangle/index.js +2 -4
- package/dist/cjs/utilities/math/rectangle/index.js.map +1 -1
- package/dist/cjs/utilities/math/vec2/index.d.ts +1 -5
- package/dist/cjs/utilities/math/vec2/index.js +3 -1
- package/dist/cjs/utilities/math/vec2/index.js.map +1 -1
- package/dist/cjs/utilities/segmentation/getBoundingBoxUtils.js +3 -3
- package/dist/cjs/utilities/segmentation/getBoundingBoxUtils.js.map +1 -1
- package/dist/cjs/utilities/segmentation/getDefaultRepresentationConfig.d.ts +2 -1
- package/dist/cjs/utilities/segmentation/getDefaultRepresentationConfig.js +4 -3
- package/dist/cjs/utilities/segmentation/getDefaultRepresentationConfig.js.map +1 -1
- package/dist/cjs/utilities/segmentation/index.d.ts +1 -12
- package/dist/cjs/utilities/segmentation/index.js +1 -12
- package/dist/cjs/utilities/segmentation/index.js.map +1 -1
- package/dist/cjs/utilities/segmentation/isValidRepresentationConfig.js +2 -2
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRange.d.ts +2 -2
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRange.js +10 -9
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRange.js.map +1 -1
- package/dist/cjs/utilities/triggerSegmentationRender.js +1 -1
- package/dist/cjs/utilities/triggerSegmentationRender.js.map +1 -1
- package/dist/cjs/utilities/viewportFilters/index.d.ts +0 -6
- package/dist/cjs/utilities/viewportFilters/index.js +0 -5
- package/dist/cjs/utilities/viewportFilters/index.js.map +1 -1
- package/dist/esm/{stateManagement/segmentation/helpers → constants}/COLOR_LUT.d.ts +0 -0
- package/dist/esm/{stateManagement/segmentation/helpers → constants}/COLOR_LUT.js +0 -0
- package/dist/esm/constants/COLOR_LUT.js.map +1 -0
- package/dist/esm/constants/index.d.ts +2 -0
- package/dist/esm/constants/index.js +3 -0
- package/dist/esm/constants/index.js.map +1 -0
- package/dist/esm/drawingSvg/index.d.ts +0 -11
- package/dist/esm/drawingSvg/index.js +0 -10
- package/dist/esm/drawingSvg/index.js.map +1 -1
- package/dist/esm/enums/Events.d.ts +3 -2
- package/dist/esm/enums/Events.js +3 -2
- package/dist/esm/enums/Events.js.map +1 -1
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseMove.js +9 -0
- package/dist/esm/eventDispatchers/mouseEventHandlers/mouseMove.js.map +1 -1
- package/dist/esm/eventListeners/index.d.ts +2 -2
- package/dist/esm/eventListeners/index.js +2 -2
- package/dist/esm/eventListeners/index.js.map +1 -1
- package/dist/esm/eventListeners/segmentation/index.d.ts +4 -2
- package/dist/esm/eventListeners/segmentation/index.js +4 -2
- package/dist/esm/eventListeners/segmentation/index.js.map +1 -1
- package/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.js +16 -15
- package/dist/esm/eventListeners/segmentation/segmentationDataModifiedEventListener.js.map +1 -1
- package/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +3 -0
- package/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.js +16 -0
- package/dist/esm/eventListeners/segmentation/segmentationModifiedEventListener.js.map +1 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +3 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js +7 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js.map +1 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +3 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js +7 -0
- package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js.map +1 -0
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/init.js +16 -20
- package/dist/esm/init.js.map +1 -1
- package/dist/esm/stateManagement/index.d.ts +2 -2
- package/dist/esm/stateManagement/index.js +2 -2
- package/dist/esm/stateManagement/index.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.d.ts +15 -18
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js +87 -122
- package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/activeSegmentation.d.ts +4 -12
- package/dist/esm/stateManagement/segmentation/activeSegmentation.js +14 -18
- package/dist/esm/stateManagement/segmentation/activeSegmentation.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.js +23 -0
- package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/addSegmentations.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/addSegmentations.js +12 -0
- package/dist/esm/stateManagement/segmentation/addSegmentations.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/createNewSegmentationForToolGroup.js +6 -6
- package/dist/esm/stateManagement/segmentation/createNewSegmentationForToolGroup.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/helpers/index.d.ts +2 -4
- package/dist/esm/stateManagement/segmentation/helpers/index.js +2 -4
- package/dist/esm/stateManagement/segmentation/helpers/index.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.js +18 -0
- package/dist/esm/stateManagement/segmentation/helpers/normalizeSegmentationInput.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +3 -0
- package/dist/esm/stateManagement/segmentation/helpers/validateSegmentationInput.js +21 -0
- package/dist/esm/stateManagement/segmentation/helpers/validateSegmentationInput.js.map +1 -0
- package/dist/esm/stateManagement/segmentation/index.d.ts +3 -2
- package/dist/esm/stateManagement/segmentation/index.js +3 -2
- package/dist/esm/stateManagement/segmentation/index.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts +1 -1
- package/dist/esm/stateManagement/segmentation/removeSegmentationsFromToolGroup.js +23 -18
- package/dist/esm/stateManagement/segmentation/removeSegmentationsFromToolGroup.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentIndex.d.ts +2 -9
- package/dist/esm/stateManagement/segmentation/segmentIndex.js +25 -31
- package/dist/esm/stateManagement/segmentation/segmentIndex.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentLocking.d.ts +3 -11
- package/dist/esm/stateManagement/segmentation/segmentLocking.js +29 -36
- package/dist/esm/stateManagement/segmentation/segmentLocking.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationColor.d.ts +3 -8
- package/dist/esm/stateManagement/segmentation/segmentationColor.js +5 -6
- package/dist/esm/stateManagement/segmentation/segmentationColor.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationConfig.d.ts +8 -25
- package/dist/esm/stateManagement/segmentation/segmentationConfig.js +12 -58
- package/dist/esm/stateManagement/segmentation/segmentationConfig.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationState.d.ts +16 -19
- package/dist/esm/stateManagement/segmentation/segmentationState.js +68 -91
- package/dist/esm/stateManagement/segmentation/segmentationState.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.d.ts +2 -7
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.js +14 -13
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.d.ts +5 -4
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js +35 -20
- package/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js.map +1 -1
- package/dist/esm/store/ToolGroupManager/destroy.js +2 -2
- package/dist/esm/store/ToolGroupManager/destroy.js.map +1 -1
- package/dist/esm/store/ToolGroupManager/destroyToolGroupById.d.ts +2 -0
- package/dist/esm/store/ToolGroupManager/{destroyToolGroupByToolGroupId.js → destroyToolGroupById.js} +3 -3
- package/dist/esm/store/ToolGroupManager/destroyToolGroupById.js.map +1 -0
- package/dist/esm/store/ToolGroupManager/getToolGroupById.d.ts +3 -0
- package/dist/esm/store/ToolGroupManager/getToolGroupById.js +6 -0
- package/dist/esm/store/ToolGroupManager/getToolGroupById.js.map +1 -0
- package/dist/esm/store/ToolGroupManager/index.d.ts +3 -12
- package/dist/esm/store/ToolGroupManager/index.js +3 -11
- package/dist/esm/store/ToolGroupManager/index.js.map +1 -1
- package/dist/esm/tools/CrosshairsTool.js +1 -1
- package/dist/esm/tools/CrosshairsTool.js.map +1 -1
- package/dist/esm/tools/annotation/BidirectionalTool.js +1 -1
- package/dist/esm/tools/annotation/BidirectionalTool.js.map +1 -1
- package/dist/esm/tools/annotation/LengthTool.js +1 -1
- package/dist/esm/tools/annotation/LengthTool.js.map +1 -1
- package/dist/esm/tools/annotation/RectangleRoiTool.js +1 -1
- package/dist/esm/tools/annotation/RectangleRoiTool.js.map +1 -1
- package/dist/esm/tools/base/AnnotationTool.d.ts +1 -1
- package/dist/esm/tools/base/AnnotationTool.js +3 -0
- package/dist/esm/tools/base/AnnotationTool.js.map +1 -1
- package/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +2 -0
- package/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.js +16 -0
- package/dist/esm/tools/displayTools/Labelmap/addLabelmapToElement.js.map +1 -0
- package/dist/esm/tools/displayTools/Labelmap/index.d.ts +3 -3
- package/dist/esm/tools/displayTools/Labelmap/index.js +3 -3
- package/dist/esm/tools/displayTools/Labelmap/labelmapConfig.d.ts +5 -0
- package/dist/esm/tools/displayTools/Labelmap/{LabelmapConfig.js → labelmapConfig.js} +1 -1
- package/dist/esm/tools/displayTools/Labelmap/labelmapConfig.js.map +1 -0
- package/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.d.ts +11 -0
- package/dist/esm/tools/displayTools/Labelmap/{LabelmapDisplay.js → labelmapDisplay.js} +70 -61
- package/dist/esm/tools/displayTools/Labelmap/labelmapDisplay.js.map +1 -0
- package/dist/esm/tools/displayTools/Labelmap/removeLabelmapFromElement.d.ts +2 -0
- package/dist/esm/tools/displayTools/Labelmap/removeLabelmapFromElement.js +10 -0
- package/dist/esm/tools/displayTools/Labelmap/removeLabelmapFromElement.js.map +1 -0
- package/dist/esm/tools/displayTools/Labelmap/validateRepresentationData.d.ts +3 -0
- package/dist/esm/tools/displayTools/Labelmap/validateRepresentationData.js +16 -0
- package/dist/esm/tools/displayTools/Labelmap/validateRepresentationData.js.map +1 -0
- package/dist/esm/tools/displayTools/SegmentationDisplayTool.d.ts +2 -2
- package/dist/esm/tools/displayTools/SegmentationDisplayTool.js +24 -23
- package/dist/esm/tools/displayTools/SegmentationDisplayTool.js.map +1 -1
- package/dist/esm/tools/index.d.ts +2 -1
- package/dist/esm/tools/index.js +2 -1
- package/dist/esm/tools/index.js.map +1 -1
- package/dist/esm/tools/segmentation/BrushTool.d.ts +17 -0
- package/dist/esm/tools/segmentation/BrushTool.js +279 -0
- package/dist/esm/tools/segmentation/BrushTool.js.map +1 -0
- package/dist/esm/tools/segmentation/CircleScissorsTool.d.ts +2 -2
- package/dist/esm/tools/segmentation/CircleScissorsTool.js +13 -10
- package/dist/esm/tools/segmentation/CircleScissorsTool.js.map +1 -1
- package/dist/esm/tools/segmentation/RectangleRoiThresholdTool.d.ts +1 -1
- package/dist/esm/tools/segmentation/RectangleRoiThresholdTool.js +1 -1
- package/dist/esm/tools/segmentation/RectangleRoiThresholdTool.js.map +1 -1
- package/dist/esm/tools/segmentation/RectangleScissorsTool.d.ts +2 -2
- package/dist/esm/tools/segmentation/RectangleScissorsTool.js +13 -10
- package/dist/esm/tools/segmentation/RectangleScissorsTool.js.map +1 -1
- package/dist/esm/tools/segmentation/SphereScissorsTool.d.ts +2 -2
- package/dist/esm/tools/segmentation/SphereScissorsTool.js +13 -10
- package/dist/esm/tools/segmentation/SphereScissorsTool.js.map +1 -1
- package/dist/esm/tools/segmentation/strategies/eraseRectangle.d.ts +1 -2
- package/dist/esm/tools/segmentation/strategies/eraseRectangle.js +2 -2
- package/dist/esm/tools/segmentation/strategies/eraseRectangle.js.map +1 -1
- package/dist/esm/tools/segmentation/strategies/fillCircle.d.ts +1 -2
- package/dist/esm/tools/segmentation/strategies/fillCircle.js +6 -3
- package/dist/esm/tools/segmentation/strategies/fillCircle.js.map +1 -1
- package/dist/esm/tools/segmentation/strategies/fillRectangle.d.ts +1 -2
- package/dist/esm/tools/segmentation/strategies/fillRectangle.js +2 -2
- package/dist/esm/tools/segmentation/strategies/fillRectangle.js.map +1 -1
- package/dist/esm/tools/segmentation/strategies/fillSphere.d.ts +1 -2
- package/dist/esm/tools/segmentation/strategies/fillSphere.js +2 -2
- package/dist/esm/tools/segmentation/strategies/fillSphere.js.map +1 -1
- package/dist/esm/types/EventTypes.d.ts +14 -8
- package/dist/esm/types/LabelmapTypes.d.ts +19 -0
- package/dist/esm/types/LabelmapTypes.js +2 -0
- package/dist/esm/types/LabelmapTypes.js.map +1 -0
- package/dist/esm/types/SegmentationStateTypes.d.ts +41 -32
- package/dist/esm/types/index.d.ts +2 -3
- package/dist/esm/utilities/drawing/index.d.ts +0 -4
- package/dist/esm/utilities/drawing/index.js +0 -1
- package/dist/esm/utilities/drawing/index.js.map +1 -1
- package/dist/esm/utilities/getAnnotationNearPoint.js +1 -1
- package/dist/esm/utilities/getAnnotationNearPoint.js.map +1 -1
- package/dist/esm/utilities/index.d.ts +0 -21
- package/dist/esm/utilities/index.js +0 -20
- package/dist/esm/utilities/index.js.map +1 -1
- package/dist/esm/utilities/math/ellipse/index.d.ts +0 -5
- package/dist/esm/utilities/math/ellipse/index.js +0 -1
- package/dist/esm/utilities/math/ellipse/index.js.map +1 -1
- package/dist/esm/utilities/math/index.d.ts +4 -23
- package/dist/esm/utilities/math/index.js +4 -5
- package/dist/esm/utilities/math/index.js.map +1 -1
- package/dist/esm/utilities/math/line/distanceToPoint.d.ts +1 -1
- package/dist/esm/utilities/math/line/index.d.ts +1 -6
- package/dist/esm/utilities/math/line/index.js +1 -6
- package/dist/esm/utilities/math/line/index.js.map +1 -1
- package/dist/esm/utilities/math/line/intersectLine.d.ts +1 -1
- package/dist/esm/utilities/math/rectangle/distanceToPoint.js +1 -1
- package/dist/esm/utilities/math/rectangle/distanceToPoint.js.map +1 -1
- package/dist/esm/utilities/math/rectangle/index.d.ts +1 -4
- package/dist/esm/utilities/math/rectangle/index.js +1 -4
- package/dist/esm/utilities/math/rectangle/index.js.map +1 -1
- package/dist/esm/utilities/math/vec2/index.d.ts +1 -5
- package/dist/esm/utilities/math/vec2/index.js +1 -1
- package/dist/esm/utilities/math/vec2/index.js.map +1 -1
- package/dist/esm/utilities/segmentation/getBoundingBoxUtils.js +3 -3
- package/dist/esm/utilities/segmentation/getBoundingBoxUtils.js.map +1 -1
- package/dist/esm/utilities/segmentation/getDefaultRepresentationConfig.d.ts +2 -1
- package/dist/esm/utilities/segmentation/getDefaultRepresentationConfig.js +3 -2
- package/dist/esm/utilities/segmentation/getDefaultRepresentationConfig.js.map +1 -1
- package/dist/esm/utilities/segmentation/index.d.ts +1 -12
- package/dist/esm/utilities/segmentation/index.js +1 -11
- package/dist/esm/utilities/segmentation/index.js.map +1 -1
- package/dist/esm/utilities/segmentation/isValidRepresentationConfig.js +1 -1
- package/dist/esm/utilities/segmentation/thresholdVolumeByRange.d.ts +2 -2
- package/dist/esm/utilities/segmentation/thresholdVolumeByRange.js +10 -9
- package/dist/esm/utilities/segmentation/thresholdVolumeByRange.js.map +1 -1
- package/dist/esm/utilities/triggerSegmentationRender.js +2 -2
- package/dist/esm/utilities/triggerSegmentationRender.js.map +1 -1
- package/dist/esm/utilities/viewportFilters/index.d.ts +0 -6
- package/dist/esm/utilities/viewportFilters/index.js +0 -5
- package/dist/esm/utilities/viewportFilters/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 +8 -6
- package/dist/cjs/eventListeners/segmentation/segmentationStateModifiedEventListener.d.ts +0 -3
- package/dist/cjs/eventListeners/segmentation/segmentationStateModifiedEventListener.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/addSegmentationsForToolGroup.d.ts +0 -3
- package/dist/cjs/stateManagement/segmentation/addSegmentationsForToolGroup.js +0 -59
- package/dist/cjs/stateManagement/segmentation/addSegmentationsForToolGroup.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/helpers/COLOR_LUT.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.d.ts +0 -3
- package/dist/cjs/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.js +0 -14
- package/dist/cjs/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/helpers/internalAddSegmentationToElement.d.ts +0 -3
- package/dist/cjs/stateManagement/segmentation/helpers/internalAddSegmentationToElement.js +0 -43
- package/dist/cjs/stateManagement/segmentation/helpers/internalAddSegmentationToElement.js.map +0 -1
- package/dist/cjs/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.d.ts +0 -3
- package/dist/cjs/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.js +0 -23
- package/dist/cjs/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.js.map +0 -1
- package/dist/cjs/store/ToolGroupManager/destroyToolGroupByToolGroupId.d.ts +0 -2
- package/dist/cjs/store/ToolGroupManager/destroyToolGroupByToolGroupId.js.map +0 -1
- package/dist/cjs/store/ToolGroupManager/getToolGroupByToolGroupId.d.ts +0 -3
- package/dist/cjs/store/ToolGroupManager/getToolGroupByToolGroupId.js.map +0 -1
- package/dist/cjs/tools/displayTools/Labelmap/LabelmapConfig.d.ts +0 -13
- package/dist/cjs/tools/displayTools/Labelmap/LabelmapConfig.js.map +0 -1
- package/dist/cjs/tools/displayTools/Labelmap/LabelmapDisplay.d.ts +0 -11
- package/dist/cjs/tools/displayTools/Labelmap/LabelmapDisplay.js.map +0 -1
- package/dist/cjs/types/SegmentationRepresentationTypes.d.ts +0 -11
- package/dist/cjs/types/SegmentationRepresentationTypes.js.map +0 -1
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRoiStats.d.ts +0 -11
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRoiStats.js +0 -111
- package/dist/cjs/utilities/segmentation/thresholdVolumeByRoiStats.js.map +0 -1
- package/dist/esm/eventListeners/segmentation/segmentationStateModifiedEventListener.d.ts +0 -3
- package/dist/esm/eventListeners/segmentation/segmentationStateModifiedEventListener.js +0 -7
- package/dist/esm/eventListeners/segmentation/segmentationStateModifiedEventListener.js.map +0 -1
- package/dist/esm/stateManagement/segmentation/addSegmentationsForToolGroup.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/addSegmentationsForToolGroup.js +0 -40
- package/dist/esm/stateManagement/segmentation/addSegmentationsForToolGroup.js.map +0 -1
- package/dist/esm/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.js +0 -12
- package/dist/esm/stateManagement/segmentation/helpers/checkSegmentationDataIsValid.js.map +0 -1
- package/dist/esm/stateManagement/segmentation/helpers/internalAddSegmentationToElement.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/helpers/internalAddSegmentationToElement.js +0 -27
- package/dist/esm/stateManagement/segmentation/helpers/internalAddSegmentationToElement.js.map +0 -1
- package/dist/esm/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.d.ts +0 -3
- package/dist/esm/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.js +0 -18
- package/dist/esm/stateManagement/segmentation/helpers/internalRemoveSegmentationFromElement.js.map +0 -1
- package/dist/esm/store/ToolGroupManager/destroyToolGroupByToolGroupId.d.ts +0 -2
- package/dist/esm/store/ToolGroupManager/destroyToolGroupByToolGroupId.js.map +0 -1
- package/dist/esm/store/ToolGroupManager/getToolGroupByToolGroupId.d.ts +0 -3
- package/dist/esm/store/ToolGroupManager/getToolGroupByToolGroupId.js +0 -6
- package/dist/esm/store/ToolGroupManager/getToolGroupByToolGroupId.js.map +0 -1
- package/dist/esm/tools/displayTools/Labelmap/LabelmapConfig.d.ts +0 -13
- package/dist/esm/tools/displayTools/Labelmap/LabelmapConfig.js.map +0 -1
- package/dist/esm/tools/displayTools/Labelmap/LabelmapDisplay.d.ts +0 -11
- package/dist/esm/tools/displayTools/Labelmap/LabelmapDisplay.js.map +0 -1
- package/dist/esm/tsdoc-metadata.json +0 -11
- package/dist/esm/types/SegmentationRepresentationTypes.d.ts +0 -11
- package/dist/esm/types/SegmentationRepresentationTypes.js +0 -2
- package/dist/esm/types/SegmentationRepresentationTypes.js.map +0 -1
- package/dist/esm/utilities/segmentation/thresholdVolumeByRoiStats.d.ts +0 -11
- package/dist/esm/utilities/segmentation/thresholdVolumeByRoiStats.js +0 -86
- package/dist/esm/utilities/segmentation/thresholdVolumeByRoiStats.js.map +0 -1
- package/dist/tools.d.ts +0 -3997
|
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const labelmapConfig_1 = require("../../tools/displayTools/Labelmap/labelmapConfig");
|
|
7
7
|
const SegmentationRepresentations_1 = __importDefault(require("../../enums/SegmentationRepresentations"));
|
|
8
8
|
function isValidRepresentationConfig(representationType, config) {
|
|
9
9
|
switch (representationType) {
|
|
10
10
|
case SegmentationRepresentations_1.default.Labelmap:
|
|
11
|
-
return (0,
|
|
11
|
+
return (0, labelmapConfig_1.isValidLabelmapConfig)(config);
|
|
12
12
|
default:
|
|
13
13
|
throw new Error(`Unknown representation type: ${representationType}`);
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Types } from '@cornerstonejs/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ToolGroupSpecificRepresentation } from '../../types/SegmentationStateTypes';
|
|
3
3
|
export declare type ThresholdRangeOptions = {
|
|
4
4
|
higherThreshold: number;
|
|
5
5
|
lowerThreshold: number;
|
|
@@ -19,6 +19,6 @@ export declare type AnnotationForThresholding = {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
declare function thresholdVolumeByRange(
|
|
22
|
+
declare function thresholdVolumeByRange(annotations: AnnotationForThresholding[], referenceVolumes: Types.IImageVolume[], segmentationRepresentation: ToolGroupSpecificRepresentation, options: ThresholdRangeOptions): Types.IImageVolume;
|
|
23
23
|
export declare function extendBoundingBoxInSliceAxisIfNecessary(boundsIJK: [Types.Point2, Types.Point2, Types.Point2], numSlicesToProject: number): [Types.Point2, Types.Point2, Types.Point2];
|
|
24
24
|
export default thresholdVolumeByRange;
|
|
@@ -29,18 +29,19 @@ const utilities_1 = require("../../utilities");
|
|
|
29
29
|
const triggerSegmentationEvents_1 = require("../../stateManagement/segmentation/triggerSegmentationEvents");
|
|
30
30
|
const transformPhysicalToIndex_1 = __importDefault(require("../transformPhysicalToIndex"));
|
|
31
31
|
const SegmentationState = __importStar(require("../../stateManagement/segmentation/segmentationState"));
|
|
32
|
-
function thresholdVolumeByRange(
|
|
32
|
+
function thresholdVolumeByRange(annotations, referenceVolumes, segmentationRepresentation, options) {
|
|
33
33
|
if (referenceVolumes.length > 1) {
|
|
34
34
|
throw new Error('thresholding more than one volumes is not supported yet');
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
|
|
36
|
+
const segmentation = SegmentationState.getSegmentation(segmentationRepresentation.segmentationId);
|
|
37
|
+
const { segmentationId } = segmentationRepresentation;
|
|
38
|
+
if (!segmentation) {
|
|
38
39
|
throw new Error('No Segmentation Found');
|
|
39
40
|
}
|
|
40
|
-
const {
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const { scalarData, imageData: segmentationImageData } =
|
|
41
|
+
const { type, representations } = segmentation;
|
|
42
|
+
const { volumeId } = representations[type];
|
|
43
|
+
const segmentationVolume = core_1.cache.getVolume(volumeId);
|
|
44
|
+
const { scalarData, imageData: segmentationImageData } = segmentationVolume;
|
|
44
45
|
const { lowerThreshold, higherThreshold, numSlicesToProject, overwrite } = options;
|
|
45
46
|
if (overwrite) {
|
|
46
47
|
for (let i = 0; i < scalarData.length; i++) {
|
|
@@ -74,8 +75,8 @@ function thresholdVolumeByRange(toolGroupId, annotations, referenceVolumes, segm
|
|
|
74
75
|
};
|
|
75
76
|
(0, utilities_1.pointInShapeCallback)(segmentationImageData, () => true, callback, boundsIJK);
|
|
76
77
|
});
|
|
77
|
-
(0, triggerSegmentationEvents_1.triggerSegmentationDataModified)(
|
|
78
|
-
return
|
|
78
|
+
(0, triggerSegmentationEvents_1.triggerSegmentationDataModified)(segmentationId);
|
|
79
|
+
return segmentationVolume;
|
|
79
80
|
}
|
|
80
81
|
function extendBoundingBoxInSliceAxisIfNecessary(boundsIJK, numSlicesToProject) {
|
|
81
82
|
const extendedBoundsIJK = (0, segmentation_1.extend2DBoundingBoxInViewAxis)(boundsIJK, numSlicesToProject);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thresholdVolumeByRange.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/thresholdVolumeByRange.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA2C;AAG3C,kDAGwB;AACxB,+CAAsD;AACtD,4GAA8G;AAE9G,2FAAkE;AAClE,wGAAyF;AAiCzF,SAAS,sBAAsB,CAC7B,
|
|
1
|
+
{"version":3,"file":"thresholdVolumeByRange.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/thresholdVolumeByRange.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA2C;AAG3C,kDAGwB;AACxB,+CAAsD;AACtD,4GAA8G;AAE9G,2FAAkE;AAClE,wGAAyF;AAiCzF,SAAS,sBAAsB,CAC7B,WAAwC,EACxC,gBAAsC,EACtC,0BAA2D,EAC3D,OAA8B;IAE9B,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;KAC3E;IAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,eAAe,CACpD,0BAA0B,CAAC,cAAc,CAC1C,CAAA;IACD,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
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
_triggerRender(toolGroupId) {
|
|
51
|
-
const toolGroup = (0, ToolGroupManager_1.
|
|
51
|
+
const toolGroup = (0, ToolGroupManager_1.getToolGroupById)(toolGroupId);
|
|
52
52
|
if (!toolGroup) {
|
|
53
53
|
console.warn(`No tool group found with toolGroupId: ${toolGroupId}`);
|
|
54
54
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggerSegmentationRender.js","sourceRoot":"","sources":["../../../src/utilities/triggerSegmentationRender.ts"],"names":[],"mappings":";;;;;;AAAA,8CAM4B;AAC5B,oCAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"triggerSegmentationRender.js","sourceRoot":"","sources":["../../../src/utilities/triggerSegmentationRender.ts"],"names":[],"mappings":";;;;;;AAAA,8CAM4B;AAC5B,oCAAkD;AAClD,gEAA0E;AAE1E,4GAAmF;AAcnF,MAAM,2BAA2B;IAAjC;QACU,iBAAY,GAAgB,IAAI,GAAG,EAAE,CAAA;QACrC,uBAAkB,GAAG,KAAK,CAAA;QAC1B,0BAAqB,GAAkB,IAAI,CAAA;QA+C3C,6BAAwB,GAAG,GAAG,EAAE;YACtC,IAAI,CAAC,iBAAiB,EAAE,CAAA;YAGxB,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAA;YAE3D,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;gBACtC,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;gBAGhC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;gBAIrC,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,EAAE;oBAChC,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAA;oBAC/B,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAA;oBACjC,OAAM;iBACP;aACF;QACH,CAAC,CAAA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AyB,CAAC,WAAmB;IACpD,2BAA2B,CAAC,4BAA4B,CAAC,WAAW,CAAC,CAAA;AACvE,CAAC;AAEqC,8DAAyB;AAC/D,kBAAe,yBAAyB,CAAA"}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import filterViewportsWithFrameOfReferenceUID from './filterViewportsWithFrameOfReferenceUID';
|
|
2
2
|
import filterViewportsWithToolEnabled from './filterViewportsWithToolEnabled';
|
|
3
3
|
import getViewportIdsWithToolToRender from './getViewportIdsWithToolToRender';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
filterViewportsWithToolEnabled: typeof filterViewportsWithToolEnabled;
|
|
6
|
-
filterViewportsWithFrameOfReferenceUID: typeof filterViewportsWithFrameOfReferenceUID;
|
|
7
|
-
getViewportIdsWithToolToRender: typeof getViewportIdsWithToolToRender;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
4
|
export { filterViewportsWithToolEnabled, filterViewportsWithFrameOfReferenceUID, getViewportIdsWithToolToRender, };
|
|
@@ -10,9 +10,4 @@ const filterViewportsWithToolEnabled_1 = __importDefault(require("./filterViewpo
|
|
|
10
10
|
exports.filterViewportsWithToolEnabled = filterViewportsWithToolEnabled_1.default;
|
|
11
11
|
const getViewportIdsWithToolToRender_1 = __importDefault(require("./getViewportIdsWithToolToRender"));
|
|
12
12
|
exports.getViewportIdsWithToolToRender = getViewportIdsWithToolToRender_1.default;
|
|
13
|
-
exports.default = {
|
|
14
|
-
filterViewportsWithToolEnabled: filterViewportsWithToolEnabled_1.default,
|
|
15
|
-
filterViewportsWithFrameOfReferenceUID: filterViewportsWithFrameOfReferenceUID_1.default,
|
|
16
|
-
getViewportIdsWithToolToRender: getViewportIdsWithToolToRender_1.default,
|
|
17
|
-
};
|
|
18
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/viewportFilters/index.ts"],"names":[],"mappings":";;;;;;AAAA,sHAA6F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/viewportFilters/index.ts"],"names":[],"mappings":";;;;;;AAAA,sHAA6F;AAM3F,iDANK,gDAAsC,CAML;AALxC,sGAA6E;AAI3E,yCAJK,wCAA8B,CAIL;AAHhC,sGAA6E;AAK3E,yCALK,wCAA8B,CAKL"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"COLOR_LUT.js","sourceRoot":"","sources":["../../../src/constants/COLOR_LUT.ts"],"names":[],"mappings":"AAAA,MAAM,qBAAqB,GAAG;IAC5B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACZ,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC;IAClB,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC;IACnB,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IAClB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC;IACnB,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,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,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC;IACnB,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC;IAClB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;IACnB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC;IACnB,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;CACpB,CAAA;AAED,eAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AAEnC,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -7,14 +7,3 @@ import drawLinkedTextBox from './drawLinkedTextBox';
|
|
|
7
7
|
import drawRect from './drawRect';
|
|
8
8
|
import drawTextBox from './drawTextBox';
|
|
9
9
|
export { draw, drawCircle, drawEllipse, drawHandles, drawLine, drawLinkedTextBox, drawRect, drawTextBox, };
|
|
10
|
-
declare const _default: {
|
|
11
|
-
draw: typeof draw;
|
|
12
|
-
drawCircle: typeof drawCircle;
|
|
13
|
-
drawEllipse: typeof drawEllipse;
|
|
14
|
-
drawHandles: typeof drawHandles;
|
|
15
|
-
drawLine: typeof drawLine;
|
|
16
|
-
drawLinkedTextBox: typeof drawLinkedTextBox;
|
|
17
|
-
drawRect: typeof drawRect;
|
|
18
|
-
drawTextBox: typeof drawTextBox;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -7,14 +7,4 @@ import drawLinkedTextBox from './drawLinkedTextBox';
|
|
|
7
7
|
import drawRect from './drawRect';
|
|
8
8
|
import drawTextBox from './drawTextBox';
|
|
9
9
|
export { draw, drawCircle, drawEllipse, drawHandles, drawLine, drawLinkedTextBox, drawRect, drawTextBox, };
|
|
10
|
-
export default {
|
|
11
|
-
draw,
|
|
12
|
-
drawCircle,
|
|
13
|
-
drawEllipse,
|
|
14
|
-
drawHandles,
|
|
15
|
-
drawLine,
|
|
16
|
-
drawLinkedTextBox,
|
|
17
|
-
drawRect,
|
|
18
|
-
drawTextBox,
|
|
19
|
-
};
|
|
20
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drawingSvg/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,WAAW,MAAM,eAAe,CAAA;AACvC,OAAO,WAAW,MAAM,eAAe,CAAA;AACvC,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,iBAAiB,MAAM,qBAAqB,CAAA;AACnD,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,WAAW,MAAM,eAAe,CAAA;AAEvC,OAAO,EAIL,IAAI,EACJ,UAAU,EACV,WAAW,EACX,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,WAAW,GACZ,CAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drawingSvg/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,WAAW,MAAM,eAAe,CAAA;AACvC,OAAO,WAAW,MAAM,eAAe,CAAA;AACvC,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,iBAAiB,MAAM,qBAAqB,CAAA;AACnD,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,WAAW,MAAM,eAAe,CAAA;AAEvC,OAAO,EAIL,IAAI,EACJ,UAAU,EACV,WAAW,EACX,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,WAAW,GACZ,CAAA"}
|
|
@@ -5,9 +5,10 @@ declare enum Events {
|
|
|
5
5
|
ANNOTATION_SELECTION_CHANGE = "CORNERSTONE_TOOLS_ANNOTATION_SELECTION_CHANGE",
|
|
6
6
|
ANNOTATION_LOCK_CHANGE = "CORNERSTONE_TOOLS_ANNOTATION_LOCK_CHANGE",
|
|
7
7
|
ANNOTATION_RENDERED = "CORNERSTONE_TOOLS_ANNOTATION_RENDERED",
|
|
8
|
+
SEGMENTATION_MODIFIED = "CORNERSTONE_TOOLS_SEGMENTATION_MODIFIED",
|
|
8
9
|
SEGMENTATION_RENDERED = "CORNERSTONE_TOOLS_SEGMENTATION_RENDERED",
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
SEGMENTATION_REPRESENTATION_MODIFIED = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_MODIFIED",
|
|
11
|
+
SEGMENTATION_REPRESENTATION_REMOVED = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_REMOVED",
|
|
11
12
|
SEGMENTATION_DATA_MODIFIED = "CORNERSTONE_TOOLS_SEGMENTATION_DATA_MODIFIED",
|
|
12
13
|
KEY_DOWN = "CORNERSTONE_TOOLS_KEY_DOWN",
|
|
13
14
|
KEY_UP = "CORNERSTONE_TOOLS_KEY_UP",
|
package/dist/esm/enums/Events.js
CHANGED
|
@@ -6,9 +6,10 @@ var Events;
|
|
|
6
6
|
Events["ANNOTATION_SELECTION_CHANGE"] = "CORNERSTONE_TOOLS_ANNOTATION_SELECTION_CHANGE";
|
|
7
7
|
Events["ANNOTATION_LOCK_CHANGE"] = "CORNERSTONE_TOOLS_ANNOTATION_LOCK_CHANGE";
|
|
8
8
|
Events["ANNOTATION_RENDERED"] = "CORNERSTONE_TOOLS_ANNOTATION_RENDERED";
|
|
9
|
+
Events["SEGMENTATION_MODIFIED"] = "CORNERSTONE_TOOLS_SEGMENTATION_MODIFIED";
|
|
9
10
|
Events["SEGMENTATION_RENDERED"] = "CORNERSTONE_TOOLS_SEGMENTATION_RENDERED";
|
|
10
|
-
Events["
|
|
11
|
-
Events["
|
|
11
|
+
Events["SEGMENTATION_REPRESENTATION_MODIFIED"] = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_MODIFIED";
|
|
12
|
+
Events["SEGMENTATION_REPRESENTATION_REMOVED"] = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_REMOVED";
|
|
12
13
|
Events["SEGMENTATION_DATA_MODIFIED"] = "CORNERSTONE_TOOLS_SEGMENTATION_DATA_MODIFIED";
|
|
13
14
|
Events["KEY_DOWN"] = "CORNERSTONE_TOOLS_KEY_DOWN";
|
|
14
15
|
Events["KEY_UP"] = "CORNERSTONE_TOOLS_KEY_UP";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../src/enums/Events.ts"],"names":[],"mappings":"AAMA,IAAK,
|
|
1
|
+
{"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../src/enums/Events.ts"],"names":[],"mappings":"AAMA,IAAK,MAwNJ;AAxND,WAAK,MAAM;IAYT,iEAAuD,CAAA;IAQvD,uEAA6D,CAAA;IAQ7D,qEAA2D,CAAA;IAQ3D,uFAA6E,CAAA;IAQ7E,6EAAmE,CAAA;IAQnE,uEAA6D,CAAA;IAY7D,2EAAiE,CAAA;IAQjE,2EAAiE,CAAA;IAQjE,yGAA+F,CAAA;IAQ/F,uGAA6F,CAAA;IAQ7F,qFAA2E,CAAA;IAY3E,iDAAuC,CAAA;IAQvC,6CAAmC,CAAA;IAYnC,qDAA2C,CAAA;IAQ3C,iDAAuC,CAAA;IASvC,uEAA6D,CAAA;IAQ7D,qDAA2C,CAAA;IAU3C,qDAA2C,CAAA;IAQ3C,uDAA6C,CAAA;IAQ7C,qEAA2D,CAAA;IAQ3D,uDAA6C,CAAA;AA6B/C,CAAC,EAxNI,MAAM,KAAN,MAAM,QAwNV;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -15,6 +15,10 @@ export default function mouseMove(evt) {
|
|
|
15
15
|
const eventDetail = evt.detail;
|
|
16
16
|
const { element } = eventDetail;
|
|
17
17
|
const toolsWithAnnotations = filterToolsWithAnnotationsForElement(element, activeAndPassiveTools);
|
|
18
|
+
const toolsWithoutAnnotations = activeAndPassiveTools.filter((tool) => {
|
|
19
|
+
const doesNotHaveAnnotations = !toolsWithAnnotations.some((toolAndAnnotation) => toolAndAnnotation.tool.getToolName() === tool.getToolName());
|
|
20
|
+
return doesNotHaveAnnotations;
|
|
21
|
+
});
|
|
18
22
|
let annotationsNeedToBeRedrawn = false;
|
|
19
23
|
for (const { tool, annotations } of toolsWithAnnotations) {
|
|
20
24
|
if (typeof tool.mouseMoveCallback === 'function') {
|
|
@@ -22,6 +26,11 @@ export default function mouseMove(evt) {
|
|
|
22
26
|
tool.mouseMoveCallback(evt, annotations) || annotationsNeedToBeRedrawn;
|
|
23
27
|
}
|
|
24
28
|
}
|
|
29
|
+
toolsWithoutAnnotations.forEach((tool) => {
|
|
30
|
+
if (typeof tool.mouseMoveCallback === 'function') {
|
|
31
|
+
tool.mouseMoveCallback(evt);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
25
34
|
if (annotationsNeedToBeRedrawn === true) {
|
|
26
35
|
triggerAnnotationRender(element);
|
|
27
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mouseMove.js","sourceRoot":"","sources":["../../../../src/eventDispatchers/mouseEventHandlers/mouseMove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,oCAAoC,MAAM,kDAAkD,CAAA;AACnG,OAAO,8BAA8B,MAAM,0CAA0C,CAAA;AACrF,OAAO,uBAAuB,MAAM,yCAAyC,CAAA;AAG7E,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAA;AASrC,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,GAAuB;IAGvD,IAAI,KAAK,CAAC,qBAAqB,IAAI,KAAK,CAAC,qBAAqB,EAAE;QAC9D,OAAM;KACP;IAED,MAAM,qBAAqB,GAAG,8BAA8B,CAAC,GAAG,EAAE;QAChE,MAAM;QACN,OAAO;KACR,CAAC,CAAA;IAEF,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,CAAA;IAC9B,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAA;IAG/B,MAAM,oBAAoB,GAAG,oCAAoC,CAC/D,OAAO,EACP,qBAAqB,CACtB,CAAA;IAED,IAAI,0BAA0B,GAAG,KAAK,CAAA;IAEtC,KAAK,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,oBAAoB,EAAE;QACxD,IAAI,OAAO,IAAI,CAAC,iBAAiB,KAAK,UAAU,EAAE;YAChD,0BAA0B;gBACxB,IAAI,CAAC,iBAAiB,CAA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A;IAEF,IAAI,0BAA0B,GAAG,KAAK,CAAA;IAEtC,KAAK,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,oBAAoB,EAAE;QACxD,IAAI,OAAO,IAAI,CAAC,iBAAiB,KAAK,UAAU,EAAE;YAChD,0BAA0B;gBACxB,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,WAAW,CAAC,IAAI,0BAA0B,CAAA;SACzE;KACF;IAGD,uBAAuB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACvC,IAAI,OAAO,IAAI,CAAC,iBAAiB,KAAK,UAAU,EAAE;YAChD,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAA;SAC5B;IACH,CAAC,CAAC,CAAA;IAGF,IAAI,0BAA0B,KAAK,IAAI,EAAE;QACvC,uBAAuB,CAAC,OAAO,CAAC,CAAA;KACjC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import mouseEventListeners from './mouse';
|
|
2
2
|
import wheelEventListener from './wheel';
|
|
3
3
|
import keyEventListener from './keyboard';
|
|
4
|
-
import { segmentationDataModifiedEventListener,
|
|
4
|
+
import { segmentationDataModifiedEventListener, segmentationRepresentationModifiedEventListener, segmentationRepresentationRemovedEventListener, segmentationModifiedListener } from './segmentation';
|
|
5
5
|
import { annotationSelectionListener, annotationModifiedListener } from './annotations';
|
|
6
|
-
export { mouseEventListeners, wheelEventListener, keyEventListener,
|
|
6
|
+
export { mouseEventListeners, wheelEventListener, keyEventListener, segmentationRepresentationModifiedEventListener, segmentationModifiedListener, segmentationRepresentationRemovedEventListener, segmentationDataModifiedEventListener, annotationSelectionListener, annotationModifiedListener, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import mouseEventListeners from './mouse';
|
|
2
2
|
import wheelEventListener from './wheel';
|
|
3
3
|
import keyEventListener from './keyboard';
|
|
4
|
-
import { segmentationDataModifiedEventListener,
|
|
4
|
+
import { segmentationDataModifiedEventListener, segmentationRepresentationModifiedEventListener, segmentationRepresentationRemovedEventListener, segmentationModifiedListener, } from './segmentation';
|
|
5
5
|
import { annotationSelectionListener, annotationModifiedListener, } from './annotations';
|
|
6
|
-
export { mouseEventListeners, wheelEventListener, keyEventListener,
|
|
6
|
+
export { mouseEventListeners, wheelEventListener, keyEventListener, segmentationRepresentationModifiedEventListener, segmentationModifiedListener, segmentationRepresentationRemovedEventListener, segmentationDataModifiedEventListener, annotationSelectionListener, annotationModifiedListener, };
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/eventListeners/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,SAAS,CAAA;AACzC,OAAO,kBAAkB,MAAM,SAAS,CAAA;AACxC,OAAO,gBAAgB,MAAM,YAAY,CAAA;AACzC,OAAO,EACL,qCAAqC,EACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/eventListeners/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,SAAS,CAAA;AACzC,OAAO,kBAAkB,MAAM,SAAS,CAAA;AACxC,OAAO,gBAAgB,MAAM,YAAY,CAAA;AACzC,OAAO,EACL,qCAAqC,EACrC,+CAA+C,EAC/C,8CAA8C,EAC9C,4BAA4B,GAC7B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,eAAe,CAAA;AAGtB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,+CAA+C,EAC/C,4BAA4B,EAC5B,8CAA8C,EAC9C,qCAAqC,EACrC,2BAA2B,EAC3B,0BAA0B,GAC3B,CAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import segmentationRepresentationModifiedEventListener from './segmentationRepresentationModifiedEventListener';
|
|
2
2
|
import segmentationDataModifiedEventListener from './segmentationDataModifiedEventListener';
|
|
3
|
-
|
|
3
|
+
import segmentationRepresentationRemovedEventListener from './segmentationRepresentationRemovedEventListener';
|
|
4
|
+
import segmentationModifiedListener from './segmentationModifiedEventListener';
|
|
5
|
+
export { segmentationRepresentationModifiedEventListener, segmentationDataModifiedEventListener, segmentationRepresentationRemovedEventListener, segmentationModifiedListener, };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import segmentationRepresentationModifiedEventListener from './segmentationRepresentationModifiedEventListener';
|
|
2
2
|
import segmentationDataModifiedEventListener from './segmentationDataModifiedEventListener';
|
|
3
|
-
|
|
3
|
+
import segmentationRepresentationRemovedEventListener from './segmentationRepresentationRemovedEventListener';
|
|
4
|
+
import segmentationModifiedListener from './segmentationModifiedEventListener';
|
|
5
|
+
export { segmentationRepresentationModifiedEventListener, segmentationDataModifiedEventListener, segmentationRepresentationRemovedEventListener, segmentationModifiedListener, };
|
|
4
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/index.ts"],"names":[],"mappings":"AAAA,OAAO,+CAA+C,MAAM,mDAAmD,CAAA;AAC/G,OAAO,qCAAqC,MAAM,yCAAyC,CAAA;AAC3F,OAAO,8CAA8C,MAAM,kDAAkD,CAAA;AAC7G,OAAO,4BAA4B,MAAM,qCAAqC,CAAA;AAE9E,OAAO,EACL,+CAA+C,EAC/C,qCAAqC,EACrC,8CAA8C,EAC9C,4BAA4B,GAC7B,CAAA"}
|
|
@@ -3,29 +3,30 @@ import triggerSegmentationRender from '../../utilities/triggerSegmentationRender
|
|
|
3
3
|
import SegmentationRepresentations from '../../enums/SegmentationRepresentations';
|
|
4
4
|
import * as SegmentationState from '../../stateManagement/segmentation/segmentationState';
|
|
5
5
|
const onSegmentationDataModified = function (evt) {
|
|
6
|
-
const {
|
|
7
|
-
const
|
|
8
|
-
if (!segmentationData) {
|
|
9
|
-
console.warn(`onSegmentationDataModified: segmentationDataUID ${segmentationDataUID} not found in toolGroupId ${toolGroupId}`);
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
const { representation: { type }, } = segmentationData;
|
|
6
|
+
const { segmentationId, modifiedSlicesToUse } = evt.detail;
|
|
7
|
+
const { representations, type } = SegmentationState.getSegmentation(segmentationId);
|
|
13
8
|
let toolGroupIds;
|
|
14
9
|
if (type === SegmentationRepresentations.Labelmap) {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
if (!segmentation) {
|
|
10
|
+
const segmentationVolume = cache.getVolume(representations[type].volumeId);
|
|
11
|
+
if (!segmentationVolume) {
|
|
18
12
|
console.warn('segmentation not found in cache');
|
|
19
13
|
return;
|
|
20
14
|
}
|
|
21
|
-
const { imageData, vtkOpenGLTexture } =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
const { imageData, vtkOpenGLTexture } = segmentationVolume;
|
|
16
|
+
let slicesToUpdate;
|
|
17
|
+
if (modifiedSlicesToUse && Array.isArray(modifiedSlicesToUse)) {
|
|
18
|
+
slicesToUpdate = modifiedSlicesToUse;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
const numSlices = imageData.getDimensions()[2];
|
|
22
|
+
slicesToUpdate = [...Array(numSlices).keys()];
|
|
23
|
+
}
|
|
24
|
+
slicesToUpdate.forEach((i) => {
|
|
25
25
|
vtkOpenGLTexture.setUpdatedFrame(i);
|
|
26
26
|
});
|
|
27
27
|
imageData.modified();
|
|
28
|
-
toolGroupIds =
|
|
28
|
+
toolGroupIds =
|
|
29
|
+
SegmentationState.getToolGroupsWithSegmentation(segmentationId);
|
|
29
30
|
}
|
|
30
31
|
else {
|
|
31
32
|
throw new Error(`onSegmentationDataModified: representationType ${type} not supported yet`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmentationDataModifiedEventListener.js","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/segmentationDataModifiedEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAE3C,OAAO,yBAAyB,MAAM,2CAA2C,CAAA;AACjF,OAAO,2BAA2B,MAAM,yCAAyC,CAAA;AACjF,OAAO,KAAK,iBAAiB,MAAM,sDAAsD,CAAA;AAMzF,MAAM,0BAA0B,GAAG,UACjC,GAAsC;IAEtC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"segmentationDataModifiedEventListener.js","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/segmentationDataModifiedEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAE3C,OAAO,yBAAyB,MAAM,2CAA2C,CAAA;AACjF,OAAO,2BAA2B,MAAM,yCAAyC,CAAA;AACjF,OAAO,KAAK,iBAAiB,MAAM,sDAAsD,CAAA;AAMzF,MAAM,0BAA0B,GAAG,UACjC,GAAsC;IAEtC,MAAM,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;IAE1D,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,GAC7B,iBAAiB,CAAC,eAAe,CAAC,cAAc,CAAC,CAAA;IAEnD,IAAI,YAAY,CAAA;IAChB,IAAI,IAAI,KAAK,2BAA2B,CAAC,QAAQ,EAAE;QAEjD,MAAM,kBAAkB,GAAG,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAA;QAE1E,IAAI,CAAC,kBAAkB,EAAE;YACvB,OAAO,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAA;YAC/C,OAAM;SACP;QAED,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,kBAAkB,CAAA;QAG1D,IAAI,cAAc,CAAA;QAClB,IAAI,mBAAmB,IAAI,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE;YAC7D,cAAc,GAAG,mBAAmB,CAAA;SACrC;aAAM;YACL,MAAM,SAAS,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAA;YAC9C,cAAc,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;SAC9C;QAED,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC3B,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;QACrC,CAAC,CAAC,CAAA;QAGF,SAAS,CAAC,QAAQ,EAAE,CAAA;QACpB,YAAY;YACV,iBAAiB,CAAC,6BAA6B,CAAC,cAAc,CAAC,CAAA;KAClE;SAAM;QACL,MAAM,IAAI,KAAK,CACb,kDAAkD,IAAI,oBAAoB,CAC3E,CAAA;KACF;IAED,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;QACnC,yBAAyB,CAAC,WAAW,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,eAAe,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getToolGroupsWithSegmentation, getSegmentationRepresentations, } from '../../stateManagement/segmentation/segmentationState';
|
|
2
|
+
import { triggerSegmentationRepresentationModified } from '../../stateManagement/segmentation/triggerSegmentationEvents';
|
|
3
|
+
const segmentationModifiedListener = function (evt) {
|
|
4
|
+
const { segmentationId } = evt.detail;
|
|
5
|
+
const toolGroupIds = getToolGroupsWithSegmentation(segmentationId);
|
|
6
|
+
toolGroupIds.forEach((toolGroupId) => {
|
|
7
|
+
const segRepresentations = getSegmentationRepresentations(toolGroupId);
|
|
8
|
+
segRepresentations.forEach((representation) => {
|
|
9
|
+
if (representation.segmentationId === segmentationId) {
|
|
10
|
+
triggerSegmentationRepresentationModified(toolGroupId, representation.segmentationRepresentationUID);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export default segmentationModifiedListener;
|
|
16
|
+
//# sourceMappingURL=segmentationModifiedEventListener.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"segmentationModifiedEventListener.js","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/segmentationModifiedEventListener.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAAE,yCAAyC,EAAE,MAAM,8DAA8D,CAAA;AAMxH,MAAM,4BAA4B,GAAG,UACnC,GAAkC;IAElC,MAAM,EAAE,cAAc,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;IAErC,MAAM,YAAY,GAAG,6BAA6B,CAAC,cAAc,CAAC,CAAA;IAElE,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;QACnC,MAAM,kBAAkB,GAAG,8BAA8B,CAAC,WAAW,CAAC,CAAA;QACtE,kBAAkB,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE;YAC5C,IAAI,cAAc,CAAC,cAAc,KAAK,cAAc,EAAE;gBACpD,yCAAyC,CACvC,WAAW,EACX,cAAc,CAAC,6BAA6B,CAC7C,CAAA;aACF;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,eAAe,4BAA4B,CAAA"}
|
package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import triggerSegmentationRender from '../../utilities/triggerSegmentationRender';
|
|
2
|
+
const segmentationRepresentationModifiedListener = function (evt) {
|
|
3
|
+
const { toolGroupId } = evt.detail;
|
|
4
|
+
triggerSegmentationRender(toolGroupId);
|
|
5
|
+
};
|
|
6
|
+
export default segmentationRepresentationModifiedListener;
|
|
7
|
+
//# sourceMappingURL=segmentationRepresentationModifiedEventListener.js.map
|
package/dist/esm/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"segmentationRepresentationModifiedEventListener.js","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,MAAM,2CAA2C,CAAA;AAOjF,MAAM,0CAA0C,GAAG,UACjD,GAAgD;IAEhD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;IAClC,yBAAyB,CAAC,WAAW,CAAC,CAAA;AACxC,CAAC,CAAA;AAED,eAAe,0CAA0C,CAAA"}
|
package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import triggerSegmentationRender from '../../utilities/triggerSegmentationRender';
|
|
2
|
+
const segmentationRepresentationRemovedEventListener = function (evt) {
|
|
3
|
+
const { toolGroupId, segmentationRepresentationUID } = evt.detail;
|
|
4
|
+
triggerSegmentationRender(toolGroupId);
|
|
5
|
+
};
|
|
6
|
+
export default segmentationRepresentationRemovedEventListener;
|
|
7
|
+
//# sourceMappingURL=segmentationRepresentationRemovedEventListener.js.map
|
package/dist/esm/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"segmentationRepresentationRemovedEventListener.js","sourceRoot":"","sources":["../../../../src/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,MAAM,2CAA2C,CAAA;AAOjF,MAAM,8CAA8C,GAAG,UACrD,GAA+C;IAE/C,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,GAAG,GAAG,CAAC,MAAM,CAAA;IACjE,yBAAyB,CAAC,WAAW,CAAC,CAAA;AACxC,CAAC,CAAA;AAED,eAAe,8CAA8C,CAAA"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { init, destroy } from './init';
|
|
2
2
|
import { addTool, removeTool, ToolGroupManager, SynchronizerManager, Synchronizer, cancelActiveManipulations } from './store';
|
|
3
|
+
import * as CONSTANTS from './constants';
|
|
3
4
|
import * as synchronizers from './synchronizers';
|
|
4
5
|
import * as drawing from './drawingSvg';
|
|
5
6
|
import * as utilities from './utilities';
|
|
@@ -7,7 +8,7 @@ import * as cursors from './cursors';
|
|
|
7
8
|
import * as Types from './types';
|
|
8
9
|
import * as annotation from './stateManagement/annotation';
|
|
9
10
|
import * as segmentation from './stateManagement/segmentation';
|
|
10
|
-
import { BaseTool, AnnotationTool, PanTool, WindowLevelTool, ZoomTool, StackScrollTool, StackScrollMouseWheelTool, VolumeRotateMouseWheelTool, MIPJumpToClickTool, LengthTool, ProbeTool, RectangleRoiTool, EllipticalRoiTool, BidirectionalTool, CrosshairsTool, RectangleScissorsTool, CircleScissorsTool, SphereScissorsTool, RectangleRoiThresholdTool, RectangleRoiStartEndThresholdTool, SegmentationDisplayTool } from './tools';
|
|
11
|
+
import { BaseTool, AnnotationTool, PanTool, WindowLevelTool, ZoomTool, StackScrollTool, StackScrollMouseWheelTool, VolumeRotateMouseWheelTool, MIPJumpToClickTool, LengthTool, ProbeTool, RectangleRoiTool, EllipticalRoiTool, BidirectionalTool, CrosshairsTool, RectangleScissorsTool, CircleScissorsTool, SphereScissorsTool, RectangleRoiThresholdTool, RectangleRoiStartEndThresholdTool, SegmentationDisplayTool, BrushTool } from './tools';
|
|
11
12
|
import { MouseBindings, KeyboardBindings, ToolModes, Events, SegmentationRepresentations } from './enums';
|
|
12
13
|
declare const Enums: {
|
|
13
14
|
MouseBindings: typeof MouseBindings;
|
|
@@ -16,4 +17,4 @@ declare const Enums: {
|
|
|
16
17
|
Events: typeof Events;
|
|
17
18
|
SegmentationRepresentations: typeof SegmentationRepresentations;
|
|
18
19
|
};
|
|
19
|
-
export { init, destroy, addTool, removeTool, cancelActiveManipulations, BaseTool, AnnotationTool, PanTool, WindowLevelTool, ZoomTool, StackScrollTool, StackScrollMouseWheelTool, VolumeRotateMouseWheelTool, MIPJumpToClickTool, LengthTool, CrosshairsTool, ProbeTool, RectangleRoiTool, EllipticalRoiTool, BidirectionalTool, SegmentationDisplayTool, RectangleScissorsTool, CircleScissorsTool, SphereScissorsTool, RectangleRoiThresholdTool, RectangleRoiStartEndThresholdTool, synchronizers, Synchronizer, SynchronizerManager, Types, ToolGroupManager, Enums, drawing, annotation, segmentation, utilities, cursors, };
|
|
20
|
+
export { init, destroy, addTool, removeTool, cancelActiveManipulations, BaseTool, AnnotationTool, PanTool, WindowLevelTool, ZoomTool, StackScrollTool, StackScrollMouseWheelTool, VolumeRotateMouseWheelTool, MIPJumpToClickTool, LengthTool, CrosshairsTool, ProbeTool, RectangleRoiTool, EllipticalRoiTool, BidirectionalTool, SegmentationDisplayTool, RectangleScissorsTool, CircleScissorsTool, SphereScissorsTool, RectangleRoiThresholdTool, RectangleRoiStartEndThresholdTool, BrushTool, synchronizers, Synchronizer, SynchronizerManager, Types, ToolGroupManager, Enums, CONSTANTS, drawing, annotation, segmentation, utilities, cursors, };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { init, destroy } from './init';
|
|
2
2
|
import { addTool, removeTool, ToolGroupManager, SynchronizerManager, Synchronizer, cancelActiveManipulations, } from './store';
|
|
3
|
+
import * as CONSTANTS from './constants';
|
|
3
4
|
import * as synchronizers from './synchronizers';
|
|
4
5
|
import * as drawing from './drawingSvg';
|
|
5
6
|
import * as utilities from './utilities';
|
|
@@ -7,7 +8,7 @@ import * as cursors from './cursors';
|
|
|
7
8
|
import * as Types from './types';
|
|
8
9
|
import * as annotation from './stateManagement/annotation';
|
|
9
10
|
import * as segmentation from './stateManagement/segmentation';
|
|
10
|
-
import { BaseTool, AnnotationTool, PanTool, WindowLevelTool, ZoomTool, StackScrollTool, StackScrollMouseWheelTool, VolumeRotateMouseWheelTool, MIPJumpToClickTool, LengthTool, ProbeTool, RectangleRoiTool, EllipticalRoiTool, BidirectionalTool, CrosshairsTool, RectangleScissorsTool, CircleScissorsTool, SphereScissorsTool, RectangleRoiThresholdTool, RectangleRoiStartEndThresholdTool, SegmentationDisplayTool, } from './tools';
|
|
11
|
+
import { BaseTool, AnnotationTool, PanTool, WindowLevelTool, ZoomTool, StackScrollTool, StackScrollMouseWheelTool, VolumeRotateMouseWheelTool, MIPJumpToClickTool, LengthTool, ProbeTool, RectangleRoiTool, EllipticalRoiTool, BidirectionalTool, CrosshairsTool, RectangleScissorsTool, CircleScissorsTool, SphereScissorsTool, RectangleRoiThresholdTool, RectangleRoiStartEndThresholdTool, SegmentationDisplayTool, BrushTool, } from './tools';
|
|
11
12
|
import { MouseBindings, KeyboardBindings, ToolModes, Events, SegmentationRepresentations, } from './enums';
|
|
12
13
|
const Enums = {
|
|
13
14
|
MouseBindings,
|
|
@@ -16,5 +17,5 @@ const Enums = {
|
|
|
16
17
|
Events,
|
|
17
18
|
SegmentationRepresentations,
|
|
18
19
|
};
|
|
19
|
-
export { init, destroy, addTool, removeTool, cancelActiveManipulations, BaseTool, AnnotationTool, PanTool, WindowLevelTool, ZoomTool, StackScrollTool, StackScrollMouseWheelTool, VolumeRotateMouseWheelTool, MIPJumpToClickTool, LengthTool, CrosshairsTool, ProbeTool, RectangleRoiTool, EllipticalRoiTool, BidirectionalTool, SegmentationDisplayTool, RectangleScissorsTool, CircleScissorsTool, SphereScissorsTool, RectangleRoiThresholdTool, RectangleRoiStartEndThresholdTool, synchronizers, Synchronizer, SynchronizerManager, Types, ToolGroupManager, Enums, drawing, annotation, segmentation, utilities, cursors, };
|
|
20
|
+
export { init, destroy, addTool, removeTool, cancelActiveManipulations, BaseTool, AnnotationTool, PanTool, WindowLevelTool, ZoomTool, StackScrollTool, StackScrollMouseWheelTool, VolumeRotateMouseWheelTool, MIPJumpToClickTool, LengthTool, CrosshairsTool, ProbeTool, RectangleRoiTool, EllipticalRoiTool, BidirectionalTool, SegmentationDisplayTool, RectangleScissorsTool, CircleScissorsTool, SphereScissorsTool, RectangleRoiThresholdTool, RectangleRoiStartEndThresholdTool, BrushTool, synchronizers, Synchronizer, SynchronizerManager, Types, ToolGroupManager, Enums, CONSTANTS, drawing, annotation, segmentation, utilities, cursors, };
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EACL,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,yBAAyB,GAC1B,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EACL,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,yBAAyB,GAC1B,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AAGxC,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAA;AAC1D,OAAO,KAAK,YAAY,MAAM,gCAAgC,CAAA;AAE9D,OAA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