From 72d1a33c5b1663f0a96370a4c7a6436776b6286e Mon Sep 17 00:00:00 2001 From: cw <1096486917@qq.com> Date: Wed, 11 Sep 2024 18:16:18 +0800 Subject: [PATCH 1/4] feat: update export base tools --- packages/tools/src/tools/base/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/tools/src/tools/base/index.ts b/packages/tools/src/tools/base/index.ts index cca21a387d..2749351774 100644 --- a/packages/tools/src/tools/base/index.ts +++ b/packages/tools/src/tools/base/index.ts @@ -1,5 +1,7 @@ import BaseTool from './BaseTool'; import AnnotationTool from './AnnotationTool'; import AnnotationDisplayTool from './AnnotationDisplayTool'; +import ContourBaseTool from './ContourBaseTool'; +import ContourSegmentationBaseTool from './ContourSegmentationBaseTool'; -export { BaseTool, AnnotationTool, AnnotationDisplayTool }; +export { BaseTool, AnnotationTool, AnnotationDisplayTool, ContourBaseTool, ContourSegmentationBaseTool}; From 0ab473a5f5617498f69486e706e89ab53f3d7a10 Mon Sep 17 00:00:00 2001 From: cw <1096486917@qq.com> Date: Thu, 12 Sep 2024 13:47:21 +0800 Subject: [PATCH 2/4] feat: update import getModalityUnit --- packages/tools/src/utilities/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/tools/src/utilities/index.ts b/packages/tools/src/utilities/index.ts index 1c6432e680..aaef450ebf 100644 --- a/packages/tools/src/utilities/index.ts +++ b/packages/tools/src/utilities/index.ts @@ -32,6 +32,7 @@ import { annotationHydration, getClosestImageIdForStackViewport, } from './annotationHydration'; +import { getModalityUnit } from './getModalityUnit'; // name spaces import * as contours from './contours'; import * as segmentation from './segmentation'; @@ -102,4 +103,5 @@ export { contourSegmentation, annotationHydration, getClosestImageIdForStackViewport, + getModalityUnit, }; From 05e57a36595e6f5aac8086bb47eea9039c39310d Mon Sep 17 00:00:00 2001 From: cw <1096486917@qq.com> Date: Thu, 12 Sep 2024 14:00:44 +0800 Subject: [PATCH 3/4] feat: update import type ModalityUnitOptions --- packages/tools/src/types/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/tools/src/types/index.ts b/packages/tools/src/types/index.ts index f02d38e812..c428b84bde 100644 --- a/packages/tools/src/types/index.ts +++ b/packages/tools/src/types/index.ts @@ -25,6 +25,7 @@ import type { ContourSegmentationAnnotation, ContourSegmentationAnnotationData, } from './ContourSegmentationAnnotation'; +import type { ModalityUnitOptions } from '../utilities/getModalityUnit'; // Rendering import type AnnotationRenderContext from './AnnotationRenderContext'; @@ -152,6 +153,7 @@ export type { InterpolationViewportData, JumpToSliceOptions, ToolSpecificAnnotationTypes, + ModalityUnitOptions, // Rendering AnnotationRenderContext, // Geometry From 10231039be9ae115887885b66622b4b87351d3be Mon Sep 17 00:00:00 2001 From: cw <1096486917@qq.com> Date: Mon, 23 Sep 2024 16:57:48 +0800 Subject: [PATCH 4/4] doc: update-api --- common/reviews/api/tools.api.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/common/reviews/api/tools.api.md b/common/reviews/api/tools.api.md index fb22d86bd3..db7ab03ebe 100644 --- a/common/reviews/api/tools.api.md +++ b/common/reviews/api/tools.api.md @@ -2748,6 +2748,9 @@ function getMeanPoints(points: IPoints[]): IPoints; // @public (undocumented) function getMeanTouchPoints(points: ITouchPoints[]): ITouchPoints; +// @public (undocumented) +function getModalityUnit(modality: string, imageId: string, options: ModalityUnitOptions): string; + // @public (undocumented) function getNextColorLUTIndex(): number; @@ -3670,6 +3673,12 @@ export class MIPJumpToClickTool extends BaseTool { // @public (undocumented) function mirror(mirrorPoint: Types_2.Point2, staticPoint: Types_2.Point2): Types_2.Point2; +// @public (undocumented) +type ModalityUnitOptions = { + isPreScaled: boolean; + isSuvScaled: boolean; +}; + // @public (undocumented) enum MouseBindings { // (undocumented) @@ -6131,6 +6140,7 @@ declare namespace Types { InterpolationViewportData, JumpToSliceOptions, ToolSpecificAnnotationTypes, + ModalityUnitOptions, AnnotationRenderContext, PlanarBoundingBox, PublicToolProps, @@ -6361,7 +6371,8 @@ declare namespace utilities { AnnotationFrameRange as annotationFrameRange, contourSegmentation, annotationHydration, - getClosestImageIdForStackViewport + getClosestImageIdForStackViewport, + getModalityUnit } } export { utilities }