From 43b037652e2de9899df8f9cc8a45d1f860c6ab90 Mon Sep 17 00:00:00 2001 From: Joe Boccanfuso Date: Wed, 12 Jul 2023 15:33:38 -0400 Subject: [PATCH] Updated the API docs. --- common/reviews/api/tools.api.md | 22 +++++++++---------- .../tools/src/tools/annotation/ProbeTool.ts | 1 - 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/common/reviews/api/tools.api.md b/common/reviews/api/tools.api.md index 365fcab6d4..1c5bbc89bd 100644 --- a/common/reviews/api/tools.api.md +++ b/common/reviews/api/tools.api.md @@ -675,7 +675,7 @@ export class CircleROITool extends AnnotationTool { // (undocumented) addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => CircleROIAnnotation; // (undocumented) - _calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any, enabledElement: any) => any; + _calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any, enabledElement: any, modalityUnitOptions: ModalityUnitOptions) => any; // (undocumented) cancel: (element: HTMLDivElement) => any; // (undocumented) @@ -700,7 +700,7 @@ export class CircleROITool extends AnnotationTool { // (undocumented) _endCallback: (evt: EventTypes_2.InteractionEventType) => void; // (undocumented) - _getTextLines: (data: any, targetId: string, isPreScaled: boolean, isSuvScaled: boolean) => string[]; + _getTextLines: (data: any, targetId: string) => string[]; // (undocumented) handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: CircleROIAnnotation, handle: ToolHandle) => void; // (undocumented) @@ -1652,7 +1652,7 @@ export class EllipticalROITool extends AnnotationTool { // (undocumented) addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => EllipticalROIAnnotation; // (undocumented) - _calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any, enabledElement: any) => any; + _calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any, enabledElement: any, modalityUnitOptions: ModalityUnitOptions) => any; // (undocumented) cancel: (element: HTMLDivElement) => any; // (undocumented) @@ -1683,7 +1683,7 @@ export class EllipticalROITool extends AnnotationTool { // (undocumented) _getCanvasEllipseCenter(ellipseCanvasPoints: Types_2.Point2[]): Types_2.Point2; // (undocumented) - _getTextLines: (data: any, targetId: string, isPreScaled: boolean, isSuvScaled: boolean) => string[]; + _getTextLines: (data: any, targetId: string) => string[]; // (undocumented) handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: EllipticalROIAnnotation, handle: ToolHandle) => void; // (undocumented) @@ -3670,13 +3670,13 @@ export class PlanarFreehandROITool extends AnnotationTool { // (undocumented) addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => PlanarFreehandROIAnnotation; // (undocumented) - _calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any, enabledElement: any) => any; + _calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any, enabledElement: any, modalityUnitOptions: ModalityUnitOptions) => any; // (undocumented) cancel: (element: HTMLDivElement) => void; // (undocumented) filterInteractableAnnotationsForElement(element: HTMLDivElement, annotations: Annotations): Annotations | undefined; // (undocumented) - _getTextLines: (data: any, targetId: string, isPreScaled: boolean, isSuvScaled: boolean) => string[]; + _getTextLines: (data: any, targetId: string) => string[]; // (undocumented) handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: PlanarFreehandROIAnnotation, handle: ToolHandle) => void; // (undocumented) @@ -3822,7 +3822,7 @@ export class ProbeTool extends AnnotationTool { // (undocumented) addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => ProbeAnnotation; // (undocumented) - _calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any): any; + _calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any, modalityUnitOptions: ModalityUnitOptions): any; // (undocumented) cancel: (element: HTMLDivElement) => any; // (undocumented) @@ -3845,9 +3845,7 @@ export class ProbeTool extends AnnotationTool { // (undocumented) getHandleNearImagePoint(element: HTMLDivElement, annotation: ProbeAnnotation, canvasCoords: Types_2.Point2, proximity: number): ToolHandle | undefined; // (undocumented) - _getTextLines(data: any, targetId: string, isPreScaled: boolean, isSuvScaled: boolean): string[] | undefined; - // (undocumented) - _getValueForModality(value: any, imageVolume: any, modality: any): {}; + _getTextLines(data: any, targetId: string): string[] | undefined; // (undocumented) handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: ProbeAnnotation): void; // (undocumented) @@ -4108,7 +4106,7 @@ export class RectangleROITool extends AnnotationTool { // (undocumented) addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => RectangleROIAnnotation; // (undocumented) - _calculateCachedStats: (annotation: any, viewPlaneNormal: any, viewUp: any, renderingEngine: any, enabledElement: any) => any; + _calculateCachedStats: (annotation: any, viewPlaneNormal: any, viewUp: any, renderingEngine: any, enabledElement: any, modalityUnitOptions: any) => any; // (undocumented) cancel: (element: HTMLDivElement) => any; // (undocumented) @@ -4136,7 +4134,7 @@ export class RectangleROITool extends AnnotationTool { height: number; }; // (undocumented) - _getTextLines: (data: any, targetId: string, isPreScaled: boolean, isSuvScaled: boolean) => string[] | undefined; + _getTextLines: (data: any, targetId: string) => string[] | undefined; // (undocumented) handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: RectangleROIAnnotation, handle: ToolHandle) => void; // (undocumented) diff --git a/packages/tools/src/tools/annotation/ProbeTool.ts b/packages/tools/src/tools/annotation/ProbeTool.ts index f6236d47fd..4afc065a21 100644 --- a/packages/tools/src/tools/annotation/ProbeTool.ts +++ b/packages/tools/src/tools/annotation/ProbeTool.ts @@ -49,7 +49,6 @@ import { getModalityUnit, } from '../../utilities/getModalityUnit'; import { isViewportPreScaled } from '../../utilities/viewport/isViewportPreScaled'; -import { annotation } from '@cornerstonejs/tools'; const { transformWorldToIndex } = csUtils;