@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.
- package/dist/cjs/drawingSvg/index.d.ts +0 -11
- package/dist/cjs/drawingSvg/index.js +0 -10
- package/dist/cjs/drawingSvg/index.js.map +1 -1
- package/dist/cjs/init.js +20 -4
- package/dist/cjs/init.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.d.ts +0 -5
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.js +0 -4
- package/dist/cjs/stateManagement/segmentation/activeSegmentation.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentIndex.d.ts +0 -7
- package/dist/cjs/stateManagement/segmentation/segmentIndex.js +0 -6
- package/dist/cjs/stateManagement/segmentation/segmentIndex.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentLocking.d.ts +0 -8
- package/dist/cjs/stateManagement/segmentation/segmentLocking.js +0 -7
- package/dist/cjs/stateManagement/segmentation/segmentLocking.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationColor.d.ts +0 -5
- package/dist/cjs/stateManagement/segmentation/segmentationColor.js +0 -1
- package/dist/cjs/stateManagement/segmentation/segmentationColor.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.d.ts +0 -13
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.js +0 -12
- package/dist/cjs/stateManagement/segmentation/segmentationConfig.js.map +1 -1
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.d.ts +0 -5
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.js +0 -1
- package/dist/cjs/stateManagement/segmentation/segmentationVisibility.js.map +1 -1
- package/dist/cjs/store/ToolGroupManager/index.d.ts +0 -9
- package/dist/cjs/store/ToolGroupManager/index.js +0 -8
- package/dist/cjs/store/ToolGroupManager/index.js.map +1 -1
- package/dist/cjs/tools/CrosshairsTool.js +26 -7
- package/dist/cjs/tools/CrosshairsTool.js.map +1 -1
- package/dist/cjs/tools/annotation/BidirectionalTool.js +25 -6
- package/dist/cjs/tools/annotation/BidirectionalTool.js.map +1 -1
- package/dist/cjs/tools/annotation/LengthTool.js +21 -2
- package/dist/cjs/tools/annotation/LengthTool.js.map +1 -1
- package/dist/cjs/tools/annotation/RectangleRoiTool.js +21 -2
- package/dist/cjs/tools/annotation/RectangleRoiTool.js.map +1 -1
- package/dist/cjs/utilities/drawing/index.d.ts +0 -4
- package/dist/cjs/utilities/drawing/index.js +0 -1
- package/dist/cjs/utilities/drawing/index.js.map +1 -1
- package/dist/cjs/utilities/getAnnotationNearPoint.js +20 -4
- package/dist/cjs/utilities/getAnnotationNearPoint.js.map +1 -1
- package/dist/cjs/utilities/index.d.ts +0 -21
- package/dist/cjs/utilities/index.js +0 -20
- package/dist/cjs/utilities/index.js.map +1 -1
- package/dist/cjs/utilities/math/ellipse/index.d.ts +0 -5
- package/dist/cjs/utilities/math/ellipse/index.js +0 -1
- package/dist/cjs/utilities/math/ellipse/index.js.map +1 -1
- package/dist/cjs/utilities/math/index.d.ts +4 -23
- package/dist/cjs/utilities/math/index.js +26 -11
- package/dist/cjs/utilities/math/index.js.map +1 -1
- package/dist/cjs/utilities/math/line/distanceToPoint.d.ts +1 -1
- package/dist/cjs/utilities/math/line/index.d.ts +1 -6
- package/dist/cjs/utilities/math/line/index.js +4 -6
- package/dist/cjs/utilities/math/line/index.js.map +1 -1
- package/dist/cjs/utilities/math/line/intersectLine.d.ts +1 -1
- package/dist/cjs/utilities/math/rectangle/distanceToPoint.js +20 -4
- package/dist/cjs/utilities/math/rectangle/distanceToPoint.js.map +1 -1
- package/dist/cjs/utilities/math/rectangle/index.d.ts +1 -4
- package/dist/cjs/utilities/math/rectangle/index.js +2 -4
- package/dist/cjs/utilities/math/rectangle/index.js.map +1 -1
- package/dist/cjs/utilities/math/vec2/index.d.ts +1 -5
- package/dist/cjs/utilities/math/vec2/index.js +3 -1
- package/dist/cjs/utilities/math/vec2/index.js.map +1 -1
- package/dist/cjs/utilities/segmentation/index.d.ts +0 -10
- package/dist/cjs/utilities/segmentation/index.js +0 -9
- package/dist/cjs/utilities/segmentation/index.js.map +1 -1
- package/dist/cjs/utilities/viewportFilters/index.d.ts +0 -6
- package/dist/cjs/utilities/viewportFilters/index.js +0 -5
- package/dist/cjs/utilities/viewportFilters/index.js.map +1 -1
- package/dist/esm/drawingSvg/index.d.ts +0 -11
- package/dist/esm/drawingSvg/index.js +0 -10
- package/dist/esm/drawingSvg/index.js.map +1 -1
- package/dist/esm/init.js +1 -1
- package/dist/esm/init.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/activeSegmentation.d.ts +0 -5
- package/dist/esm/stateManagement/segmentation/activeSegmentation.js +0 -4
- package/dist/esm/stateManagement/segmentation/activeSegmentation.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentIndex.d.ts +0 -7
- package/dist/esm/stateManagement/segmentation/segmentIndex.js +0 -6
- package/dist/esm/stateManagement/segmentation/segmentIndex.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentLocking.d.ts +0 -8
- package/dist/esm/stateManagement/segmentation/segmentLocking.js +0 -7
- package/dist/esm/stateManagement/segmentation/segmentLocking.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationColor.d.ts +0 -5
- package/dist/esm/stateManagement/segmentation/segmentationColor.js +0 -1
- package/dist/esm/stateManagement/segmentation/segmentationColor.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationConfig.d.ts +0 -13
- package/dist/esm/stateManagement/segmentation/segmentationConfig.js +0 -12
- package/dist/esm/stateManagement/segmentation/segmentationConfig.js.map +1 -1
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.d.ts +0 -5
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.js +0 -1
- package/dist/esm/stateManagement/segmentation/segmentationVisibility.js.map +1 -1
- package/dist/esm/store/ToolGroupManager/index.d.ts +0 -9
- package/dist/esm/store/ToolGroupManager/index.js +0 -8
- package/dist/esm/store/ToolGroupManager/index.js.map +1 -1
- package/dist/esm/tools/CrosshairsTool.js +1 -1
- package/dist/esm/tools/CrosshairsTool.js.map +1 -1
- package/dist/esm/tools/annotation/BidirectionalTool.js +1 -1
- package/dist/esm/tools/annotation/BidirectionalTool.js.map +1 -1
- package/dist/esm/tools/annotation/LengthTool.js +1 -1
- package/dist/esm/tools/annotation/LengthTool.js.map +1 -1
- package/dist/esm/tools/annotation/RectangleRoiTool.js +1 -1
- package/dist/esm/tools/annotation/RectangleRoiTool.js.map +1 -1
- package/dist/esm/utilities/drawing/index.d.ts +0 -4
- package/dist/esm/utilities/drawing/index.js +0 -1
- package/dist/esm/utilities/drawing/index.js.map +1 -1
- package/dist/esm/utilities/getAnnotationNearPoint.js +1 -1
- package/dist/esm/utilities/getAnnotationNearPoint.js.map +1 -1
- package/dist/esm/utilities/index.d.ts +0 -21
- package/dist/esm/utilities/index.js +0 -20
- package/dist/esm/utilities/index.js.map +1 -1
- package/dist/esm/utilities/math/ellipse/index.d.ts +0 -5
- package/dist/esm/utilities/math/ellipse/index.js +0 -1
- package/dist/esm/utilities/math/ellipse/index.js.map +1 -1
- package/dist/esm/utilities/math/index.d.ts +4 -23
- package/dist/esm/utilities/math/index.js +4 -5
- package/dist/esm/utilities/math/index.js.map +1 -1
- package/dist/esm/utilities/math/line/distanceToPoint.d.ts +1 -1
- package/dist/esm/utilities/math/line/index.d.ts +1 -6
- package/dist/esm/utilities/math/line/index.js +1 -6
- package/dist/esm/utilities/math/line/index.js.map +1 -1
- package/dist/esm/utilities/math/line/intersectLine.d.ts +1 -1
- package/dist/esm/utilities/math/rectangle/distanceToPoint.js +1 -1
- package/dist/esm/utilities/math/rectangle/distanceToPoint.js.map +1 -1
- package/dist/esm/utilities/math/rectangle/index.d.ts +1 -4
- package/dist/esm/utilities/math/rectangle/index.js +1 -4
- package/dist/esm/utilities/math/rectangle/index.js.map +1 -1
- package/dist/esm/utilities/math/vec2/index.d.ts +1 -5
- package/dist/esm/utilities/math/vec2/index.js +1 -1
- package/dist/esm/utilities/math/vec2/index.js.map +1 -1
- package/dist/esm/utilities/segmentation/index.d.ts +0 -10
- package/dist/esm/utilities/segmentation/index.js +0 -9
- package/dist/esm/utilities/segmentation/index.js.map +1 -1
- package/dist/esm/utilities/viewportFilters/index.d.ts +0 -6
- package/dist/esm/utilities/viewportFilters/index.js +0 -5
- package/dist/esm/utilities/viewportFilters/index.js.map +1 -1
- package/dist/tools.d.ts +57 -167
- package/dist/umd/index.js +2 -1
- package/dist/umd/index.js.LICENSE.txt +6 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -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,
|
|
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
|
|
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,
|
|
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
|
|
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?:
|
|
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
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
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
|
-
|
|
2400
|
-
|
|
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
|
-
|
|
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
|
|
2697
|
-
|
|
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
|
-
|
|
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
|