@cornerstonejs/tools 2.0.0-beta.4 → 2.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/tools/WindowLevelTool.js +3 -0
- package/dist/cjs/tools/WindowLevelTool.js.map +1 -1
- package/dist/cjs/tools/displayTools/Contour/contourDisplay.js.map +1 -1
- package/dist/cjs/types/index.d.ts +7 -7
- package/dist/cjs/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
- package/dist/esm/tools/WindowLevelTool.js +3 -0
- package/dist/esm/tools/WindowLevelTool.js.map +1 -1
- package/dist/esm/tools/displayTools/Contour/contourDisplay.js.map +1 -1
- package/dist/esm/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
- package/dist/{esm → types}/types/index.d.ts +7 -7
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +4 -4
- package/src/tools/WindowLevelTool.ts +3 -0
- package/src/tools/displayTools/Contour/contourDisplay.ts +0 -1
- package/src/types/index.ts +7 -7
- package/src/utilities/stackPrefetch/stackPrefetch.ts +0 -2
- /package/dist/{esm → types}/constants/COLOR_LUT.d.ts +0 -0
- /package/dist/{esm → types}/constants/index.d.ts +0 -0
- /package/dist/{esm → types}/cursors/ImageMouseCursor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/MouseCursor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/SVGCursorDescriptor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/SVGMouseCursor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/elementCursor.d.ts +0 -0
- /package/dist/{esm → types}/cursors/index.d.ts +0 -0
- /package/dist/{esm → types}/cursors/setCursorForElement.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/_getHash.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/clearByToolType.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/draw.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawArrow.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawCircle.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawEllipse.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawHandles.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawLine.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawLink.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawLinkedTextBox.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawPolyline.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawRect.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/drawTextBox.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/getSvgDrawingHelper.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/index.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/setAttributesIfNecessary.d.ts +0 -0
- /package/dist/{esm → types}/drawingSvg/setNewAttributesIfValid.d.ts +0 -0
- /package/dist/{esm → types}/enums/AnnotationStyleStates.d.ts +0 -0
- /package/dist/{esm → types}/enums/Events.d.ts +0 -0
- /package/dist/{esm → types}/enums/SegmentationRepresentations.d.ts +0 -0
- /package/dist/{esm → types}/enums/ToolBindings.d.ts +0 -0
- /package/dist/{esm → types}/enums/ToolModes.d.ts +0 -0
- /package/dist/{esm → types}/enums/Touch.d.ts +0 -0
- /package/dist/{esm → types}/enums/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/annotationModifiedEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/cameraModifiedEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/imageRenderedEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/imageSpacingCalibratedEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/keyDown.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/keyUp.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/keyboardToolEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseClick.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDoubleClick.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDown.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownActivate.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownAnnotationAction.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDrag.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseMove.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseUp.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseWheel.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/mouseToolEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/customCallbackHandler.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForKeyboardEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForMouseEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForTouchEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getMouseModifier.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getToolsWithActionsForMouseEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getToolsWithModesForMouseEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/shared/getToolsWithModesForTouchEvent.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/index.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchDrag.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchEnd.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchPress.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchStart.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchStartActivate.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchTap.d.ts +0 -0
- /package/dist/{esm → types}/eventDispatchers/touchToolEventDispatcher.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/annotations/annotationModifiedListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/annotations/annotationSelectionListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/annotations/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/keyboard/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/keyboard/keyDownListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/getMouseEventPoints.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/mouseDoubleClickListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/mouseDownListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/mouse/mouseMoveListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/segmentationDataModifiedEventListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/touch/getTouchEventPoints.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/touch/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/touch/preventGhostClick.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/touch/touchStartListener.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/wheel/index.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/wheel/normalizeWheel.d.ts +0 -0
- /package/dist/{esm → types}/eventListeners/wheel/wheelListener.d.ts +0 -0
- /package/dist/{esm → types}/index.d.ts +0 -0
- /package/dist/{esm → types}/init.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/annotationLocking.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/annotationSelection.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/annotationState.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/annotationVisibility.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/ToolStyle.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/getFont.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/getState.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/helpers.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/config/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/helpers/state.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/annotation/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/SegmentationStateManager.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/activeSegmentation.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/addSegmentationRepresentations.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/addSegmentations.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/config/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationColor.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationConfig.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationVisibility.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/helpers/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/index.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/segmentIndex.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/segmentLocking.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/segmentationState.d.ts +0 -0
- /package/dist/{esm → types}/stateManagement/segmentation/triggerSegmentationEvents.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/Synchronizer.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/createSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/destroy.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/destroySynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/getAllSynchronizers.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/getSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/getSynchronizersForViewport.d.ts +0 -0
- /package/dist/{esm → types}/store/SynchronizerManager/index.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/ToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/createToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/destroy.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/destroyToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/getAllToolGroups.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/getToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/getToolGroupForViewport.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/getToolGroupsWithToolName.d.ts +0 -0
- /package/dist/{esm → types}/store/ToolGroupManager/index.d.ts +0 -0
- /package/dist/{esm → types}/store/addEnabledElement.d.ts +0 -0
- /package/dist/{esm → types}/store/addTool.d.ts +0 -0
- /package/dist/{esm → types}/store/cancelActiveManipulations.d.ts +0 -0
- /package/dist/{esm → types}/store/filterMoveableAnnotationTools.d.ts +0 -0
- /package/dist/{esm → types}/store/filterToolsWithAnnotationsForElement.d.ts +0 -0
- /package/dist/{esm → types}/store/filterToolsWithMoveableHandles.d.ts +0 -0
- /package/dist/{esm → types}/store/index.d.ts +0 -0
- /package/dist/{esm → types}/store/removeEnabledElement.d.ts +0 -0
- /package/dist/{esm → types}/store/state.d.ts +0 -0
- /package/dist/{esm → types}/store/svgNodeCache.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/areViewportsCoplanar .d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/cameraSyncCallback.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/stackImageSyncCallback.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/voiSyncCallback.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/callbacks/zoomPanSyncCallback.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/index.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/createCameraPositionSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/createStackImageSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/createVOISynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/createZoomPanSynchronizer.d.ts +0 -0
- /package/dist/{esm → types}/synchronizers/synchronizers/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/AdvancedMagnifyTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/AdvancedMagnifyViewport.d.ts +0 -0
- /package/dist/{esm → types}/tools/AdvancedMagnifyViewportManager.d.ts +0 -0
- /package/dist/{esm → types}/tools/CrosshairsTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/MIPJumpToClickTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/MagnifyTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/OrientationMarkerTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/OverlayGridTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/PanTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/PlanarRotateTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/ReferenceCursors.d.ts +0 -0
- /package/dist/{esm → types}/tools/ReferenceLinesTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/ScaleOverlayTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/StackScrollTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/StackScrollToolMouseWheelTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/TrackballRotateTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/VolumeRotateMouseWheelTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/WindowLevelTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/ZoomTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/AngleTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/ArrowAnnotateTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/BidirectionalTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/CircleROITool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/CobbAngleTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/DragProbeTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/EllipticalROITool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/LengthTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/PlanarFreehandROITool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/ProbeTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/RectangleROITool.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/closedContourEditLoop.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/drawLoop.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/editLoopCommon.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/findOpenUShapedContourVectorToPeak.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/openContourEditLoop.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/openContourEndEditLoop.d.ts +0 -0
- /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/renderMethods.d.ts +0 -0
- /package/dist/{esm → types}/tools/base/AnnotationDisplayTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/base/AnnotationTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/base/BaseTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/base/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/addContourSetsToElement.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/addOrUpdateContourSets.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/contourConfig.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/contourConfigCache.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/contourDisplay.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/removeContourFromElement.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/updateContourSets.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Contour/utils.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/labelmapConfig.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/labelmapDisplay.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/removeLabelmapFromElement.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/Labelmap/validateRepresentationData.d.ts +0 -0
- /package/dist/{esm → types}/tools/displayTools/SegmentationDisplayTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/BrushTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/CircleScissorsTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/PaintFillTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/RectangleROIStartEndThresholdTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/RectangleROIThresholdTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/RectangleScissorsTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/SphereScissorsTool.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/eraseCircle.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/eraseRectangle.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/eraseSphere.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/fillCircle.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/fillRectangle.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/fillSphere.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/index.d.ts +0 -0
- /package/dist/{esm → types}/tools/segmentation/strategies/utils/isWithinThreshold.d.ts +0 -0
- /package/dist/{esm → types}/types/AnnotationGroupSelector.d.ts +0 -0
- /package/dist/{esm → types}/types/AnnotationStyle.d.ts +0 -0
- /package/dist/{esm → types}/types/AnnotationTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/BoundsIJK.d.ts +0 -0
- /package/dist/{esm → types}/types/CINETypes.d.ts +0 -0
- /package/dist/{esm → types}/types/CalculatorTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/ContourTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/CursorTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/EventTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/FloodFillTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/IAnnotationManager.d.ts +0 -0
- /package/dist/{esm → types}/types/IDistance.d.ts +0 -0
- /package/dist/{esm → types}/types/IPoints.d.ts +0 -0
- /package/dist/{esm → types}/types/ISetToolModeOptions.d.ts +0 -0
- /package/dist/{esm → types}/types/ISynchronizerEventHandler.d.ts +0 -0
- /package/dist/{esm → types}/types/IToolClassReference.d.ts +0 -0
- /package/dist/{esm → types}/types/IToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/types/ITouchPoints.d.ts +0 -0
- /package/dist/{esm → types}/types/InteractionTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/InternalToolTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/JumpToSliceOptions.d.ts +0 -0
- /package/dist/{esm → types}/types/LabelmapTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/PlanarBoundingBox.d.ts +0 -0
- /package/dist/{esm → types}/types/SVGDrawingHelper.d.ts +0 -0
- /package/dist/{esm → types}/types/ScrollOptions.d.ts +0 -0
- /package/dist/{esm → types}/types/SegmentationStateTypes.d.ts +0 -0
- /package/dist/{esm → types}/types/ToolAction.d.ts +0 -0
- /package/dist/{esm → types}/types/ToolHandle.d.ts +0 -0
- /package/dist/{esm → types}/types/ToolProps.d.ts +0 -0
- /package/dist/{esm → types}/types/ToolSpecificAnnotationTypes.d.ts +0 -0
- /package/dist/{esm → types}/utilities/boundingBox/extend2DBoundingBoxInViewAxis.d.ts +0 -0
- /package/dist/{esm → types}/utilities/boundingBox/getBoundingBoxAroundShape.d.ts +0 -0
- /package/dist/{esm → types}/utilities/boundingBox/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/calibrateImageSpacing.d.ts +0 -0
- /package/dist/{esm → types}/utilities/cine/events.d.ts +0 -0
- /package/dist/{esm → types}/utilities/cine/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/cine/playClip.d.ts +0 -0
- /package/dist/{esm → types}/utilities/cine/state.d.ts +0 -0
- /package/dist/{esm → types}/utilities/clip.d.ts +0 -0
- /package/dist/{esm → types}/utilities/debounce.d.ts +0 -0
- /package/dist/{esm → types}/utilities/drawing/getTextBoxCoordsCanvas.d.ts +0 -0
- /package/dist/{esm → types}/utilities/drawing/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/dynamicVolume/generateImageFromTimeData.d.ts +0 -0
- /package/dist/{esm → types}/utilities/dynamicVolume/getDataInTime.d.ts +0 -0
- /package/dist/{esm → types}/utilities/dynamicVolume/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/getAnnotationNearPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/getCalibratedUnits.d.ts +0 -0
- /package/dist/{esm → types}/utilities/getModalityUnit.d.ts +0 -0
- /package/dist/{esm → types}/utilities/getToolsWithModesForElement.d.ts +0 -0
- /package/dist/{esm → types}/utilities/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/isObject.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/angle/angleBetweenLines.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/basic/BasicStatsCalculator.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/basic/Calculator.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/basic/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/circle/_types.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/circle/getCanvasCircleCorners.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/circle/getCanvasCircleRadius.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/circle/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/ellipse/getCanvasEllipseCorners.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/ellipse/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/ellipse/pointInEllipse.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/ellipse/pointInEllipsoidWithConstraint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/line/distanceToPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/line/distanceToPointSquared.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/line/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/line/intersectLine.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/midPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/point/distanceToPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/point/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/addCanvasPointsToArray.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/calculateAreaOfPoints.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/getIntersectionWithPolyline.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/getSubPixelSpacingAndXYDirections.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/planarFreehandROIInternalTypes.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/pointCanProjectOnLine.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/pointInPolyline.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/polyline/pointsAreWithinCloseContourProximity.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/rectangle/distanceToPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/rectangle/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/sphere/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/sphere/pointInSphere.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/vec2/findClosestPoint.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/vec2/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/math/vec2/liangBarksyClip.d.ts +0 -0
- /package/dist/{esm → types}/utilities/orientation/getOrientationStringLPS.d.ts +0 -0
- /package/dist/{esm → types}/utilities/orientation/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/orientation/invertOrientationStringLPS.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/filterAnnotationsForDisplay.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/filterAnnotationsWithinSlice.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/getPointInLineOfSightWithCriteria.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/getWorldWidthAndHeightFromCorners.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/getWorldWidthAndHeightFromTwoPoints.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planar/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolateAnnotation.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolatePoints.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolation/algorithms/bspline.d.ts +0 -0
- /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolation/interpolateSegmentPoints.d.ts +0 -0
- /package/dist/{esm → types}/utilities/pointInShapeCallback.d.ts +0 -0
- /package/dist/{esm → types}/utilities/pointInSurroundingSphereCallback.d.ts +0 -0
- /package/dist/{esm → types}/utilities/rectangleROITool/getBoundsIJKFromRectangleAnnotations.d.ts +0 -0
- /package/dist/{esm → types}/utilities/rectangleROITool/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/roundNumber.d.ts +0 -0
- /package/dist/{esm → types}/utilities/scroll.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/brushSizeForToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/brushThresholdForToolGroup.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/createLabelmapVolumeForViewport.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/createMergedLabelmapForIndex.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/floodFill.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/getDefaultRepresentationConfig.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/isValidRepresentationConfig.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/rectangleROIThresholdVolumeByRange.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/thresholdSegmentationByRange.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/thresholdVolumeByRange.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/triggerSegmentationRender.d.ts +0 -0
- /package/dist/{esm → types}/utilities/segmentation/utilities.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/stackContextPrefetch.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/stackPrefetch.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/stackPrefetchUtils.d.ts +0 -0
- /package/dist/{esm → types}/utilities/stackPrefetch/state.d.ts +0 -0
- /package/dist/{esm → types}/utilities/throttle.d.ts +0 -0
- /package/dist/{esm → types}/utilities/touch/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/triggerAnnotationRender.d.ts +0 -0
- /package/dist/{esm → types}/utilities/triggerAnnotationRenderForViewportIds.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewport/index.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewport/isViewportPreScaled.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewport/jumpToSlice.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewport/jumpToWorld.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithFrameOfReferenceUID.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithParallelNormals.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithSameOrientation.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithToolEnabled.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/getViewportIdsWithToolToRender.d.ts +0 -0
- /package/dist/{esm → types}/utilities/viewportFilters/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.5",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
|
-
"types": "dist/
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
8
8
|
"repository": "https://github.com/cornerstonejs/cornerstone3D",
|
|
9
9
|
"files": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cornerstonejs/core": "^2.0.0-beta.
|
|
32
|
+
"@cornerstonejs/core": "^2.0.0-beta.5",
|
|
33
33
|
"lodash.clonedeep": "4.5.0",
|
|
34
34
|
"lodash.get": "^4.4.2"
|
|
35
35
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"type": "individual",
|
|
53
53
|
"url": "https://ohif.org/donate"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "0767e6b927df9f41cf6e59ad13837de383c15c05"
|
|
56
56
|
}
|
|
@@ -58,6 +58,9 @@ class WindowLevelTool extends BaseTool {
|
|
|
58
58
|
const properties = viewport.getProperties();
|
|
59
59
|
({ lower, upper } = properties.voiRange);
|
|
60
60
|
const volume = cache.getVolume(volumeId);
|
|
61
|
+
if (!volume) {
|
|
62
|
+
throw new Error('Volume not found ' + volumeId);
|
|
63
|
+
}
|
|
61
64
|
modality = volume.metadata.Modality;
|
|
62
65
|
isPreScaled = volume.scaling && Object.keys(volume.scaling).length > 0;
|
|
63
66
|
} else if (viewport instanceof StackViewport) {
|
|
@@ -129,7 +129,6 @@ async function render(
|
|
|
129
129
|
const contourData = segmentation.representationData[Representations.Contour];
|
|
130
130
|
const { geometryIds } = contourData;
|
|
131
131
|
|
|
132
|
-
|
|
133
132
|
// We don't have a good way to handle stack viewports for contours at the moment.
|
|
134
133
|
// Plus, if we add a segmentation to one viewport, it gets added to all the viewports in the toolGroup too.
|
|
135
134
|
if (viewport instanceof StackViewport) {
|
package/src/types/index.ts
CHANGED
|
@@ -47,17 +47,17 @@ import type {
|
|
|
47
47
|
SegmentationState,
|
|
48
48
|
RepresentationPublicInput,
|
|
49
49
|
} from './SegmentationStateTypes';
|
|
50
|
-
import ISynchronizerEventHandler from './ISynchronizerEventHandler';
|
|
51
|
-
import {
|
|
50
|
+
import type ISynchronizerEventHandler from './ISynchronizerEventHandler';
|
|
51
|
+
import type {
|
|
52
52
|
FloodFillGetter,
|
|
53
53
|
FloodFillOptions,
|
|
54
54
|
FloodFillResult,
|
|
55
55
|
} from './FloodFillTypes';
|
|
56
|
-
import IToolClassReference from './IToolClassReference';
|
|
57
|
-
import { ContourSegmentationData } from './ContourTypes';
|
|
58
|
-
import IAnnotationManager from './IAnnotationManager';
|
|
59
|
-
import AnnotationGroupSelector from './AnnotationGroupSelector';
|
|
60
|
-
import { Statistics } from './CalculatorTypes';
|
|
56
|
+
import type IToolClassReference from './IToolClassReference';
|
|
57
|
+
import type { ContourSegmentationData } from './ContourTypes';
|
|
58
|
+
import type IAnnotationManager from './IAnnotationManager';
|
|
59
|
+
import type AnnotationGroupSelector from './AnnotationGroupSelector';
|
|
60
|
+
import type { Statistics } from './CalculatorTypes';
|
|
61
61
|
|
|
62
62
|
export type {
|
|
63
63
|
// AnnotationState
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownAnnotationAction.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{esm → types}/eventListeners/segmentation/segmentationDataModifiedEventListener.d.ts
RENAMED
|
File without changes
|
/package/dist/{esm → types}/eventListeners/segmentation/segmentationModifiedEventListener.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{esm → types}/stateManagement/segmentation/addSegmentationRepresentations.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{esm → types}/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts
RENAMED
|
File without changes
|
/package/dist/{esm → types}/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{esm → types}/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{esm → types}/synchronizers/synchronizers/createCameraPositionSynchronizer.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{esm → types}/tools/annotation/planarFreehandROITool/closedContourEditLoop.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|