@cornerstonejs/tools 0.1.3 → 0.1.4

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 (139) hide show
  1. package/dist/cjs/drawingSvg/index.d.ts +0 -11
  2. package/dist/cjs/drawingSvg/index.js +0 -10
  3. package/dist/cjs/drawingSvg/index.js.map +1 -1
  4. package/dist/cjs/init.js +20 -4
  5. package/dist/cjs/init.js.map +1 -1
  6. package/dist/cjs/stateManagement/segmentation/activeSegmentation.d.ts +0 -5
  7. package/dist/cjs/stateManagement/segmentation/activeSegmentation.js +0 -4
  8. package/dist/cjs/stateManagement/segmentation/activeSegmentation.js.map +1 -1
  9. package/dist/cjs/stateManagement/segmentation/segmentIndex.d.ts +0 -7
  10. package/dist/cjs/stateManagement/segmentation/segmentIndex.js +0 -6
  11. package/dist/cjs/stateManagement/segmentation/segmentIndex.js.map +1 -1
  12. package/dist/cjs/stateManagement/segmentation/segmentLocking.d.ts +0 -8
  13. package/dist/cjs/stateManagement/segmentation/segmentLocking.js +0 -7
  14. package/dist/cjs/stateManagement/segmentation/segmentLocking.js.map +1 -1
  15. package/dist/cjs/stateManagement/segmentation/segmentationColor.d.ts +0 -5
  16. package/dist/cjs/stateManagement/segmentation/segmentationColor.js +0 -1
  17. package/dist/cjs/stateManagement/segmentation/segmentationColor.js.map +1 -1
  18. package/dist/cjs/stateManagement/segmentation/segmentationConfig.d.ts +0 -13
  19. package/dist/cjs/stateManagement/segmentation/segmentationConfig.js +0 -12
  20. package/dist/cjs/stateManagement/segmentation/segmentationConfig.js.map +1 -1
  21. package/dist/cjs/stateManagement/segmentation/segmentationVisibility.d.ts +0 -5
  22. package/dist/cjs/stateManagement/segmentation/segmentationVisibility.js +0 -1
  23. package/dist/cjs/stateManagement/segmentation/segmentationVisibility.js.map +1 -1
  24. package/dist/cjs/store/ToolGroupManager/index.d.ts +0 -9
  25. package/dist/cjs/store/ToolGroupManager/index.js +0 -8
  26. package/dist/cjs/store/ToolGroupManager/index.js.map +1 -1
  27. package/dist/cjs/tools/CrosshairsTool.js +26 -7
  28. package/dist/cjs/tools/CrosshairsTool.js.map +1 -1
  29. package/dist/cjs/tools/annotation/BidirectionalTool.js +25 -6
  30. package/dist/cjs/tools/annotation/BidirectionalTool.js.map +1 -1
  31. package/dist/cjs/tools/annotation/LengthTool.js +21 -2
  32. package/dist/cjs/tools/annotation/LengthTool.js.map +1 -1
  33. package/dist/cjs/tools/annotation/RectangleRoiTool.js +21 -2
  34. package/dist/cjs/tools/annotation/RectangleRoiTool.js.map +1 -1
  35. package/dist/cjs/utilities/drawing/index.d.ts +0 -4
  36. package/dist/cjs/utilities/drawing/index.js +0 -1
  37. package/dist/cjs/utilities/drawing/index.js.map +1 -1
  38. package/dist/cjs/utilities/getAnnotationNearPoint.js +20 -4
  39. package/dist/cjs/utilities/getAnnotationNearPoint.js.map +1 -1
  40. package/dist/cjs/utilities/index.d.ts +0 -21
  41. package/dist/cjs/utilities/index.js +0 -20
  42. package/dist/cjs/utilities/index.js.map +1 -1
  43. package/dist/cjs/utilities/math/ellipse/index.d.ts +0 -5
  44. package/dist/cjs/utilities/math/ellipse/index.js +0 -1
  45. package/dist/cjs/utilities/math/ellipse/index.js.map +1 -1
  46. package/dist/cjs/utilities/math/index.d.ts +4 -23
  47. package/dist/cjs/utilities/math/index.js +26 -11
  48. package/dist/cjs/utilities/math/index.js.map +1 -1
  49. package/dist/cjs/utilities/math/line/distanceToPoint.d.ts +1 -1
  50. package/dist/cjs/utilities/math/line/index.d.ts +1 -6
  51. package/dist/cjs/utilities/math/line/index.js +4 -6
  52. package/dist/cjs/utilities/math/line/index.js.map +1 -1
  53. package/dist/cjs/utilities/math/line/intersectLine.d.ts +1 -1
  54. package/dist/cjs/utilities/math/rectangle/distanceToPoint.js +20 -4
  55. package/dist/cjs/utilities/math/rectangle/distanceToPoint.js.map +1 -1
  56. package/dist/cjs/utilities/math/rectangle/index.d.ts +1 -4
  57. package/dist/cjs/utilities/math/rectangle/index.js +2 -4
  58. package/dist/cjs/utilities/math/rectangle/index.js.map +1 -1
  59. package/dist/cjs/utilities/math/vec2/index.d.ts +1 -5
  60. package/dist/cjs/utilities/math/vec2/index.js +3 -1
  61. package/dist/cjs/utilities/math/vec2/index.js.map +1 -1
  62. package/dist/cjs/utilities/segmentation/index.d.ts +0 -10
  63. package/dist/cjs/utilities/segmentation/index.js +0 -9
  64. package/dist/cjs/utilities/segmentation/index.js.map +1 -1
  65. package/dist/cjs/utilities/viewportFilters/index.d.ts +0 -6
  66. package/dist/cjs/utilities/viewportFilters/index.js +0 -5
  67. package/dist/cjs/utilities/viewportFilters/index.js.map +1 -1
  68. package/dist/esm/drawingSvg/index.d.ts +0 -11
  69. package/dist/esm/drawingSvg/index.js +0 -10
  70. package/dist/esm/drawingSvg/index.js.map +1 -1
  71. package/dist/esm/init.js +1 -1
  72. package/dist/esm/init.js.map +1 -1
  73. package/dist/esm/stateManagement/segmentation/activeSegmentation.d.ts +0 -5
  74. package/dist/esm/stateManagement/segmentation/activeSegmentation.js +0 -4
  75. package/dist/esm/stateManagement/segmentation/activeSegmentation.js.map +1 -1
  76. package/dist/esm/stateManagement/segmentation/segmentIndex.d.ts +0 -7
  77. package/dist/esm/stateManagement/segmentation/segmentIndex.js +0 -6
  78. package/dist/esm/stateManagement/segmentation/segmentIndex.js.map +1 -1
  79. package/dist/esm/stateManagement/segmentation/segmentLocking.d.ts +0 -8
  80. package/dist/esm/stateManagement/segmentation/segmentLocking.js +0 -7
  81. package/dist/esm/stateManagement/segmentation/segmentLocking.js.map +1 -1
  82. package/dist/esm/stateManagement/segmentation/segmentationColor.d.ts +0 -5
  83. package/dist/esm/stateManagement/segmentation/segmentationColor.js +0 -1
  84. package/dist/esm/stateManagement/segmentation/segmentationColor.js.map +1 -1
  85. package/dist/esm/stateManagement/segmentation/segmentationConfig.d.ts +0 -13
  86. package/dist/esm/stateManagement/segmentation/segmentationConfig.js +0 -12
  87. package/dist/esm/stateManagement/segmentation/segmentationConfig.js.map +1 -1
  88. package/dist/esm/stateManagement/segmentation/segmentationVisibility.d.ts +0 -5
  89. package/dist/esm/stateManagement/segmentation/segmentationVisibility.js +0 -1
  90. package/dist/esm/stateManagement/segmentation/segmentationVisibility.js.map +1 -1
  91. package/dist/esm/store/ToolGroupManager/index.d.ts +0 -9
  92. package/dist/esm/store/ToolGroupManager/index.js +0 -8
  93. package/dist/esm/store/ToolGroupManager/index.js.map +1 -1
  94. package/dist/esm/tools/CrosshairsTool.js +1 -1
  95. package/dist/esm/tools/CrosshairsTool.js.map +1 -1
  96. package/dist/esm/tools/annotation/BidirectionalTool.js +1 -1
  97. package/dist/esm/tools/annotation/BidirectionalTool.js.map +1 -1
  98. package/dist/esm/tools/annotation/LengthTool.js +1 -1
  99. package/dist/esm/tools/annotation/LengthTool.js.map +1 -1
  100. package/dist/esm/tools/annotation/RectangleRoiTool.js +1 -1
  101. package/dist/esm/tools/annotation/RectangleRoiTool.js.map +1 -1
  102. package/dist/esm/utilities/drawing/index.d.ts +0 -4
  103. package/dist/esm/utilities/drawing/index.js +0 -1
  104. package/dist/esm/utilities/drawing/index.js.map +1 -1
  105. package/dist/esm/utilities/getAnnotationNearPoint.js +1 -1
  106. package/dist/esm/utilities/getAnnotationNearPoint.js.map +1 -1
  107. package/dist/esm/utilities/index.d.ts +0 -21
  108. package/dist/esm/utilities/index.js +0 -20
  109. package/dist/esm/utilities/index.js.map +1 -1
  110. package/dist/esm/utilities/math/ellipse/index.d.ts +0 -5
  111. package/dist/esm/utilities/math/ellipse/index.js +0 -1
  112. package/dist/esm/utilities/math/ellipse/index.js.map +1 -1
  113. package/dist/esm/utilities/math/index.d.ts +4 -23
  114. package/dist/esm/utilities/math/index.js +4 -5
  115. package/dist/esm/utilities/math/index.js.map +1 -1
  116. package/dist/esm/utilities/math/line/distanceToPoint.d.ts +1 -1
  117. package/dist/esm/utilities/math/line/index.d.ts +1 -6
  118. package/dist/esm/utilities/math/line/index.js +1 -6
  119. package/dist/esm/utilities/math/line/index.js.map +1 -1
  120. package/dist/esm/utilities/math/line/intersectLine.d.ts +1 -1
  121. package/dist/esm/utilities/math/rectangle/distanceToPoint.js +1 -1
  122. package/dist/esm/utilities/math/rectangle/distanceToPoint.js.map +1 -1
  123. package/dist/esm/utilities/math/rectangle/index.d.ts +1 -4
  124. package/dist/esm/utilities/math/rectangle/index.js +1 -4
  125. package/dist/esm/utilities/math/rectangle/index.js.map +1 -1
  126. package/dist/esm/utilities/math/vec2/index.d.ts +1 -5
  127. package/dist/esm/utilities/math/vec2/index.js +1 -1
  128. package/dist/esm/utilities/math/vec2/index.js.map +1 -1
  129. package/dist/esm/utilities/segmentation/index.d.ts +0 -10
  130. package/dist/esm/utilities/segmentation/index.js +0 -9
  131. package/dist/esm/utilities/segmentation/index.js.map +1 -1
  132. package/dist/esm/utilities/viewportFilters/index.d.ts +0 -6
  133. package/dist/esm/utilities/viewportFilters/index.js +0 -5
  134. package/dist/esm/utilities/viewportFilters/index.js.map +1 -1
  135. package/dist/tools.d.ts +57 -167
  136. package/dist/umd/index.js +2 -1
  137. package/dist/umd/index.js.LICENSE.txt +6 -0
  138. package/dist/umd/index.js.map +1 -1
  139. package/package.json +5 -4
@@ -1,4 +1,4 @@
1
1
  import findClosestPoint from './findClosestPoint';
2
2
  import liangBarksyClip from './liangBarksyClip';
3
- export default { findClosestPoint, liangBarksyClip };
3
+ export { findClosestPoint, liangBarksyClip };
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/utilities/math/vec2/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAE/C,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/utilities/math/vec2/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAA"}
@@ -5,13 +5,3 @@ import createMergedLabelmapForIndex from './createMergedLabelmapForIndex';
5
5
  import isValidRepresentationConfig from './isValidRepresentationConfig';
6
6
  import getDefaultRepresentationConfig from './getDefaultRepresentationConfig';
7
7
  export { getBoundingBoxAroundShape, extend2DBoundingBoxInViewAxis, thresholdVolumeByRange, thresholdVolumeByRoiStats, createMergedLabelmapForIndex, isValidRepresentationConfig, getDefaultRepresentationConfig, };
8
- declare const _default: {
9
- getBoundingBoxAroundShape: typeof getBoundingBoxAroundShape;
10
- extend2DBoundingBoxInViewAxis: typeof extend2DBoundingBoxInViewAxis;
11
- thresholdVolumeByRange: typeof thresholdVolumeByRange;
12
- thresholdVolumeByRoiStats: typeof thresholdVolumeByRoiStats;
13
- createMergedLabelmapForIndex: typeof createMergedLabelmapForIndex;
14
- isValidRepresentationConfig: typeof isValidRepresentationConfig;
15
- getDefaultRepresentationConfig: typeof getDefaultRepresentationConfig;
16
- };
17
- export default _default;
@@ -5,13 +5,4 @@ import createMergedLabelmapForIndex from './createMergedLabelmapForIndex';
5
5
  import isValidRepresentationConfig from './isValidRepresentationConfig';
6
6
  import getDefaultRepresentationConfig from './getDefaultRepresentationConfig';
7
7
  export { getBoundingBoxAroundShape, extend2DBoundingBoxInViewAxis, thresholdVolumeByRange, thresholdVolumeByRoiStats, createMergedLabelmapForIndex, isValidRepresentationConfig, getDefaultRepresentationConfig, };
8
- export default {
9
- getBoundingBoxAroundShape,
10
- extend2DBoundingBoxInViewAxis,
11
- thresholdVolumeByRange,
12
- thresholdVolumeByRoiStats,
13
- createMergedLabelmapForIndex,
14
- isValidRepresentationConfig,
15
- getDefaultRepresentationConfig,
16
- };
17
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,sBAAsB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,yBAAyB,MAAM,6BAA6B,CAAA;AACnE,OAAO,4BAA4B,MAAM,gCAAgC,CAAA;AACzE,OAAO,2BAA2B,MAAM,+BAA+B,CAAA;AACvE,OAAO,8BAA8B,MAAM,kCAAkC,CAAA;AAE7E,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAE7B,sBAAsB,EACtB,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,GAC/B,CAAA;AAED,eAAe;IACb,yBAAyB;IACzB,6BAA6B;IAE7B,sBAAsB;IACtB,yBAAyB;IACzB,4BAA4B;IAC5B,2BAA2B;IAC3B,8BAA8B;CAC/B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/segmentation/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,sBAAsB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,yBAAyB,MAAM,6BAA6B,CAAA;AACnE,OAAO,4BAA4B,MAAM,gCAAgC,CAAA;AACzE,OAAO,2BAA2B,MAAM,+BAA+B,CAAA;AACvE,OAAO,8BAA8B,MAAM,kCAAkC,CAAA;AAE7E,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAE7B,sBAAsB,EACtB,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,GAC/B,CAAA"}
@@ -1,10 +1,4 @@
1
1
  import filterViewportsWithFrameOfReferenceUID from './filterViewportsWithFrameOfReferenceUID';
2
2
  import filterViewportsWithToolEnabled from './filterViewportsWithToolEnabled';
3
3
  import getViewportIdsWithToolToRender from './getViewportIdsWithToolToRender';
4
- declare const _default: {
5
- filterViewportsWithToolEnabled: typeof filterViewportsWithToolEnabled;
6
- filterViewportsWithFrameOfReferenceUID: typeof filterViewportsWithFrameOfReferenceUID;
7
- getViewportIdsWithToolToRender: typeof getViewportIdsWithToolToRender;
8
- };
9
- export default _default;
10
4
  export { filterViewportsWithToolEnabled, filterViewportsWithFrameOfReferenceUID, getViewportIdsWithToolToRender, };
@@ -1,10 +1,5 @@
1
1
  import filterViewportsWithFrameOfReferenceUID from './filterViewportsWithFrameOfReferenceUID';
2
2
  import filterViewportsWithToolEnabled from './filterViewportsWithToolEnabled';
3
3
  import getViewportIdsWithToolToRender from './getViewportIdsWithToolToRender';
4
- export default {
5
- filterViewportsWithToolEnabled,
6
- filterViewportsWithFrameOfReferenceUID,
7
- getViewportIdsWithToolToRender,
8
- };
9
4
  export { filterViewportsWithToolEnabled, filterViewportsWithFrameOfReferenceUID, getViewportIdsWithToolToRender, };
10
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/viewportFilters/index.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,MAAM,0CAA0C,CAAA;AAC7F,OAAO,8BAA8B,MAAM,kCAAkC,CAAA;AAC7E,OAAO,8BAA8B,MAAM,kCAAkC,CAAA;AAE7E,eAAe;IACb,8BAA8B;IAC9B,sCAAsC;IACtC,8BAA8B;CAC/B,CAAA;AAED,OAAO,EACL,8BAA8B,EAC9B,sCAAsC,EACtC,8BAA8B,GAC/B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/viewportFilters/index.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,MAAM,0CAA0C,CAAA;AAC7F,OAAO,8BAA8B,MAAM,kCAAkC,CAAA;AAC7E,OAAO,8BAA8B,MAAM,kCAAkC,CAAA;AAE7E,OAAO,EACL,8BAA8B,EAC9B,sCAAsC,EACtC,8BAA8B,GAC/B,CAAA"}
package/dist/tools.d.ts CHANGED
@@ -7,8 +7,7 @@ import type { vtkVolume } from 'vtk.js/Sources/Rendering/Core/Volume';
7
7
  declare namespace activeSegmentation {
8
8
  export {
9
9
  getActiveSegmentationInfo,
10
- setActiveSegmentation,
11
- _default_3 as default
10
+ setActiveSegmentation
12
11
  }
13
12
  }
14
13
 
@@ -260,6 +259,24 @@ export declare class BidirectionalTool extends AnnotationTool {
260
259
  _isInsideVolume: (index1: any, index2: any, index3: any, index4: any, dimensions: any) => boolean;
261
260
  }
262
261
 
262
+ /**
263
+ * Enums for blendModes for viewport images based on vtk.js
264
+ *
265
+ * It should be noted that if crosshairs are enabled and can modify the slab thickness,
266
+ * then it will not show any difference unless MAXIMUM_INTENSITY_BLEND is set on the viewport
267
+ * as the blend.
268
+ */
269
+ declare enum BlendModes {
270
+ /** composite blending - suitable for compositing multiple images */
271
+ COMPOSITE = BlendMode.COMPOSITE,
272
+ /** maximum intensity projection */
273
+ MAXIMUM_INTENSITY_BLEND = BlendMode.MAXIMUM_INTENSITY_BLEND,
274
+ /** minimum intensity projection */
275
+ MINIMUM_INTENSITY_BLEND = BlendMode.MINIMUM_INTENSITY_BLEND,
276
+ /** average intensity projection */
277
+ AVERAGE_INTENSITY_BLEND = BlendMode.AVERAGE_INTENSITY_BLEND,
278
+ }
279
+
263
280
  declare type BoundsIJK = [Types_2.Point2, Types_2.Point2, Types_2.Point2];
264
281
 
265
282
  declare function calibrateImageSpacing(imageId: string, renderingEngine: Types_2.IRenderingEngine, rowPixelSpacing: number, columnPixelSpacing: number): void;
@@ -671,151 +688,18 @@ declare function debounce(func: Function, wait?: number, options?: {
671
688
  declare function deepmerge(target?: {}, source?: {}, optionsArgument?: any): any;
672
689
 
673
690
  declare const _default: {
674
- createToolGroup: typeof createToolGroup;
675
- destroy: typeof destroy_3;
676
- destroyToolGroupByToolGroupId: typeof destroyToolGroupByToolGroupId;
677
- getToolGroupByToolGroupId: typeof getToolGroupByToolGroupId;
678
- getToolGroup: typeof getToolGroup;
679
- getAllToolGroups: typeof getAllToolGroups;
680
- };
681
-
682
- declare const _default_10: {
683
- findClosestPoint: typeof findClosestPoint;
684
- liangBarksyClip: typeof clip;
685
- };
686
-
687
- declare const _default_11: {
688
- pointInEllipse: typeof pointInEllipse;
689
- getCanvasEllipseCorners: typeof getCanvasEllipseCorners;
690
- };
691
-
692
- declare const _default_12: {
693
691
  filterAnnotationsWithinSlice: typeof filterAnnotationsWithinSlice;
694
692
  getWorldWidthAndHeightFromCorners: typeof getWorldWidthAndHeightFromCorners;
695
693
  filterAnnotationsForDisplay: typeof filterAnnotationsForDisplay;
696
694
  getPointInLineOfSightWithCriteria: typeof getPointInLineOfSightWithCriteria;
697
695
  };
698
696
 
699
- declare const _default_13: {
700
- filterViewportsWithToolEnabled: typeof filterViewportsWithToolEnabled;
701
- filterViewportsWithFrameOfReferenceUID: typeof filterViewportsWithFrameOfReferenceUID;
702
- getViewportIdsWithToolToRender: typeof getViewportIdsWithToolToRender;
703
- };
704
-
705
- declare const _default_14: {
697
+ declare const _default_2: {
706
698
  snapFocalPointToSlice: typeof snapFocalPointToSlice;
707
699
  getSliceRange: typeof getSliceRange;
708
700
  scrollThroughStack: typeof scrollThroughStack;
709
701
  };
710
702
 
711
- declare const _default_15: {
712
- getTextBoxCoordsCanvas: typeof getTextBoxCoordsCanvas;
713
- };
714
-
715
- declare const _default_16: {
716
- getBoundingBoxAroundShape: typeof getBoundingBoxAroundShape;
717
- extend2DBoundingBoxInViewAxis: typeof extend2DBoundingBoxInViewAxis;
718
- thresholdVolumeByRange: typeof thresholdVolumeByRange;
719
- thresholdVolumeByRoiStats: typeof thresholdVolumeByRoiStats;
720
- createMergedLabelmapForIndex: typeof createMergedLabelmapForIndex;
721
- isValidRepresentationConfig: typeof isValidRepresentationConfig;
722
- getDefaultRepresentationConfig: typeof getDefaultRepresentationConfig;
723
- };
724
-
725
- declare const _default_17: {
726
- math: typeof math;
727
- planar: typeof planar;
728
- viewportFilters: typeof viewportFilters;
729
- stackScrollTool: typeof stackScrollTool;
730
- drawing: typeof drawing_2;
731
- debounce: typeof debounce;
732
- deepMerge: (target?: {}, source?: {}, optionsArgument?: any) => any;
733
- throttle: typeof throttle;
734
- isObject: typeof isObject;
735
- triggerEvent: typeof triggerEvent;
736
- calibrateImageSpacing: typeof calibrateImageSpacing;
737
- transformPhysicalToIndex: typeof transformPhysicalToIndex;
738
- segmentation: typeof segmentation_2;
739
- triggerAnnotationRenderForViewportIds: typeof triggerAnnotationRenderForViewportIds;
740
- pointInShapeCallback: typeof pointInShapeCallback;
741
- pointInSurroundingSphereCallback: typeof pointInSurroundingSphereCallback;
742
- getAnnotationNearPoint: typeof getAnnotationNearPoint;
743
- getAnnotationNearPointOnEnabledElement: typeof getAnnotationNearPointOnEnabledElement;
744
- };
745
-
746
- declare const _default_2: {
747
- draw: typeof draw;
748
- drawCircle: typeof drawCircle;
749
- drawEllipse: typeof drawEllipse;
750
- drawHandles: typeof drawHandles;
751
- drawLine: typeof drawLine;
752
- drawLinkedTextBox: typeof drawLinkedTextBox;
753
- drawRect: typeof drawRect;
754
- drawTextBox: typeof drawTextBox;
755
- };
756
-
757
- declare const _default_3: {
758
- getActiveSegmentationInfo: typeof getActiveSegmentationInfo;
759
- setActiveSegmentation: typeof setActiveSegmentation;
760
- };
761
-
762
- declare const _default_4: {
763
- getSegmentIndexLocked: typeof getSegmentIndexLocked;
764
- setSegmentIndexLocked: typeof setSegmentIndexLocked;
765
- getSegmentIndexLockedForSegmentation: typeof getSegmentIndexLockedForSegmentation;
766
- setSegmentIndexLockedForSegmentation: typeof setSegmentIndexLockedForSegmentation;
767
- getSegmentsLockedForSegmentation: typeof getSegmentsLockedForSegmentation;
768
- };
769
-
770
- declare const _default_5: {
771
- getColorForSegmentIndex: typeof getColorForSegmentIndex;
772
- addColorLUT: typeof addColorLUT_2;
773
- };
774
-
775
- declare const _default_6: {
776
- getGlobalSegmentationConfig: typeof getGlobalSegmentationConfig_2;
777
- setGlobalSegmentationConfig: typeof setGlobalSegmentationConfig_2;
778
- getGlobalRepresentationConfig: typeof getGlobalRepresentationConfig;
779
- setGlobalRepresentationConfig: typeof setGlobalRepresentationConfig;
780
- updateGlobalSegmentationConfig: typeof updateGlobalSegmentationConfig;
781
- updateGlobalRepresentationConfig: typeof updateGlobalRepresentationConfig;
782
- getSegmentationConfig: typeof getSegmentationConfig_2;
783
- setSegmentationConfig: typeof setSegmentationConfig_2;
784
- setRepresentationConfig: typeof setRepresentationConfig;
785
- getRepresentationConfig: typeof getRepresentationConfig;
786
- };
787
-
788
- declare const _default_7: {
789
- setSegmentationVisibility: typeof setSegmentationVisibility;
790
- getSegmentationVisibility: typeof getSegmentationVisibility;
791
- };
792
-
793
- declare const _default_8: {
794
- getActiveSegmentIndex: typeof getActiveSegmentIndex;
795
- setActiveSegmentIndex: typeof setActiveSegmentIndex;
796
- getActiveSegmentIndexForSegmentation: typeof getActiveSegmentIndexForSegmentation;
797
- setActiveSegmentIndexForSegmentation: typeof setActiveSegmentIndexForSegmentation;
798
- };
799
-
800
- declare const _default_9: {
801
- vec2: {
802
- findClosestPoint: findClosestPoint;
803
- liangBarksyClip: clip;
804
- };
805
- ellipse: {
806
- pointInEllipse: pointInEllipse;
807
- getCanvasEllipseCorners: getCanvasEllipseCorners;
808
- };
809
- lineSegment: {
810
- distanceToPoint: distanceToPoint;
811
- distanceToPointSquared: distanceToPointSquared;
812
- intersectLine: intersectLine;
813
- };
814
- rectangle: {
815
- distanceToPoint: distanceToPoint_2;
816
- };
817
- };
818
-
819
703
  export declare function destroy(): void;
820
704
 
821
705
  declare function destroy_2(): void;
@@ -849,16 +733,14 @@ declare namespace drawing {
849
733
  drawLine,
850
734
  drawLinkedTextBox,
851
735
  drawRect,
852
- drawTextBox,
853
- _default_2 as default
736
+ drawTextBox
854
737
  }
855
738
  }
856
739
  export { drawing }
857
740
 
858
741
  declare namespace drawing_2 {
859
742
  export {
860
- getTextBoxCoordsCanvas,
861
- _default_15 as default
743
+ getTextBoxCoordsCanvas
862
744
  }
863
745
  }
864
746
 
@@ -920,6 +802,13 @@ declare type Ellipse = {
920
802
  zRadius: number;
921
803
  };
922
804
 
805
+ declare namespace ellipse {
806
+ export {
807
+ pointInEllipse,
808
+ getCanvasEllipseCorners
809
+ }
810
+ }
811
+
923
812
  declare interface EllipticalRoiAnnotation extends Annotation {
924
813
  data: {
925
814
  handles: {
@@ -2177,7 +2066,7 @@ declare interface IVolumeInput {
2177
2066
  /** Callback to be called when the volume is added to the viewport */
2178
2067
  callback?: VolumeInputCallback
2179
2068
  /** Blend mode of the volume - by default it is `additive` */
2180
- blendMode?: string
2069
+ blendMode?: BlendModes
2181
2070
  /** Slab thickness of the volume - by default it is calculated by the image size*/
2182
2071
  slabThickness?: number
2183
2072
  }
@@ -2377,11 +2266,13 @@ export declare class LengthTool extends AnnotationTool {
2377
2266
  _isInsideVolume(index1: any, index2: any, dimensions: any): boolean;
2378
2267
  }
2379
2268
 
2380
- declare const lineSegment: {
2381
- distanceToPoint: typeof distanceToPoint;
2382
- distanceToPointSquared: typeof distanceToPointSquared;
2383
- intersectLine: typeof intersectLine;
2384
- };
2269
+ declare namespace lineSegment {
2270
+ export {
2271
+ distanceToPoint,
2272
+ distanceToPointSquared,
2273
+ intersectLine
2274
+ }
2275
+ }
2385
2276
 
2386
2277
  declare namespace locking {
2387
2278
  export {
@@ -2396,9 +2287,8 @@ declare namespace locking {
2396
2287
 
2397
2288
  declare namespace math {
2398
2289
  export {
2399
- _default_9 as default,
2400
- _default_10 as vec2,
2401
- _default_11 as ellipse,
2290
+ vec2,
2291
+ ellipse,
2402
2292
  lineSegment,
2403
2293
  rectangle
2404
2294
  }
@@ -2573,7 +2463,7 @@ export declare class PanTool extends BaseTool {
2573
2463
 
2574
2464
  declare namespace planar {
2575
2465
  export {
2576
- _default_12 as default,
2466
+ _default as default,
2577
2467
  filterAnnotationsWithinSlice,
2578
2468
  getWorldWidthAndHeightFromCorners,
2579
2469
  filterAnnotationsForDisplay,
@@ -2693,9 +2583,11 @@ declare type PublicViewportInput = {
2693
2583
  defaultOptions: ViewportInputOptions
2694
2584
  }
2695
2585
 
2696
- declare const rectangle: {
2697
- distanceToPoint: typeof distanceToPoint_2;
2698
- };
2586
+ declare namespace rectangle {
2587
+ export {
2588
+ distanceToPoint_2 as distanceToPoint
2589
+ }
2590
+ }
2699
2591
 
2700
2592
  declare interface RectangleRoiAnnotation extends Annotation {
2701
2593
  data: {
@@ -2981,14 +2873,12 @@ declare namespace segmentation_2 {
2981
2873
  thresholdVolumeByRoiStats,
2982
2874
  createMergedLabelmapForIndex,
2983
2875
  isValidRepresentationConfig,
2984
- getDefaultRepresentationConfig,
2985
- _default_16 as default
2876
+ getDefaultRepresentationConfig
2986
2877
  }
2987
2878
  }
2988
2879
 
2989
2880
  declare namespace segmentationColor {
2990
2881
  export {
2991
- _default_5 as default,
2992
2882
  getColorForSegmentIndex,
2993
2883
  addColorLUT_2 as addColorLUT
2994
2884
  }
@@ -3012,8 +2902,7 @@ declare namespace segmentationConfig {
3012
2902
  getSegmentationConfig_2 as getSegmentationConfig,
3013
2903
  setSegmentationConfig_2 as setSegmentationConfig,
3014
2904
  setRepresentationConfig,
3015
- getRepresentationConfig,
3016
- _default_6 as default
2905
+ getRepresentationConfig
3017
2906
  }
3018
2907
  }
3019
2908
 
@@ -3099,7 +2988,6 @@ declare type SegmentationStateModifiedEventType = Types_2.CustomEventType<Segmen
3099
2988
 
3100
2989
  declare namespace segmentationVisibility {
3101
2990
  export {
3102
- _default_7 as default,
3103
2991
  setSegmentationVisibility,
3104
2992
  getSegmentationVisibility
3105
2993
  }
@@ -3107,7 +2995,6 @@ declare namespace segmentationVisibility {
3107
2995
 
3108
2996
  declare namespace segmentIndex {
3109
2997
  export {
3110
- _default_8 as default,
3111
2998
  getActiveSegmentIndex,
3112
2999
  setActiveSegmentIndex,
3113
3000
  getActiveSegmentIndexForSegmentation,
@@ -3121,8 +3008,7 @@ declare namespace segmentLocking {
3121
3008
  setSegmentIndexLocked,
3122
3009
  getSegmentIndexLockedForSegmentation,
3123
3010
  setSegmentIndexLockedForSegmentation,
3124
- getSegmentsLockedForSegmentation,
3125
- _default_4 as default
3011
+ getSegmentsLockedForSegmentation
3126
3012
  }
3127
3013
  }
3128
3014
 
@@ -3397,7 +3283,7 @@ declare namespace stackScrollTool {
3397
3283
  snapFocalPointToSlice,
3398
3284
  getSliceRange,
3399
3285
  scrollThroughStack,
3400
- _default_14 as default
3286
+ _default_2 as default
3401
3287
  }
3402
3288
  }
3403
3289
 
@@ -3557,7 +3443,6 @@ declare type ToolBindingMouseType = typeof MouseBindings[keyof typeof MouseBindi
3557
3443
 
3558
3444
  declare namespace ToolGroupManager {
3559
3445
  export {
3560
- _default as default,
3561
3446
  createToolGroup,
3562
3447
  destroy_3 as destroy,
3563
3448
  destroyToolGroupByToolGroupId,
@@ -3781,15 +3666,20 @@ declare namespace utilities {
3781
3666
  pointInSurroundingSphereCallback,
3782
3667
  getAnnotationNearPoint,
3783
3668
  getAnnotationNearPointOnEnabledElement,
3784
- transformPhysicalToIndex,
3785
- _default_17 as default
3669
+ transformPhysicalToIndex
3786
3670
  }
3787
3671
  }
3788
3672
  export { utilities }
3789
3673
 
3674
+ declare namespace vec2 {
3675
+ export {
3676
+ findClosestPoint,
3677
+ clip as liangBarksyClip
3678
+ }
3679
+ }
3680
+
3790
3681
  declare namespace viewportFilters {
3791
3682
  export {
3792
- _default_13 as default,
3793
3683
  filterViewportsWithToolEnabled,
3794
3684
  filterViewportsWithFrameOfReferenceUID,
3795
3685
  getViewportIdsWithToolToRender