@cornerstonejs/tools 2.0.0-beta.3 → 2.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/dist/cjs/eventDispatchers/shared/getToolsWithModesForMouseEvent.d.ts +1 -1
  2. package/dist/cjs/eventDispatchers/shared/getToolsWithModesForTouchEvent.d.ts +1 -1
  3. package/dist/cjs/eventListeners/keyboard/keyDownListener.js +1 -2
  4. package/dist/cjs/eventListeners/keyboard/keyDownListener.js.map +1 -1
  5. package/dist/cjs/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js +4 -8
  6. package/dist/cjs/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js.map +1 -1
  7. package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.js +2 -3
  8. package/dist/cjs/stateManagement/segmentation/SegmentationStateManager.js.map +1 -1
  9. package/dist/cjs/stateManagement/segmentation/addSegmentationRepresentations.js.map +1 -1
  10. package/dist/cjs/stateManagement/segmentation/addSegmentations.js +1 -5
  11. package/dist/cjs/stateManagement/segmentation/addSegmentations.js.map +1 -1
  12. package/dist/cjs/store/ToolGroupManager/ToolGroup.js +1 -2
  13. package/dist/cjs/store/ToolGroupManager/ToolGroup.js.map +1 -1
  14. package/dist/cjs/store/state.js +1 -5
  15. package/dist/cjs/store/state.js.map +1 -1
  16. package/dist/cjs/synchronizers/synchronizers/createVOISynchronizer.d.ts +1 -1
  17. package/dist/cjs/tools/AdvancedMagnifyViewport.d.ts +2 -2
  18. package/dist/cjs/tools/AdvancedMagnifyViewportManager.d.ts +1 -1
  19. package/dist/cjs/tools/WindowLevelTool.js +3 -0
  20. package/dist/cjs/tools/WindowLevelTool.js.map +1 -1
  21. package/dist/cjs/tools/displayTools/Contour/contourConfigCache.d.ts +1 -1
  22. package/dist/cjs/tools/displayTools/Contour/contourDisplay.js.map +1 -1
  23. package/dist/cjs/tools/segmentation/strategies/eraseCircle.d.ts +1 -1
  24. package/dist/cjs/tools/segmentation/strategies/eraseRectangle.d.ts +1 -1
  25. package/dist/cjs/tools/segmentation/strategies/eraseSphere.d.ts +1 -1
  26. package/dist/cjs/tools/segmentation/strategies/fillCircle.d.ts +1 -1
  27. package/dist/cjs/tools/segmentation/strategies/fillRectangle.d.ts +1 -1
  28. package/dist/cjs/tools/segmentation/strategies/fillSphere.d.ts +1 -1
  29. package/dist/cjs/types/AnnotationGroupSelector.d.ts +1 -1
  30. package/dist/cjs/types/AnnotationStyle.d.ts +7 -7
  31. package/dist/cjs/types/AnnotationTypes.d.ts +4 -4
  32. package/dist/cjs/types/BoundsIJK.d.ts +1 -1
  33. package/dist/cjs/types/CINETypes.d.ts +2 -2
  34. package/dist/cjs/types/CalculatorTypes.d.ts +1 -1
  35. package/dist/cjs/types/ContourTypes.d.ts +3 -3
  36. package/dist/cjs/types/CursorTypes.d.ts +2 -2
  37. package/dist/cjs/types/EventTypes.d.ts +81 -81
  38. package/dist/cjs/types/FloodFillTypes.d.ts +5 -5
  39. package/dist/cjs/types/IDistance.d.ts +1 -1
  40. package/dist/cjs/types/IPoints.d.ts +1 -1
  41. package/dist/cjs/types/ISetToolModeOptions.d.ts +5 -5
  42. package/dist/cjs/types/IToolClassReference.d.ts +1 -1
  43. package/dist/cjs/types/ITouchPoints.d.ts +1 -1
  44. package/dist/cjs/types/InteractionTypes.d.ts +1 -1
  45. package/dist/cjs/types/InternalToolTypes.d.ts +3 -3
  46. package/dist/cjs/types/JumpToSliceOptions.d.ts +1 -1
  47. package/dist/cjs/types/LabelmapTypes.d.ts +3 -3
  48. package/dist/cjs/types/PlanarBoundingBox.d.ts +1 -1
  49. package/dist/cjs/types/SVGDrawingHelper.d.ts +1 -1
  50. package/dist/cjs/types/ScrollOptions.d.ts +1 -1
  51. package/dist/cjs/types/SegmentationStateTypes.d.ts +15 -15
  52. package/dist/cjs/types/ToolAction.d.ts +1 -1
  53. package/dist/cjs/types/ToolHandle.d.ts +3 -3
  54. package/dist/cjs/types/ToolProps.d.ts +4 -4
  55. package/dist/cjs/types/index.d.ts +7 -7
  56. package/dist/cjs/utilities/getModalityUnit.d.ts +1 -1
  57. package/dist/cjs/utilities/getToolsWithModesForElement.d.ts +1 -1
  58. package/dist/cjs/utilities/math/angle/angleBetweenLines.d.ts +3 -3
  59. package/dist/cjs/utilities/math/basic/BasicStatsCalculator.js.map +1 -1
  60. package/dist/cjs/utilities/math/circle/_types.d.ts +1 -1
  61. package/dist/cjs/utilities/math/ellipse/getCanvasEllipseCorners.d.ts +1 -1
  62. package/dist/cjs/utilities/math/ellipse/pointInEllipse.d.ts +1 -1
  63. package/dist/cjs/utilities/math/ellipse/pointInEllipsoidWithConstraint.d.ts +1 -1
  64. package/dist/cjs/utilities/math/polyline/planarFreehandROIInternalTypes.d.ts +3 -3
  65. package/dist/cjs/utilities/math/sphere/pointInSphere.d.ts +1 -1
  66. package/dist/cjs/utilities/pointInShapeCallback.d.ts +3 -3
  67. package/dist/cjs/utilities/rectangleROITool/getBoundsIJKFromRectangleAnnotations.d.ts +1 -1
  68. package/dist/cjs/utilities/segmentation/createLabelmapVolumeForViewport.d.ts +8 -8
  69. package/dist/cjs/utilities/segmentation/createLabelmapVolumeForViewport.js +1 -2
  70. package/dist/cjs/utilities/segmentation/createLabelmapVolumeForViewport.js.map +1 -1
  71. package/dist/cjs/utilities/segmentation/rectangleROIThresholdVolumeByRange.d.ts +2 -2
  72. package/dist/cjs/utilities/segmentation/thresholdVolumeByRange.d.ts +1 -1
  73. package/dist/cjs/utilities/segmentation/utilities.d.ts +1 -1
  74. package/dist/cjs/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
  75. package/dist/esm/eventListeners/keyboard/keyDownListener.js +1 -2
  76. package/dist/esm/eventListeners/keyboard/keyDownListener.js.map +1 -1
  77. package/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js +4 -5
  78. package/dist/esm/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.js.map +1 -1
  79. package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js +2 -3
  80. package/dist/esm/stateManagement/segmentation/SegmentationStateManager.js.map +1 -1
  81. package/dist/esm/stateManagement/segmentation/addSegmentationRepresentations.js.map +1 -1
  82. package/dist/esm/stateManagement/segmentation/addSegmentations.js +1 -2
  83. package/dist/esm/stateManagement/segmentation/addSegmentations.js.map +1 -1
  84. package/dist/esm/store/ToolGroupManager/ToolGroup.js +1 -2
  85. package/dist/esm/store/ToolGroupManager/ToolGroup.js.map +1 -1
  86. package/dist/esm/store/state.js +9 -2
  87. package/dist/esm/store/state.js.map +1 -1
  88. package/dist/esm/tools/OrientationMarkerTool.js +4 -4
  89. package/dist/esm/tools/OrientationMarkerTool.js.map +1 -1
  90. package/dist/esm/tools/WindowLevelTool.js +3 -0
  91. package/dist/esm/tools/WindowLevelTool.js.map +1 -1
  92. package/dist/esm/tools/displayTools/Contour/contourDisplay.js.map +1 -1
  93. package/dist/esm/utilities/math/basic/BasicStatsCalculator.js.map +1 -1
  94. package/dist/esm/utilities/segmentation/createLabelmapVolumeForViewport.js +1 -2
  95. package/dist/esm/utilities/segmentation/createLabelmapVolumeForViewport.js.map +1 -1
  96. package/dist/esm/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
  97. package/dist/{esm → types}/eventDispatchers/shared/getToolsWithModesForMouseEvent.d.ts +1 -1
  98. package/dist/{esm → types}/eventDispatchers/shared/getToolsWithModesForTouchEvent.d.ts +1 -1
  99. package/dist/{esm → types}/synchronizers/synchronizers/createVOISynchronizer.d.ts +1 -1
  100. package/dist/{esm → types}/tools/AdvancedMagnifyViewport.d.ts +2 -2
  101. package/dist/{esm → types}/tools/AdvancedMagnifyViewportManager.d.ts +1 -1
  102. package/dist/{esm → types}/tools/displayTools/Contour/contourConfigCache.d.ts +1 -1
  103. package/dist/{esm → types}/tools/segmentation/strategies/eraseCircle.d.ts +1 -1
  104. package/dist/{esm → types}/tools/segmentation/strategies/eraseRectangle.d.ts +1 -1
  105. package/dist/{esm → types}/tools/segmentation/strategies/eraseSphere.d.ts +1 -1
  106. package/dist/{esm → types}/tools/segmentation/strategies/fillCircle.d.ts +1 -1
  107. package/dist/{esm → types}/tools/segmentation/strategies/fillRectangle.d.ts +1 -1
  108. package/dist/{esm → types}/tools/segmentation/strategies/fillSphere.d.ts +1 -1
  109. package/dist/types/types/AnnotationGroupSelector.d.ts +2 -0
  110. package/dist/{esm → types}/types/AnnotationStyle.d.ts +7 -7
  111. package/dist/{esm → types}/types/AnnotationTypes.d.ts +4 -4
  112. package/dist/{esm → types}/types/BoundsIJK.d.ts +1 -1
  113. package/dist/{esm → types}/types/CINETypes.d.ts +2 -2
  114. package/dist/{esm → types}/types/CalculatorTypes.d.ts +1 -1
  115. package/dist/{esm → types}/types/ContourTypes.d.ts +3 -3
  116. package/dist/{esm → types}/types/CursorTypes.d.ts +2 -2
  117. package/dist/types/types/EventTypes.d.ts +215 -0
  118. package/dist/{esm → types}/types/FloodFillTypes.d.ts +5 -5
  119. package/dist/{esm → types}/types/IDistance.d.ts +1 -1
  120. package/dist/{esm → types}/types/IPoints.d.ts +1 -1
  121. package/dist/{esm → types}/types/ISetToolModeOptions.d.ts +5 -5
  122. package/dist/types/types/IToolClassReference.d.ts +3 -0
  123. package/dist/{esm → types}/types/ITouchPoints.d.ts +1 -1
  124. package/dist/types/types/InteractionTypes.d.ts +2 -0
  125. package/dist/{esm → types}/types/InternalToolTypes.d.ts +3 -3
  126. package/dist/{esm → types}/types/JumpToSliceOptions.d.ts +1 -1
  127. package/dist/{esm → types}/types/LabelmapTypes.d.ts +3 -3
  128. package/dist/{esm → types}/types/PlanarBoundingBox.d.ts +1 -1
  129. package/dist/{esm → types}/types/SVGDrawingHelper.d.ts +1 -1
  130. package/dist/{esm → types}/types/ScrollOptions.d.ts +1 -1
  131. package/dist/{esm → types}/types/SegmentationStateTypes.d.ts +15 -15
  132. package/dist/{esm → types}/types/ToolAction.d.ts +1 -1
  133. package/dist/{esm → types}/types/ToolHandle.d.ts +3 -3
  134. package/dist/{esm → types}/types/ToolProps.d.ts +4 -4
  135. package/dist/{esm → types}/types/index.d.ts +7 -7
  136. package/dist/{esm → types}/utilities/getModalityUnit.d.ts +1 -1
  137. package/dist/{esm → types}/utilities/getToolsWithModesForElement.d.ts +1 -1
  138. package/dist/types/utilities/math/angle/angleBetweenLines.d.ts +6 -0
  139. package/dist/{esm → types}/utilities/math/circle/_types.d.ts +1 -1
  140. package/dist/{esm → types}/utilities/math/ellipse/getCanvasEllipseCorners.d.ts +1 -1
  141. package/dist/{esm → types}/utilities/math/ellipse/pointInEllipse.d.ts +1 -1
  142. package/dist/{esm → types}/utilities/math/ellipse/pointInEllipsoidWithConstraint.d.ts +1 -1
  143. package/dist/{esm → types}/utilities/math/polyline/planarFreehandROIInternalTypes.d.ts +3 -3
  144. package/dist/{esm → types}/utilities/math/sphere/pointInSphere.d.ts +1 -1
  145. package/dist/{esm → types}/utilities/pointInShapeCallback.d.ts +3 -3
  146. package/dist/{esm → types}/utilities/rectangleROITool/getBoundsIJKFromRectangleAnnotations.d.ts +1 -1
  147. package/dist/{esm → types}/utilities/segmentation/createLabelmapVolumeForViewport.d.ts +8 -8
  148. package/dist/{esm → types}/utilities/segmentation/rectangleROIThresholdVolumeByRange.d.ts +2 -2
  149. package/dist/{esm → types}/utilities/segmentation/thresholdVolumeByRange.d.ts +1 -1
  150. package/dist/{esm → types}/utilities/segmentation/utilities.d.ts +1 -1
  151. package/dist/umd/index.js +1 -1
  152. package/dist/umd/index.js.map +1 -1
  153. package/package.json +4 -4
  154. package/src/eventListeners/keyboard/keyDownListener.ts +1 -2
  155. package/src/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.ts +4 -5
  156. package/src/stateManagement/segmentation/SegmentationStateManager.ts +2 -3
  157. package/src/stateManagement/segmentation/addSegmentationRepresentations.ts +0 -1
  158. package/src/stateManagement/segmentation/addSegmentations.ts +1 -2
  159. package/src/store/ToolGroupManager/ToolGroup.ts +1 -2
  160. package/src/store/state.ts +9 -3
  161. package/src/tools/WindowLevelTool.ts +3 -0
  162. package/src/tools/displayTools/Contour/contourDisplay.ts +0 -1
  163. package/src/types/index.ts +7 -7
  164. package/src/utilities/segmentation/createLabelmapVolumeForViewport.ts +9 -10
  165. package/src/utilities/stackPrefetch/stackPrefetch.ts +0 -2
  166. package/dist/esm/types/AnnotationGroupSelector.d.ts +0 -2
  167. package/dist/esm/types/EventTypes.d.ts +0 -215
  168. package/dist/esm/types/IToolClassReference.d.ts +0 -3
  169. package/dist/esm/types/InteractionTypes.d.ts +0 -2
  170. package/dist/esm/utilities/math/angle/angleBetweenLines.d.ts +0 -6
  171. /package/dist/{esm → types}/constants/COLOR_LUT.d.ts +0 -0
  172. /package/dist/{esm → types}/constants/index.d.ts +0 -0
  173. /package/dist/{esm → types}/cursors/ImageMouseCursor.d.ts +0 -0
  174. /package/dist/{esm → types}/cursors/MouseCursor.d.ts +0 -0
  175. /package/dist/{esm → types}/cursors/SVGCursorDescriptor.d.ts +0 -0
  176. /package/dist/{esm → types}/cursors/SVGMouseCursor.d.ts +0 -0
  177. /package/dist/{esm → types}/cursors/elementCursor.d.ts +0 -0
  178. /package/dist/{esm → types}/cursors/index.d.ts +0 -0
  179. /package/dist/{esm → types}/cursors/setCursorForElement.d.ts +0 -0
  180. /package/dist/{esm → types}/drawingSvg/_getHash.d.ts +0 -0
  181. /package/dist/{esm → types}/drawingSvg/clearByToolType.d.ts +0 -0
  182. /package/dist/{esm → types}/drawingSvg/draw.d.ts +0 -0
  183. /package/dist/{esm → types}/drawingSvg/drawArrow.d.ts +0 -0
  184. /package/dist/{esm → types}/drawingSvg/drawCircle.d.ts +0 -0
  185. /package/dist/{esm → types}/drawingSvg/drawEllipse.d.ts +0 -0
  186. /package/dist/{esm → types}/drawingSvg/drawHandles.d.ts +0 -0
  187. /package/dist/{esm → types}/drawingSvg/drawLine.d.ts +0 -0
  188. /package/dist/{esm → types}/drawingSvg/drawLink.d.ts +0 -0
  189. /package/dist/{esm → types}/drawingSvg/drawLinkedTextBox.d.ts +0 -0
  190. /package/dist/{esm → types}/drawingSvg/drawPolyline.d.ts +0 -0
  191. /package/dist/{esm → types}/drawingSvg/drawRect.d.ts +0 -0
  192. /package/dist/{esm → types}/drawingSvg/drawTextBox.d.ts +0 -0
  193. /package/dist/{esm → types}/drawingSvg/getSvgDrawingHelper.d.ts +0 -0
  194. /package/dist/{esm → types}/drawingSvg/index.d.ts +0 -0
  195. /package/dist/{esm → types}/drawingSvg/setAttributesIfNecessary.d.ts +0 -0
  196. /package/dist/{esm → types}/drawingSvg/setNewAttributesIfValid.d.ts +0 -0
  197. /package/dist/{esm → types}/enums/AnnotationStyleStates.d.ts +0 -0
  198. /package/dist/{esm → types}/enums/Events.d.ts +0 -0
  199. /package/dist/{esm → types}/enums/SegmentationRepresentations.d.ts +0 -0
  200. /package/dist/{esm → types}/enums/ToolBindings.d.ts +0 -0
  201. /package/dist/{esm → types}/enums/ToolModes.d.ts +0 -0
  202. /package/dist/{esm → types}/enums/Touch.d.ts +0 -0
  203. /package/dist/{esm → types}/enums/index.d.ts +0 -0
  204. /package/dist/{esm → types}/eventDispatchers/annotationModifiedEventDispatcher.d.ts +0 -0
  205. /package/dist/{esm → types}/eventDispatchers/cameraModifiedEventDispatcher.d.ts +0 -0
  206. /package/dist/{esm → types}/eventDispatchers/imageRenderedEventDispatcher.d.ts +0 -0
  207. /package/dist/{esm → types}/eventDispatchers/imageSpacingCalibratedEventDispatcher.d.ts +0 -0
  208. /package/dist/{esm → types}/eventDispatchers/index.d.ts +0 -0
  209. /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/index.d.ts +0 -0
  210. /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/keyDown.d.ts +0 -0
  211. /package/dist/{esm → types}/eventDispatchers/keyboardEventHandlers/keyUp.d.ts +0 -0
  212. /package/dist/{esm → types}/eventDispatchers/keyboardToolEventDispatcher.d.ts +0 -0
  213. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/index.d.ts +0 -0
  214. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseClick.d.ts +0 -0
  215. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDoubleClick.d.ts +0 -0
  216. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDown.d.ts +0 -0
  217. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownActivate.d.ts +0 -0
  218. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDownAnnotationAction.d.ts +0 -0
  219. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseDrag.d.ts +0 -0
  220. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseMove.d.ts +0 -0
  221. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseUp.d.ts +0 -0
  222. /package/dist/{esm → types}/eventDispatchers/mouseEventHandlers/mouseWheel.d.ts +0 -0
  223. /package/dist/{esm → types}/eventDispatchers/mouseToolEventDispatcher.d.ts +0 -0
  224. /package/dist/{esm → types}/eventDispatchers/shared/customCallbackHandler.d.ts +0 -0
  225. /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForKeyboardEvent.d.ts +0 -0
  226. /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForMouseEvent.d.ts +0 -0
  227. /package/dist/{esm → types}/eventDispatchers/shared/getActiveToolForTouchEvent.d.ts +0 -0
  228. /package/dist/{esm → types}/eventDispatchers/shared/getMouseModifier.d.ts +0 -0
  229. /package/dist/{esm → types}/eventDispatchers/shared/getToolsWithActionsForMouseEvent.d.ts +0 -0
  230. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/index.d.ts +0 -0
  231. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchDrag.d.ts +0 -0
  232. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchEnd.d.ts +0 -0
  233. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchPress.d.ts +0 -0
  234. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchStart.d.ts +0 -0
  235. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchStartActivate.d.ts +0 -0
  236. /package/dist/{esm → types}/eventDispatchers/touchEventHandlers/touchTap.d.ts +0 -0
  237. /package/dist/{esm → types}/eventDispatchers/touchToolEventDispatcher.d.ts +0 -0
  238. /package/dist/{esm → types}/eventListeners/annotations/annotationModifiedListener.d.ts +0 -0
  239. /package/dist/{esm → types}/eventListeners/annotations/annotationSelectionListener.d.ts +0 -0
  240. /package/dist/{esm → types}/eventListeners/annotations/index.d.ts +0 -0
  241. /package/dist/{esm → types}/eventListeners/index.d.ts +0 -0
  242. /package/dist/{esm → types}/eventListeners/keyboard/index.d.ts +0 -0
  243. /package/dist/{esm → types}/eventListeners/keyboard/keyDownListener.d.ts +0 -0
  244. /package/dist/{esm → types}/eventListeners/mouse/getMouseEventPoints.d.ts +0 -0
  245. /package/dist/{esm → types}/eventListeners/mouse/index.d.ts +0 -0
  246. /package/dist/{esm → types}/eventListeners/mouse/mouseDoubleClickListener.d.ts +0 -0
  247. /package/dist/{esm → types}/eventListeners/mouse/mouseDownListener.d.ts +0 -0
  248. /package/dist/{esm → types}/eventListeners/mouse/mouseMoveListener.d.ts +0 -0
  249. /package/dist/{esm → types}/eventListeners/segmentation/index.d.ts +0 -0
  250. /package/dist/{esm → types}/eventListeners/segmentation/segmentationDataModifiedEventListener.d.ts +0 -0
  251. /package/dist/{esm → types}/eventListeners/segmentation/segmentationModifiedEventListener.d.ts +0 -0
  252. /package/dist/{esm → types}/eventListeners/segmentation/segmentationRepresentationModifiedEventListener.d.ts +0 -0
  253. /package/dist/{esm → types}/eventListeners/segmentation/segmentationRepresentationRemovedEventListener.d.ts +0 -0
  254. /package/dist/{esm → types}/eventListeners/touch/getTouchEventPoints.d.ts +0 -0
  255. /package/dist/{esm → types}/eventListeners/touch/index.d.ts +0 -0
  256. /package/dist/{esm → types}/eventListeners/touch/preventGhostClick.d.ts +0 -0
  257. /package/dist/{esm → types}/eventListeners/touch/touchStartListener.d.ts +0 -0
  258. /package/dist/{esm → types}/eventListeners/wheel/index.d.ts +0 -0
  259. /package/dist/{esm → types}/eventListeners/wheel/normalizeWheel.d.ts +0 -0
  260. /package/dist/{esm → types}/eventListeners/wheel/wheelListener.d.ts +0 -0
  261. /package/dist/{esm → types}/index.d.ts +0 -0
  262. /package/dist/{esm → types}/init.d.ts +0 -0
  263. /package/dist/{esm → types}/stateManagement/annotation/FrameOfReferenceSpecificAnnotationManager.d.ts +0 -0
  264. /package/dist/{esm → types}/stateManagement/annotation/annotationLocking.d.ts +0 -0
  265. /package/dist/{esm → types}/stateManagement/annotation/annotationSelection.d.ts +0 -0
  266. /package/dist/{esm → types}/stateManagement/annotation/annotationState.d.ts +0 -0
  267. /package/dist/{esm → types}/stateManagement/annotation/annotationVisibility.d.ts +0 -0
  268. /package/dist/{esm → types}/stateManagement/annotation/config/ToolStyle.d.ts +0 -0
  269. /package/dist/{esm → types}/stateManagement/annotation/config/getFont.d.ts +0 -0
  270. /package/dist/{esm → types}/stateManagement/annotation/config/getState.d.ts +0 -0
  271. /package/dist/{esm → types}/stateManagement/annotation/config/helpers.d.ts +0 -0
  272. /package/dist/{esm → types}/stateManagement/annotation/config/index.d.ts +0 -0
  273. /package/dist/{esm → types}/stateManagement/annotation/helpers/state.d.ts +0 -0
  274. /package/dist/{esm → types}/stateManagement/annotation/index.d.ts +0 -0
  275. /package/dist/{esm → types}/stateManagement/index.d.ts +0 -0
  276. /package/dist/{esm → types}/stateManagement/segmentation/SegmentationStateManager.d.ts +0 -0
  277. /package/dist/{esm → types}/stateManagement/segmentation/activeSegmentation.d.ts +0 -0
  278. /package/dist/{esm → types}/stateManagement/segmentation/addSegmentationRepresentations.d.ts +0 -0
  279. /package/dist/{esm → types}/stateManagement/segmentation/addSegmentations.d.ts +0 -0
  280. /package/dist/{esm → types}/stateManagement/segmentation/config/index.d.ts +0 -0
  281. /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationColor.d.ts +0 -0
  282. /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationConfig.d.ts +0 -0
  283. /package/dist/{esm → types}/stateManagement/segmentation/config/segmentationVisibility.d.ts +0 -0
  284. /package/dist/{esm → types}/stateManagement/segmentation/helpers/index.d.ts +0 -0
  285. /package/dist/{esm → types}/stateManagement/segmentation/helpers/normalizeSegmentationInput.d.ts +0 -0
  286. /package/dist/{esm → types}/stateManagement/segmentation/helpers/validateSegmentationInput.d.ts +0 -0
  287. /package/dist/{esm → types}/stateManagement/segmentation/index.d.ts +0 -0
  288. /package/dist/{esm → types}/stateManagement/segmentation/removeSegmentationsFromToolGroup.d.ts +0 -0
  289. /package/dist/{esm → types}/stateManagement/segmentation/segmentIndex.d.ts +0 -0
  290. /package/dist/{esm → types}/stateManagement/segmentation/segmentLocking.d.ts +0 -0
  291. /package/dist/{esm → types}/stateManagement/segmentation/segmentationState.d.ts +0 -0
  292. /package/dist/{esm → types}/stateManagement/segmentation/triggerSegmentationEvents.d.ts +0 -0
  293. /package/dist/{esm → types}/store/SynchronizerManager/Synchronizer.d.ts +0 -0
  294. /package/dist/{esm → types}/store/SynchronizerManager/createSynchronizer.d.ts +0 -0
  295. /package/dist/{esm → types}/store/SynchronizerManager/destroy.d.ts +0 -0
  296. /package/dist/{esm → types}/store/SynchronizerManager/destroySynchronizer.d.ts +0 -0
  297. /package/dist/{esm → types}/store/SynchronizerManager/getAllSynchronizers.d.ts +0 -0
  298. /package/dist/{esm → types}/store/SynchronizerManager/getSynchronizer.d.ts +0 -0
  299. /package/dist/{esm → types}/store/SynchronizerManager/getSynchronizersForViewport.d.ts +0 -0
  300. /package/dist/{esm → types}/store/SynchronizerManager/index.d.ts +0 -0
  301. /package/dist/{esm → types}/store/ToolGroupManager/ToolGroup.d.ts +0 -0
  302. /package/dist/{esm → types}/store/ToolGroupManager/createToolGroup.d.ts +0 -0
  303. /package/dist/{esm → types}/store/ToolGroupManager/destroy.d.ts +0 -0
  304. /package/dist/{esm → types}/store/ToolGroupManager/destroyToolGroup.d.ts +0 -0
  305. /package/dist/{esm → types}/store/ToolGroupManager/getAllToolGroups.d.ts +0 -0
  306. /package/dist/{esm → types}/store/ToolGroupManager/getToolGroup.d.ts +0 -0
  307. /package/dist/{esm → types}/store/ToolGroupManager/getToolGroupForViewport.d.ts +0 -0
  308. /package/dist/{esm → types}/store/ToolGroupManager/getToolGroupsWithToolName.d.ts +0 -0
  309. /package/dist/{esm → types}/store/ToolGroupManager/index.d.ts +0 -0
  310. /package/dist/{esm → types}/store/addEnabledElement.d.ts +0 -0
  311. /package/dist/{esm → types}/store/addTool.d.ts +0 -0
  312. /package/dist/{esm → types}/store/cancelActiveManipulations.d.ts +0 -0
  313. /package/dist/{esm → types}/store/filterMoveableAnnotationTools.d.ts +0 -0
  314. /package/dist/{esm → types}/store/filterToolsWithAnnotationsForElement.d.ts +0 -0
  315. /package/dist/{esm → types}/store/filterToolsWithMoveableHandles.d.ts +0 -0
  316. /package/dist/{esm → types}/store/index.d.ts +0 -0
  317. /package/dist/{esm → types}/store/removeEnabledElement.d.ts +0 -0
  318. /package/dist/{esm → types}/store/state.d.ts +0 -0
  319. /package/dist/{esm → types}/store/svgNodeCache.d.ts +0 -0
  320. /package/dist/{esm → types}/synchronizers/callbacks/areViewportsCoplanar .d.ts +0 -0
  321. /package/dist/{esm → types}/synchronizers/callbacks/cameraSyncCallback.d.ts +0 -0
  322. /package/dist/{esm → types}/synchronizers/callbacks/stackImageSyncCallback.d.ts +0 -0
  323. /package/dist/{esm → types}/synchronizers/callbacks/voiSyncCallback.d.ts +0 -0
  324. /package/dist/{esm → types}/synchronizers/callbacks/zoomPanSyncCallback.d.ts +0 -0
  325. /package/dist/{esm → types}/synchronizers/index.d.ts +0 -0
  326. /package/dist/{esm → types}/synchronizers/synchronizers/createCameraPositionSynchronizer.d.ts +0 -0
  327. /package/dist/{esm → types}/synchronizers/synchronizers/createStackImageSynchronizer.d.ts +0 -0
  328. /package/dist/{esm → types}/synchronizers/synchronizers/createZoomPanSynchronizer.d.ts +0 -0
  329. /package/dist/{esm → types}/synchronizers/synchronizers/index.d.ts +0 -0
  330. /package/dist/{esm → types}/tools/AdvancedMagnifyTool.d.ts +0 -0
  331. /package/dist/{esm → types}/tools/CrosshairsTool.d.ts +0 -0
  332. /package/dist/{esm → types}/tools/MIPJumpToClickTool.d.ts +0 -0
  333. /package/dist/{esm → types}/tools/MagnifyTool.d.ts +0 -0
  334. /package/dist/{esm → types}/tools/OrientationMarkerTool.d.ts +0 -0
  335. /package/dist/{esm → types}/tools/OverlayGridTool.d.ts +0 -0
  336. /package/dist/{esm → types}/tools/PanTool.d.ts +0 -0
  337. /package/dist/{esm → types}/tools/PlanarRotateTool.d.ts +0 -0
  338. /package/dist/{esm → types}/tools/ReferenceCursors.d.ts +0 -0
  339. /package/dist/{esm → types}/tools/ReferenceLinesTool.d.ts +0 -0
  340. /package/dist/{esm → types}/tools/ScaleOverlayTool.d.ts +0 -0
  341. /package/dist/{esm → types}/tools/StackScrollTool.d.ts +0 -0
  342. /package/dist/{esm → types}/tools/StackScrollToolMouseWheelTool.d.ts +0 -0
  343. /package/dist/{esm → types}/tools/TrackballRotateTool.d.ts +0 -0
  344. /package/dist/{esm → types}/tools/VolumeRotateMouseWheelTool.d.ts +0 -0
  345. /package/dist/{esm → types}/tools/WindowLevelTool.d.ts +0 -0
  346. /package/dist/{esm → types}/tools/ZoomTool.d.ts +0 -0
  347. /package/dist/{esm → types}/tools/annotation/AngleTool.d.ts +0 -0
  348. /package/dist/{esm → types}/tools/annotation/ArrowAnnotateTool.d.ts +0 -0
  349. /package/dist/{esm → types}/tools/annotation/BidirectionalTool.d.ts +0 -0
  350. /package/dist/{esm → types}/tools/annotation/CircleROITool.d.ts +0 -0
  351. /package/dist/{esm → types}/tools/annotation/CobbAngleTool.d.ts +0 -0
  352. /package/dist/{esm → types}/tools/annotation/DragProbeTool.d.ts +0 -0
  353. /package/dist/{esm → types}/tools/annotation/EllipticalROITool.d.ts +0 -0
  354. /package/dist/{esm → types}/tools/annotation/LengthTool.d.ts +0 -0
  355. /package/dist/{esm → types}/tools/annotation/PlanarFreehandROITool.d.ts +0 -0
  356. /package/dist/{esm → types}/tools/annotation/ProbeTool.d.ts +0 -0
  357. /package/dist/{esm → types}/tools/annotation/RectangleROITool.d.ts +0 -0
  358. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/closedContourEditLoop.d.ts +0 -0
  359. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/drawLoop.d.ts +0 -0
  360. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/editLoopCommon.d.ts +0 -0
  361. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/findOpenUShapedContourVectorToPeak.d.ts +0 -0
  362. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/openContourEditLoop.d.ts +0 -0
  363. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/openContourEndEditLoop.d.ts +0 -0
  364. /package/dist/{esm → types}/tools/annotation/planarFreehandROITool/renderMethods.d.ts +0 -0
  365. /package/dist/{esm → types}/tools/base/AnnotationDisplayTool.d.ts +0 -0
  366. /package/dist/{esm → types}/tools/base/AnnotationTool.d.ts +0 -0
  367. /package/dist/{esm → types}/tools/base/BaseTool.d.ts +0 -0
  368. /package/dist/{esm → types}/tools/base/index.d.ts +0 -0
  369. /package/dist/{esm → types}/tools/displayTools/Contour/addContourSetsToElement.d.ts +0 -0
  370. /package/dist/{esm → types}/tools/displayTools/Contour/addOrUpdateContourSets.d.ts +0 -0
  371. /package/dist/{esm → types}/tools/displayTools/Contour/contourConfig.d.ts +0 -0
  372. /package/dist/{esm → types}/tools/displayTools/Contour/contourDisplay.d.ts +0 -0
  373. /package/dist/{esm → types}/tools/displayTools/Contour/index.d.ts +0 -0
  374. /package/dist/{esm → types}/tools/displayTools/Contour/removeContourFromElement.d.ts +0 -0
  375. /package/dist/{esm → types}/tools/displayTools/Contour/updateContourSets.d.ts +0 -0
  376. /package/dist/{esm → types}/tools/displayTools/Contour/utils.d.ts +0 -0
  377. /package/dist/{esm → types}/tools/displayTools/Labelmap/addLabelmapToElement.d.ts +0 -0
  378. /package/dist/{esm → types}/tools/displayTools/Labelmap/index.d.ts +0 -0
  379. /package/dist/{esm → types}/tools/displayTools/Labelmap/labelmapConfig.d.ts +0 -0
  380. /package/dist/{esm → types}/tools/displayTools/Labelmap/labelmapDisplay.d.ts +0 -0
  381. /package/dist/{esm → types}/tools/displayTools/Labelmap/removeLabelmapFromElement.d.ts +0 -0
  382. /package/dist/{esm → types}/tools/displayTools/Labelmap/validateRepresentationData.d.ts +0 -0
  383. /package/dist/{esm → types}/tools/displayTools/SegmentationDisplayTool.d.ts +0 -0
  384. /package/dist/{esm → types}/tools/index.d.ts +0 -0
  385. /package/dist/{esm → types}/tools/segmentation/BrushTool.d.ts +0 -0
  386. /package/dist/{esm → types}/tools/segmentation/CircleScissorsTool.d.ts +0 -0
  387. /package/dist/{esm → types}/tools/segmentation/PaintFillTool.d.ts +0 -0
  388. /package/dist/{esm → types}/tools/segmentation/RectangleROIStartEndThresholdTool.d.ts +0 -0
  389. /package/dist/{esm → types}/tools/segmentation/RectangleROIThresholdTool.d.ts +0 -0
  390. /package/dist/{esm → types}/tools/segmentation/RectangleScissorsTool.d.ts +0 -0
  391. /package/dist/{esm → types}/tools/segmentation/SphereScissorsTool.d.ts +0 -0
  392. /package/dist/{esm → types}/tools/segmentation/strategies/index.d.ts +0 -0
  393. /package/dist/{esm → types}/tools/segmentation/strategies/utils/isWithinThreshold.d.ts +0 -0
  394. /package/dist/{esm → types}/types/IAnnotationManager.d.ts +0 -0
  395. /package/dist/{esm → types}/types/ISynchronizerEventHandler.d.ts +0 -0
  396. /package/dist/{esm → types}/types/IToolGroup.d.ts +0 -0
  397. /package/dist/{esm → types}/types/ToolSpecificAnnotationTypes.d.ts +0 -0
  398. /package/dist/{esm → types}/utilities/boundingBox/extend2DBoundingBoxInViewAxis.d.ts +0 -0
  399. /package/dist/{esm → types}/utilities/boundingBox/getBoundingBoxAroundShape.d.ts +0 -0
  400. /package/dist/{esm → types}/utilities/boundingBox/index.d.ts +0 -0
  401. /package/dist/{esm → types}/utilities/calibrateImageSpacing.d.ts +0 -0
  402. /package/dist/{esm → types}/utilities/cine/events.d.ts +0 -0
  403. /package/dist/{esm → types}/utilities/cine/index.d.ts +0 -0
  404. /package/dist/{esm → types}/utilities/cine/playClip.d.ts +0 -0
  405. /package/dist/{esm → types}/utilities/cine/state.d.ts +0 -0
  406. /package/dist/{esm → types}/utilities/clip.d.ts +0 -0
  407. /package/dist/{esm → types}/utilities/debounce.d.ts +0 -0
  408. /package/dist/{esm → types}/utilities/drawing/getTextBoxCoordsCanvas.d.ts +0 -0
  409. /package/dist/{esm → types}/utilities/drawing/index.d.ts +0 -0
  410. /package/dist/{esm → types}/utilities/dynamicVolume/generateImageFromTimeData.d.ts +0 -0
  411. /package/dist/{esm → types}/utilities/dynamicVolume/getDataInTime.d.ts +0 -0
  412. /package/dist/{esm → types}/utilities/dynamicVolume/index.d.ts +0 -0
  413. /package/dist/{esm → types}/utilities/getAnnotationNearPoint.d.ts +0 -0
  414. /package/dist/{esm → types}/utilities/getCalibratedUnits.d.ts +0 -0
  415. /package/dist/{esm → types}/utilities/index.d.ts +0 -0
  416. /package/dist/{esm → types}/utilities/isObject.d.ts +0 -0
  417. /package/dist/{esm → types}/utilities/math/basic/BasicStatsCalculator.d.ts +0 -0
  418. /package/dist/{esm → types}/utilities/math/basic/Calculator.d.ts +0 -0
  419. /package/dist/{esm → types}/utilities/math/basic/index.d.ts +0 -0
  420. /package/dist/{esm → types}/utilities/math/circle/getCanvasCircleCorners.d.ts +0 -0
  421. /package/dist/{esm → types}/utilities/math/circle/getCanvasCircleRadius.d.ts +0 -0
  422. /package/dist/{esm → types}/utilities/math/circle/index.d.ts +0 -0
  423. /package/dist/{esm → types}/utilities/math/ellipse/index.d.ts +0 -0
  424. /package/dist/{esm → types}/utilities/math/index.d.ts +0 -0
  425. /package/dist/{esm → types}/utilities/math/line/distanceToPoint.d.ts +0 -0
  426. /package/dist/{esm → types}/utilities/math/line/distanceToPointSquared.d.ts +0 -0
  427. /package/dist/{esm → types}/utilities/math/line/index.d.ts +0 -0
  428. /package/dist/{esm → types}/utilities/math/line/intersectLine.d.ts +0 -0
  429. /package/dist/{esm → types}/utilities/math/midPoint.d.ts +0 -0
  430. /package/dist/{esm → types}/utilities/math/point/distanceToPoint.d.ts +0 -0
  431. /package/dist/{esm → types}/utilities/math/point/index.d.ts +0 -0
  432. /package/dist/{esm → types}/utilities/math/polyline/addCanvasPointsToArray.d.ts +0 -0
  433. /package/dist/{esm → types}/utilities/math/polyline/calculateAreaOfPoints.d.ts +0 -0
  434. /package/dist/{esm → types}/utilities/math/polyline/getIntersectionWithPolyline.d.ts +0 -0
  435. /package/dist/{esm → types}/utilities/math/polyline/getSubPixelSpacingAndXYDirections.d.ts +0 -0
  436. /package/dist/{esm → types}/utilities/math/polyline/index.d.ts +0 -0
  437. /package/dist/{esm → types}/utilities/math/polyline/pointCanProjectOnLine.d.ts +0 -0
  438. /package/dist/{esm → types}/utilities/math/polyline/pointInPolyline.d.ts +0 -0
  439. /package/dist/{esm → types}/utilities/math/polyline/pointsAreWithinCloseContourProximity.d.ts +0 -0
  440. /package/dist/{esm → types}/utilities/math/rectangle/distanceToPoint.d.ts +0 -0
  441. /package/dist/{esm → types}/utilities/math/rectangle/index.d.ts +0 -0
  442. /package/dist/{esm → types}/utilities/math/sphere/index.d.ts +0 -0
  443. /package/dist/{esm → types}/utilities/math/vec2/findClosestPoint.d.ts +0 -0
  444. /package/dist/{esm → types}/utilities/math/vec2/index.d.ts +0 -0
  445. /package/dist/{esm → types}/utilities/math/vec2/liangBarksyClip.d.ts +0 -0
  446. /package/dist/{esm → types}/utilities/orientation/getOrientationStringLPS.d.ts +0 -0
  447. /package/dist/{esm → types}/utilities/orientation/index.d.ts +0 -0
  448. /package/dist/{esm → types}/utilities/orientation/invertOrientationStringLPS.d.ts +0 -0
  449. /package/dist/{esm → types}/utilities/planar/filterAnnotationsForDisplay.d.ts +0 -0
  450. /package/dist/{esm → types}/utilities/planar/filterAnnotationsWithinSlice.d.ts +0 -0
  451. /package/dist/{esm → types}/utilities/planar/getPointInLineOfSightWithCriteria.d.ts +0 -0
  452. /package/dist/{esm → types}/utilities/planar/getWorldWidthAndHeightFromCorners.d.ts +0 -0
  453. /package/dist/{esm → types}/utilities/planar/getWorldWidthAndHeightFromTwoPoints.d.ts +0 -0
  454. /package/dist/{esm → types}/utilities/planar/index.d.ts +0 -0
  455. /package/dist/{esm → types}/utilities/planarFreehandROITool/index.d.ts +0 -0
  456. /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolateAnnotation.d.ts +0 -0
  457. /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolatePoints.d.ts +0 -0
  458. /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolation/algorithms/bspline.d.ts +0 -0
  459. /package/dist/{esm → types}/utilities/planarFreehandROITool/interpolation/interpolateSegmentPoints.d.ts +0 -0
  460. /package/dist/{esm → types}/utilities/pointInSurroundingSphereCallback.d.ts +0 -0
  461. /package/dist/{esm → types}/utilities/rectangleROITool/index.d.ts +0 -0
  462. /package/dist/{esm → types}/utilities/roundNumber.d.ts +0 -0
  463. /package/dist/{esm → types}/utilities/scroll.d.ts +0 -0
  464. /package/dist/{esm → types}/utilities/segmentation/brushSizeForToolGroup.d.ts +0 -0
  465. /package/dist/{esm → types}/utilities/segmentation/brushThresholdForToolGroup.d.ts +0 -0
  466. /package/dist/{esm → types}/utilities/segmentation/createMergedLabelmapForIndex.d.ts +0 -0
  467. /package/dist/{esm → types}/utilities/segmentation/floodFill.d.ts +0 -0
  468. /package/dist/{esm → types}/utilities/segmentation/getDefaultRepresentationConfig.d.ts +0 -0
  469. /package/dist/{esm → types}/utilities/segmentation/index.d.ts +0 -0
  470. /package/dist/{esm → types}/utilities/segmentation/isValidRepresentationConfig.d.ts +0 -0
  471. /package/dist/{esm → types}/utilities/segmentation/thresholdSegmentationByRange.d.ts +0 -0
  472. /package/dist/{esm → types}/utilities/segmentation/triggerSegmentationRender.d.ts +0 -0
  473. /package/dist/{esm → types}/utilities/stackPrefetch/index.d.ts +0 -0
  474. /package/dist/{esm → types}/utilities/stackPrefetch/stackContextPrefetch.d.ts +0 -0
  475. /package/dist/{esm → types}/utilities/stackPrefetch/stackPrefetch.d.ts +0 -0
  476. /package/dist/{esm → types}/utilities/stackPrefetch/stackPrefetchUtils.d.ts +0 -0
  477. /package/dist/{esm → types}/utilities/stackPrefetch/state.d.ts +0 -0
  478. /package/dist/{esm → types}/utilities/throttle.d.ts +0 -0
  479. /package/dist/{esm → types}/utilities/touch/index.d.ts +0 -0
  480. /package/dist/{esm → types}/utilities/triggerAnnotationRender.d.ts +0 -0
  481. /package/dist/{esm → types}/utilities/triggerAnnotationRenderForViewportIds.d.ts +0 -0
  482. /package/dist/{esm → types}/utilities/viewport/index.d.ts +0 -0
  483. /package/dist/{esm → types}/utilities/viewport/isViewportPreScaled.d.ts +0 -0
  484. /package/dist/{esm → types}/utilities/viewport/jumpToSlice.d.ts +0 -0
  485. /package/dist/{esm → types}/utilities/viewport/jumpToWorld.d.ts +0 -0
  486. /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithFrameOfReferenceUID.d.ts +0 -0
  487. /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithParallelNormals.d.ts +0 -0
  488. /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithSameOrientation.d.ts +0 -0
  489. /package/dist/{esm → types}/utilities/viewportFilters/filterViewportsWithToolEnabled.d.ts +0 -0
  490. /package/dist/{esm → types}/utilities/viewportFilters/getViewportIdsWithToolToRender.d.ts +0 -0
  491. /package/dist/{esm → types}/utilities/viewportFilters/index.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BasicStatsCalculator.js","sourceRoot":"","sources":["../../../../../src/utilities/math/basic/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C"}
@@ -1,4 +1,3 @@
1
- import { _cloneDeep } from 'lodash.clonedeep';
2
1
  import { getEnabledElementByIds, volumeLoader, VolumeViewport, utilities as csUtils, } from '@cornerstonejs/core';
3
2
  export default async function createLabelmapVolumeForViewport(input) {
4
3
  const { viewportId, renderingEngineId, options } = input;
@@ -16,7 +15,7 @@ export default async function createLabelmapVolumeForViewport(input) {
16
15
  segmentationId = `${uid}-based-segmentation-${options?.volumeId ?? csUtils.uuidv4().slice(0, 8)}`;
17
16
  }
18
17
  if (options) {
19
- const properties = _cloneDeep(options);
18
+ const properties = structuredClone(options);
20
19
  await volumeLoader.createLocalVolume(properties, segmentationId);
21
20
  }
22
21
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"createLabelmapVolumeForViewport.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/createLabelmapVolumeForViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,SAAS,IAAI,OAAO,GACrB,MAAM,qBAAqB,CAAC;AAc7B,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,+BAA+B,CAAC,KAgB7D;IACC,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACzD,IAAI,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;IAE7E,IAAI,CAAC,cAAc,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACrC;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IACpC,IAAI,CAAC,CAAC,QAAQ,YAAY,cAAc,CAAC,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,MAAM,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;IAE3C,IAAI,cAAc,KAAK,SAAS,EAAE;QAEhC,cAAc,GAAG,GAAG,GAAG,uBACrB,OAAO,EAAE,QAAQ,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAClD,EAAE,CAAC;KACJ;IAED,IAAI,OAAO,EAAE;QAGX,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,YAAY,CAAC,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;KAClE;SAAM;QAEL,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;QACrD,MAAM,YAAY,CAAC,2BAA2B,CAAC,QAAQ,EAAE;YACvD,QAAQ,EAAE,cAAc;SACzB,CAAC,CAAC;KACJ;IAED,OAAO,cAAc,CAAC;AACxB,CAAC"}
1
+ {"version":3,"file":"createLabelmapVolumeForViewport.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/createLabelmapVolumeForViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,SAAS,IAAI,OAAO,GACrB,MAAM,qBAAqB,CAAC;AAc7B,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,+BAA+B,CAAC,KAgB7D;IACC,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACzD,IAAI,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;IAE7E,IAAI,CAAC,cAAc,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACrC;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IACpC,IAAI,CAAC,CAAC,QAAQ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AAqB,CACtB,CAAC;IAEF,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAGhD,IAAI,iBAAiB,IAAI,iBAAiB,CAAC,gBAAgB,CAAC,MAAM,EAAE;QAClE,iBAAiB,CAAC,OAAO,GAAG,KAAK,CAAC;QAGlC,oBAAoB,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;KACrD;AACH,CAAC;AAED,SAAS,gBAAgB;IACvB,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAM;IAC9B,aAAa,GAAG,MAAM,CAAC;AACzB,CAAC;AAED,MAAM,aAAa,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;AAE9E,eAAe,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ToolModes } from '../../enums';
2
2
  import { EventTypes } from '../../types';
3
- declare type ModesFilter = Array<ToolModes>;
3
+ type ModesFilter = Array<ToolModes>;
4
4
  export default function getToolsWithModesForMouseEvent(evt: EventTypes.MouseMoveEventType, modesFilter: ModesFilter, evtButton?: any): any[];
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ToolModes } from '../../enums';
2
2
  import { EventTypes } from '../../types';
3
- declare type ModesFilter = Array<ToolModes>;
3
+ type ModesFilter = Array<ToolModes>;
4
4
  export default function getToolsWithModesForTouchEvent(evt: EventTypes.NormalizedTouchEventType, modesFilter: ModesFilter, numTouchPoints?: number): any[];
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  import Synchronizer from '../../store/SynchronizerManager/Synchronizer';
2
- declare type VOISynchronizerOptions = {
2
+ type VOISynchronizerOptions = {
3
3
  syncInvertState: boolean;
4
4
  };
5
5
  export default function createVOISynchronizer(synchronizerName: string, options?: VOISynchronizerOptions): Synchronizer;
@@ -1,5 +1,5 @@
1
1
  import type { Types } from '@cornerstonejs/core';
2
- export declare type AutoPanCallbackData = {
2
+ export type AutoPanCallbackData = {
3
3
  points: {
4
4
  currentPosition: {
5
5
  canvas: Types.Point2;
@@ -15,7 +15,7 @@ export declare type AutoPanCallbackData = {
15
15
  world: Types.Point3;
16
16
  };
17
17
  };
18
- export declare type AutoPanCallback = (data: AutoPanCallbackData) => void;
18
+ export type AutoPanCallback = (data: AutoPanCallbackData) => void;
19
19
  declare class AdvancedMagnifyViewport {
20
20
  private _viewportId;
21
21
  private _sourceEnabledElement;
@@ -1,7 +1,7 @@
1
1
  import type { Types } from '@cornerstonejs/core';
2
2
  import { AdvancedMagnifyViewport, AutoPanCallback } from './AdvancedMagnifyViewport';
3
3
  import { AdvancedMagnifyAnnotation } from '../types/ToolSpecificAnnotationTypes';
4
- export declare type MagnifyViewportInfo = {
4
+ export type MagnifyViewportInfo = {
5
5
  magnifyViewportId?: string;
6
6
  sourceEnabledElement: Types.IEnabledElement;
7
7
  position: Types.Point2;
@@ -1,4 +1,4 @@
1
- declare type ConfigCache = {
1
+ type ConfigCache = {
2
2
  segmentsHidden: Set<number>;
3
3
  outlineWidthActive: number;
4
4
  visibility: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { Types } from '@cornerstonejs/core';
2
- declare type OperationData = {
2
+ type OperationData = {
3
3
  segmentationId: string;
4
4
  imageVolume: Types.IImageVolume;
5
5
  points: any;
@@ -1,6 +1,6 @@
1
1
  import { ImageVolume } from '@cornerstonejs/core';
2
2
  import type { Types } from '@cornerstonejs/core';
3
- declare type EraseOperationData = {
3
+ type EraseOperationData = {
4
4
  segmentationId: string;
5
5
  points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
6
6
  volume: ImageVolume;
@@ -1,5 +1,5 @@
1
1
  import type { Types } from '@cornerstonejs/core';
2
- declare type OperationData = {
2
+ type OperationData = {
3
3
  points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
4
4
  imageVolume: Types.IImageVolume;
5
5
  volume: Types.IImageVolume;
@@ -1,5 +1,5 @@
1
1
  import type { Types } from '@cornerstonejs/core';
2
- declare type OperationData = {
2
+ type OperationData = {
3
3
  segmentationId: string;
4
4
  imageVolume: Types.IImageVolume;
5
5
  points: any;
@@ -1,6 +1,6 @@
1
1
  import { ImageVolume } from '@cornerstonejs/core';
2
2
  import type { Types } from '@cornerstonejs/core';
3
- declare type OperationData = {
3
+ type OperationData = {
4
4
  segmentationId: string;
5
5
  points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
6
6
  volume: ImageVolume;
@@ -1,5 +1,5 @@
1
1
  import type { Types } from '@cornerstonejs/core';
2
- declare type OperationData = {
2
+ type OperationData = {
3
3
  points: [Types.Point3, Types.Point3, Types.Point3, Types.Point3];
4
4
  volume: Types.IImageVolume;
5
5
  imageVolume: Types.IImageVolume;
@@ -0,0 +1,2 @@
1
+ type AnnotationGroupSelector = HTMLDivElement | string;
2
+ export default AnnotationGroupSelector;
@@ -1,15 +1,15 @@
1
- declare type Modes = '' | 'Active' | 'Passive' | 'Enabled';
2
- declare type States = '' | 'Highlighted' | 'Selected' | 'Locked';
3
- declare type Properties = 'color' | 'lineWidth' | 'lineDash' | 'textBoxFontFamily' | 'textBoxFontSize' | 'textBoxColor' | 'textBoxBackground' | 'textBoxLinkLineWidth' | 'textBoxLinkLineDash';
4
- export declare type AnnotationStyle = {
1
+ type Modes = '' | 'Active' | 'Passive' | 'Enabled';
2
+ type States = '' | 'Highlighted' | 'Selected' | 'Locked';
3
+ type Properties = 'color' | 'lineWidth' | 'lineDash' | 'textBoxFontFamily' | 'textBoxFontSize' | 'textBoxColor' | 'textBoxBackground' | 'textBoxLinkLineWidth' | 'textBoxLinkLineDash';
4
+ export type AnnotationStyle = {
5
5
  [key in `${Properties}${States}${Modes}`]?: string;
6
6
  };
7
- export declare type ToolStyleConfig = {
7
+ export type ToolStyleConfig = {
8
8
  [toolName: string]: AnnotationStyle;
9
9
  } & {
10
10
  global?: AnnotationStyle;
11
11
  };
12
- export declare type StyleConfig = {
12
+ export type StyleConfig = {
13
13
  annotations?: {
14
14
  [annotationUID: string]: AnnotationStyle;
15
15
  };
@@ -21,7 +21,7 @@ export declare type StyleConfig = {
21
21
  };
22
22
  default: ToolStyleConfig;
23
23
  };
24
- export declare type StyleSpecifier = {
24
+ export type StyleSpecifier = {
25
25
  viewportId?: string;
26
26
  toolGroupId?: string;
27
27
  toolName?: string;
@@ -1,5 +1,5 @@
1
1
  import type { Types } from '@cornerstonejs/core';
2
- declare type Annotation = {
2
+ type Annotation = {
3
3
  annotationUID?: string;
4
4
  highlighted?: boolean;
5
5
  isLocked?: boolean;
@@ -35,11 +35,11 @@ declare type Annotation = {
35
35
  cachedStats?: unknown;
36
36
  };
37
37
  };
38
- declare type Annotations = Array<Annotation>;
39
- declare type GroupSpecificAnnotations = {
38
+ type Annotations = Array<Annotation>;
39
+ type GroupSpecificAnnotations = {
40
40
  [toolName: string]: Annotations;
41
41
  };
42
- declare type AnnotationState = {
42
+ type AnnotationState = {
43
43
  [key: string]: GroupSpecificAnnotations;
44
44
  };
45
45
  export { Annotation, Annotations, GroupSpecificAnnotations, AnnotationState };
@@ -1,3 +1,3 @@
1
1
  import type { Types } from '@cornerstonejs/core';
2
- declare type BoundsIJK = [Types.Point2, Types.Point2, Types.Point2];
2
+ type BoundsIJK = [Types.Point2, Types.Point2, Types.Point2];
3
3
  export default BoundsIJK;
@@ -1,4 +1,4 @@
1
- declare type PlayClipOptions = {
1
+ type PlayClipOptions = {
2
2
  framesPerSecond?: number;
3
3
  frameTimeVector?: number[];
4
4
  reverse?: boolean;
@@ -19,7 +19,7 @@ interface ToolData {
19
19
  loop: boolean;
20
20
  dynamicCineEnabled?: boolean;
21
21
  }
22
- declare type CinePlayContext = {
22
+ type CinePlayContext = {
23
23
  get numScrollSteps(): number;
24
24
  get currentStepIndex(): number;
25
25
  get frameTimeVectorEnabled(): boolean;
@@ -1,4 +1,4 @@
1
- declare type Statistics = {
1
+ type Statistics = {
2
2
  name: string;
3
3
  value: number;
4
4
  unit: null | string;
@@ -1,4 +1,4 @@
1
- export declare type ContourConfig = {
1
+ export type ContourConfig = {
2
2
  outlineWidthActive?: number;
3
3
  outlineWidthInactive?: number;
4
4
  outlineOpacity?: number;
@@ -8,7 +8,7 @@ export declare type ContourConfig = {
8
8
  fillAlpha?: number;
9
9
  fillAlphaInactive?: number;
10
10
  };
11
- export declare type ContourRenderingConfig = {};
12
- export declare type ContourSegmentationData = {
11
+ export type ContourRenderingConfig = {};
12
+ export type ContourSegmentationData = {
13
13
  geometryIds: string[];
14
14
  };
@@ -1,8 +1,8 @@
1
- export declare type SVGPoint = {
1
+ export type SVGPoint = {
2
2
  x: number;
3
3
  y: number;
4
4
  };
5
- export declare type SVGCursorDescriptor = {
5
+ export type SVGCursorDescriptor = {
6
6
  iconContent: string;
7
7
  iconSize: number;
8
8
  viewBox: SVGPoint;
@@ -0,0 +1,215 @@
1
+ import { Types } from '@cornerstonejs/core';
2
+ import { Annotation } from './AnnotationTypes';
3
+ import IPoints from './IPoints';
4
+ import ITouchPoints from './ITouchPoints';
5
+ import IDistance from './IDistance';
6
+ import { SetToolBindingsType } from './ISetToolModeOptions';
7
+ import { Swipe } from '../enums/Touch';
8
+ import { ToolModes } from '../enums';
9
+ type NormalizedInteractionEventDetail = {
10
+ eventName: string;
11
+ renderingEngineId: string;
12
+ viewportId: string;
13
+ camera: Record<string, unknown>;
14
+ element: HTMLDivElement;
15
+ };
16
+ type MouseCustomEventDetail = NormalizedInteractionEventDetail & {
17
+ event: Record<string, unknown> | MouseEvent;
18
+ };
19
+ type TouchCustomEventDetail = NormalizedInteractionEventDetail & {
20
+ event: Record<string, unknown> | TouchEvent;
21
+ };
22
+ type MousePointsDetail = {
23
+ startPoints: IPoints;
24
+ lastPoints: IPoints;
25
+ currentPoints: IPoints;
26
+ deltaPoints: IPoints;
27
+ };
28
+ type TouchPointsDetail = {
29
+ startPoints: ITouchPoints;
30
+ lastPoints: ITouchPoints;
31
+ currentPoints: ITouchPoints;
32
+ startPointsList: ITouchPoints[];
33
+ lastPointsList: ITouchPoints[];
34
+ currentPointsList: ITouchPoints[];
35
+ deltaPoints: IPoints;
36
+ deltaDistance: IDistance;
37
+ };
38
+ type InteractionEventDetail = NormalizedInteractionEventDetail & (MouseCustomEventDetail | TouchCustomEventDetail) & (MousePointsDetail | TouchPointsDetail);
39
+ type InteractionStartEventDetail = InteractionEventDetail;
40
+ type InteractionEndEventDetail = InteractionEventDetail;
41
+ type ToolModeChangedEventDetail = {
42
+ toolGroupId: string;
43
+ toolName: string;
44
+ mode: ToolModes;
45
+ toolBindingsOptions?: SetToolBindingsType;
46
+ };
47
+ type ToolActivatedEventDetail = {
48
+ toolGroupId: string;
49
+ toolName: string;
50
+ toolBindingsOptions: SetToolBindingsType;
51
+ };
52
+ type AnnotationAddedEventDetail = {
53
+ viewportId: string;
54
+ renderingEngineId: string;
55
+ annotation: Annotation;
56
+ };
57
+ type AnnotationCompletedEventDetail = {
58
+ annotation: Annotation;
59
+ };
60
+ type AnnotationModifiedEventDetail = {
61
+ viewportId: string;
62
+ renderingEngineId: string;
63
+ annotation: Annotation;
64
+ };
65
+ type AnnotationRemovedEventDetail = {
66
+ annotation: Annotation;
67
+ annotationManagerUID: string;
68
+ };
69
+ type AnnotationSelectionChangeEventDetail = {
70
+ added: Array<string>;
71
+ removed: Array<string>;
72
+ selection: Array<string>;
73
+ };
74
+ type AnnotationLockChangeEventDetail = {
75
+ added: Array<Annotation>;
76
+ removed: Array<Annotation>;
77
+ locked: Array<Annotation>;
78
+ };
79
+ type AnnotationVisibilityChangeEventDetail = {
80
+ lastHidden: Array<string>;
81
+ lastVisible: Array<string>;
82
+ hidden: Array<string>;
83
+ };
84
+ type AnnotationRenderedEventDetail = {
85
+ element: HTMLDivElement;
86
+ viewportId: string;
87
+ renderingEngineId: string;
88
+ };
89
+ type SegmentationDataModifiedEventDetail = {
90
+ segmentationId: string;
91
+ modifiedSlicesToUse?: number[];
92
+ };
93
+ type SegmentationRenderedEventDetail = {
94
+ viewportId: string;
95
+ toolGroupId: string;
96
+ };
97
+ type SegmentationRepresentationModifiedEventDetail = {
98
+ toolGroupId: string;
99
+ segmentationRepresentationUID: string;
100
+ };
101
+ type SegmentationRemovedEventDetail = {
102
+ segmentationId: string;
103
+ };
104
+ type SegmentationRepresentationRemovedEventDetail = {
105
+ toolGroupId: string;
106
+ segmentationRepresentationUID: string;
107
+ };
108
+ type SegmentationModifiedEventDetail = {
109
+ segmentationId: string;
110
+ };
111
+ type KeyDownEventDetail = {
112
+ element: HTMLDivElement;
113
+ viewportId: string;
114
+ renderingEngineId: string;
115
+ key: string;
116
+ keyCode: number;
117
+ };
118
+ type KeyUpEventDetail = KeyDownEventDetail;
119
+ type MouseDownEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & {
120
+ mouseButton: number;
121
+ };
122
+ type TouchStartEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail;
123
+ type MouseDragEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & {
124
+ mouseButton: number;
125
+ };
126
+ type TouchDragEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail;
127
+ type MouseMoveEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & {
128
+ currentPoints: IPoints;
129
+ };
130
+ type MouseUpEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & {
131
+ mouseButton: number;
132
+ };
133
+ type TouchEndEventDetail = NormalizedInteractionEventDetail & TouchPointsDetail & TouchCustomEventDetail;
134
+ type MouseDownActivateEventDetail = NormalizedInteractionEventDetail & MousePointsDetail & MouseCustomEventDetail & {
135
+ mouseButton: number;
136
+ };
137
+ type TouchStartActivateEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail;
138
+ type MouseClickEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & {
139
+ mouseButton: number;
140
+ };
141
+ type MouseDoubleClickEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail;
142
+ type TouchTapEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & {
143
+ currentPointsList: ITouchPoints[];
144
+ currentPoints: ITouchPoints;
145
+ taps: number;
146
+ };
147
+ type TouchSwipeEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & {
148
+ swipe: Swipe;
149
+ };
150
+ type TouchPressEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & {
151
+ startPointsList: ITouchPoints[];
152
+ lastPointsList: ITouchPoints[];
153
+ startPoints: ITouchPoints;
154
+ lastPoints: ITouchPoints;
155
+ };
156
+ type MouseWheelEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & {
157
+ detail: Record<string, any>;
158
+ wheel: {
159
+ spinX: number;
160
+ spinY: number;
161
+ pixelX: number;
162
+ pixelY: number;
163
+ direction: number;
164
+ };
165
+ points: IPoints;
166
+ };
167
+ type VolumeScrollOutOfBoundsEventDetail = {
168
+ volumeId: string;
169
+ viewport: Types.IVolumeViewport;
170
+ desiredStepIndex: number;
171
+ currentStepIndex: number;
172
+ delta: number;
173
+ numScrollSteps: number;
174
+ currentImageId: string;
175
+ };
176
+ type NormalizedMouseEventType = Types.CustomEventType<MouseCustomEventDetail>;
177
+ type NormalizedTouchEventType = Types.CustomEventType<TouchCustomEventDetail>;
178
+ type ToolModeChangedEventType = Types.CustomEventType<ToolModeChangedEventDetail>;
179
+ type ToolActivatedEventType = Types.CustomEventType<ToolActivatedEventDetail>;
180
+ type AnnotationAddedEventType = Types.CustomEventType<AnnotationAddedEventDetail>;
181
+ type AnnotationCompletedEventType = Types.CustomEventType<AnnotationCompletedEventDetail>;
182
+ type AnnotationModifiedEventType = Types.CustomEventType<AnnotationModifiedEventDetail>;
183
+ type AnnotationRemovedEventType = Types.CustomEventType<AnnotationRemovedEventDetail>;
184
+ type AnnotationSelectionChangeEventType = Types.CustomEventType<AnnotationSelectionChangeEventDetail>;
185
+ type AnnotationRenderedEventType = Types.CustomEventType<AnnotationRenderedEventDetail>;
186
+ type AnnotationLockChangeEventType = Types.CustomEventType<AnnotationLockChangeEventDetail>;
187
+ type AnnotationVisibilityChangeEventType = Types.CustomEventType<AnnotationVisibilityChangeEventDetail>;
188
+ type SegmentationDataModifiedEventType = Types.CustomEventType<SegmentationDataModifiedEventDetail>;
189
+ type SegmentationRepresentationModifiedEventType = Types.CustomEventType<SegmentationRepresentationModifiedEventDetail>;
190
+ type SegmentationRemovedEventType = Types.CustomEventType<SegmentationRemovedEventDetail>;
191
+ type SegmentationRepresentationRemovedEventType = Types.CustomEventType<SegmentationRepresentationRemovedEventDetail>;
192
+ type SegmentationRenderedEventType = Types.CustomEventType<SegmentationRenderedEventDetail>;
193
+ type SegmentationModifiedEventType = Types.CustomEventType<SegmentationModifiedEventDetail>;
194
+ type KeyDownEventType = Types.CustomEventType<KeyDownEventDetail>;
195
+ type KeyUpEventType = Types.CustomEventType<KeyUpEventDetail>;
196
+ type MouseDownEventType = Types.CustomEventType<MouseDownEventDetail>;
197
+ type TouchTapEventType = Types.CustomEventType<TouchTapEventDetail>;
198
+ type TouchSwipeEventType = Types.CustomEventType<TouchSwipeEventDetail>;
199
+ type TouchPressEventType = Types.CustomEventType<TouchPressEventDetail>;
200
+ type TouchStartEventType = Types.CustomEventType<TouchStartEventDetail>;
201
+ type InteractionEventType = Types.CustomEventType<InteractionEventDetail>;
202
+ type InteractionStartType = Types.CustomEventType<InteractionStartEventDetail>;
203
+ type InteractionEndType = Types.CustomEventType<InteractionEndEventDetail>;
204
+ type MouseDownActivateEventType = Types.CustomEventType<MouseDownActivateEventDetail>;
205
+ type TouchStartActivateEventType = Types.CustomEventType<TouchStartActivateEventDetail>;
206
+ type MouseDragEventType = Types.CustomEventType<MouseDragEventDetail>;
207
+ type TouchDragEventType = Types.CustomEventType<TouchDragEventDetail>;
208
+ type MouseUpEventType = Types.CustomEventType<MouseUpEventDetail>;
209
+ type TouchEndEventType = Types.CustomEventType<TouchEndEventDetail>;
210
+ type MouseClickEventType = Types.CustomEventType<MouseClickEventDetail>;
211
+ type MouseMoveEventType = Types.CustomEventType<MouseMoveEventDetail>;
212
+ type MouseDoubleClickEventType = Types.CustomEventType<MouseDoubleClickEventDetail>;
213
+ type MouseWheelEventType = Types.CustomEventType<MouseWheelEventDetail>;
214
+ type VolumeScrollOutOfBoundsEventType = Types.CustomEventType<VolumeScrollOutOfBoundsEventDetail>;
215
+ export { InteractionStartType, InteractionEndType, InteractionEventType, NormalizedInteractionEventDetail, NormalizedMouseEventType, NormalizedTouchEventType, ToolModeChangedEventDetail, ToolModeChangedEventType, ToolActivatedEventDetail, ToolActivatedEventType, AnnotationAddedEventDetail, AnnotationAddedEventType, AnnotationCompletedEventDetail, AnnotationCompletedEventType, AnnotationModifiedEventDetail, AnnotationModifiedEventType, AnnotationRemovedEventDetail, AnnotationRemovedEventType, AnnotationSelectionChangeEventDetail, AnnotationSelectionChangeEventType, AnnotationRenderedEventDetail, AnnotationRenderedEventType, AnnotationLockChangeEventDetail, AnnotationVisibilityChangeEventDetail, AnnotationLockChangeEventType, AnnotationVisibilityChangeEventType, SegmentationDataModifiedEventType, SegmentationRepresentationModifiedEventDetail, SegmentationRepresentationModifiedEventType, SegmentationRepresentationRemovedEventDetail, SegmentationRepresentationRemovedEventType, SegmentationRemovedEventType, SegmentationRemovedEventDetail, SegmentationDataModifiedEventDetail, SegmentationRenderedEventType, SegmentationRenderedEventDetail, SegmentationModifiedEventType, SegmentationModifiedEventDetail, KeyDownEventDetail, KeyDownEventType, KeyUpEventDetail, KeyUpEventType, MouseDownEventDetail, TouchStartEventDetail, MouseDownEventType, TouchStartEventType, MouseDownActivateEventDetail, TouchStartActivateEventDetail, MouseDownActivateEventType, TouchStartActivateEventType, MouseDragEventDetail, TouchDragEventDetail, MouseDragEventType, TouchDragEventType, MouseUpEventDetail, TouchEndEventDetail, MouseUpEventType, TouchEndEventType, MouseClickEventDetail, MouseClickEventType, TouchTapEventDetail, TouchTapEventType, TouchSwipeEventDetail, TouchSwipeEventType, TouchPressEventDetail, TouchPressEventType, MouseMoveEventDetail, MouseMoveEventType, MouseDoubleClickEventDetail, MouseDoubleClickEventType, MouseWheelEventDetail, MouseWheelEventType, VolumeScrollOutOfBoundsEventDetail, VolumeScrollOutOfBoundsEventType, };
@@ -1,12 +1,12 @@
1
1
  import { Types } from '@cornerstonejs/core';
2
- declare type FloodFillResult = {
2
+ type FloodFillResult = {
3
3
  flooded: Types.Point2[] | Types.Point3[];
4
4
  boundaries: Types.Point2[] | Types.Point3[];
5
5
  };
6
- declare type FloodFillGetter3D = (x: number, y: number, z: number) => number;
7
- declare type FloodFillGetter2D = (x: number, y: number) => number;
8
- declare type FloodFillGetter = FloodFillGetter2D | FloodFillGetter3D;
9
- declare type FloodFillOptions = {
6
+ type FloodFillGetter3D = (x: number, y: number, z: number) => number;
7
+ type FloodFillGetter2D = (x: number, y: number) => number;
8
+ type FloodFillGetter = FloodFillGetter2D | FloodFillGetter3D;
9
+ type FloodFillOptions = {
10
10
  onFlood?: (x: any, y: any) => void;
11
11
  onBoundary?: (x: any, y: any) => void;
12
12
  equals?: (a: any, b: any) => boolean;
@@ -1,4 +1,4 @@
1
- declare type IDistance = {
1
+ type IDistance = {
2
2
  page: number;
3
3
  client: number;
4
4
  canvas: number;
@@ -1,5 +1,5 @@
1
1
  import { Types } from '@cornerstonejs/core';
2
- declare type IPoints = {
2
+ type IPoints = {
3
3
  page: Types.Point2;
4
4
  client: Types.Point2;
5
5
  canvas: Types.Point2;
@@ -1,15 +1,15 @@
1
1
  import { ToolModes, MouseBindings, KeyboardBindings } from '../enums';
2
- declare type ToolBindingMouseType = (typeof MouseBindings)[keyof typeof MouseBindings];
3
- declare type ToolBindingKeyboardType = (typeof KeyboardBindings)[keyof typeof KeyboardBindings];
4
- declare type IToolBinding = {
2
+ type ToolBindingMouseType = (typeof MouseBindings)[keyof typeof MouseBindings];
3
+ type ToolBindingKeyboardType = (typeof KeyboardBindings)[keyof typeof KeyboardBindings];
4
+ type IToolBinding = {
5
5
  mouseButton?: ToolBindingMouseType;
6
6
  modifierKey?: ToolBindingKeyboardType;
7
7
  numTouchPoints?: number;
8
8
  };
9
- declare type SetToolBindingsType = {
9
+ type SetToolBindingsType = {
10
10
  bindings: IToolBinding[];
11
11
  };
12
- declare type ToolOptionsType = {
12
+ type ToolOptionsType = {
13
13
  bindings: IToolBinding[];
14
14
  mode: ToolModes;
15
15
  };
@@ -0,0 +1,3 @@
1
+ import { BaseTool } from '../tools';
2
+ type IToolClassReference = new <T extends BaseTool>(config: any) => T;
3
+ export default IToolClassReference;
@@ -1,5 +1,5 @@
1
1
  import IPoints from './IPoints';
2
- declare type ITouchPoints = IPoints & {
2
+ type ITouchPoints = IPoints & {
3
3
  touch: {
4
4
  identifier: string;
5
5
  radiusX: number;
@@ -0,0 +1,2 @@
1
+ type InteractionTypes = 'Mouse' | 'Touch';
2
+ export default InteractionTypes;
@@ -1,15 +1,15 @@
1
1
  import { Types } from '@cornerstonejs/core';
2
2
  import { AnnotationTool } from '../tools';
3
3
  import { Annotation, Annotations } from './AnnotationTypes';
4
- declare type ToolAnnotationsPair = {
4
+ type ToolAnnotationsPair = {
5
5
  tool: AnnotationTool;
6
6
  annotations: Annotations;
7
7
  };
8
- declare type ToolAnnotationPair = {
8
+ type ToolAnnotationPair = {
9
9
  tool: AnnotationTool;
10
10
  annotation: Annotation;
11
11
  };
12
- declare type ToolsWithMoveableHandles = ToolAnnotationPair & {
12
+ type ToolsWithMoveableHandles = ToolAnnotationPair & {
13
13
  handle: Types.Point3;
14
14
  };
15
15
  export { ToolsWithMoveableHandles, ToolAnnotationsPair, ToolAnnotationPair };
@@ -1,4 +1,4 @@
1
- declare type JumpToSliceOptions = {
1
+ type JumpToSliceOptions = {
2
2
  imageIndex: number;
3
3
  debounceLoading?: boolean;
4
4
  volumeId?: string;
@@ -1,6 +1,6 @@
1
1
  import type { vtkColorTransferFunction } from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction';
2
2
  import type { vtkPiecewiseFunction } from '@kitware/vtk.js/Common/DataModel/PiecewiseFunction';
3
- export declare type LabelmapConfig = {
3
+ export type LabelmapConfig = {
4
4
  renderOutline?: boolean;
5
5
  outlineWidthActive?: number;
6
6
  outlineWidthInactive?: number;
@@ -11,11 +11,11 @@ export declare type LabelmapConfig = {
11
11
  outlineOpacity?: number;
12
12
  outlineOpacityInactive?: number;
13
13
  };
14
- export declare type LabelmapRenderingConfig = {
14
+ export type LabelmapRenderingConfig = {
15
15
  cfun?: vtkColorTransferFunction;
16
16
  ofun?: vtkPiecewiseFunction;
17
17
  };
18
- export declare type LabelmapSegmentationData = {
18
+ export type LabelmapSegmentationData = {
19
19
  volumeId: string;
20
20
  referencedVolumeId?: string;
21
21
  };
@@ -1,4 +1,4 @@
1
- declare type PlanarBoundingBox = {
1
+ type PlanarBoundingBox = {
2
2
  x: number;
3
3
  y: number;
4
4
  width: number;