Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(Tools utilities types): update export type and utilities #1464

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion common/reviews/api/tools.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -6131,6 +6140,7 @@ declare namespace Types {
InterpolationViewportData,
JumpToSliceOptions,
ToolSpecificAnnotationTypes,
ModalityUnitOptions,
AnnotationRenderContext,
PlanarBoundingBox,
PublicToolProps,
Expand Down Expand Up @@ -6361,7 +6371,8 @@ declare namespace utilities {
AnnotationFrameRange as annotationFrameRange,
contourSegmentation,
annotationHydration,
getClosestImageIdForStackViewport
getClosestImageIdForStackViewport,
getModalityUnit
}
}
export { utilities }
Expand Down
4 changes: 3 additions & 1 deletion packages/tools/src/tools/base/index.ts
Original file line number Diff line number Diff line change
@@ -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};
2 changes: 2 additions & 0 deletions packages/tools/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import type {
ContourSegmentationAnnotation,
ContourSegmentationAnnotationData,
} from './ContourSegmentationAnnotation';
import type { ModalityUnitOptions } from '../utilities/getModalityUnit';

// Rendering
import type AnnotationRenderContext from './AnnotationRenderContext';
Expand Down Expand Up @@ -152,6 +153,7 @@ export type {
InterpolationViewportData,
JumpToSliceOptions,
ToolSpecificAnnotationTypes,
ModalityUnitOptions,
// Rendering
AnnotationRenderContext,
// Geometry
Expand Down
2 changes: 2 additions & 0 deletions packages/tools/src/utilities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -102,4 +103,5 @@ export {
contourSegmentation,
annotationHydration,
getClosestImageIdForStackViewport,
getModalityUnit,
};