@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.
Files changed (391) hide show
  1. package/dist/cjs/tools/WindowLevelTool.js +3 -0
  2. package/dist/cjs/tools/WindowLevelTool.js.map +1 -1
  3. package/dist/cjs/tools/displayTools/Contour/contourDisplay.js.map +1 -1
  4. package/dist/cjs/types/index.d.ts +7 -7
  5. package/dist/cjs/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
  6. package/dist/esm/tools/WindowLevelTool.js +3 -0
  7. package/dist/esm/tools/WindowLevelTool.js.map +1 -1
  8. package/dist/esm/tools/displayTools/Contour/contourDisplay.js.map +1 -1
  9. package/dist/esm/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
  10. package/dist/{esm → types}/types/index.d.ts +7 -7
  11. package/dist/umd/index.js +1 -1
  12. package/dist/umd/index.js.map +1 -1
  13. package/package.json +4 -4
  14. package/src/tools/WindowLevelTool.ts +3 -0
  15. package/src/tools/displayTools/Contour/contourDisplay.ts +0 -1
  16. package/src/types/index.ts +7 -7
  17. package/src/utilities/stackPrefetch/stackPrefetch.ts +0 -2
  18. /package/dist/{esm → types}/constants/COLOR_LUT.d.ts +0 -0
  19. /package/dist/{esm → types}/constants/index.d.ts +0 -0
  20. /package/dist/{esm → types}/cursors/ImageMouseCursor.d.ts +0 -0
  21. /package/dist/{esm → types}/cursors/MouseCursor.d.ts +0 -0
  22. /package/dist/{esm → types}/cursors/SVGCursorDescriptor.d.ts +0 -0
  23. /package/dist/{esm → types}/cursors/SVGMouseCursor.d.ts +0 -0
  24. /package/dist/{esm → types}/cursors/elementCursor.d.ts +0 -0
  25. /package/dist/{esm → types}/cursors/index.d.ts +0 -0
  26. /package/dist/{esm → types}/cursors/setCursorForElement.d.ts +0 -0
  27. /package/dist/{esm → types}/drawingSvg/_getHash.d.ts +0 -0
  28. /package/dist/{esm → types}/drawingSvg/clearByToolType.d.ts +0 -0
  29. /package/dist/{esm → types}/drawingSvg/draw.d.ts +0 -0
  30. /package/dist/{esm → types}/drawingSvg/drawArrow.d.ts +0 -0
  31. /package/dist/{esm → types}/drawingSvg/drawCircle.d.ts +0 -0
  32. /package/dist/{esm → types}/drawingSvg/drawEllipse.d.ts +0 -0
  33. /package/dist/{esm → types}/drawingSvg/drawHandles.d.ts +0 -0
  34. /package/dist/{esm → types}/drawingSvg/drawLine.d.ts +0 -0
  35. /package/dist/{esm → types}/drawingSvg/drawLink.d.ts +0 -0
  36. /package/dist/{esm → types}/drawingSvg/drawLinkedTextBox.d.ts +0 -0
  37. /package/dist/{esm → types}/drawingSvg/drawPolyline.d.ts +0 -0
  38. /package/dist/{esm → types}/drawingSvg/drawRect.d.ts +0 -0
  39. /package/dist/{esm → types}/drawingSvg/drawTextBox.d.ts +0 -0
  40. /package/dist/{esm → types}/drawingSvg/getSvgDrawingHelper.d.ts +0 -0
  41. /package/dist/{esm → types}/drawingSvg/index.d.ts +0 -0
  42. /package/dist/{esm → types}/drawingSvg/setAttributesIfNecessary.d.ts +0 -0
  43. /package/dist/{esm → types}/drawingSvg/setNewAttributesIfValid.d.ts +0 -0
  44. /package/dist/{esm → types}/enums/AnnotationStyleStates.d.ts +0 -0
  45. /package/dist/{esm → types}/enums/Events.d.ts +0 -0
  46. /package/dist/{esm → types}/enums/SegmentationRepresentations.d.ts +0 -0
  47. /package/dist/{esm → types}/enums/ToolBindings.d.ts +0 -0
  48. /package/dist/{esm → types}/enums/ToolModes.d.ts +0 -0
  49. /package/dist/{esm → types}/enums/Touch.d.ts +0 -0
  50. /package/dist/{esm → types}/enums/index.d.ts +0 -0
  51. /package/dist/{esm → types}/eventDispatchers/annotationModifiedEventDispatcher.d.ts +0 -0
  52. /package/dist/{esm → types}/eventDispatchers/cameraModifiedEventDispatcher.d.ts +0 -0
  53. /package/dist/{esm → types}/eventDispatchers/imageRenderedEventDispatcher.d.ts +0 -0
  54. /package/dist/{esm → types}/eventDispatchers/imageSpacingCalibratedEventDispatcher.d.ts +0 -0
  55. /package/dist/{esm → types}/eventDispatchers/index.d.ts +0 -0
  56. /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/index.d.ts +0 -0
  57. /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/keyDown.d.ts +0 -0
  58. /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/keyUp.d.ts +0 -0
  59. /package/dist/{esm → types}/eventDispatchers/keyboardToolEventDispatcher.d.ts +0 -0
  60. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/index.d.ts +0 -0
  61. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseClick.d.ts +0 -0
  62. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDoubleClick.d.ts +0 -0
  63. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDown.d.ts +0 -0
  64. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownActivate.d.ts +0 -0
  65. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownAnnotationAction.d.ts +0 -0
  66. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDrag.d.ts +0 -0
  67. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseMove.d.ts +0 -0
  68. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseUp.d.ts +0 -0
  69. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseWheel.d.ts +0 -0
  70. /package/dist/{esm → types}/eventDispatchers/mouseToolEventDispatcher.d.ts +0 -0
  71. /package/dist/{esm → types}/eventDispatchers/shared/customCallbackHandler.d.ts +0 -0
  72. /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForKeyboardEvent.d.ts +0 -0
  73. /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForMouseEvent.d.ts +0 -0
  74. /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForTouchEvent.d.ts +0 -0
  75. /package/dist/{esm → types}/eventDispatchers/shared/getMouseModifier.d.ts +0 -0
  76. /package/dist/{esm → types}/eventDispatchers/shared/getToolsWithActionsForMouseEvent.d.ts +0 -0
  77. /package/dist/{esm → types}/eventDispatchers/shared/getToolsWithModesForMouseEvent.d.ts +0 -0
  78. /package/dist/{esm → types}/eventDispatchers/shared/getToolsWithModesForTouchEvent.d.ts +0 -0
  79. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/index.d.ts +0 -0
  80. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchDrag.d.ts +0 -0
  81. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchEnd.d.ts +0 -0
  82. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchPress.d.ts +0 -0
  83. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchStart.d.ts +0 -0
  84. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchStartActivate.d.ts +0 -0
  85. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchTap.d.ts +0 -0
  86. /package/dist/{esm → types}/eventDispatchers/touchToolEventDispatcher.d.ts +0 -0
  87. /package/dist/{esm → types}/eventListeners/annotations/annotationModifiedListener.d.ts +0 -0
  88. /package/dist/{esm → types}/eventListeners/annotations/annotationSelectionListener.d.ts +0 -0
  89. /package/dist/{esm → types}/eventListeners/annotations/index.d.ts +0 -0
  90. /package/dist/{esm → types}/eventListeners/index.d.ts +0 -0
  91. /package/dist/{esm → types}/eventListeners/keyboard/index.d.ts +0 -0
  92. /package/dist/{esm → types}/eventListeners/keyboard/keyDownListener.d.ts +0 -0
  93. /package/dist/{esm → types}/eventListeners/mouse/getMouseEventPoints.d.ts +0 -0
  94. /package/dist/{esm → types}/eventListeners/mouse/index.d.ts +0 -0
  95. /package/dist/{esm → types}/eventListeners/mouse/mouseDoubleClickListener.d.ts +0 -0
  96. /package/dist/{esm → types}/eventListeners/mouse/mouseDownListener.d.ts +0 -0
  97. /package/dist/{esm → types}/eventListeners/mouse/mouseMoveListener.d.ts +0 -0
  98. /package/dist/{esm → types}/eventListeners/segmentation/index.d.ts +0 -0
  99. /package/dist/{esm → types}/eventListeners/segmentation/segmentationDataModifiedEventListener.d.ts +0 -0
  100. /package/dist/{esm → types}/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +0 -0
  101. /package/dist/{esm → types}/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +0 -0
  102. /package/dist/{esm → types}/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +0 -0
  103. /package/dist/{esm → types}/eventListeners/touch/getTouchEventPoints.d.ts +0 -0
  104. /package/dist/{esm → types}/eventListeners/touch/index.d.ts +0 -0
  105. /package/dist/{esm → types}/eventListeners/touch/preventGhostClick.d.ts +0 -0
  106. /package/dist/{esm → types}/eventListeners/touch/touchStartListener.d.ts +0 -0
  107. /package/dist/{esm → types}/eventListeners/wheel/index.d.ts +0 -0
  108. /package/dist/{esm → types}/eventListeners/wheel/normalizeWheel.d.ts +0 -0
  109. /package/dist/{esm → types}/eventListeners/wheel/wheelListener.d.ts +0 -0
  110. /package/dist/{esm → types}/index.d.ts +0 -0
  111. /package/dist/{esm → types}/init.d.ts +0 -0
  112. /package/dist/{esm → types}/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.d.ts +0 -0
  113. /package/dist/{esm → types}/stateManagement/annotation/annotationLocking.d.ts +0 -0
  114. /package/dist/{esm → types}/stateManagement/annotation/annotationSelection.d.ts +0 -0
  115. /package/dist/{esm → types}/stateManagement/annotation/annotationState.d.ts +0 -0
  116. /package/dist/{esm → types}/stateManagement/annotation/annotationVisibility.d.ts +0 -0
  117. /package/dist/{esm → types}/stateManagement/annotation/config/ToolStyle.d.ts +0 -0
  118. /package/dist/{esm → types}/stateManagement/annotation/config/getFont.d.ts +0 -0
  119. /package/dist/{esm → types}/stateManagement/annotation/config/getState.d.ts +0 -0
  120. /package/dist/{esm → types}/stateManagement/annotation/config/helpers.d.ts +0 -0
  121. /package/dist/{esm → types}/stateManagement/annotation/config/index.d.ts +0 -0
  122. /package/dist/{esm → types}/stateManagement/annotation/helpers/state.d.ts +0 -0
  123. /package/dist/{esm → types}/stateManagement/annotation/index.d.ts +0 -0
  124. /package/dist/{esm → types}/stateManagement/index.d.ts +0 -0
  125. /package/dist/{esm → types}/stateManagement/segmentation/SegmentationStateManager.d.ts +0 -0
  126. /package/dist/{esm → types}/stateManagement/segmentation/activeSegmentation.d.ts +0 -0
  127. /package/dist/{esm → types}/stateManagement/segmentation/addSegmentationRepresentations.d.ts +0 -0
  128. /package/dist/{esm → types}/stateManagement/segmentation/addSegmentations.d.ts +0 -0
  129. /package/dist/{esm → types}/stateManagement/segmentation/config/index.d.ts +0 -0
  130. /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationColor.d.ts +0 -0
  131. /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationConfig.d.ts +0 -0
  132. /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationVisibility.d.ts +0 -0
  133. /package/dist/{esm → types}/stateManagement/segmentation/helpers/index.d.ts +0 -0
  134. /package/dist/{esm → types}/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +0 -0
  135. /package/dist/{esm → types}/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +0 -0
  136. /package/dist/{esm → types}/stateManagement/segmentation/index.d.ts +0 -0
  137. /package/dist/{esm → types}/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts +0 -0
  138. /package/dist/{esm → types}/stateManagement/segmentation/segmentIndex.d.ts +0 -0
  139. /package/dist/{esm → types}/stateManagement/segmentation/segmentLocking.d.ts +0 -0
  140. /package/dist/{esm → types}/stateManagement/segmentation/segmentationState.d.ts +0 -0
  141. /package/dist/{esm → types}/stateManagement/segmentation/triggerSegmentationEvents.d.ts +0 -0
  142. /package/dist/{esm → types}/store/SynchronizerManager/Synchronizer.d.ts +0 -0
  143. /package/dist/{esm → types}/store/SynchronizerManager/createSynchronizer.d.ts +0 -0
  144. /package/dist/{esm → types}/store/SynchronizerManager/destroy.d.ts +0 -0
  145. /package/dist/{esm → types}/store/SynchronizerManager/destroySynchronizer.d.ts +0 -0
  146. /package/dist/{esm → types}/store/SynchronizerManager/getAllSynchronizers.d.ts +0 -0
  147. /package/dist/{esm → types}/store/SynchronizerManager/getSynchronizer.d.ts +0 -0
  148. /package/dist/{esm → types}/store/SynchronizerManager/getSynchronizersForViewport.d.ts +0 -0
  149. /package/dist/{esm → types}/store/SynchronizerManager/index.d.ts +0 -0
  150. /package/dist/{esm → types}/store/ToolGroupManager/ToolGroup.d.ts +0 -0
  151. /package/dist/{esm → types}/store/ToolGroupManager/createToolGroup.d.ts +0 -0
  152. /package/dist/{esm → types}/store/ToolGroupManager/destroy.d.ts +0 -0
  153. /package/dist/{esm → types}/store/ToolGroupManager/destroyToolGroup.d.ts +0 -0
  154. /package/dist/{esm → types}/store/ToolGroupManager/getAllToolGroups.d.ts +0 -0
  155. /package/dist/{esm → types}/store/ToolGroupManager/getToolGroup.d.ts +0 -0
  156. /package/dist/{esm → types}/store/ToolGroupManager/getToolGroupForViewport.d.ts +0 -0
  157. /package/dist/{esm → types}/store/ToolGroupManager/getToolGroupsWithToolName.d.ts +0 -0
  158. /package/dist/{esm → types}/store/ToolGroupManager/index.d.ts +0 -0
  159. /package/dist/{esm → types}/store/addEnabledElement.d.ts +0 -0
  160. /package/dist/{esm → types}/store/addTool.d.ts +0 -0
  161. /package/dist/{esm → types}/store/cancelActiveManipulations.d.ts +0 -0
  162. /package/dist/{esm → types}/store/filterMoveableAnnotationTools.d.ts +0 -0
  163. /package/dist/{esm → types}/store/filterToolsWithAnnotationsForElement.d.ts +0 -0
  164. /package/dist/{esm → types}/store/filterToolsWithMoveableHandles.d.ts +0 -0
  165. /package/dist/{esm → types}/store/index.d.ts +0 -0
  166. /package/dist/{esm → types}/store/removeEnabledElement.d.ts +0 -0
  167. /package/dist/{esm → types}/store/state.d.ts +0 -0
  168. /package/dist/{esm → types}/store/svgNodeCache.d.ts +0 -0
  169. /package/dist/{esm → types}/synchronizers/callbacks/areViewportsCoplanar .d.ts +0 -0
  170. /package/dist/{esm → types}/synchronizers/callbacks/cameraSyncCallback.d.ts +0 -0
  171. /package/dist/{esm → types}/synchronizers/callbacks/stackImageSyncCallback.d.ts +0 -0
  172. /package/dist/{esm → types}/synchronizers/callbacks/voiSyncCallback.d.ts +0 -0
  173. /package/dist/{esm → types}/synchronizers/callbacks/zoomPanSyncCallback.d.ts +0 -0
  174. /package/dist/{esm → types}/synchronizers/index.d.ts +0 -0
  175. /package/dist/{esm → types}/synchronizers/synchronizers/createCameraPositionSynchronizer.d.ts +0 -0
  176. /package/dist/{esm → types}/synchronizers/synchronizers/createStackImageSynchronizer.d.ts +0 -0
  177. /package/dist/{esm → types}/synchronizers/synchronizers/createVOISynchronizer.d.ts +0 -0
  178. /package/dist/{esm → types}/synchronizers/synchronizers/createZoomPanSynchronizer.d.ts +0 -0
  179. /package/dist/{esm → types}/synchronizers/synchronizers/index.d.ts +0 -0
  180. /package/dist/{esm → types}/tools/AdvancedMagnifyTool.d.ts +0 -0
  181. /package/dist/{esm → types}/tools/AdvancedMagnifyViewport.d.ts +0 -0
  182. /package/dist/{esm → types}/tools/AdvancedMagnifyViewportManager.d.ts +0 -0
  183. /package/dist/{esm → types}/tools/CrosshairsTool.d.ts +0 -0
  184. /package/dist/{esm → types}/tools/MIPJumpToClickTool.d.ts +0 -0
  185. /package/dist/{esm → types}/tools/MagnifyTool.d.ts +0 -0
  186. /package/dist/{esm → types}/tools/OrientationMarkerTool.d.ts +0 -0
  187. /package/dist/{esm → types}/tools/OverlayGridTool.d.ts +0 -0
  188. /package/dist/{esm → types}/tools/PanTool.d.ts +0 -0
  189. /package/dist/{esm → types}/tools/PlanarRotateTool.d.ts +0 -0
  190. /package/dist/{esm → types}/tools/ReferenceCursors.d.ts +0 -0
  191. /package/dist/{esm → types}/tools/ReferenceLinesTool.d.ts +0 -0
  192. /package/dist/{esm → types}/tools/ScaleOverlayTool.d.ts +0 -0
  193. /package/dist/{esm → types}/tools/StackScrollTool.d.ts +0 -0
  194. /package/dist/{esm → types}/tools/StackScrollToolMouseWheelTool.d.ts +0 -0
  195. /package/dist/{esm → types}/tools/TrackballRotateTool.d.ts +0 -0
  196. /package/dist/{esm → types}/tools/VolumeRotateMouseWheelTool.d.ts +0 -0
  197. /package/dist/{esm → types}/tools/WindowLevelTool.d.ts +0 -0
  198. /package/dist/{esm → types}/tools/ZoomTool.d.ts +0 -0
  199. /package/dist/{esm → types}/tools/annotation/AngleTool.d.ts +0 -0
  200. /package/dist/{esm → types}/tools/annotation/ArrowAnnotateTool.d.ts +0 -0
  201. /package/dist/{esm → types}/tools/annotation/BidirectionalTool.d.ts +0 -0
  202. /package/dist/{esm → types}/tools/annotation/CircleROITool.d.ts +0 -0
  203. /package/dist/{esm → types}/tools/annotation/CobbAngleTool.d.ts +0 -0
  204. /package/dist/{esm → types}/tools/annotation/DragProbeTool.d.ts +0 -0
  205. /package/dist/{esm → types}/tools/annotation/EllipticalROITool.d.ts +0 -0
  206. /package/dist/{esm → types}/tools/annotation/LengthTool.d.ts +0 -0
  207. /package/dist/{esm → types}/tools/annotation/PlanarFreehandROITool.d.ts +0 -0
  208. /package/dist/{esm → types}/tools/annotation/ProbeTool.d.ts +0 -0
  209. /package/dist/{esm → types}/tools/annotation/RectangleROITool.d.ts +0 -0
  210. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/closedContourEditLoop.d.ts +0 -0
  211. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/drawLoop.d.ts +0 -0
  212. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/editLoopCommon.d.ts +0 -0
  213. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/findOpenUShapedContourVectorToPeak.d.ts +0 -0
  214. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/openContourEditLoop.d.ts +0 -0
  215. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/openContourEndEditLoop.d.ts +0 -0
  216. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/renderMethods.d.ts +0 -0
  217. /package/dist/{esm → types}/tools/base/AnnotationDisplayTool.d.ts +0 -0
  218. /package/dist/{esm → types}/tools/base/AnnotationTool.d.ts +0 -0
  219. /package/dist/{esm → types}/tools/base/BaseTool.d.ts +0 -0
  220. /package/dist/{esm → types}/tools/base/index.d.ts +0 -0
  221. /package/dist/{esm → types}/tools/displayTools/Contour/addContourSetsToElement.d.ts +0 -0
  222. /package/dist/{esm → types}/tools/displayTools/Contour/addOrUpdateContourSets.d.ts +0 -0
  223. /package/dist/{esm → types}/tools/displayTools/Contour/contourConfig.d.ts +0 -0
  224. /package/dist/{esm → types}/tools/displayTools/Contour/contourConfigCache.d.ts +0 -0
  225. /package/dist/{esm → types}/tools/displayTools/Contour/contourDisplay.d.ts +0 -0
  226. /package/dist/{esm → types}/tools/displayTools/Contour/index.d.ts +0 -0
  227. /package/dist/{esm → types}/tools/displayTools/Contour/removeContourFromElement.d.ts +0 -0
  228. /package/dist/{esm → types}/tools/displayTools/Contour/updateContourSets.d.ts +0 -0
  229. /package/dist/{esm → types}/tools/displayTools/Contour/utils.d.ts +0 -0
  230. /package/dist/{esm → types}/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +0 -0
  231. /package/dist/{esm → types}/tools/displayTools/Labelmap/index.d.ts +0 -0
  232. /package/dist/{esm → types}/tools/displayTools/Labelmap/labelmapConfig.d.ts +0 -0
  233. /package/dist/{esm → types}/tools/displayTools/Labelmap/labelmapDisplay.d.ts +0 -0
  234. /package/dist/{esm → types}/tools/displayTools/Labelmap/removeLabelmapFromElement.d.ts +0 -0
  235. /package/dist/{esm → types}/tools/displayTools/Labelmap/validateRepresentationData.d.ts +0 -0
  236. /package/dist/{esm → types}/tools/displayTools/SegmentationDisplayTool.d.ts +0 -0
  237. /package/dist/{esm → types}/tools/index.d.ts +0 -0
  238. /package/dist/{esm → types}/tools/segmentation/BrushTool.d.ts +0 -0
  239. /package/dist/{esm → types}/tools/segmentation/CircleScissorsTool.d.ts +0 -0
  240. /package/dist/{esm → types}/tools/segmentation/PaintFillTool.d.ts +0 -0
  241. /package/dist/{esm → types}/tools/segmentation/RectangleROIStartEndThresholdTool.d.ts +0 -0
  242. /package/dist/{esm → types}/tools/segmentation/RectangleROIThresholdTool.d.ts +0 -0
  243. /package/dist/{esm → types}/tools/segmentation/RectangleScissorsTool.d.ts +0 -0
  244. /package/dist/{esm → types}/tools/segmentation/SphereScissorsTool.d.ts +0 -0
  245. /package/dist/{esm → types}/tools/segmentation/strategies/eraseCircle.d.ts +0 -0
  246. /package/dist/{esm → types}/tools/segmentation/strategies/eraseRectangle.d.ts +0 -0
  247. /package/dist/{esm → types}/tools/segmentation/strategies/eraseSphere.d.ts +0 -0
  248. /package/dist/{esm → types}/tools/segmentation/strategies/fillCircle.d.ts +0 -0
  249. /package/dist/{esm → types}/tools/segmentation/strategies/fillRectangle.d.ts +0 -0
  250. /package/dist/{esm → types}/tools/segmentation/strategies/fillSphere.d.ts +0 -0
  251. /package/dist/{esm → types}/tools/segmentation/strategies/index.d.ts +0 -0
  252. /package/dist/{esm → types}/tools/segmentation/strategies/utils/isWithinThreshold.d.ts +0 -0
  253. /package/dist/{esm → types}/types/AnnotationGroupSelector.d.ts +0 -0
  254. /package/dist/{esm → types}/types/AnnotationStyle.d.ts +0 -0
  255. /package/dist/{esm → types}/types/AnnotationTypes.d.ts +0 -0
  256. /package/dist/{esm → types}/types/BoundsIJK.d.ts +0 -0
  257. /package/dist/{esm → types}/types/CINETypes.d.ts +0 -0
  258. /package/dist/{esm → types}/types/CalculatorTypes.d.ts +0 -0
  259. /package/dist/{esm → types}/types/ContourTypes.d.ts +0 -0
  260. /package/dist/{esm → types}/types/CursorTypes.d.ts +0 -0
  261. /package/dist/{esm → types}/types/EventTypes.d.ts +0 -0
  262. /package/dist/{esm → types}/types/FloodFillTypes.d.ts +0 -0
  263. /package/dist/{esm → types}/types/IAnnotationManager.d.ts +0 -0
  264. /package/dist/{esm → types}/types/IDistance.d.ts +0 -0
  265. /package/dist/{esm → types}/types/IPoints.d.ts +0 -0
  266. /package/dist/{esm → types}/types/ISetToolModeOptions.d.ts +0 -0
  267. /package/dist/{esm → types}/types/ISynchronizerEventHandler.d.ts +0 -0
  268. /package/dist/{esm → types}/types/IToolClassReference.d.ts +0 -0
  269. /package/dist/{esm → types}/types/IToolGroup.d.ts +0 -0
  270. /package/dist/{esm → types}/types/ITouchPoints.d.ts +0 -0
  271. /package/dist/{esm → types}/types/InteractionTypes.d.ts +0 -0
  272. /package/dist/{esm → types}/types/InternalToolTypes.d.ts +0 -0
  273. /package/dist/{esm → types}/types/JumpToSliceOptions.d.ts +0 -0
  274. /package/dist/{esm → types}/types/LabelmapTypes.d.ts +0 -0
  275. /package/dist/{esm → types}/types/PlanarBoundingBox.d.ts +0 -0
  276. /package/dist/{esm → types}/types/SVGDrawingHelper.d.ts +0 -0
  277. /package/dist/{esm → types}/types/ScrollOptions.d.ts +0 -0
  278. /package/dist/{esm → types}/types/SegmentationStateTypes.d.ts +0 -0
  279. /package/dist/{esm → types}/types/ToolAction.d.ts +0 -0
  280. /package/dist/{esm → types}/types/ToolHandle.d.ts +0 -0
  281. /package/dist/{esm → types}/types/ToolProps.d.ts +0 -0
  282. /package/dist/{esm → types}/types/ToolSpecificAnnotationTypes.d.ts +0 -0
  283. /package/dist/{esm → types}/utilities/boundingBox/extend2DBoundingBoxInViewAxis.d.ts +0 -0
  284. /package/dist/{esm → types}/utilities/boundingBox/getBoundingBoxAroundShape.d.ts +0 -0
  285. /package/dist/{esm → types}/utilities/boundingBox/index.d.ts +0 -0
  286. /package/dist/{esm → types}/utilities/calibrateImageSpacing.d.ts +0 -0
  287. /package/dist/{esm → types}/utilities/cine/events.d.ts +0 -0
  288. /package/dist/{esm → types}/utilities/cine/index.d.ts +0 -0
  289. /package/dist/{esm → types}/utilities/cine/playClip.d.ts +0 -0
  290. /package/dist/{esm → types}/utilities/cine/state.d.ts +0 -0
  291. /package/dist/{esm → types}/utilities/clip.d.ts +0 -0
  292. /package/dist/{esm → types}/utilities/debounce.d.ts +0 -0
  293. /package/dist/{esm → types}/utilities/drawing/getTextBoxCoordsCanvas.d.ts +0 -0
  294. /package/dist/{esm → types}/utilities/drawing/index.d.ts +0 -0
  295. /package/dist/{esm → types}/utilities/dynamicVolume/generateImageFromTimeData.d.ts +0 -0
  296. /package/dist/{esm → types}/utilities/dynamicVolume/getDataInTime.d.ts +0 -0
  297. /package/dist/{esm → types}/utilities/dynamicVolume/index.d.ts +0 -0
  298. /package/dist/{esm → types}/utilities/getAnnotationNearPoint.d.ts +0 -0
  299. /package/dist/{esm → types}/utilities/getCalibratedUnits.d.ts +0 -0
  300. /package/dist/{esm → types}/utilities/getModalityUnit.d.ts +0 -0
  301. /package/dist/{esm → types}/utilities/getToolsWithModesForElement.d.ts +0 -0
  302. /package/dist/{esm → types}/utilities/index.d.ts +0 -0
  303. /package/dist/{esm → types}/utilities/isObject.d.ts +0 -0
  304. /package/dist/{esm → types}/utilities/math/angle/angleBetweenLines.d.ts +0 -0
  305. /package/dist/{esm → types}/utilities/math/basic/BasicStatsCalculator.d.ts +0 -0
  306. /package/dist/{esm → types}/utilities/math/basic/Calculator.d.ts +0 -0
  307. /package/dist/{esm → types}/utilities/math/basic/index.d.ts +0 -0
  308. /package/dist/{esm → types}/utilities/math/circle/_types.d.ts +0 -0
  309. /package/dist/{esm → types}/utilities/math/circle/getCanvasCircleCorners.d.ts +0 -0
  310. /package/dist/{esm → types}/utilities/math/circle/getCanvasCircleRadius.d.ts +0 -0
  311. /package/dist/{esm → types}/utilities/math/circle/index.d.ts +0 -0
  312. /package/dist/{esm → types}/utilities/math/ellipse/getCanvasEllipseCorners.d.ts +0 -0
  313. /package/dist/{esm → types}/utilities/math/ellipse/index.d.ts +0 -0
  314. /package/dist/{esm → types}/utilities/math/ellipse/pointInEllipse.d.ts +0 -0
  315. /package/dist/{esm → types}/utilities/math/ellipse/pointInEllipsoidWithConstraint.d.ts +0 -0
  316. /package/dist/{esm → types}/utilities/math/index.d.ts +0 -0
  317. /package/dist/{esm → types}/utilities/math/line/distanceToPoint.d.ts +0 -0
  318. /package/dist/{esm → types}/utilities/math/line/distanceToPointSquared.d.ts +0 -0
  319. /package/dist/{esm → types}/utilities/math/line/index.d.ts +0 -0
  320. /package/dist/{esm → types}/utilities/math/line/intersectLine.d.ts +0 -0
  321. /package/dist/{esm → types}/utilities/math/midPoint.d.ts +0 -0
  322. /package/dist/{esm → types}/utilities/math/point/distanceToPoint.d.ts +0 -0
  323. /package/dist/{esm → types}/utilities/math/point/index.d.ts +0 -0
  324. /package/dist/{esm → types}/utilities/math/polyline/addCanvasPointsToArray.d.ts +0 -0
  325. /package/dist/{esm → types}/utilities/math/polyline/calculateAreaOfPoints.d.ts +0 -0
  326. /package/dist/{esm → types}/utilities/math/polyline/getIntersectionWithPolyline.d.ts +0 -0
  327. /package/dist/{esm → types}/utilities/math/polyline/getSubPixelSpacingAndXYDirections.d.ts +0 -0
  328. /package/dist/{esm → types}/utilities/math/polyline/index.d.ts +0 -0
  329. /package/dist/{esm → types}/utilities/math/polyline/planarFreehandROIInternalTypes.d.ts +0 -0
  330. /package/dist/{esm → types}/utilities/math/polyline/pointCanProjectOnLine.d.ts +0 -0
  331. /package/dist/{esm → types}/utilities/math/polyline/pointInPolyline.d.ts +0 -0
  332. /package/dist/{esm → types}/utilities/math/polyline/pointsAreWithinCloseContourProximity.d.ts +0 -0
  333. /package/dist/{esm → types}/utilities/math/rectangle/distanceToPoint.d.ts +0 -0
  334. /package/dist/{esm → types}/utilities/math/rectangle/index.d.ts +0 -0
  335. /package/dist/{esm → types}/utilities/math/sphere/index.d.ts +0 -0
  336. /package/dist/{esm → types}/utilities/math/sphere/pointInSphere.d.ts +0 -0
  337. /package/dist/{esm → types}/utilities/math/vec2/findClosestPoint.d.ts +0 -0
  338. /package/dist/{esm → types}/utilities/math/vec2/index.d.ts +0 -0
  339. /package/dist/{esm → types}/utilities/math/vec2/liangBarksyClip.d.ts +0 -0
  340. /package/dist/{esm → types}/utilities/orientation/getOrientationStringLPS.d.ts +0 -0
  341. /package/dist/{esm → types}/utilities/orientation/index.d.ts +0 -0
  342. /package/dist/{esm → types}/utilities/orientation/invertOrientationStringLPS.d.ts +0 -0
  343. /package/dist/{esm → types}/utilities/planar/filterAnnotationsForDisplay.d.ts +0 -0
  344. /package/dist/{esm → types}/utilities/planar/filterAnnotationsWithinSlice.d.ts +0 -0
  345. /package/dist/{esm → types}/utilities/planar/getPointInLineOfSightWithCriteria.d.ts +0 -0
  346. /package/dist/{esm → types}/utilities/planar/getWorldWidthAndHeightFromCorners.d.ts +0 -0
  347. /package/dist/{esm → types}/utilities/planar/getWorldWidthAndHeightFromTwoPoints.d.ts +0 -0
  348. /package/dist/{esm → types}/utilities/planar/index.d.ts +0 -0
  349. /package/dist/{esm → types}/utilities/planarFreehandROITool/index.d.ts +0 -0
  350. /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolateAnnotation.d.ts +0 -0
  351. /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolatePoints.d.ts +0 -0
  352. /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolation/algorithms/bspline.d.ts +0 -0
  353. /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolation/interpolateSegmentPoints.d.ts +0 -0
  354. /package/dist/{esm → types}/utilities/pointInShapeCallback.d.ts +0 -0
  355. /package/dist/{esm → types}/utilities/pointInSurroundingSphereCallback.d.ts +0 -0
  356. /package/dist/{esm → types}/utilities/rectangleROITool/getBoundsIJKFromRectangleAnnotations.d.ts +0 -0
  357. /package/dist/{esm → types}/utilities/rectangleROITool/index.d.ts +0 -0
  358. /package/dist/{esm → types}/utilities/roundNumber.d.ts +0 -0
  359. /package/dist/{esm → types}/utilities/scroll.d.ts +0 -0
  360. /package/dist/{esm → types}/utilities/segmentation/brushSizeForToolGroup.d.ts +0 -0
  361. /package/dist/{esm → types}/utilities/segmentation/brushThresholdForToolGroup.d.ts +0 -0
  362. /package/dist/{esm → types}/utilities/segmentation/createLabelmapVolumeForViewport.d.ts +0 -0
  363. /package/dist/{esm → types}/utilities/segmentation/createMergedLabelmapForIndex.d.ts +0 -0
  364. /package/dist/{esm → types}/utilities/segmentation/floodFill.d.ts +0 -0
  365. /package/dist/{esm → types}/utilities/segmentation/getDefaultRepresentationConfig.d.ts +0 -0
  366. /package/dist/{esm → types}/utilities/segmentation/index.d.ts +0 -0
  367. /package/dist/{esm → types}/utilities/segmentation/isValidRepresentationConfig.d.ts +0 -0
  368. /package/dist/{esm → types}/utilities/segmentation/rectangleROIThresholdVolumeByRange.d.ts +0 -0
  369. /package/dist/{esm → types}/utilities/segmentation/thresholdSegmentationByRange.d.ts +0 -0
  370. /package/dist/{esm → types}/utilities/segmentation/thresholdVolumeByRange.d.ts +0 -0
  371. /package/dist/{esm → types}/utilities/segmentation/triggerSegmentationRender.d.ts +0 -0
  372. /package/dist/{esm → types}/utilities/segmentation/utilities.d.ts +0 -0
  373. /package/dist/{esm → types}/utilities/stackPrefetch/index.d.ts +0 -0
  374. /package/dist/{esm → types}/utilities/stackPrefetch/stackContextPrefetch.d.ts +0 -0
  375. /package/dist/{esm → types}/utilities/stackPrefetch/stackPrefetch.d.ts +0 -0
  376. /package/dist/{esm → types}/utilities/stackPrefetch/stackPrefetchUtils.d.ts +0 -0
  377. /package/dist/{esm → types}/utilities/stackPrefetch/state.d.ts +0 -0
  378. /package/dist/{esm → types}/utilities/throttle.d.ts +0 -0
  379. /package/dist/{esm → types}/utilities/touch/index.d.ts +0 -0
  380. /package/dist/{esm → types}/utilities/triggerAnnotationRender.d.ts +0 -0
  381. /package/dist/{esm → types}/utilities/triggerAnnotationRenderForViewportIds.d.ts +0 -0
  382. /package/dist/{esm → types}/utilities/viewport/index.d.ts +0 -0
  383. /package/dist/{esm → types}/utilities/viewport/isViewportPreScaled.d.ts +0 -0
  384. /package/dist/{esm → types}/utilities/viewport/jumpToSlice.d.ts +0 -0
  385. /package/dist/{esm → types}/utilities/viewport/jumpToWorld.d.ts +0 -0
  386. /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithFrameOfReferenceUID.d.ts +0 -0
  387. /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithParallelNormals.d.ts +0 -0
  388. /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithSameOrientation.d.ts +0 -0
  389. /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithToolEnabled.d.ts +0 -0
  390. /package/dist/{esm → types}/utilities/viewportFilters/getViewportIdsWithToolToRender.d.ts +0 -0
  391. /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.4",
3
+ "version": "2.0.0-beta.5",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "dist/umd/index.js",
6
- "types": "dist/esm/index.d.ts",
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.4",
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": "deefd5fb773ca3eb6fc4f2047c15a2b1a3ac82de"
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) {
@@ -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
@@ -1,6 +1,4 @@
1
1
  import {
2
- getEnabledElement,
3
- StackViewport,
4
2
  imageLoader,
5
3
  Enums,
6
4
  eventTarget,
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