diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 77f84eb84b..df00a4bbb2 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -72,8 +72,6 @@ after the commits are squashed. - [] My code has been well-documented (function documentation, inline comments, etc.) -- [] I have run the `yarn build:update-api` to update the API documentation, and have - committed the changes to this PR. (Read more here https://www.cornerstonejs.org/docs/contribute/update-api) #### Public Documentation Updates diff --git a/api-extractor.json b/api-extractor.json deleted file mode 100644 index 2fff114344..0000000000 --- a/api-extractor.json +++ /dev/null @@ -1,332 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - - /** - * Determines the "" token that can be used with other config file settings. The project folder - * typically contains the tsconfig.json and package.json config files, but the path is user-defined. - * - * The path is resolved relative to the folder of the config file that contains the setting. - * - * The default value for "projectFolder" is the token "", which means the folder is determined by traversing - * parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder - * that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error - * will be reported. - * - * SUPPORTED TOKENS: - * DEFAULT VALUE: "" - */ - // "projectFolder": "..", - - /** - * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor - * analyzes the symbols exported by this module. - * - * The file extension must be ".d.ts" and not ".ts". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - */ - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - - /** - * A list of NPM package names whose exports should be treated as part of this package. - * - * For example, suppose that Webpack is used to generate a distributed bundle for the project "library1", - * and another NPM package "library2" is embedded in this bundle. Some types from library2 may become part - * of the exported API for library1, but by default API Extractor would generate a .d.ts rollup that explicitly - * imports library2. To avoid this, we can specify: - * - * "bundledPackages": [ "library2" ], - * - * This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been - * local files for library1. - */ - "bundledPackages": [ - "@cornerstonejs/core", - "@cornerstonejs/tools", - ], - - /** - * Determines how the TypeScript compiler engine will be invoked by API Extractor. - */ - "compiler": { - /** - * this is very important since We are overriding a TypeScript file since for development we use path - * to cross-reference the monorepor libraries. Here we should override it to not use for the API creation. - */ - "overrideTsconfig": { - "paths": {} - } - }, - - /** - * Configures how the API report file (*.api.md) will be generated. - */ - "apiReport": { - /** - * (REQUIRED) Whether to generate an API report. - */ - "enabled": true - - /** - * The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce - * a full file path. - * - * The file extension should be ".api.md", and the string should not contain a path separator such as "\" or "/". - * - * SUPPORTED TOKENS: , - * DEFAULT VALUE: ".api.md" - */ - // "reportFileName": ".api.md", - - /** - * Specifies the folder where the API report file is written. The file name portion is determined by - * the "reportFileName" setting. - * - * The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy, - * e.g. for an API review. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/etc/" - */ - // "reportFolder": "/etc/", - - /** - * Specifies the folder where the temporary report file is written. The file name portion is determined by - * the "reportFileName" setting. - * - * After the temporary file is written to disk, it is compared with the file in the "reportFolder". - * If they are different, a production build will fail. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/temp/" - */ - // "reportTempFolder": "/temp/" - }, - - /** - * Configures how the doc model file (*.api.json) will be generated. - */ - "docModel": { - /** - * (REQUIRED) Whether to generate a doc model file. - */ - "enabled": false - - /** - * The output path for the doc model file. The file extension should be ".api.json". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/temp/.api.json" - */ - // "apiJsonFilePath": "/temp/.api.json" - }, - - /** - * Configures how the .d.ts rollup file will be generated. - */ - "dtsRollup": { - /** - * (REQUIRED) Whether to generate the .d.ts rollup file. - */ - "enabled": true - - /** - * Specifies the output path for a .d.ts rollup file to be generated without any trimming. - * This file will include all declarations that are exported by the main entry point. - * - * If the path is an empty string, then this file will not be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/dist/.d.ts" - */ - // "untrimmedFilePath": "/dist/.d.ts", - - /** - * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release. - * This file will include only declarations that are marked as "@public" or "@beta". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "betaTrimmedFilePath": "/dist/-beta.d.ts", - - /** - * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "public" release. - * This file will include only declarations that are marked as "@public". - * - * If the path is an empty string, then this file will not be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "publicTrimmedFilePath": "/dist/-public.d.ts", - - /** - * When a declaration is trimmed, by default it will be replaced by a code comment such as - * "Excluded from this release type: exampleMember". Set "omitTrimmingComments" to true to remove the - * declaration completely. - * - * DEFAULT VALUE: false - */ - // "omitTrimmingComments": true - }, - - /** - * Configures how the tsdoc-metadata.json file will be generated. - */ - "tsdocMetadata": { - /** - * Whether to generate the tsdoc-metadata.json file. - * - * DEFAULT VALUE: true - */ - "enabled": true - /** - * Specifies where the TSDoc metadata file should be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * The default value is "", which causes the path to be automatically inferred from the "tsdocMetadata", - * "typings" or "main" fields of the project's package.json. If none of these fields are set, the lookup - * falls back to "tsdoc-metadata.json" in the package folder. - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "tsdocMetadataFilePath": "/dist/tsdoc-metadata.json" - }, - - /** - * Specifies what type of newlines API Extractor should use when writing output files. By default, the output files - * will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead. - * To use the OS's default newline kind, specify "os". - * - * DEFAULT VALUE: "crlf" - */ - // "newlineKind": "crlf", - - /** - * Configures how API Extractor reports error and warning messages produced during analysis. - * - * There are three sources of messages: compiler messages, API Extractor messages, and TSDoc messages. - */ - "messages": { - /** - * Configures handling of diagnostic messages reported by the TypeScript compiler engine while analyzing - * the input .d.ts files. - * - * TypeScript message identifiers start with "TS" followed by an integer. For example: "TS2551" - * - * DEFAULT VALUE: A single "default" entry with logLevel=warning. - */ - "compilerMessageReporting": { - /** - * Configures the default routing for messages that don't match an explicit rule in this table. - */ - "default": { - /** - * Specifies whether the message should be written to the the tool's output log. Note that - * the "addToApiReportFile" property may supersede this option. - * - * Possible values: "error", "warning", "none" - * - * Errors cause the build to fail and return a nonzero exit code. Warnings cause a production build fail - * and return a nonzero exit code. For a non-production build (e.g. when "api-extractor run" includes - * the "--local" option), the warning is displayed but the build will not fail. - * - * DEFAULT VALUE: "warning" - */ - "logLevel": "none" - - /** - * When addToApiReportFile is true: If API Extractor is configured to write an API report file (.api.md), - * then the message will be written inside that file; otherwise, the message is instead logged according to - * the "logLevel" option. - * - * DEFAULT VALUE: false - */ - // "addToApiReportFile": false - } - - // "TS2551": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - }, - - /** - * Configures handling of messages reported by API Extractor during its analysis. - * - * API Extractor message identifiers start with "ae-". For example: "ae-extra-release-tag" - * - * DEFAULT VALUE: See api-extractor-defaults.json for the complete table of extractorMessageReporting mappings - */ - "extractorMessageReporting": { - "default": { - "logLevel": "none" - // "addToApiReportFile": false - }, - - "ae-forgotten-export": { - "logLevel": "none", - "addToApiReportFile": false - }, - - "ae-missing-release-tag": { - "logLevel": "none", - "addToApiReportFile": false - } - // "ae-extra-release-tag": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - }, - - /** - * Configures handling of messages reported by the TSDoc parser when analyzing code comments. - * - * TSDoc message identifiers start with "tsdoc-". For example: "tsdoc-link-tag-unescaped-text" - * - * DEFAULT VALUE: A single "default" entry with logLevel=warning. - */ - "tsdocMessageReporting": { - "default": { - "logLevel": "warning" - // "addToApiReportFile": false - } - - // "tsdoc-link-tag-unescaped-text": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - } - } -} diff --git a/common/reviews/api/ai.api.md b/common/reviews/api/ai.api.md deleted file mode 100644 index bbb180026b..0000000000 --- a/common/reviews/api/ai.api.md +++ /dev/null @@ -1,196 +0,0 @@ -## API Report File for "@cornerstonejs/ai" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type ColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; -import { Corners } from '@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget/Constants'; -import type { IColorMapPreset } from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps'; -import type { mat3 } from 'gl-matrix'; -import { mat4 } from 'gl-matrix'; -import type { Range as Range_2 } from '@kitware/vtk.js/types'; -import { vec3 } from 'gl-matrix'; -import type vtkActor from '@kitware/vtk.js/Rendering/Core/Actor'; -import vtkAnnotatedCubeActor from '@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor'; -import type { vtkCamera } from '@kitware/vtk.js/Rendering/Core/Camera'; -import { vtkColorTransferFunction } from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; -import { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData'; -import type vtkImageSlice from '@kitware/vtk.js/Rendering/Core/ImageSlice'; -import type { vtkObject } from '@kitware/vtk.js/interfaces'; -import type vtkOpenGLTexture from '@kitware/vtk.js/Rendering/OpenGL/Texture'; -import type vtkPiecewiseFunction from '@kitware/vtk.js/Common/DataModel/PiecewiseFunction'; -import vtkPlane from '@kitware/vtk.js/Common/DataModel/Plane'; -import type vtkPolyData from '@kitware/vtk.js/Common/DataModel/PolyData'; -import type vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer'; -import type vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume'; - -// @public (undocumented) -export class ONNXSegmentationController { - constructor(options?: { - listeners: any; - getPromptAnnotations: any; - promptAnnotationTypes: any; - models: any; - modelName: any; - islandFillOptions: any; - }); - // (undocumented) - acceptPreview(element: any): void; - // (undocumented) - protected annotationModifiedListener: (_event?: any) => void; - // (undocumented) - protected annotationsNeedUpdating: boolean; - // (undocumented) - static BoxPrompt: string; - // (undocumented) - protected boxRadius: number; - // (undocumented) - cacheImageEncodings(current?: any, offset?: number, length?: number): any; - // (undocumented) - canvas: HTMLCanvasElement; - // (undocumented) - canvasMask: HTMLCanvasElement; - // (undocumented) - clear(viewport: any): void; - // (undocumented) - createLabelmap(mask: any, canvasPosition: any, _points: any, _labels: any): void; - // (undocumented) - protected currentImage: any; - // (undocumented) - decode(points: any, labels: any, useSession?: any): Promise; - // (undocumented) - protected desiredImage: { - imageId: any; - sampleImageId: any; - imageIndex: number; - decoder: any; - encoder: any; - }; - // (undocumented) - disconnectViewport(viewport: any): void; - // (undocumented) - protected excludeTool: string; - // (undocumented) - fetchAndCacheModel(url: any, name: any): Promise; - // (undocumented) - getConfig(modelName?: string): any; - // (undocumented) - getDirectoryForImageId(session: any, imageId: any): Promise; - // (undocumented) - getFileNameForImageId(imageId: any, extension: any): any; - // (undocumented) - protected getPromptAnnotations: (viewport?: any) => cornerstoneTools.Types.Annotations; - // (undocumented) - protected handleImage({ imageId, sampleImageId }: { - imageId: any; - sampleImageId: any; - }, imageSession: any): Promise; - // (undocumented) - protected imageEncodings: Map; - // (undocumented) - protected imageImageData: any; - // (undocumented) - initModel(): Promise; - // (undocumented) - initViewport(viewport: any): void; - // (undocumented) - interpolateScroll(viewport?: any, dir?: number): Promise; - // (undocumented) - protected isGpuInUse: boolean; - // (undocumented) - protected islandFillOptions: { - maxInternalRemove: number; - fillInternalEdge: boolean; - }; - // (undocumented) - protected load(): Promise; - // (undocumented) - loadModels(models: any, imageSession?: any): Promise; - // (undocumented) - loadStorageImageEncoding(session: any, imageId: any, index?: any): Promise; - // (undocumented) - protected log(logger: Loggers, ...args: any[]): void; - // (undocumented) - mapAnnotationPoint(worldPoint: any): number[]; - // (undocumented) - static MarkerExclude: string; - // (undocumented) - static MarkerInclude: string; - // (undocumented) - protected maskImageData: any; - // (undocumented) - maxHeight: number; - // (undocumented) - maxWidth: number; - // (undocumented) - modelHeight: number; - // (undocumented) - static MODELS: { - sam_l: ({ - name: string; - url: string; - size: number; - key: string; - feedType: string; - } | { - name: string; - url: string; - size: number; - key: string; - feedType?: undefined; - })[]; - sam_h: ({ - name: string; - url: string; - size: number; - key: string; - feedType: string; - } | { - name: string; - url: string; - size: number; - key: string; - feedType?: undefined; - })[]; - }; - // (undocumented) - modelWidth: number; - // (undocumented) - protected pCutoff: number; - // (undocumented) - protected promptAnnotationTypes: string[]; - // (undocumented) - rejectPreview(element: any): void; - // (undocumented) - restoreImageEncoding(session: any, imageId: any): Promise; - // (undocumented) - protected runDecode(): Promise; - // (undocumented) - setPCutoff(cutoff: number): void; - // (undocumented) - protected sharedImageEncoding: any; - // (undocumented) - storeImageEncoding(session: any, imageId: any, data: any): Promise; - // (undocumented) - tool: any; - // (undocumented) - tryLoad(options?: { - resetImage: boolean; - }): void; - // (undocumented) - updateAnnotations(): void; - // (undocumented) - protected viewport: any; - // (undocumented) - static viewportOptions: { - displayArea: Types.DisplayArea; - background: Types.Point3; - }; - // (undocumented) - protected viewportRenderedListener: (_event: any) => void; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/common/reviews/api/core.api.md b/common/reviews/api/core.api.md deleted file mode 100644 index 8902b6d92c..0000000000 --- a/common/reviews/api/core.api.md +++ /dev/null @@ -1,5244 +0,0 @@ -## API Report File for "@cornerstonejs/core" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type ColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; -import type { mat3 } from 'gl-matrix'; -import { mat4 } from 'gl-matrix'; -import type { Range as Range_2 } from '@kitware/vtk.js/types'; -import { vec3 } from 'gl-matrix'; -import type vtkActor from '@kitware/vtk.js/Rendering/Core/Actor'; -import type { vtkCamera } from '@kitware/vtk.js/Rendering/Core/Camera'; -import { vtkColorTransferFunction } from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; -import { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData'; -import type vtkImageSlice from '@kitware/vtk.js/Rendering/Core/ImageSlice'; -import type { vtkObject } from '@kitware/vtk.js/interfaces'; -import type vtkOpenGLTexture from '@kitware/vtk.js/Rendering/OpenGL/Texture'; -import vtkPlane from '@kitware/vtk.js/Common/DataModel/Plane'; -import type vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer'; -import type vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume'; -import vtkVolumeMapper from '@kitware/vtk.js/Rendering/Core/VolumeMapper'; - -// @public (undocumented) -interface AABB2 { - // (undocumented) - maxX: number; - // (undocumented) - maxY: number; - // (undocumented) - minX: number; - // (undocumented) - minY: number; -} - -// @public (undocumented) -interface AABB3 { - // (undocumented) - maxX: number; - // (undocumented) - maxY: number; - // (undocumented) - maxZ: number; - // (undocumented) - minX: number; - // (undocumented) - minY: number; - // (undocumented) - minZ: number; -} - -// @public (undocumented) -type Actor = vtkActor; - -// @public (undocumented) -interface ActorEntry { - // (undocumented) - [key: string]: unknown; - // (undocumented) - actor: Actor | VolumeActor | ImageActor | ICanvasActor; - // (undocumented) - blendMode?: BlendModes; - // (undocumented) - callbacks?: ({ volumeActor, volumeId, }: { - volumeActor: VolumeActor; - volumeId: string; - }) => void; - // (undocumented) - clippingFilter?: any; - // (undocumented) - referencedId?: string; - // (undocumented) - slabThickness?: number; - // (undocumented) - uid: string; -} - -// @public (undocumented) -function actorIsA(actorEntry: Types.ActorEntry | Types.Actor, actorType: actorTypes): boolean; - -// @public (undocumented) -interface ActorSliceRange { - // (undocumented) - actor: VolumeActor; - // (undocumented) - current: number; - // (undocumented) - focalPoint: Point3; - // (undocumented) - max: number; - // (undocumented) - min: number; - // (undocumented) - viewPlaneNormal: Point3; -} - -// @public (undocumented) -export function addImageSlicesToViewports(renderingEngine: IRenderingEngine, stackInputs: IStackInput[], viewportIds: string[]): Promise; - -// @public (undocumented) -function addProvider(provider: (type: string, ...query: string[]) => unknown, priority?: number): void; - -// @public (undocumented) -export function addVolumesToViewports(renderingEngine: IRenderingEngine, volumeInputs: IVolumeInput[], viewportIds: string[], immediateRender?: boolean, suppressEvents?: boolean): Promise; - -// @public (undocumented) -type AffineMatrix = [ -[ -number, -number, -number, -number -], -[ -number, -number, -number, -number -], -[ -number, -number, -number, -number -], -[ -number, -number, -number, -number -] -]; - -// @public (undocumented) -function applyPreset(actor: VolumeActor, preset: ViewportPreset): void; - -// @public (undocumented) -const autoLoad: (volumeId: string) => void; - -// @public (undocumented) -const backgroundColors: { - slicer3D: number[]; -}; - -// @public (undocumented) -export abstract class BaseVolumeViewport extends Viewport { - constructor(props: ViewportInput); - // (undocumented) - addVolumes(volumeInputArray: IVolumeInput[], immediate?: boolean, suppressEvents?: boolean): Promise; - // (undocumented) - protected applyViewOrientation(orientation: OrientationAxis | OrientationVectors, resetCamera?: boolean): void; - // (undocumented) - canvasToWorld: (canvasPos: Point2) => Point3; - // (undocumented) - clearDefaultProperties(volumeId?: string): void; - // (undocumented) - flip(flipDirection: FlipDirection): void; - // (undocumented) - getAllVolumeIds(): string[]; - // (undocumented) - getBounds(): number[]; - // (undocumented) - abstract getCurrentImageId(): string | undefined; - // (undocumented) - getDefaultProperties: (volumeId?: string) => VolumeViewportProperties; - // (undocumented) - getFrameOfReferenceUID: () => string; - // (undocumented) - getImageData(volumeId?: string): IImageData | undefined; - // (undocumented) - getImageIds: (volumeId?: string) => string[]; - // (undocumented) - getIntensityFromWorld(point: Point3): number; - // (undocumented) - protected _getOrientationVectors(orientation: OrientationAxis | OrientationVectors): OrientationVectors; - // (undocumented) - getProperties: (volumeId?: string) => VolumeViewportProperties; - // (undocumented) - getRotation: () => number; - // (undocumented) - getSlabThickness(): number; - // (undocumented) - getSliceIndex(): number; - // (undocumented) - getSliceViewInfo(): { - width: number; - height: number; - sliceIndex: number; - slicePlane: number; - sliceToIndexMatrix: mat4; - indexToSliceMatrix: mat4; - }; - // (undocumented) - getViewReference(viewRefSpecifier?: ViewReferenceSpecifier): ViewReference; - // (undocumented) - getViewReferenceId(specifier?: ViewReferenceSpecifier): string; - // (undocumented) - protected getVOIModifiedEventDetail(volumeId: string): VoiModifiedEventDetail; - // (undocumented) - getVolumeId(specifier?: ViewReferenceSpecifier): string; - // (undocumented) - hasImageURI: (imageURI: string) => boolean; - // (undocumented) - hasVolumeId(volumeId: string): boolean; - // (undocumented) - hasVolumeURI(volumeURI: string): boolean; - // (undocumented) - protected initialTransferFunctionNodes: TransferFunctionNodes; - // (undocumented) - protected initialViewUp: Point3; - // (undocumented) - isReferenceViewable(viewRef: ViewReference, options?: ReferenceCompatibleOptions): boolean; - // (undocumented) - removeVolumeActors(actorUIDs: string[], immediate?: boolean): void; - // (undocumented) - abstract resetProperties(volumeId?: string): void; - // (undocumented) - abstract resetSlabThickness(): void; - // (undocumented) - resetToDefaultProperties(volumeId: string): void; - // (undocumented) - scroll(delta?: number): void; - // (undocumented) - abstract setBlendMode(blendMode: BlendModes, filterActorUIDs?: string[], immediate?: boolean): void; - // (undocumented) - setCamera(cameraInterface: ICamera, storeAsInitialCamera?: boolean): void; - // (undocumented) - protected setCameraClippingRange(): void; - // (undocumented) - setDefaultProperties(ViewportProperties: VolumeViewportProperties, volumeId?: string): void; - // (undocumented) - protected setInterpolationType(interpolationType: InterpolationType, volumeId?: string): void; - // (undocumented) - setOrientation(_orientation: OrientationAxis | OrientationVectors, _immediate?: boolean): void; - // (undocumented) - setProperties({ voiRange, VOILUTFunction, invert, colormap, preset, interpolationType, slabThickness, }?: VolumeViewportProperties, volumeId?: string, suppressEvents?: boolean): void; - // (undocumented) - protected setRotation: (rotation: number) => void; - // (undocumented) - abstract setSlabThickness(slabThickness: number, filterActorUIDs?: string[]): void; - // (undocumented) - setViewReference(viewRef: ViewReference): void; - // (undocumented) - setVolumes(volumeInputArray: IVolumeInput[], immediate?: boolean, suppressEvents?: boolean): Promise; - // (undocumented) - useCPURendering: boolean; - // (undocumented) - static get useCustomRenderingPipeline(): boolean; - // (undocumented) - protected viewportProperties: VolumeViewportProperties; - // (undocumented) - worldToCanvas: (worldPos: Point3) => Point2; -} - -// @public (undocumented) -enum BlendModes { - // (undocumented) - AVERAGE_INTENSITY_BLEND, - // (undocumented) - COMPOSITE, - // (undocumented) - LABELMAP_EDGE_PROJECTION_BLEND, - // (undocumented) - MAXIMUM_INTENSITY_BLEND, - // (undocumented) - MINIMUM_INTENSITY_BLEND -} - -// @public (undocumented) -type BoundsIJK = [Point2, Point2, Point2]; - -// @public (undocumented) -type BoundsLPS = [Point3, Point3, Point3]; - -// @public (undocumented) -export const cache: Cache_2; - -// @public (undocumented) -function calculateSpacingBetweenImageIds(imageIds: string[]): number; - -// @public (undocumented) -function calculateViewportsSpatialRegistration(viewport1: StackViewport | IVolumeViewport, viewport2: StackViewport | IVolumeViewport): void; - -// @public (undocumented) -enum CalibrationTypes { - // (undocumented) - ERMF = "ERMF", - // (undocumented) - ERROR = "Error", - // (undocumented) - NOT_APPLICABLE = "", - // (undocumented) - PROJECTION = "Proj", - // (undocumented) - REGION = "Region", - // (undocumented) - UNCALIBRATED = "Uncalibrated", - // (undocumented) - USER = "User" -} - -// @public (undocumented) -type CameraModifiedEvent = CustomEvent_2; - -// @public (undocumented) -interface CameraModifiedEventDetail { - // (undocumented) - camera: ICamera; - // (undocumented) - element: HTMLDivElement; - // (undocumented) - previousCamera: ICamera; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -type CameraResetEvent = CustomEvent_2; - -// @public (undocumented) -interface CameraResetEventDetail { - // (undocumented) - camera: ICamera; - // (undocumented) - element: HTMLDivElement; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -function cancelLoadAll(): void; - -// @public (undocumented) -function cancelLoadImage(imageId: string): void; - -// @public (undocumented) -function cancelLoadImages(imageIds: string[]): void; - -// @public (undocumented) -export function canRenderFloatTextures(): boolean; - -// @public (undocumented) -function clamp(value: number, min: number, max: number): number; - -// @public (undocumented) -function clip(val: number, low: number, high: number): number; - -// @public (undocumented) -type Color = [number, number, number, number]; - -declare namespace color { - export { - hexToRgb, - rgbToHex - } -} - -// @public (undocumented) -type ColorLUT = Color[]; - -declare namespace colormap { - export { - getColormap, - getColormapNames, - registerColormap, - findMatchingColormap - } -} - -// @public (undocumented) -type ColormapModifiedEvent = CustomEvent_2; - -// @public (undocumented) -interface ColormapModifiedEventDetail { - // (undocumented) - colormap: ColormapPublic; - // (undocumented) - viewportId: string; - // (undocumented) - volumeId?: string; -} - -// @public (undocumented) -interface ColormapPublic { - // (undocumented) - name?: string; - // (undocumented) - opacity?: OpacityMapping[] | number; -} - -// @public (undocumented) -interface ColormapRegistration { - // (undocumented) - ColorSpace: string; - // (undocumented) - Name: string; - // (undocumented) - RGBPoints: RGB[] | number[]; -} - -// @public (undocumented) -const colormapsData: CPUFallbackColormapsData; - -declare namespace CONSTANTS { - export { - colormapsData as CPU_COLORMAPS, - RENDERING_DEFAULTS, - mprCameraValues as MPR_CAMERA_VALUES, - EPSILON, - presets as VIEWPORT_PRESETS, - backgroundColors as BACKGROUND_COLORS - } -} -export { CONSTANTS } - -// @public (undocumented) -interface ContourData { - // (undocumented) - color: Point3; - // (undocumented) - points: Point3[]; - // (undocumented) - segmentIndex: number; - // (undocumented) - type: ContourType; -} - -// @public (undocumented) -interface ContourSetData { - // (undocumented) - color?: Point3; - // (undocumented) - data: ContourData[]; - // (undocumented) - frameOfReferenceUID: string; - // (undocumented) - id: string; - // (undocumented) - segmentIndex?: number; -} - -// @public (undocumented) -enum ContourType { - // (undocumented) - CLOSED_PLANAR = "CLOSED_PLANAR", - // (undocumented) - OPEN_PLANAR = "OPEN_PLANAR" -} - -// @public (undocumented) -export function convertMapperToNotSharedMapper(sharedMapper: vtkVolumeMapper): vtkVolumeMapper; - -// @public (undocumented) -function convertStackToVolumeViewport({ viewport, options, }: { - viewport: StackViewport; - options?: { - volumeId?: string; - viewportId?: string; - background?: Point3; - orientation?: OrientationAxis; - }; -}): Promise; - -// @public (undocumented) -function convertToGrayscale(scalarData: any, width: number, height: number): any; - -// @public (undocumented) -function convertVolumeToStackViewport({ viewport, options, }: { - viewport: Types.IVolumeViewport; - options: { - viewportId?: string; - background?: Types.Point3; - }; -}): Promise; - -// @public (undocumented) -interface Cornerstone3DConfig { - // (undocumented) - gpuTier: { - tier: number; - }; - // (undocumented) - isMobile: boolean; - // (undocumented) - peerImport?: (moduleId: string) => Promise; - // (undocumented) - rendering: { - preferSizeOverAccuracy: boolean; - useCPURendering: boolean; - strictZSpacingForVolumeViewport: boolean; - }; -} - -// @public (undocumented) -export function cornerstoneStreamingDynamicImageVolumeLoader(volumeId: string, options: { - imageIds: string[]; -}): IVolumeLoader_2; - -// @public (undocumented) -export function cornerstoneStreamingImageVolumeLoader(volumeId: string, options: { - imageIds: string[]; - progressiveRendering?: boolean | IRetrieveConfiguration; -}): IVolumeLoader; - -// @public (undocumented) -interface CPUFallbackColormap { - // (undocumented) - addColor: (rgba: Point4) => void; - // (undocumented) - buildLookupTable: (lut: CPUFallbackLookupTable) => void; - // (undocumented) - clearColors: () => void; - // (undocumented) - createLookupTable: () => CPUFallbackLookupTable; - // (undocumented) - getColor: (index: number) => Point4; - // (undocumented) - getColorRepeating: (index: number) => Point4; - // (undocumented) - getColorSchemeName: () => string; - // (undocumented) - getId: () => string; - // (undocumented) - getNumberOfColors: () => number; - // (undocumented) - insertColor: (index: number, rgba: Point4) => void; - // (undocumented) - isValidIndex: (index: number) => boolean; - // (undocumented) - removeColor: (index: number) => void; - // (undocumented) - setColor: (index: number, rgba: Point4) => void; - // (undocumented) - setColorSchemeName: (name: string) => void; - // (undocumented) - setNumberOfColors: (numColors: number) => void; -} - -// @public (undocumented) -interface CPUFallbackColormapData { - // (undocumented) - colors?: Point4[]; - // (undocumented) - gamma?: number; - // (undocumented) - name: string; - // (undocumented) - numColors?: number; - // (undocumented) - numOfColors?: number; - // (undocumented) - segmentedData?: unknown; -} - -// @public (undocumented) -type CPUFallbackColormapsData = Record; - -// @public (undocumented) -interface CPUFallbackEnabledElement { - // (undocumented) - canvas?: HTMLCanvasElement; - // (undocumented) - colormap?: CPUFallbackColormap; - // (undocumented) - image?: IImage; - // (undocumented) - invalid?: boolean; - // (undocumented) - metadata?: { - direction?: Mat3; - dimensions?: Point3; - spacing?: Point3; - origin?: Point3; - imagePlaneModule?: ImagePlaneModule; - imagePixelModule?: ImagePixelModule; - }; - // (undocumented) - needsRedraw?: boolean; - // (undocumented) - options?: { - [key: string]: unknown; - colormap?: CPUFallbackColormap; - }; - // (undocumented) - pan?: Point2; - // (undocumented) - renderingTools?: CPUFallbackRenderingTools; - // (undocumented) - rotation?: number; - // (undocumented) - scale?: number; - // (undocumented) - transform?: CPUFallbackTransform; - // (undocumented) - viewport?: CPUFallbackViewport; - // (undocumented) - voxelManager?: IVoxelManager | IVoxelManager; - // (undocumented) - zoom?: number; -} - -// @public (undocumented) -interface CPUFallbackLookupTable { - // (undocumented) - build: (force: boolean) => void; - // (undocumented) - getColor: (scalar: number) => Point4; - // (undocumented) - setAlphaRange: (start: number, end: number) => void; - // (undocumented) - setHueRange: (start: number, end: number) => void; - // (undocumented) - setNumberOfTableValues: (number: number) => void; - // (undocumented) - setRamp: (ramp: string) => void; - // (undocumented) - setRange: (start: number, end: number) => void; - // (undocumented) - setSaturationRange: (start: number, end: number) => void; - // (undocumented) - setTableRange: (start: number, end: number) => void; - // (undocumented) - setTableValue(index: number, rgba: Point4): any; - // (undocumented) - setValueRange: (start: number, end: number) => void; -} - -// @public (undocumented) -interface CPUFallbackLUT { - // (undocumented) - id?: string; - // (undocumented) - lut: number[]; -} - -// @public (undocumented) -interface CPUFallbackRenderingTools { - // (undocumented) - colorLUT?: CPUFallbackLookupTable; - // (undocumented) - colormapId?: string; - // (undocumented) - lastRenderedImageId?: string; - // (undocumented) - lastRenderedIsColor?: boolean; - // (undocumented) - lastRenderedViewport?: { - windowWidth: number | number[]; - windowCenter: number | number[]; - invert: boolean; - rotation: number; - hflip: boolean; - vflip: boolean; - modalityLUT: CPUFallbackLUT; - voiLUT: CPUFallbackLUT; - colormap: unknown; - }; - // (undocumented) - renderCanvas?: HTMLCanvasElement; - // (undocumented) - renderCanvasContext?: CanvasRenderingContext2D; - // (undocumented) - renderCanvasData?: ImageData; -} - -// @public (undocumented) -interface CPUFallbackTransform { - // (undocumented) - clone: () => CPUFallbackTransform; - // (undocumented) - getMatrix: () => TransformMatrix2D; - // (undocumented) - invert: () => void; - // (undocumented) - multiply: (matrix: TransformMatrix2D) => void; - // (undocumented) - reset: () => void; - // (undocumented) - rotate: (rad: number) => void; - // (undocumented) - scale: (sx: number, sy: number) => void; - // (undocumented) - transformPoint: (point: Point2) => Point2; - // (undocumented) - translate: (x: number, y: number) => void; -} - -// @public (undocumented) -interface CPUFallbackViewport { - // (undocumented) - colormap?: CPUFallbackColormap; - // (undocumented) - displayedArea?: CPUFallbackViewportDisplayedArea; - // (undocumented) - focalPoint?: number[]; - // (undocumented) - hflip?: boolean; - // (undocumented) - invert?: boolean; - // (undocumented) - modality?: string; - // (undocumented) - modalityLUT?: CPUFallbackLUT; - // (undocumented) - parallelScale?: number; - // (undocumented) - pixelReplication?: boolean; - // (undocumented) - rotation?: number; - // (undocumented) - scale?: number; - // (undocumented) - translation?: { - x: number; - y: number; - }; - // (undocumented) - vflip?: boolean; - // (undocumented) - voi?: { - windowWidth: number; - windowCenter: number; - voiLUTFunction: VOILUTFunctionType; - }; - // (undocumented) - voiLUT?: CPUFallbackLUT; -} - -// @public (undocumented) -interface CPUFallbackViewportDisplayedArea { - // (undocumented) - brhc: { - x: number; - y: number; - }; - // (undocumented) - columnPixelSpacing: number; - // (undocumented) - presentationSizeMode: string; - // (undocumented) - rowPixelSpacing: number; - // (undocumented) - tlhc: { - x: number; - y: number; - }; -} - -// @public (undocumented) -interface CPUIImageData { - // (undocumented) - calibration?: IImageCalibration; - // (undocumented) - dimensions: Point3; - // (undocumented) - direction: Mat3; - // (undocumented) - hasPixelSpacing?: boolean; - // (undocumented) - imageData: CPUImageData; - // (undocumented) - metadata: { - Modality: string; - FrameOfReferenceUID: string; - }; - // (undocumented) - numberOfComponents?: number; - // (undocumented) - origin: Point3; - // (undocumented) - preScale?: { - scaled?: boolean; - scalingParameters?: { - modality?: string; - rescaleSlope?: number; - rescaleIntercept?: number; - suvbw?: number; - }; - }; - // (undocumented) - scalarData: PixelDataTypedArray; - // (undocumented) - scaling?: Scaling; - // (undocumented) - spacing: Point3; - // (undocumented) - voxelManager?: IVoxelManager | IVoxelManager; -} - -// @public (undocumented) -interface CPUImageData { - // (undocumented) - getDimensions?: () => Point3; - // (undocumented) - getDirection?: () => Mat3; - // (undocumented) - getIndexToWorld?: () => Point3; - // (undocumented) - getRange?: () => [number, number]; - // (undocumented) - getScalarData?: () => PixelDataTypedArray; - // (undocumented) - getSpacing?: () => Point3; - // (undocumented) - getWorldToIndex?: () => Point3; - // (undocumented) - indexToWorld?: (point: Point3) => Point3; - // (undocumented) - worldToIndex?: (point: Point3) => Point3; -} - -// @public (undocumented) -function createAndCacheDerivedImage(referencedImageId: string, options?: DerivedImageOptions): IImage; - -// @public (undocumented) -function createAndCacheDerivedImages(referencedImageIds: string[], options?: DerivedImageOptions & { - getDerivedImageId?: (referencedImageId: string) => string; - targetBuffer?: { - type: PixelDataTypedArrayString; - }; - voxelRepresentation?: VoxelManagerEnum; -}): IImage[]; - -// @public (undocumented) -function createAndCacheDerivedLabelmapImage(referencedImageId: string, options?: DerivedImageOptions): IImage; - -// @public (undocumented) -function createAndCacheDerivedLabelmapImages(referencedImageIds: string[], options?: DerivedImageOptions): IImage[]; - -// @public (undocumented) -function createAndCacheDerivedLabelmapVolume(referencedVolumeId: string, options?: DerivedVolumeOptions): IImageVolume; - -// @public (undocumented) -function createAndCacheDerivedVolume(referencedVolumeId: string, options: DerivedVolumeOptions): IImageVolume; - -// @public (undocumented) -function createAndCacheGeometry(geometryId: string, options: GeometryOptions): IGeometry; - -// @public (undocumented) -function createAndCacheLocalImage(imageId: string, options: LocalImageOptions): IImage; - -// @public (undocumented) -function createAndCacheVolume(volumeId: string, options?: VolumeLoaderOptions): Promise; - -// @public (undocumented) -function createAndCacheVolumeFromImages(volumeId: string, imageIds: string[]): Promise; - -// @public (undocumented) -function createAndCacheVolumeFromImagesSync(volumeId: string, imageIds: string[]): IImageVolume; - -// @public (undocumented) -function createLinearRGBTransferFunction(voiRange: VOIRange): vtkColorTransferFunction; - -// @public (undocumented) -function createLocalLabelmapVolume(options: LocalVolumeOptions, volumeId: string, preventCache?: boolean): IImageVolume; - -// @public (undocumented) -function createLocalVolume(volumeId: string, options?: LocalVolumeOptions): IImageVolume; - -// @public (undocumented) -function createSigmoidRGBTransferFunction(voiRange: VOIRange, approximationNodes?: number): vtkColorTransferFunction; - -// @public (undocumented) -function createSubVolume(referencedVolumeId: string, boundsIJK: AABB3, options?: { - targetBuffer?: { - type: PixelDataTypedArrayString; - }; -}): ImageVolume; - -// @public (undocumented) -export function createVolumeActor(props: createVolumeActorInterface, element: HTMLDivElement, viewportId: string, suppressEvents?: boolean): Promise; - -// @public (undocumented) -export function createVolumeMapper(imageData: vtkImageData, vtkOpenGLTexture: vtkOpenGLTexture): vtkVolumeMapper; - -// @public (undocumented) -interface CustomEvent_2 extends Event { - // (undocumented) - readonly detail: T; - // (undocumented) - initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void; -} - -// @public (undocumented) -type DataSetOptions = { - groupId?: string; - viewSelector?: ViewPresentationSelector; - viewReference?: ViewReferenceSpecifier; -}; - -// @public (undocumented) -function decimate(list: unknown[], interleave: number, offset?: number): number[]; - -// @public (undocumented) -function deepClone(obj: unknown): unknown; - -// @public (undocumented) -function deepEqual(obj1: unknown, obj2: unknown): boolean; - -// @public (undocumented) -const deepMerge: (target?: {}, source?: {}, optionsArgument?: any) => any; - -// @public (undocumented) -const DefaultHistoryMemo: HistoryMemo; - -// @public (undocumented) -interface DicomDateObject { - // (undocumented) - day: number; - // (undocumented) - month: number; - // (undocumented) - year: number; -} - -// @public (undocumented) -interface DicomTimeObject { - // (undocumented) - fractionalSeconds?: number; - // (undocumented) - hours: number; - // (undocumented) - minutes?: number; - // (undocumented) - seconds?: number; -} - -// @public (undocumented) -interface DisplayArea { - // (undocumented) - imageArea?: [number, number]; - // (undocumented) - imageCanvasPoint?: { - imagePoint: [number, number]; - canvasPoint?: [number, number]; - }; - // (undocumented) - interpolationType?: InterpolationType; - // (undocumented) - scale?: number; - // (undocumented) - storeAsInitialCamera?: boolean; - // (undocumented) - type?: 'SCALE' | 'FIT'; -} - -// @public (undocumented) -type DisplayAreaModifiedEvent = CustomEvent_2; - -// @public (undocumented) -interface DisplayAreaModifiedEventDetail { - // (undocumented) - displayArea: DisplayArea; - // (undocumented) - storeAsInitialCamera?: boolean; - // (undocumented) - viewportId: string; - // (undocumented) - volumeId?: string; -} - -// @public (undocumented) -enum DynamicOperatorType { - // (undocumented) - AVERAGE = "AVERAGE", - // (undocumented) - SUBTRACT = "SUBTRACT", - // (undocumented) - SUM = "SUM" -} - -// @public (undocumented) -type ElementDisabledEvent = CustomEvent_2; - -// @public (undocumented) -interface ElementDisabledEventDetail { - // (undocumented) - element: HTMLDivElement; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -type ElementEnabledEvent = CustomEvent_2; - -// @public (undocumented) -interface ElementEnabledEventDetail { - // (undocumented) - element: HTMLDivElement; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; -} - -declare namespace Enums { - export { - EVENTS as Events, - BlendModes, - CalibrationTypes, - InterpolationType, - RequestType, - ViewportType, - OrientationAxis, - GeometryType, - ContourType, - VOILUTFunctionType, - DynamicOperatorType, - ViewportStatus, - VideoEnums, - MetadataModules, - ImageQualityStatus, - VoxelManagerEnum, - GenerateImageType - } -} -export { Enums } - -// @public (undocumented) -const EPSILON = 0.001; - -declare namespace eventListener { - export { - TargetEventListeners, - MultiTargetEventListenerManager - } -} - -// @public (undocumented) -export enum EVENTS { - // (undocumented) - CACHE_SIZE_EXCEEDED = "CACHE_SIZE_EXCEEDED", - // (undocumented) - CAMERA_MODIFIED = "CORNERSTONE_CAMERA_MODIFIED", - // (undocumented) - CAMERA_RESET = "CORNERSTONE_CAMERA_RESET", - // (undocumented) - CLIPPING_PLANES_UPDATED = "CORNERSTONE_CLIPPING_PLANES_UPDATED", - // (undocumented) - COLORMAP_MODIFIED = "CORNERSTONE_COLORMAP_MODIFIED", - // (undocumented) - DISPLAY_AREA_MODIFIED = "CORNERSTONE_DISPLAY_AREA_MODIFIED", - // (undocumented) - DYNAMIC_VOLUME_DIMENSION_GROUP_CHANGED = "DYNAMIC_VOLUME_DIMENSION_GROUP_CHANGED", - // (undocumented) - DYNAMIC_VOLUME_DIMENSION_GROUP_LOADED = "DYNAMIC_VOLUME_DIMENSION_GROUP_LOADED", - // (undocumented) - DYNAMIC_VOLUME_TIME_POINT_INDEX_CHANGED = "DYNAMIC_VOLUME_TIME_POINT_INDEX_CHANGED", - // (undocumented) - DYNAMIC_VOLUME_TIME_POINT_LOADED = "DYNAMIC_VOLUME_TIME_POINT_LOADED", - // (undocumented) - ELEMENT_DISABLED = "CORNERSTONE_ELEMENT_DISABLED", - // (undocumented) - ELEMENT_ENABLED = "CORNERSTONE_ELEMENT_ENABLED", - // (undocumented) - ERROR_EVENT = "CORNERSTONE_ERROR", - // (undocumented) - GEOMETRY_CACHE_GEOMETRY_ADDED = "CORNERSTONE_GEOMETRY_CACHE_GEOMETRY_ADDED", - // (undocumented) - GEOMETRY_CACHE_GEOMETRY_REMOVED = "CORNERSTONE_GEOMETRY_CACHE_GEOMETRY_REMOVED", - // (undocumented) - GEOMETRY_LOADED = "GEOMETRY_LOADED", - // (undocumented) - GEOMETRY_LOADED_FAILED = "GEOMETRY_LOADED_FAILED", - // (undocumented) - IMAGE_CACHE_IMAGE_ADDED = "CORNERSTONE_IMAGE_CACHE_IMAGE_ADDED", - // (undocumented) - IMAGE_CACHE_IMAGE_REMOVED = "CORNERSTONE_IMAGE_CACHE_IMAGE_REMOVED", - // (undocumented) - IMAGE_LOAD_ERROR = "IMAGE_LOAD_ERROR", - // (undocumented) - IMAGE_LOAD_FAILED = "CORNERSTONE_IMAGE_LOAD_FAILED", - // (undocumented) - IMAGE_LOADED = "CORNERSTONE_IMAGE_LOADED", - // (undocumented) - IMAGE_RENDERED = "CORNERSTONE_IMAGE_RENDERED", - // (undocumented) - IMAGE_RETRIEVAL_STAGE = "CORNERSTONE_IMAGE_RETRIEVAL_STAGE", - // (undocumented) - IMAGE_SPACING_CALIBRATED = "CORNERSTONE_IMAGE_SPACING_CALIBRATED", - // (undocumented) - IMAGE_VOLUME_LOADING_COMPLETED = "CORNERSTONE_IMAGE_VOLUME_LOADING_COMPLETED", - // (undocumented) - IMAGE_VOLUME_MODIFIED = "CORNERSTONE_IMAGE_VOLUME_MODIFIED", - // (undocumented) - PRE_STACK_NEW_IMAGE = "CORNERSTONE_PRE_STACK_NEW_IMAGE", - // (undocumented) - PRESET_MODIFIED = "CORNERSTONE_VIEWPORT_RENDERING_PRESET_MODIFIED", - // (undocumented) - STACK_NEW_IMAGE = "CORNERSTONE_STACK_NEW_IMAGE", - // (undocumented) - STACK_SCROLL_OUT_OF_BOUNDS = "STACK_SCROLL_OUT_OF_BOUNDS", - // (undocumented) - STACK_VIEWPORT_SCROLL = "CORNERSTONE_STACK_VIEWPORT_SCROLL", - // (undocumented) - VIEWPORT_NEW_IMAGE_SET = "CORNERSTONE_VIEWPORT_NEW_IMAGE_SET", - // (undocumented) - VOI_MODIFIED = "CORNERSTONE_VOI_MODIFIED", - // (undocumented) - VOLUME_CACHE_VOLUME_ADDED = "CORNERSTONE_VOLUME_CACHE_VOLUME_ADDED", - // (undocumented) - VOLUME_CACHE_VOLUME_REMOVED = "CORNERSTONE_VOLUME_CACHE_VOLUME_REMOVED", - // (undocumented) - VOLUME_LOADED = "CORNERSTONE_VOLUME_LOADED", - // (undocumented) - VOLUME_LOADED_FAILED = "CORNERSTONE_VOLUME_LOADED_FAILED", - // (undocumented) - VOLUME_NEW_IMAGE = "CORNERSTONE_VOLUME_NEW_IMAGE", - // (undocumented) - VOLUME_VIEWPORT_NEW_VOLUME = "CORNERSTONE_VOLUME_VIEWPORT_NEW_VOLUME", - // (undocumented) - VOLUME_VIEWPORT_SCROLL = "VOLUME_VIEWPORT_SCROLL", - // (undocumented) - VOLUME_VIEWPORT_SCROLL_OUT_OF_BOUNDS = "VOLUME_VIEWPORT_SCROLL_OUT_OF_BOUNDS", - // (undocumented) - WEB_WORKER_PROGRESS = "CORNERSTONE_WEB_WORKER_PROGRESS" -} - -// @public (undocumented) -export const eventTarget: CornerstoneEventTarget; - -declare namespace EventTypes { - export { - ImageLoadStageEventDetail, - VolumeScrollOutOfBoundsEventDetail, - VolumeScrollOutOfBoundsEvent, - CameraModifiedEventDetail, - CameraModifiedEvent, - VoiModifiedEvent, - VoiModifiedEventDetail, - ColormapModifiedEvent, - ColormapModifiedEventDetail, - DisplayAreaModifiedEvent, - DisplayAreaModifiedEventDetail, - ElementDisabledEvent, - ElementDisabledEventDetail, - ElementEnabledEvent, - ElementEnabledEventDetail, - ImageRenderedEventDetail, - ImageRenderedEvent, - ImageVolumeModifiedEvent, - ImageVolumeModifiedEventDetail, - ImageVolumeLoadingCompletedEvent, - ImageVolumeLoadingCompletedEventDetail, - ImageLoadedEvent, - ImageLoadedEventDetail, - ImageLoadedFailedEventDetail, - ImageLoadedFailedEvent, - VolumeLoadedEvent, - VolumeLoadedEventDetail, - VolumeLoadedFailedEvent, - VolumeLoadedFailedEventDetail, - ImageCacheImageAddedEvent, - ImageCacheImageAddedEventDetail, - ImageCacheImageRemovedEvent, - ImageCacheImageRemovedEventDetail, - VolumeCacheVolumeAddedEvent, - VolumeCacheVolumeAddedEventDetail, - VolumeCacheVolumeRemovedEvent, - VolumeCacheVolumeRemovedEventDetail, - StackNewImageEvent, - StackNewImageEventDetail, - PreStackNewImageEvent, - PreStackNewImageEventDetail, - ImageSpacingCalibratedEvent, - ImageSpacingCalibratedEventDetail, - VolumeNewImageEvent, - VolumeNewImageEventDetail, - StackViewportNewStackEvent, - StackViewportNewStackEventDetail, - StackViewportScrollEvent, - StackViewportScrollEventDetail, - StackScrollOutOfBoundsEvent, - StackScrollOutOfBoundsEventDetail, - CameraResetEvent, - CameraResetEventDetail - } -} - -// @public (undocumented) -function findMatchingColormap(rgbPoints: any, actor: any): ColormapPublic | null; - -// @public (undocumented) -interface FlipDirection { - // (undocumented) - flipHorizontal?: boolean; - // (undocumented) - flipVertical?: boolean; -} - -// @public (undocumented) -function fnv1aHash(str: string): string; - -// @public (undocumented) -class FrameRange { - // (undocumented) - protected static frameRangeExtractor: RegExp; - // (undocumented) - protected static framesToImageId(imageId: string, range: FramesRange | string): string; - // (undocumented) - static framesToString(range: any): string; - // (undocumented) - static imageIdToFrameEnd(imageId: string): number; - // (undocumented) - protected static imageIdToFrames(imageId: string): FramesRange; - // (undocumented) - static imageIdToFrameStart(imageId: string): number; -} - -// @public (undocumented) -interface GeneralSeriesModuleMetadata { - // (undocumented) - modality: string; - // (undocumented) - seriesDate: DicomDateObject; - // (undocumented) - seriesInstanceUID: string; - // (undocumented) - seriesNumber: number; - // (undocumented) - seriesTime: DicomTimeObject; - // (undocumented) - studyInstanceUID: string; -} - -// @public (undocumented) -enum GenerateImageType { - // (undocumented) - AVERAGE = "AVERAGE", - // (undocumented) - SUBTRACT = "SUBTRACT", - // (undocumented) - SUM = "SUM" -} - -// @public (undocumented) -function generateVolumePropsFromImageIds(imageIds: string[], volumeId: string): ImageVolumeProps; - -declare namespace geometryLoader { - export { - loadGeometry, - loadAndCacheGeometry, - createAndCacheGeometry, - registerGeometryLoader, - registerUnknownGeometryLoader - } -} -export { geometryLoader } - -// @public (undocumented) -type GeometryLoaderFn = (geometryId: string, options?: Record) => { - promise: Promise; - cancelFn?: () => void | undefined; - decache?: () => void | undefined; -}; - -// @public (undocumented) -enum GeometryType { - // (undocumented) - CONTOUR = "CONTOUR", - // (undocumented) - SURFACE = "SURFACE" -} - -// @public (undocumented) -function getBufferConfiguration(targetBufferType: PixelDataTypedArrayString, length: number, options?: { - isVolumeBuffer?: boolean; -}): { - numBytes: number; - TypedArrayConstructor: new (length: number) => PixelDataTypedArray; -}; - -// @public (undocumented) -function getClosestImageId(imageVolume: IImageVolume | { - direction: mat3; - spacing: Point3; - imageIds: string[]; -}, worldPos: Point3, viewPlaneNormal: Point3): string; - -// @public (undocumented) -function getClosestStackImageIndexForPoint(point: Point3, viewport: StackViewport): number | null; - -// @public (undocumented) -function getColormap(name: any): any; - -// @public (undocumented) -function getColormapNames(): any[]; - -// @public (undocumented) -export function getConfiguration(): Cornerstone3DConfig; - -// @public (undocumented) -function getCurrentVolumeViewportSlice(viewport: IVolumeViewport): { - width: number; - height: number; - scalarData: PixelDataTypedArray; - sliceToIndexMatrix: mat4; - indexToSliceMatrix: mat4; -}; - -// @public (undocumented) -function getDynamicVolumeInfo(imageIds: any): { - isDynamicVolume: boolean; - timePoints: string[][]; - splittingTag: string; -}; - -// @public (undocumented) -export function getEnabledElement(element: HTMLDivElement | undefined): IEnabledElement | undefined; - -// @public (undocumented) -export function getEnabledElementByIds(viewportId: string, renderingEngineId: string): IEnabledElement; - -// @public (undocumented) -export function getEnabledElementByViewportId(viewportId: string): IEnabledElement; - -// @public (undocumented) -export function getEnabledElements(): IEnabledElement[]; - -// @public (undocumented) -function getImageLegacy(element: HTMLDivElement): Types.IImage | undefined; - -// @public (undocumented) -function getImageSliceDataForVolumeViewport(viewport: IVolumeViewport): ImageSliceData; - -// @public (undocumented) -function getMetaData(type: string, ...queries: any[]): any; - -// @public (undocumented) -function getMinMax(storedPixelData: PixelDataTypedArray): { - min: number; - max: number; -}; - -// @public (undocumented) -export function getOrCreateCanvas(element: HTMLDivElement): HTMLCanvasElement; - -// @public (undocumented) -function getRandomSampleFromArray(array: T[], size: number): T[]; - -// @public (undocumented) -export function getRenderingEngine(id: string): IRenderingEngine | undefined; - -// @public (undocumented) -export function getRenderingEngines(): IRenderingEngine[] | undefined; - -// @public (undocumented) -function getRuntimeId(context?: unknown, separator?: string, max?: number): string; - -// @public (undocumented) -function getScalingParameters(imageId: string): ScalingParameters; - -// @public (undocumented) -export function getShouldUseCPURendering(): boolean; - -// @public (undocumented) -function getSliceRange(volumeActor: VolumeActor, viewPlaneNormal: Point3, focalPoint: Point3): ActorSliceRange; - -// @public (undocumented) -function getSpacingInNormalDirection(imageVolume: IImageVolume | { - direction: mat3; - spacing: Point3; -}, viewPlaneNormal: Point3): number; - -// @public (undocumented) -function getTargetVolumeAndSpacingInNormalDir(viewport: IVolumeViewport, camera: ICamera, targetId?: string, useSlabThickness?: boolean): { - imageVolume: IImageVolume; - spacingInNormalDirection: number; - actorUID: string; -}; - -// @public (undocumented) -function getTransferFunctionNodes(transferFunction: any): any[]; - -// @public (undocumented) -function getUnknownVolumeLoaderSchema(): string; - -// @public (undocumented) -function getViewportImageCornersInWorld(viewport: StackViewport | IVolumeViewport): Point3[]; - -// @public (undocumented) -function getViewportImageIds(viewport: IViewport): string[]; - -// @public (undocumented) -const getViewportModality: (viewport: IViewport, volumeId?: string) => string; - -// @public (undocumented) -function getViewportsWithImageURI(imageURI: string): Viewport_2[]; - -// @public (undocumented) -function getViewportsWithVolumeId(volumeId: string): IVolumeViewport[]; - -// @public (undocumented) -function getVoiFromSigmoidRGBTransferFunction(cfun: vtkColorTransferFunction): [number, number]; - -// @public (undocumented) -function getVolumeActorCorners(volumeActor: any): Point3[]; - -// @public (undocumented) -function getVolumeDirectionVectors(imageData: any, camera: any): { - worldVecRowDir: vec3; - worldVecColDir: vec3; - worldVecSliceDir: vec3; - ijkVecRowDir: vec3; - ijkVecColDir: vec3; - ijkVecSliceDir: vec3; -}; - -// @public (undocumented) -const getVolumeId: (targetId: string) => string; - -// @public (undocumented) -function getVolumeLoaderSchemes(): string[]; - -// @public (undocumented) -function getVolumeSliceRangeInfo(viewport: IVolumeViewport, volumeId: string, useSlabThickness?: boolean): { - sliceRange: ActorSliceRange; - spacingInNormalDirection: number; - camera: ICamera; -}; - -// @public (undocumented) -function getVolumeViewportsContainingSameVolumes(targetViewport: IVolumeViewport, renderingEngineId?: string): IVolumeViewport[]; - -// @public (undocumented) -function getVolumeViewportScrollInfo(viewport: IVolumeViewport, volumeId: string, useSlabThickness?: boolean): { - numScrollSteps: number; - currentStepIndex: number; - sliceRangeInfo: { - sliceRange: ActorSliceRange; - spacingInNormalDirection: number; - camera: ICamera; - }; -}; - -// @public (undocumented) -export function getWebWorkerManager(): any; - -// @public (undocumented) -const hasFloatScalingParameters: (scalingParameters: ScalingParameters) => boolean; - -// @public (undocumented) -function hasNaNValues(input: number[] | number): boolean; - -// @public (undocumented) -function hexToRgb(hex: any): { - r: number; - g: number; - b: number; -}; - -// @public (undocumented) -class HistoryMemo { - constructor(label?: string, size?: number); - // (undocumented) - readonly label: any; - // (undocumented) - push(item: Memo | Memoable): Memo; - // (undocumented) - redo(items?: number): void; - // (undocumented) - get size(): number; - set size(newSize: number); - // (undocumented) - undo(items?: number): void; -} - -declare namespace HistoryMemo_2 { - export { - Memo, - Memoable, - HistoryMemo, - DefaultHistoryMemo - } -} - -// @public (undocumented) -type IBaseVolumeViewport = BaseVolumeViewport; - -// @public (undocumented) -interface ICache { - // (undocumented) - getCacheSize: () => number; - // (undocumented) - getImageLoadObject: (imageId: string) => IImageLoadObject | void; - // (undocumented) - getMaxCacheSize: () => number; - // (undocumented) - getVolumeLoadObject: (volumeId: string) => IVolumeLoadObject | void; - // (undocumented) - purgeCache: () => void; - // (undocumented) - putImageLoadObject: (imageId: string, imageLoadObject: IImageLoadObject, updateCache?: boolean) => Promise; - // (undocumented) - putVolumeLoadObject: (volumeId: string, volumeLoadObject: IVolumeLoadObject) => Promise; - // (undocumented) - setMaxCacheSize: (maxCacheSize: number) => void; -} - -// @public (undocumented) -interface ICachedGeometry { - // (undocumented) - geometry?: IGeometry; - // (undocumented) - geometryId: string; - // (undocumented) - geometryLoadObject: IGeometryLoadObject; - // (undocumented) - loaded: boolean; - // (undocumented) - sizeInBytes: number; - // (undocumented) - timeStamp: number; -} - -// @public (undocumented) -interface ICachedImage { - // (undocumented) - image?: IImage; - // (undocumented) - imageId: string; - // (undocumented) - imageLoadObject?: IImageLoadObject; - // (undocumented) - loaded: boolean; - // (undocumented) - sharedCacheKey?: string; - // (undocumented) - sizeInBytes: number; - // (undocumented) - timeStamp: number; -} - -// @public (undocumented) -interface ICachedVolume { - // (undocumented) - loaded: boolean; - // (undocumented) - sizeInBytes: number; - // (undocumented) - timeStamp: number; - // (undocumented) - volume?: IImageVolume; - // (undocumented) - volumeId: string; - // (undocumented) - volumeLoadObject: IVolumeLoadObject; -} - -// @public (undocumented) -interface ICamera { - // (undocumented) - clippingRange?: Point2; - // (undocumented) - flipHorizontal?: boolean; - // (undocumented) - flipVertical?: boolean; - // (undocumented) - focalPoint?: Point3; - // (undocumented) - parallelProjection?: boolean; - // (undocumented) - parallelScale?: number; - // (undocumented) - position?: Point3; - // (undocumented) - rotation?: number; - // (undocumented) - scale?: number; - // (undocumented) - viewAngle?: number; - // (undocumented) - viewPlaneNormal?: Point3; - // (undocumented) - viewUp?: Point3; -} - -// @public (undocumented) -type ICanvasActor = CanvasActor; - -// @public (undocumented) -type IContour = Contour; - -// @public (undocumented) -type IContourSet = ContourSet; - -// @public (undocumented) -interface IDynamicImageVolume extends IImageVolume { - // (undocumented) - get dimensionGroupNumber(): number; - set dimensionGroupNumber(dimensionGroupNumber: number); - // (undocumented) - get numDimensionGroups(): number; - // (undocumented) - get numTimePoints(): number; - // (undocumented) - scroll(delta: number): void; - // (undocumented) - get timePointIndex(): number; - set timePointIndex(timePointIndex: number); -} - -// @public (undocumented) -interface IEnabledElement { - // (undocumented) - FrameOfReferenceUID: string; - // (undocumented) - renderingEngine: IRenderingEngine; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewport: StackViewport | IVolumeViewport; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -interface IGeometry { - // (undocumented) - data: IContourSet | ISurface; - // (undocumented) - id: string; - // (undocumented) - sizeInBytes: number; - // (undocumented) - type: GeometryType; -} - -// @public (undocumented) -interface IGeometryLoadObject { - // (undocumented) - cancelFn?: () => void; - // (undocumented) - decache?: () => void; - // (undocumented) - promise: Promise; -} - -// @public (undocumented) -interface IImage { - // (undocumented) - bufferView?: { - buffer: ArrayBuffer; - offset: number; - }; - // (undocumented) - cachedLut?: { - windowWidth?: number | number[]; - windowCenter?: number | number[]; - invert?: boolean; - lutArray?: Uint8ClampedArray; - modalityLUT?: CPUFallbackLUT; - voiLUT?: CPUFallbackLUT; - }; - // (undocumented) - calibration?: IImageCalibration; - // (undocumented) - color: boolean; - // (undocumented) - colormap?: CPUFallbackColormap; - // (undocumented) - columnPixelSpacing: number; - // (undocumented) - columns: number; - // (undocumented) - dataType: PixelDataTypedArrayString; - // (undocumented) - decodeTimeInMS?: number; - // (undocumented) - FrameOfReferenceUID?: string; - // (undocumented) - getCanvas: () => HTMLCanvasElement; - // (undocumented) - getPixelData: () => PixelDataTypedArray; - // (undocumented) - height: number; - // (undocumented) - imageFrame?: ImageFrame; - // (undocumented) - imageId: string; - // (undocumented) - imageQualityStatus?: ImageQualityStatus; - // (undocumented) - intercept: number; - // (undocumented) - invert: boolean; - // (undocumented) - isPreScaled?: boolean; - // (undocumented) - loadTimeInMS?: number; - // (undocumented) - maxPixelValue: number; - // (undocumented) - minPixelValue: number; - // (undocumented) - modalityLUT?: CPUFallbackLUT; - // (undocumented) - numberOfComponents: number; - // (undocumented) - photometricInterpretation?: string; - // (undocumented) - preScale?: { - enabled: boolean; - scaled?: boolean; - scalingParameters?: { - modality?: string; - rescaleSlope?: number; - rescaleIntercept?: number; - suvbw?: number; - }; - }; - // (undocumented) - referencedImageId?: string; - // (undocumented) - render?: (enabledElement: CPUFallbackEnabledElement, invalidated: boolean) => unknown; - // (undocumented) - rgba: boolean; - // (undocumented) - rowPixelSpacing: number; - // (undocumented) - rows: number; - // (undocumented) - scaling?: { - PT?: { - SUVlbmFactor?: number; - SUVbsaFactor?: number; - suvbwToSuvlbm?: number; - suvbwToSuvbsa?: number; - }; - }; - // (undocumented) - sharedCacheKey?: string; - // (undocumented) - sizeInBytes: number; - // (undocumented) - sliceThickness?: number; - // (undocumented) - slope: number; - // (undocumented) - stats?: { - lastStoredPixelDataToCanvasImageDataTime?: number; - lastGetPixelDataTime?: number; - lastPutImageDataTime?: number; - lastLutGenerateTime?: number; - lastRenderedViewport?: unknown; - lastRenderTime?: number; - }; - // (undocumented) - voiLUT?: CPUFallbackLUT; - // (undocumented) - voiLUTFunction: VOILUTFunctionType; - // (undocumented) - voxelManager?: IVoxelManager | IVoxelManager; - // (undocumented) - width: number; - // (undocumented) - windowCenter: number[] | number; - // (undocumented) - windowWidth: number[] | number; -} - -// @public (undocumented) -interface IImageCalibration { - // (undocumented) - aspect?: number; - // (undocumented) - columnPixelSpacing?: number; - // (undocumented) - rowPixelSpacing?: number; - // (undocumented) - scale?: number; - // (undocumented) - sequenceOfUltrasoundRegions?: Record[]; - // (undocumented) - tooltip?: string; - // (undocumented) - type: CalibrationTypes; -} - -// @public (undocumented) -interface IImageData { - // (undocumented) - calibration?: IImageCalibration; - // (undocumented) - dimensions: Point3; - // (undocumented) - direction: Mat3; - // (undocumented) - hasPixelSpacing?: boolean; - // (undocumented) - imageData: vtkImageData; - // (undocumented) - metadata: { - Modality: string; - FrameOfReferenceUID: string; - }; - // (undocumented) - numberOfComponents?: number; - // (undocumented) - origin: Point3; - // (undocumented) - preScale?: { - scaled?: boolean; - scalingParameters?: { - modality?: string; - rescaleSlope?: number; - rescaleIntercept?: number; - suvbw?: number; - }; - }; - // (undocumented) - scalarData: PixelDataTypedArray; - // (undocumented) - scaling?: Scaling; - // (undocumented) - spacing: Point3; - // (undocumented) - voxelManager?: IVoxelManager | IVoxelManager; -} - -// @public (undocumented) -interface IImageLoadObject { - // (undocumented) - cancelFn?: () => void; - // (undocumented) - decache?: () => void; - // (undocumented) - promise: Promise; -} - -// @public (undocumented) -export interface IImagesLoader { - // (undocumented) - loadImages: (imageIds: string[], listener: ImageLoadListener) => Promise; -} - -// @public (undocumented) -type IImageVolume = ImageVolume; - -// @public (undocumented) -type ImageActor = vtkImageSlice; - -// @public (undocumented) -type ImageCacheImageAddedEvent = CustomEvent_2; - -// @public (undocumented) -interface ImageCacheImageAddedEventDetail { - // (undocumented) - image: ICachedImage; -} - -// @public (undocumented) -type ImageCacheImageRemovedEvent = CustomEvent_2; - -// @public (undocumented) -interface ImageCacheImageRemovedEventDetail { - // (undocumented) - imageId: string; -} - -// @public (undocumented) -interface ImageFrame { - // (undocumented) - bitsAllocated: number; - // (undocumented) - bitsStored: number; - // (undocumented) - bluePaletteColorLookupTableData: number[]; - // (undocumented) - bluePaletteColorLookupTableDescriptor: number[]; - // (undocumented) - columns: number; - // (undocumented) - decodeLevel?: unknown; - // (undocumented) - decodeTimeInMS?: number; - // (undocumented) - greenPaletteColorLookupTableData: number[]; - // (undocumented) - greenPaletteColorLookupTableDescriptor: number[]; - // (undocumented) - imageData?: ImageData; - // (undocumented) - imageId: string; - // (undocumented) - imageQualityStatus?: ImageQualityStatus; - // (undocumented) - largestPixelValue: number; - // (undocumented) - loadTimeInMS?: number; - // (undocumented) - photometricInterpretation: string; - // (undocumented) - pixelData: PixelDataTypedArray; - // (undocumented) - pixelDataLength?: number; - // (undocumented) - pixelRepresentation: number; - // (undocumented) - planarConfiguration: number; - // (undocumented) - preScale?: { - enabled: boolean; - scaled: boolean; - scalingParameters?: { - intercept?: number; - slope?: number; - rescaleSlope?: number; - rescaleIntercept?: number; - modality?: string; - suvbw?: number; - }; - }; - // (undocumented) - redPaletteColorLookupTableData: number[]; - // (undocumented) - redPaletteColorLookupTableDescriptor: number[]; - // (undocumented) - rows: number; - // (undocumented) - samplesPerPixel: number; - // (undocumented) - smallestPixelValue: number; - // (undocumented) - transferSyntax?: string; -} - -// @public (undocumented) -function imageIdToURI(imageId: string): string; - -// @public (undocumented) -type ImageLoadedEvent = CustomEvent_2; - -// @public (undocumented) -interface ImageLoadedEventDetail { - // (undocumented) - image: IImage; -} - -// @public (undocumented) -type ImageLoadedFailedEvent = CustomEvent_2; - -// @public (undocumented) -interface ImageLoadedFailedEventDetail { - // (undocumented) - error: unknown; - // (undocumented) - imageId: string; -} - -declare namespace imageLoader { - export { - loadImage, - loadAndCacheImage, - loadAndCacheImages, - createAndCacheDerivedImage, - createAndCacheDerivedImages, - createAndCacheLocalImage, - cancelLoadImage, - cancelLoadImages, - cancelLoadAll, - registerImageLoader, - registerUnknownImageLoader, - unregisterAllImageLoaders, - createAndCacheDerivedLabelmapImages, - createAndCacheDerivedLabelmapImage, - ImageLoaderOptions - } -} -export { imageLoader } - -// @public (undocumented) -type ImageLoaderFn = (imageId: string, options?: Record) => { - promise: Promise>; - cancelFn?: () => void | undefined; - decache?: () => void | undefined; -}; - -// @public (undocumented) -interface ImageLoaderOptions { - // (undocumented) - additionalDetails?: Record; - // (undocumented) - ignoreCache?: boolean; - // (undocumented) - priority: number; - // (undocumented) - requestType: string; -} - -// @public (undocumented) -export interface ImageLoadListener { - // (undocumented) - errorCallback: (imageId: any, permanent: any, reason: any) => void; - // (undocumented) - getLoaderImageOptions?: (imageId: any) => Record; - // (undocumented) - successCallback: (imageId: any, image: any) => void; -} - -// @public (undocumented) -const imageLoadPoolManager: RequestPoolManager; -export { imageLoadPoolManager } -export { imageLoadPoolManager as requestPoolManager } - -// @public (undocumented) -interface ImageLoadRequests { - // (undocumented) - additionalDetails: { - volumeId: string; - }; - // (undocumented) - callLoadImage: (imageId: string, imageIdIndex: number, options: unknown) => Promise; - // (undocumented) - imageId: string; - // (undocumented) - imageIdIndex: number; - // (undocumented) - options: { - targetBuffer: { - type: string; - rows: number; - columns: number; - }; - preScale: { - enabled: boolean; - scalingParameters: ScalingParameters; - }; - transferPixelData: boolean; - }; - // (undocumented) - priority: number; - // (undocumented) - requestType: RequestType; -} - -// @public (undocumented) -interface ImageLoadStageEventDetail { - // (undocumented) - numberOfFailures: number; - // (undocumented) - numberOfImages: number; - // (undocumented) - stageDurationInMS: number; - // (undocumented) - stageId: string; - // (undocumented) - startDurationInMS: number; -} - -// @public (undocumented) -interface ImagePixelModule { - // (undocumented) - bitsAllocated: number; - // (undocumented) - bitsStored: number; - // (undocumented) - highBit: number; - // (undocumented) - modality: string; - // (undocumented) - photometricInterpretation: string; - // (undocumented) - pixelRepresentation: string; - // (undocumented) - samplesPerPixel: number; - // (undocumented) - voiLUTFunction: VOILUTFunctionType; - // (undocumented) - windowCenter: number | number[]; - // (undocumented) - windowWidth: number | number[]; -} - -// @public (undocumented) -interface ImagePixelModuleMetadata { - // (undocumented) - bitsAllocated: number; - // (undocumented) - bitsStored: number; - // (undocumented) - bluePaletteColorLookupTableData: number[]; - // (undocumented) - bluePaletteColorLookupTableDescriptor: number[]; - // (undocumented) - columns: number; - // (undocumented) - greenPaletteColorLookupTableData: number[]; - // (undocumented) - greenPaletteColorLookupTableDescriptor: number[]; - // (undocumented) - highBit: number; - // (undocumented) - largestPixelValue?: number; - // (undocumented) - photometricInterpretation: string; - // (undocumented) - pixelAspectRatio: string; - // (undocumented) - pixelRepresentation: number; - // (undocumented) - planarConfiguration: number; - // (undocumented) - redPaletteColorLookupTableData: number[]; - // (undocumented) - redPaletteColorLookupTableDescriptor: number[]; - // (undocumented) - rows: number; - // (undocumented) - samplesPerPixel: number; - // (undocumented) - smallestPixelValue?: number; -} - -// @public (undocumented) -interface ImagePlaneModule { - // (undocumented) - columnCosines?: Point3; - // (undocumented) - columnPixelSpacing?: number; - // (undocumented) - columns: number; - // (undocumented) - frameOfReferenceUID: string; - // (undocumented) - imageOrientationPatient?: Float32Array; - // (undocumented) - imagePositionPatient?: Point3; - // (undocumented) - pixelSpacing?: Point2; - // (undocumented) - rowCosines?: Point3; - // (undocumented) - rowPixelSpacing?: number; - // (undocumented) - rows: number; - // (undocumented) - sliceLocation?: number; - // (undocumented) - sliceThickness?: number; -} - -// @public (undocumented) -interface ImagePlaneModuleMetadata { - // (undocumented) - columnCosines: number[]; - // (undocumented) - columnPixelSpacing: number | null; - // (undocumented) - columns: number; - // (undocumented) - frameOfReferenceUID: string; - // (undocumented) - imageOrientationPatient: number[]; - // (undocumented) - imagePositionPatient: number[]; - // (undocumented) - pixelSpacing: number[]; - // (undocumented) - rowCosines: number[]; - // (undocumented) - rowPixelSpacing: number | null; - // (undocumented) - rows: number; - // (undocumented) - sliceLocation: number; - // (undocumented) - sliceThickness: number; - // (undocumented) - usingDefaultValues: boolean; -} - -// @public (undocumented) -enum ImageQualityStatus { - // (undocumented) - ADJACENT_REPLICATE = 3, - // (undocumented) - FAR_REPLICATE = 1, - // (undocumented) - FULL_RESOLUTION = 8, - // (undocumented) - LOSSY = 7, - // (undocumented) - SUBRESOLUTION = 6 -} - -// @public (undocumented) -type ImageRenderedEvent = CustomEvent_2; - -// @public (undocumented) -interface ImageRenderedEventDetail { - // (undocumented) - element: HTMLDivElement; - // (undocumented) - renderingEngineId: string; - // (undocumented) - suppressEvents?: boolean; - // (undocumented) - viewportId: string; - // (undocumented) - viewportStatus: ViewportStatus; -} - -// @public (undocumented) -export const imageRetrievalPoolManager: RequestPoolManager; - -// @public (undocumented) -const imageRetrieveMetadataProvider: { - IMAGE_RETRIEVE_CONFIGURATION: string; - clear: () => void; - add: (key: string, payload: any) => void; - clone: () => Map; - restore: (state: Map) => void; - get: (type: string, ...queries: string[]) => unknown; -}; - -// @public (undocumented) -interface ImageSliceData { - // (undocumented) - imageIndex: number; - // (undocumented) - numberOfSlices: number; -} - -// @public (undocumented) -type ImageSpacingCalibratedEvent = CustomEvent_2; - -// @public (undocumented) -interface ImageSpacingCalibratedEventDetail { - // (undocumented) - calibration: IImageCalibration; - // (undocumented) - element: HTMLDivElement; - // (undocumented) - imageData: vtkImageData; - // (undocumented) - imageId: string; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; - // (undocumented) - worldToIndex: mat4; -} - -// @public (undocumented) -function imageToWorldCoords(imageId: string, imageCoords: Point2): Point3 | undefined; - -// @public (undocumented) -export class ImageVolume { - constructor(props: ImageVolumeProps); - // (undocumented) - additionalDetails?: Record; - // (undocumented) - cancelLoading: () => void; - // (undocumented) - protected cornerstoneImageMetaData: any; - // (undocumented) - dataType?: PixelDataTypedArrayString; - // (undocumented) - destroy(): void; - // (undocumented) - dimensions: Point3; - // (undocumented) - direction: Mat3; - // (undocumented) - getCornerstoneImages(): IImage[]; - // (undocumented) - getImageIdByIndex(imageIdIndex: number): string; - // (undocumented) - getImageIdIndex(imageId: string): number; - // (undocumented) - getImageURIIndex(imageURI: string): number; - // (undocumented) - getScalarDataLength(): number; - // (undocumented) - hasPixelSpacing: boolean; - // (undocumented) - imageData?: vtkImageData; - // (undocumented) - protected imageIdIndexToFrameIndex(imageIdIndex: number): number; - // (undocumented) - get imageIds(): string[]; - set imageIds(newImageIds: string[]); - // (undocumented) - invalidate(): void; - // (undocumented) - isDynamicVolume(): boolean; - // (undocumented) - isPreScaled: boolean; - // (undocumented) - load(callback?: (...args: unknown[]) => void): void; - // (undocumented) - loadStatus?: Record; - // (undocumented) - metadata: Metadata; - // (undocumented) - modified(): void; - // (undocumented) - numFrames: number; - // (undocumented) - numTimePoints?: number; - // (undocumented) - numVoxels: number; - // (undocumented) - origin: Point3; - // (undocumented) - referencedImageIds?: string[]; - // (undocumented) - referencedVolumeId?: string; - // (undocumented) - removeFromCache(): void; - // (undocumented) - scaling?: { - PT?: { - SUVlbmFactor?: number; - SUVbsaFactor?: number; - suvbwToSuvlbm?: number; - suvbwToSuvbsa?: number; - }; - }; - // (undocumented) - get sizeInBytes(): number; - // (undocumented) - spacing: Point3; - // (undocumented) - protected totalNumFrames: number; - // (undocumented) - readonly volumeId: string; - // (undocumented) - voxelManager?: IVoxelManager | IVoxelManager; - // (undocumented) - vtkOpenGLTexture: vtkStreamingOpenGLTexture; -} - -// @public (undocumented) -type ImageVolumeLoadingCompletedEvent = CustomEvent_2; - -// @public (undocumented) -interface ImageVolumeLoadingCompletedEventDetail { - // (undocumented) - FrameOfReferenceUID: string; - // (undocumented) - volumeId: string; -} - -// @public (undocumented) -type ImageVolumeModifiedEvent = CustomEvent_2; - -// @public (undocumented) -interface ImageVolumeModifiedEventDetail { - // (undocumented) - FrameOfReferenceUID: string; - // (undocumented) - framesProcessed: number; - // (undocumented) - numberOfFrames: number; - // (undocumented) - volumeId: string; -} - -// @public (undocumented) -interface ImageVolumeProps extends VolumeProps { - // (undocumented) - imageIds: string[]; - // (undocumented) - referencedImageIds?: string[]; -} - -// @public (undocumented) -function indexWithinDimensions(index: Point3, dimensions: Point3): boolean; - -// @public (undocumented) -export function init(configuration?: Cornerstone3DConfig): boolean; - -// @public (undocumented) -interface InternalVideoCamera { - // (undocumented) - panWorld?: Point2; - // (undocumented) - parallelScale?: number; -} - -// @public (undocumented) -enum InterpolationType { - // (undocumented) - FAST_LINEAR = 2, - // (undocumented) - LINEAR = 1, - // (undocumented) - NEAREST = 0 -} - -// @public (undocumented) -function invertRgbTransferFunction(rgbTransferFunction: vtkColorTransferFunction): void; - -// @public (undocumented) -type IPointsManager = PointsManager; - -// @public (undocumented) -interface IRegisterImageLoader { - // (undocumented) - registerImageLoader: (scheme: string, imageLoader: ImageLoaderFn) => void; -} - -// @public (undocumented) -type IRenderingEngine = RenderingEngine; - -// @public (undocumented) -export interface IRetrieveConfiguration { - // (undocumented) - create?: (IRetrieveConfiguration: any) => IImagesLoader; - // (undocumented) - retrieveOptions?: Record; - // (undocumented) - stages?: RetrieveStage[]; -} - -// @public (undocumented) -type IRLEVoxelMap = RLEVoxelMap; - -// @public (undocumented) -export function isCornerstoneInitialized(): boolean; - -// @public (undocumented) -function isEqual(v1: ValueType, v2: ValueType, tolerance?: number): boolean; - -// @public (undocumented) -const isEqualAbs: (v1: ValueType, v2: ValueType, tolerance?: any) => boolean; - -// @public (undocumented) -const isEqualNegative: (v1: ValueType, v2: ValueType, tolerance?: any) => boolean; - -// @public (undocumented) -function isImageActor(actorEntry: Types.ActorEntry): boolean; - -// @public (undocumented) -function isOpposite(v1: Point3, v2: Point3, tolerance?: number): boolean; - -// @public (undocumented) -const isPTPrescaledWithSUV: (image: IImage) => number; - -// @public (undocumented) -interface IStackInput { - // (undocumented) - [key: string]: unknown; - // (undocumented) - actorUID?: string; - // (undocumented) - callback?: StackInputCallback; - // (undocumented) - imageId: string; - // (undocumented) - visibility?: boolean; -} - -// @public (undocumented) -interface IStreamingImageVolume extends IImageVolume { - // (undocumented) - clearLoadCallbacks(): void; - // (undocumented) - decache(completelyRemove?: boolean): void; - // (undocumented) - load(): void; -} - -// @public (undocumented) -interface IStreamingVolumeProperties { - // (undocumented) - imageIds: string[]; - // (undocumented) - loadStatus: { - loaded: boolean; - loading: boolean; - cancelled: boolean; - cachedFrames: ImageQualityStatus[]; - callbacks: (() => void)[]; - }; -} - -// @public (undocumented) -type ISurface = Surface; - -// @public (undocumented) -function isValidVolume(imageIds: string[]): boolean; - -// @public (undocumented) -function isVideoTransferSyntax(uidOrUids: string | string[]): string | false; - -// @public (undocumented) -type IVideoViewport = VideoViewport; - -// @public (undocumented) -type IViewport = Viewport; - -// @public (undocumented) -interface IViewportId { - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -type IVolume = ImageVolumeProps; - -// @public (undocumented) -type IVolumeInput = { - volumeId: string; - actorUID?: string; - visibility?: boolean; - callback?: VolumeInputCallback; - blendMode?: BlendModes; - slabThickness?: number; - [key: string]: unknown; -}; - -// @public (undocumented) -interface IVolumeLoadObject { - // (undocumented) - cancelFn?: () => void; - // (undocumented) - decache?: () => void; - // (undocumented) - promise: Promise; -} - -// @public (undocumented) -type IVolumeViewport = VolumeViewport; - -// @public (undocumented) -type IVoxelManager = VoxelManager; - -// @public (undocumented) -type IWSIViewport = WSIViewport; - -// @public (undocumented) -function jumpToSlice(element: HTMLDivElement, options?: JumpToSliceOptions): Promise; - -// @public (undocumented) -type JumpToSliceOptions = { - imageIndex: number; - debounceLoading?: boolean; - volumeId?: string; -}; - -// @public (undocumented) -function linePlaneIntersection(p0: Point3, p1: Point3, plane: Plane): Point3; - -// @public (undocumented) -function loadAndCacheGeometry(geometryId: string, options?: GeometryOptions): Promise; - -// @public (undocumented) -function loadAndCacheImage(imageId: string, options?: ImageLoaderOptions): Promise; - -// @public (undocumented) -function loadAndCacheImages(imageIds: string[], options?: ImageLoaderOptions): Promise[]; - -// @public (undocumented) -function loadGeometry(geometryId: string, options?: GeometryOptions): Promise; - -// @public (undocumented) -function loadImage(imageId: string, options?: ImageLoaderOptions): Promise; - -// @public (undocumented) -function loadImageToCanvas(options: LoadImageOptions): Promise; - -// @public (undocumented) -function loadVolume(volumeId: string, options?: VolumeLoaderOptions): Promise; - -// @public (undocumented) -interface LocalVolumeOptions { - // (undocumented) - dimensions: Point3; - // (undocumented) - direction: Mat3; - // (undocumented) - imageIds?: string[]; - // (undocumented) - metadata: Metadata; - // (undocumented) - origin: Point3; - // (undocumented) - preventCache?: boolean; - // (undocumented) - referencedImageIds?: string[]; - // (undocumented) - referencedVolumeId?: string; - // (undocumented) - scalarData?: PixelDataTypedArray; - // (undocumented) - spacing: Point3; - // (undocumented) - targetBuffer?: { - type: PixelDataTypedArrayString; - }; -} - -// @public (undocumented) -function makeVolumeMetadata(imageIds: string[]): Metadata; - -// @public (undocumented) -type Mat3 = [number, number, number, number, number, number, number, number, number] | Float32Array; - -// @public (undocumented) -type Memo = { - restoreMemo: (undo?: boolean) => void; - commitMemo?: () => boolean; -}; - -// @public (undocumented) -type Memoable = { - createMemo: () => Memo; -}; - -// @public (undocumented) -interface Metadata { - // (undocumented) - BitsAllocated: number; - // (undocumented) - BitsStored: number; - // (undocumented) - Columns: number; - // (undocumented) - FrameOfReferenceUID: string; - // (undocumented) - HighBit: number; - // (undocumented) - ImageOrientationPatient: number[]; - // (undocumented) - Modality: string; - // (undocumented) - PhotometricInterpretation: string; - // (undocumented) - PixelRepresentation: number; - // (undocumented) - PixelSpacing: number[]; - // (undocumented) - Rows: number; - // (undocumented) - SamplesPerPixel: number; - // (undocumented) - SeriesInstanceUID?: string; - // (undocumented) - voiLut: VOI[]; - // (undocumented) - VOILUTFunction: string; -} - -declare namespace metaData { - export { - addProvider, - removeProvider, - removeAllProviders, - getMetaData as get - } -} -export { metaData } - -// @public (undocumented) -enum MetadataModules { - // (undocumented) - CALIBRATION = "calibrationModule", - // (undocumented) - CINE = "cineModule", - // (undocumented) - GENERAL_IMAGE = "generalImageModule", - // (undocumented) - GENERAL_SERIES = "generalSeriesModule", - // (undocumented) - GENERAL_STUDY = "generalStudyModule", - // (undocumented) - IMAGE_PIXEL = "imagePixelModule", - // (undocumented) - IMAGE_PLANE = "imagePlaneModule", - // (undocumented) - IMAGE_URL = "imageUrlModule", - // (undocumented) - MODALITY_LUT = "modalityLutModule", - // (undocumented) - MULTIFRAME = "multiframeModule", - // (undocumented) - NM_MULTIFRAME_GEOMETRY = "nmMultiframeGeometryModule", - // (undocumented) - OVERLAY_PLANE = "overlayPlaneModule", - // (undocumented) - PATIENT = "patientModule", - // (undocumented) - PATIENT_STUDY = "patientStudyModule", - // (undocumented) - PET_IMAGE = "petImageModule", - // (undocumented) - PET_ISOTOPE = "petIsotopeModule", - // (undocumented) - PET_SERIES = "petSeriesModule", - // (undocumented) - SOP_COMMON = "sopCommonModule", - // (undocumented) - ULTRASOUND_ENHANCED_REGION = "ultrasoundEnhancedRegionModule", - // (undocumented) - VOI_LUT = "voiLutModule", - // (undocumented) - WADO_WEB_CLIENT = "wadoWebClient" -} - -// @public (undocumented) -const metadataProvider: { - add: (imageId: string, payload: IImageCalibration) => void; - get: (type: string, imageId: string) => IImageCalibration; -}; - -// @public (undocumented) -const metadataProvider_2: { - add: (imageId: string, payload: { - metadata: unknown; - type: string; - }) => void; - addRaw: (imageId: string, payload: { - metadata: unknown; - type: string; - }) => void; - get: (type: string, imageId: string) => unknown; - clear: () => void; -}; - -// @public (undocumented) -const mprCameraValues: any; - -// @public (undocumented) -class MultiTargetEventListenerManager { - // (undocumented) - addEventListener(target: EventTarget, type: string, callback: EventListener, options?: AddEventListenerOptions): void; - // (undocumented) - removeEventListener(target: EventTarget, type: string, callback?: EventListener, options?: EventListenerOptions): void; - // (undocumented) - reset(): void; -} - -// @public (undocumented) -interface NearbyFrames { - // (undocumented) - imageQualityStatus?: ImageQualityStatus; - // (undocumented) - offset: number; -} - -// @public (undocumented) -enum OrientationAxis { - // (undocumented) - ACQUISITION = "acquisition", - // (undocumented) - AXIAL = "axial", - // (undocumented) - CORONAL = "coronal", - // (undocumented) - SAGITTAL = "sagittal" -} - -// @public (undocumented) -interface OrientationVectors { - // (undocumented) - viewPlaneNormal: Point3; - // (undocumented) - viewUp: Point3; -} - -// @public (undocumented) -interface PatientStudyModuleMetadata { - // (undocumented) - patientAge: number; - // (undocumented) - patientSize: number; - // (undocumented) - patientWeight: number; -} - -// @public (undocumented) -export function peerImport(moduleId: string): Promise; - -// @public (undocumented) -type PixelDataTypedArray = Float32Array | Int16Array | Uint16Array | Uint8Array | Int8Array | Uint8ClampedArray; - -// @public (undocumented) -type PixelDataTypedArrayString = 'Float32Array' | 'Int16Array' | 'Uint16Array' | 'Uint8Array' | 'Int8Array' | 'Uint8ClampedArray' | 'none'; - -declare namespace planar { - export { - linePlaneIntersection, - planeEquation, - threePlaneIntersection, - planeDistanceToPoint - } -} - -// @public (undocumented) -type Plane = [number, number, number, number]; - -// @public (undocumented) -function planeDistanceToPoint(plane: Plane, point: Point3, signed?: boolean): number; - -// @public (undocumented) -function planeEquation(normal: Point3, point: Point3 | vec3, normalized?: boolean): Plane; - -// @public (undocumented) -type Point2 = [number, number]; - -// @public (undocumented) -type Point3 = [number, number, number]; - -// @public (undocumented) -type Point4 = [number, number, number, number]; - -// @public (undocumented) -function pointInShapeCallback(imageData: vtkImageData | CPUImageData, options: PointInShapeOptions): Array | undefined; - -// @public (undocumented) -class PointsManager { - constructor(configuration?: PolyDataPointConfiguration); - // (undocumented) - array: ArrayBuffer; - // (undocumented) - _byteSize: number; - // (undocumented) - static create2(initialSize?: number): PointsManager; - // (undocumented) - static create3(initialSize?: number, points?: Point3[]): PointsManager; - // (undocumented) - data: Float32Array; - // (undocumented) - get dimensionLength(): number; - // (undocumented) - get dimensions(): number; - // (undocumented) - _dimensions: number; - // (undocumented) - forEach(func: (value: T, index: number) => void): void; - // (undocumented) - static fromXYZ({ x, y, z }: PointsXYZ): IPointsManager; - // (undocumented) - getPoint(index: number): T; - // (undocumented) - getPointArray(index: number): T; - // (undocumented) - getTypedArray(): Float32Array; - // (undocumented) - protected grow(additionalSize?: number, growSize?: number): void; - // (undocumented) - growSize: number; - // (undocumented) - kIndex: number; - // (undocumented) - get length(): number; - // (undocumented) - _length: number; - // (undocumented) - map(f: (value: any, index: number) => R): R[]; - // (undocumented) - get points(): T[]; - // (undocumented) - push(point: T): void; - // (undocumented) - reverse(): void; - // (undocumented) - sources: IPointsManager[]; - // (undocumented) - subselect(count?: number, offset?: number): IPointsManager; - // (undocumented) - toXYZ(): PointsXYZ; -} - -// @public (undocumented) -interface PointsXYZ { - // (undocumented) - x: number[]; - // (undocumented) - y: number[]; - // (undocumented) - z: number[]; -} - -// @public (undocumented) -interface PolyDataPointConfiguration { - // (undocumented) - dimensions?: number; - // (undocumented) - growSize?: number; - // (undocumented) - initialSize?: number; -} - -// @public (undocumented) -const presets: ViewportPreset[]; - -// @public (undocumented) -type PreStackNewImageEvent = CustomEvent_2; - -// @public (undocumented) -interface PreStackNewImageEventDetail { - // (undocumented) - imageId: string; - // (undocumented) - imageIdIndex: number; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -class ProgressiveIterator { - // (undocumented) - [Symbol.asyncIterator](): AsyncGenerator; - constructor(name?: any); - // (undocumented) - add(x: T, done?: boolean): void; - // (undocumented) - static as(promise: any): any; - // (undocumented) - done: any; - // (undocumented) - donePromise(): Promise; - // (undocumented) - forEach(callback: any, errorCallback: any): Promise; - // (undocumented) - generate(processFunction: any, errorCallback?: ErrorCallback_2): Promise; - // (undocumented) - getDonePromise(): PromiseIterator; - // (undocumented) - getNextPromise(): PromiseIterator; - // (undocumented) - getRecent(): T; - // (undocumented) - name?: string; - // (undocumented) - nextPromise(): Promise; - // (undocumented) - reject(reason: Error): void; - // (undocumented) - resolve(): void; -} - -// @public (undocumented) -export class ProgressiveRetrieveImages implements IImagesLoader, IRetrieveConfiguration { - constructor(imageRetrieveConfiguration: IRetrieveConfiguration); - // (undocumented) - static createProgressive: typeof createProgressive; - // (undocumented) - static interleavedRetrieveStages: { - stages: RetrieveStage[]; - }; - // (undocumented) - loadImages(imageIds: string[], listener: ImageLoadListener): Promise; - // (undocumented) - retrieveOptions: Record; - // (undocumented) - static sequentialRetrieveStages: { - stages: RetrieveStage[]; - }; - // (undocumented) - static singleRetrieveStages: { - stages: RetrieveStage[]; - }; - // (undocumented) - stages: RetrieveStage[]; -} - -// @public (undocumented) -interface PTScaling { - // (undocumented) - suvbsa?: number; - // (undocumented) - suvbw?: number; - // (undocumented) - suvbwToSuvbsa?: number; - // (undocumented) - suvbwToSuvlbm?: number; - // (undocumented) - suvlbm?: number; -} - -// @public (undocumented) -type PublicContourSetData = ContourSetData; - -// @public (undocumented) -type PublicSurfaceData = SurfaceData; - -// @public (undocumented) -interface PublicViewportInput { - // (undocumented) - defaultOptions?: ViewportInputOptions; - // (undocumented) - element: HTMLDivElement; - // (undocumented) - type: ViewportType; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -type RangeRetrieveOptions = BaseRetrieveOptions & { - rangeIndex: number; - chunkSize?: number | ((metadata: any) => number); -}; - -// @public (undocumented) -interface ReferenceCompatibleOptions { - // (undocumented) - asNearbyProjection?: boolean; - // (undocumented) - asOverlay?: boolean; - // (undocumented) - asVolume?: boolean; - // (undocumented) - imageURI?: string; - // (undocumented) - withNavigation?: boolean; - // (undocumented) - withOrientation?: boolean; -} - -// @public (undocumented) -function registerColormap(colormap: ColormapRegistration): void; - -// @public (undocumented) -function registerGeometryLoader(scheme: string, geometryLoader: GeometryLoaderFn): void; - -// @public (undocumented) -export function registerImageLoader(scheme: string, imageLoader: ImageLoaderFn): void; - -// @public (undocumented) -function registerUnknownGeometryLoader(geometryLoader: GeometryLoaderFn): GeometryLoaderFn | undefined; - -// @public (undocumented) -function registerUnknownImageLoader(imageLoader: ImageLoaderFn): ImageLoaderFn; - -// @public (undocumented) -function registerUnknownVolumeLoader(volumeLoader: VolumeLoaderFn): VolumeLoaderFn | undefined; - -// @public (undocumented) -function registerVolumeLoader(scheme: string, volumeLoader: VolumeLoaderFn): void; - -// @public (undocumented) -function removeAllProviders(): void; - -// @public (undocumented) -function removeProvider(provider: (type: string, query: unknown) => unknown): void; - -// @public (undocumented) -const RENDERING_DEFAULTS: { - MINIMUM_SLAB_THICKNESS: number; - MAXIMUM_RAY_DISTANCE: number; -}; - -// @public (undocumented) -export class RenderingEngine { - constructor(id?: string); - // (undocumented) - _debugRender(): void; - // (undocumented) - destroy(): void; - // (undocumented) - disableElement(viewportId: string): void; - // (undocumented) - _downloadOffScreenCanvas(): void; - // (undocumented) - enableElement(viewportInputEntry: PublicViewportInput): void; - // (undocumented) - fillCanvasWithBackgroundColor(canvas: HTMLCanvasElement, backgroundColor: [number, number, number]): void; - // (undocumented) - getStackViewport(viewportId: string): StackViewport; - // (undocumented) - getStackViewports(): StackViewport[]; - // (undocumented) - getViewport(viewportId: string): IViewport; - // (undocumented) - getViewports(): IViewport[]; - // (undocumented) - getVolumeViewports(): IVolumeViewport[]; - // (undocumented) - hasBeenDestroyed: boolean; - // (undocumented) - readonly id: string; - // (undocumented) - readonly offScreenCanvasContainer: HTMLDivElement; - // (undocumented) - offscreenMultiRenderWindow: any; - // (undocumented) - render(): void; - // (undocumented) - renderFrameOfReference: (FrameOfReferenceUID: string) => void; - // (undocumented) - renderViewport(viewportId: string): void; - // (undocumented) - renderViewports(viewportIds: string[]): void; - // (undocumented) - resize(immediate?: boolean, keepCamera?: boolean): void; - // (undocumented) - setViewports(publicViewportInputEntries: PublicViewportInput[]): void; -} - -// @public (undocumented) -function renderToCanvasCPU(canvas: HTMLCanvasElement, imageOrVolume: IImage | IVolume, modality?: string, _renderingEngineId?: string, _viewportOptions?: ViewportInputOptions): Promise; - -// @public (undocumented) -function renderToCanvasGPU(canvas: HTMLCanvasElement, imageOrVolume: IImage | IVolume, modality?: any, renderingEngineId?: string, viewportOptions?: ViewportInputOptions & { - viewReference?: ViewReference; -}): Promise; - -// @public (undocumented) -enum RequestType { - // (undocumented) - Compute = "compute", - // (undocumented) - Interaction = "interaction", - // (undocumented) - Prefetch = "prefetch", - // (undocumented) - Thumbnail = "thumbnail" -} - -// @public (undocumented) -export function resetInitialization(): void; - -// @public (undocumented) -export function resetUseCPURendering(): void; - -// @public (undocumented) -export type RetrieveOptions = BaseRetrieveOptions | StreamingRetrieveOptions | RangeRetrieveOptions; - -// @public (undocumented) -export interface RetrieveStage { - // (undocumented) - decimate?: number; - // (undocumented) - id: string; - // (undocumented) - nearbyFrames?: NearbyFrames[]; - // (undocumented) - offset?: number; - // (undocumented) - positions?: number[]; - // (undocumented) - priority?: number; - // (undocumented) - requestType?: RequestType; - // (undocumented) - retrieveType?: string; -} - -// @public (undocumented) -type RGB = [number, number, number]; - -// @public (undocumented) -function rgbToHex(r: any, g: any, b: any): string; - -// @public (undocumented) -interface RLERun_2 { - // (undocumented) - end: number; - // (undocumented) - start: number; - // (undocumented) - value: T; -} - -// @public (undocumented) -class RLEVoxelMap { - constructor(width: number, height: number, depth?: number); - // (undocumented) - clear(): void; - // (undocumented) - static copyMap(destination: RLEVoxelMap, source: RLEVoxelMap): void; - // (undocumented) - defaultValue: T; - // (undocumented) - delete(index: number): void; - // (undocumented) - depth: number; - // (undocumented) - fillFrom(getter: (i: number, j: number, k: number) => T, boundsIJK: BoundsIJK): void; - // (undocumented) - findAdjacents(item: [RLERun, number, number, Point3[]?], { diagonals, planar, singlePlane }: { - diagonals?: boolean; - planar?: boolean; - singlePlane?: boolean; - }): any[]; - // (undocumented) - protected findIndex(row: RLERun[], i: number): number; - // (undocumented) - floodFill(i: number, j: number, k: number, value: T, options?: { - planar?: boolean; - diagonals?: boolean; - singlePlane?: boolean; - }): number; - // (undocumented) - forEach(callback: any, options?: { - rowModified?: boolean; - }): void; - // (undocumented) - forEachRow(callback: any): void; - // (undocumented) - get: (index: number) => T; - // (undocumented) - getPixelData(k?: number, pixelData?: PixelDataTypedArray): PixelDataTypedArray; - // (undocumented) - protected getRLE(i: number, j: number, k?: number): RLERun; - // (undocumented) - getRun: (j: number, k: number) => RLERun[]; - // (undocumented) - static getScalarData: (ArrayType?: Uint8ClampedArrayConstructor) => Uint8ClampedArray; - // (undocumented) - has(index: number): boolean; - // (undocumented) - height: number; - // (undocumented) - protected jMultiple: number; - // (undocumented) - keys(): number[]; - // (undocumented) - protected kMultiple: number; - // (undocumented) - normalizer: PlaneNormalizer; - // (undocumented) - protected numComps: number; - // (undocumented) - pixelDataConstructor: Uint8ArrayConstructor; - // (undocumented) - protected rows: Map[]>; - // (undocumented) - set: (index: number, value: T) => void; - // (undocumented) - toIJK(index: number): Point3; - // (undocumented) - toIndex([i, j, k]: Point3): number; - // (undocumented) - updateScalarData: (scalarData: PixelDataTypedArray) => void; - // (undocumented) - width: number; -} - -// @public (undocumented) -function roundNumber(value: string | number | (string | number)[], precision?: number): string; - -// @public (undocumented) -function roundToPrecision(value: any): number; - -// @public (undocumented) -function scaleArray(array: Float32Array | Uint8Array | Uint16Array | Int16Array, scalingParameters: ScalingParameters): Float32Array | Uint8Array | Uint16Array | Int16Array; - -// @public (undocumented) -function scaleRGBTransferFunction(rgbTransferFunction: ColorTransferFunction, scalingFactor: number): void; - -// @public (undocumented) -interface Scaling { - // (undocumented) - PT?: PTScaling; -} - -// @public (undocumented) -interface ScalingParameters { - // (undocumented) - modality: string; - // (undocumented) - rescaleIntercept: number; - // (undocumented) - rescaleSlope: number; - // (undocumented) - suvbsa?: number; - // (undocumented) - suvbw?: number; - // (undocumented) - suvlbm?: number; -} - -// @public (undocumented) -function scroll_2(viewport: IViewport | IVideoViewport, options: ScrollOptions_2): void; - -// @public (undocumented) -type ScrollOptions_2 = { - delta: number; - volumeId?: string; - debounceLoading?: boolean; - loop?: boolean; - scrollSlabs?: boolean; -}; - -// @public (undocumented) -export function setConfiguration(c: Cornerstone3DConfig): void; - -// @public (undocumented) -export function setPreferSizeOverAccuracy(status: boolean): void; - -// @public (undocumented) -export class Settings { - constructor(base?: Settings); - // (undocumented) - static assert(subject: Settings): Settings; - // (undocumented) - dump(): Record; - // (undocumented) - extend(): Settings; - // (undocumented) - static extendRuntimeSettings(): Settings; - // (undocumented) - forEach(callback: (key: string, value: unknown) => void): void; - // (undocumented) - get(key: string): unknown; - // (undocumented) - static getDefaultSettings(subfield?: any): Settings | unknown; - // (undocumented) - static getObjectSettings(subject: unknown, from?: unknown): Settings; - // (undocumented) - static getRuntimeSettings(): Settings; - // (undocumented) - import(root: Record): void; - // (undocumented) - set(key: string, value: unknown): boolean; - // (undocumented) - unset(key: string): boolean; -} - -// @public (undocumented) -function setTransferFunctionNodes(transferFunction: any, nodes: any): void; - -// @public (undocumented) -export function setUseCPURendering(status: boolean, updateViewports?: boolean): void; - -// @public (undocumented) -export function setVolumesForViewports(renderingEngine: IRenderingEngine, volumeInputs: IVolumeInput[], viewportIds: string[], immediateRender?: boolean, suppressEvents?: boolean): Promise; - -// @public (undocumented) -function snapFocalPointToSlice(focalPoint: Point3, position: Point3, sliceRange: ActorSliceRange, viewPlaneNormal: Point3, spacingInNormalDirection: number, deltaFrames: number): { - newFocalPoint: Point3; - newPosition: Point3; -}; - -// @public (undocumented) -interface SopCommonModuleMetadata { - // (undocumented) - sopClassUID: string; - // (undocumented) - sopInstanceUID: string; -} - -// @public (undocumented) -function sortImageIdsAndGetSpacing(imageIds: string[], scanAxisNormal?: vec3): SortedImageIdsItem; - -// @public (undocumented) -const spatialRegistrationMetadataProvider: { - add: (query: string[], payload: mat4) => void; - get: (type: string, viewportId1: string, viewportId2: string) => mat4; -}; - -// @public (undocumented) -enum SpeedUnit { - // (undocumented) - FRAME = "f", - // (undocumented) - SECOND = "s" -} - -// @public (undocumented) -function splitImageIdsBy4DTags(imageIds: string[]): { - imageIdGroups: string[][]; - splittingTag: string | null; -}; - -// @public (undocumented) -type StackInputCallback = (params: { - imageActor: ImageActor; - imageId: string; -}) => unknown; - -// @public (undocumented) -type StackNewImageEvent = CustomEvent_2; - -// @public (undocumented) -interface StackNewImageEventDetail { - // (undocumented) - image: IImage; - // (undocumented) - imageId: string; - // (undocumented) - imageIdIndex: number; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -type StackScrollOutOfBoundsEvent = CustomEvent_2; - -// @public (undocumented) -type StackScrollOutOfBoundsEventDetail = { - imageIdIndex: number; - direction: number; -}; - -// @public (undocumented) -export class StackViewport extends Viewport { - constructor(props: ViewportInput); - // (undocumented) - addActor: (actorEntry: ActorEntry) => void; - // (undocumented) - addActors: (actors: ActorEntry[]) => void; - // (undocumented) - addImages(stackInputs: IStackInput[]): void; - // (undocumented) - calibrateSpacing(imageId: string): void; - // (undocumented) - canvasToWorld: (canvasPos: Point2) => Point3; - // (undocumented) - clearDefaultProperties(imageId?: string): void; - // (undocumented) - createVTKImageData({ origin, direction, dimensions, spacing, numberOfComponents, pixelArray, }: { - origin: any; - direction: any; - dimensions: any; - spacing: any; - numberOfComponents: any; - pixelArray: any; - }): vtkImageData; - // (undocumented) - customRenderViewportToCanvas: () => { - canvas: HTMLCanvasElement; - element: HTMLDivElement; - viewportId: string; - renderingEngineId: string; - viewportStatus: ViewportStatus; - }; - // (undocumented) - errorCallback(imageId: any, permanent: any, error: any): void; - // (undocumented) - getActor: (actorUID: string) => ActorEntry; - // (undocumented) - getActors: () => ActorEntry[]; - // (undocumented) - getCamera: () => ICamera; - // (undocumented) - getCornerstoneImage: () => IImage; - // (undocumented) - getCurrentImageId: (index?: number) => string; - // (undocumented) - getCurrentImageIdIndex: () => number; - // (undocumented) - getDefaultActor: () => ActorEntry; - // (undocumented) - getDefaultProperties: (imageId?: string) => StackViewportProperties; - // (undocumented) - getFrameOfReferenceUID: (sliceIndex?: number) => string; - // (undocumented) - getImageData: () => IImageData | CPUIImageData; - // (undocumented) - getImageDataMetadata(image: IImage): ImageDataMetaData; - // (undocumented) - getImageIds: () => string[]; - // (undocumented) - getImagePlaneReferenceData(sliceIndex?: number): ViewReference; - // (undocumented) - getLoaderImageOptions(imageId: string): { - useRGBA: boolean; - transferSyntaxUID: any; - priority: number; - requestType: RequestType; - additionalDetails: { - imageId: string; - imageIdIndex: number; - }; - }; - // (undocumented) - getNumberOfSlices: () => number; - // (undocumented) - getProperties: () => StackViewportProperties; - // (undocumented) - getRenderer: () => vtkRenderer; - // (undocumented) - getRotation: () => number; - // (undocumented) - getSliceIndex: () => number; - // (undocumented) - getSliceIndexForImage(reference: string | ViewReference): number; - // (undocumented) - getSliceInfo(): { - sliceIndex: number; - slicePlane: number; - width: number; - height: number; - }; - // (undocumented) - getSliceViewInfo(): { - width: number; - height: number; - sliceIndex: number; - slicePlane: number; - sliceToIndexMatrix: mat4; - indexToSliceMatrix: mat4; - }; - // (undocumented) - getTargetImageIdIndex: () => number; - // (undocumented) - getViewReference(viewRefSpecifier?: ViewReferenceSpecifier): ViewReference; - // (undocumented) - getViewReferenceId(specifier?: ViewReferenceSpecifier): string; - // (undocumented) - hasImageId: (imageId: string) => boolean; - // (undocumented) - hasImageURI: (imageURI: string) => boolean; - // (undocumented) - protected imagesLoader: IImagesLoader; - // (undocumented) - isReferenceViewable(viewRef: ViewReference, options?: ReferenceCompatibleOptions): boolean; - // (undocumented) - jumpToWorld(worldPos: Point3): boolean; - // (undocumented) - loadImages(imageIds: string[], listener: ImageLoadListener): Promise; - // (undocumented) - modality: string; - // (undocumented) - removeAllActors: () => void; - // (undocumented) - renderImageObject: (image: any) => void; - // (undocumented) - resetCamera: (options?: { - resetPan?: boolean; - resetZoom?: boolean; - resetToCenter?: boolean; - suppressEvents?: boolean; - }) => boolean; - // (undocumented) - resetCameraForResize: () => boolean; - // (undocumented) - resetProperties(): void; - // (undocumented) - resetToDefaultProperties(): void; - // (undocumented) - resize: () => void; - // (undocumented) - scaling: Scaling; - // (undocumented) - scroll(delta: number, debounce?: boolean, loop?: boolean): void; - // (undocumented) - setActors: (actors: ActorEntry[]) => void; - // (undocumented) - setCamera: (cameraInterface: ICamera, storeAsInitialCamera?: boolean) => void; - // (undocumented) - setDefaultProperties(ViewportProperties: StackViewportProperties, imageId?: string): void; - // (undocumented) - setImageIdIndex(imageIdIndex: number): Promise; - // (undocumented) - protected setInterpolationType: (interpolationType: InterpolationType) => void; - // (undocumented) - setProperties({ colormap, voiRange, VOILUTFunction, invert, interpolationType, }?: StackViewportProperties, suppressEvents?: boolean): void; - // (undocumented) - protected setRotation: (rotation: number) => void; - // (undocumented) - setStack(imageIds: string[], currentImageIdIndex?: number): Promise; - // (undocumented) - setUseCPURendering(value: boolean): void; - // (undocumented) - setViewReference(viewRef: ViewReference): void; - // (undocumented) - stackActorReInitialized: boolean; - // (undocumented) - successCallback(imageId: any, image: any): void; - // (undocumented) - unsetColormap: () => void; - // (undocumented) - updateRenderingPipeline: () => void; - // (undocumented) - static get useCustomRenderingPipeline(): boolean; - // (undocumented) - worldToCanvas: (worldPos: Point3) => Point2; -} - -// @public (undocumented) -type StackViewportNewStackEvent = CustomEvent_2; - -// @public (undocumented) -interface StackViewportNewStackEventDetail { - // (undocumented) - currentImageIdIndex: number; - // (undocumented) - element: HTMLDivElement; - // (undocumented) - imageIds: string[]; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -type StackViewportProperties = ViewportProperties & { - interpolationType?: InterpolationType; - suppressEvents?: boolean; - isComputedVOI?: boolean; -}; - -// @public (undocumented) -type StackViewportScrollEvent = CustomEvent_2; - -// @public (undocumented) -interface StackViewportScrollEventDetail { - // (undocumented) - direction: number; - // (undocumented) - imageId: string; - // (undocumented) - newImageIdIndex: number; -} - -// @public (undocumented) -export class StreamingDynamicImageVolume extends BaseStreamingImageVolume implements IDynamicImageVolume { - constructor(imageVolumeProperties: ImageVolumeProps & { - splittingTag: string; - imageIdGroups: string[][]; - }, streamingProperties: IStreamingVolumeProperties); - // (undocumented) - protected checkDimensionGroupCompletion(imageIdIndex: number): void; - // (undocumented) - protected checkTimePointCompletion(imageIdIndex: number): void; - // (undocumented) - get dimensionGroupNumber(): number; - set dimensionGroupNumber(dimensionGroupNumber: number); - // (undocumented) - flatImageIdIndexToDimensionGroupNumber(flatImageIdIndex: number): number; - // (undocumented) - flatImageIdIndexToImageIdIndex(flatImageIdIndex: number): number; - // (undocumented) - flatImageIdIndexToTimePointIndex(flatImageIdIndex: number): number; - // (undocumented) - getCurrentDimensionGroupImageIds(): string[]; - // (undocumented) - getCurrentTimePointImageIds(): string[]; - // (undocumented) - getImageIdsToLoad(): string[]; - // (undocumented) - getImageLoadRequests: (priority: number) => { - callLoadImage: (imageId: any, imageIdIndex: any, options: any) => any; - imageId: string; - imageIdIndex: number; - options: { - targetBuffer: { - type: PixelDataTypedArrayString; - rows: any; - columns: any; - }; - allowFloatRendering: boolean; - preScale: { - enabled: boolean; - scalingParameters: ScalingParameters; - }; - transferPixelData: boolean; - requestType: RequestType; - transferSyntaxUID: any; - additionalDetails: { - imageId: string; - imageIdIndex: number; - volumeId: string; - }; - }; - priority: number; - requestType: RequestType; - additionalDetails: { - volumeId: string; - }; - }[]; - // (undocumented) - isDimensionGroupLoaded(dimensionGroupNumber: number): boolean; - // (undocumented) - isTimePointLoaded(timePointIndex: number): boolean; - // (undocumented) - numDimensionGroups: number; - // (undocumented) - numTimePoints: number; - // (undocumented) - scroll(delta: number): void; - // (undocumented) - get splittingTag(): string; - set timePointIndex(index: number); - // (undocumented) - get timePointIndex(): number; -} - -// @public (undocumented) -export class StreamingImageVolume extends BaseStreamingImageVolume { - constructor(imageVolumeProperties: ImageVolumeProps, streamingProperties: IStreamingVolumeProperties); - // (undocumented) - getImageIdsToLoad: () => string[]; - // (undocumented) - getImageLoadRequests(priority: number): ImageLoadRequests[]; - // (undocumented) - getScalarData(): PixelDataTypedArray; -} - -// @public (undocumented) -type StreamingRetrieveOptions = BaseRetrieveOptions & { - streaming: boolean; -}; - -// @public (undocumented) -export class Surface { - constructor(props: SurfaceProps); - // (undocumented) - get centroid(): Point3; - // (undocumented) - get color(): RGB; - set color(color: RGB); - // (undocumented) - get flatPointsArray(): number[]; - // (undocumented) - readonly frameOfReferenceUID: string; - // (undocumented) - readonly id: string; - // (undocumented) - get points(): number[]; - set points(points: number[]); - // (undocumented) - get polys(): number[]; - set polys(polys: number[]); - // (undocumented) - get segmentIndex(): number; - // (undocumented) - readonly sizeInBytes: number; - // (undocumented) - get totalNumberOfPoints(): number; -} - -// @public (undocumented) -interface SurfaceData { - // (undocumented) - color?: Point3; - // (undocumented) - frameOfReferenceUID: string; - // (undocumented) - id: string; - // (undocumented) - points: number[]; - // (undocumented) - polys: number[]; - // (undocumented) - segmentIndex?: number; -} - -// @public (undocumented) -class TargetEventListeners { - constructor(target: EventTarget); - // (undocumented) - addEventListener(type: string, callback: EventListener, options?: AddEventListenerOptions): void; - // (undocumented) - get isEmpty(): boolean; - // (undocumented) - removeEventListener(type: string, callback?: EventListener, options?: EventListenerOptions): void; - // (undocumented) - reset(): void; -} - -// @public (undocumented) -function threePlaneIntersection(firstPlane: Plane, secondPlane: Plane, thirdPlane: Plane): Point3; - -// @public (undocumented) -function toLowHighRange(windowWidth: number, windowCenter: number, voiLUTFunction?: VOILUTFunctionType): { - lower: number; - upper: number; -}; - -// @public (undocumented) -function toWindowLevel(low: number, high: number): { - windowWidth: number; - windowCenter: number; -}; - -declare namespace transferFunctionUtils { - export { - getTransferFunctionNodes, - setTransferFunctionNodes - } -} - -// @public (undocumented) -interface TransferSyntaxMetadata { - // (undocumented) - transferSyntaxUID: string; -} - -// @public (undocumented) -function transformIndexToWorld(imageData: any, voxelPos: Point3): any; - -// @public (undocumented) -type TransformMatrix2D = [number, number, number, number, number, number]; - -// @public (undocumented) -function transformWorldToIndex(imageData: any, worldPos: Point3): any; - -// @public (undocumented) -function transformWorldToIndexContinuous(imageData: any, worldPos: Point3): any; - -// @public (undocumented) -export function triggerEvent(el: EventTarget, type: string, detail?: unknown): boolean; - -declare namespace Types { - export { - RetrieveStage, - RetrieveOptions, - RangeRetrieveOptions, - StreamingRetrieveOptions, - NearbyFrames, - IRetrieveConfiguration, - IImagesLoader, - Cornerstone3DConfig, - ICamera, - StackViewport as IStackViewport, - IVideoViewport, - IWSIViewport, - IVolumeViewport, - IEnabledElement, - ICache, - IVolume, - IViewportId, - IImageVolume, - ImageVolumeProps, - IDynamicImageVolume, - IRenderingEngine, - ScalingParameters, - PTScaling, - IPointsManager, - PolyDataPointConfiguration, - Scaling, - IStreamingImageVolume, - IImage, - IImageData, - IImageCalibration, - CPUIImageData, - CPUImageData, - EventTypes, - ImageLoaderFn, - VolumeLoaderFn, - IRegisterImageLoader, - IStreamingVolumeProperties, - IViewport, - ViewReference, - DataSetOptions as ImageSetOptions, - ViewPresentation, - ViewPresentationSelector, - ReferenceCompatibleOptions, - ViewReferenceSpecifier, - StackViewportProperties, - VolumeViewportProperties, - ViewportProperties, - PublicViewportInput, - VolumeActor, - Actor, - ActorEntry, - ImageActor, - ICanvasActor, - IImageLoadObject, - IVolumeLoadObject, - IVolumeInput, - VolumeInputCallback, - IStackInput, - StackInputCallback, - ViewportPreset, - Metadata, - OrientationVectors, - AABB2, - AABB3, - Point2, - Point3, - PointsXYZ, - Point4, - Mat3, - Plane, - ViewportInputOptions, - VideoViewportProperties, - WSIViewportProperties, - VOIRange, - VOI, - DisplayArea, - FlipDirection, - ICachedImage, - ICachedVolume, - CPUFallbackEnabledElement, - CPUFallbackViewport, - CPUFallbackTransform, - CPUFallbackColormapData, - CPUFallbackViewportDisplayedArea, - CPUFallbackColormapsData, - CPUFallbackColormap, - TransformMatrix2D, - CPUFallbackLookupTable, - CPUFallbackLUT, - CPUFallbackRenderingTools, - CustomEvent_2 as CustomEventType, - ActorSliceRange, - ImageSliceData, - IGeometry, - IGeometryLoadObject, - ICachedGeometry, - PublicContourSetData, - ContourSetData, - ContourData, - IContourSet, - IContour, - PublicSurfaceData, - SurfaceData, - ISurface, - RGB, - ColormapPublic, - ColormapRegistration, - PixelDataTypedArray, - PixelDataTypedArrayString, - ImagePixelModule, - ImagePlaneModule, - AffineMatrix, - ImageLoadListener, - InternalVideoCamera, - VideoViewportInput, - BoundsIJK, - BoundsLPS, - Color, - ColorLUT, - VolumeProps, - ImageFrame as IImageFrame, - DicomDateObject, - DicomTimeObject, - GeneralSeriesModuleMetadata, - ImagePlaneModuleMetadata, - SopCommonModuleMetadata, - ImagePixelModuleMetadata, - PatientStudyModuleMetadata, - TransferSyntaxMetadata, - LocalVolumeOptions, - IVoxelManager, - IRLEVoxelMap, - RLERun_2 as RLERun, - ViewportInput, - ImageLoadRequests, - IBaseVolumeViewport, - GeometryLoaderFn, - ScrollOptions_2 as ScrollOptions, - JumpToSliceOptions, - Memo, - HistoryMemo, - VoxelManager, - RLEVoxelMap - } -} -export { Types } - -// @public (undocumented) -function unregisterAllImageLoaders(): void; - -// @public (undocumented) -function updateVTKImageDataWithCornerstoneImage(sourceImageData: vtkImageData, image: IImage): void; - -declare namespace utilities { - export { - FrameRange, - eventListener, - invertRgbTransferFunction, - createSigmoidRGBTransferFunction, - getVoiFromSigmoidRGBTransferFunction, - createLinearRGBTransferFunction, - scaleRGBTransferFunction as scaleRgbTransferFunction, - triggerEvent, - imageIdToURI, - fnv1aHash, - metadataProvider as calibratedPixelSpacingMetadataProvider, - clamp, - uuidv4, - planar, - getMinMax, - getRuntimeId, - isEqual, - isEqualAbs, - isEqualNegative, - isOpposite, - getViewportModality, - windowLevel, - convertToGrayscale, - getClosestImageId, - getSpacingInNormalDirection, - getTargetVolumeAndSpacingInNormalDir, - getVolumeActorCorners, - indexWithinDimensions, - getVolumeViewportsContainingSameVolumes, - getViewportsWithVolumeId, - transformWorldToIndex, - transformIndexToWorld, - loadImageToCanvas, - renderToCanvasCPU, - renderToCanvasGPU, - worldToImageCoords, - imageToWorldCoords, - getVolumeSliceRangeInfo, - getVolumeViewportScrollInfo, - getSliceRange, - snapFocalPointToSlice, - getImageSliceDataForVolumeViewport, - isImageActor, - isPTPrescaledWithSUV, - actorIsA, - getViewportsWithImageURI, - getClosestStackImageIndexForPoint, - getCurrentVolumeViewportSlice, - calculateViewportsSpatialRegistration, - spatialRegistrationMetadataProvider, - getViewportImageCornersInWorld, - hasNaNValues, - applyPreset, - deepMerge, - PointsManager, - getScalingParameters, - colormap, - getImageLegacy, - ProgressiveIterator, - decimate, - imageRetrieveMetadataProvider, - transferFunctionUtils, - updateVTKImageDataWithCornerstoneImage, - sortImageIdsAndGetSpacing, - makeVolumeMetadata, - isValidVolume, - metadataProvider_2 as genericMetadataProvider, - isVideoTransferSyntax, - HistoryMemo_2 as HistoryMemo, - generateVolumePropsFromImageIds, - getBufferConfiguration, - VoxelManager, - RLEVoxelMap, - convertStackToVolumeViewport, - convertVolumeToStackViewport, - roundNumber, - roundToPrecision, - getViewportImageIds, - getRandomSampleFromArray, - getVolumeId, - color, - hasFloatScalingParameters, - getDynamicVolumeInfo, - autoLoad, - scaleArray, - deepClone, - splitImageIdsBy4DTags, - pointInShapeCallback, - deepEqual, - jumpToSlice, - scroll_2 as scroll, - clip, - transformWorldToIndexContinuous, - createSubVolume, - getVolumeDirectionVectors, - calculateSpacingBetweenImageIds - } -} -export { utilities } - -// @public (undocumented) -function uuidv4(): string; - -declare namespace VideoEnums { - export { - SpeedUnit - } -} - -// @public (undocumented) -export class VideoViewport extends Viewport { - constructor(props: VideoViewportInput); - // (undocumented) - addImages(stackInputs: IStackInput[]): void; - // (undocumented) - readonly canvasContext: CanvasRenderingContext2D; - // (undocumented) - protected canvasToIndex: (canvasPos: Point2) => Point2; - // (undocumented) - canvasToWorld: (canvasPos: Point2, destPos?: Point3) => Point3; - // (undocumented) - protected createActorMapper(image: any): CanvasActor; - // (undocumented) - customRenderViewportToCanvas: () => void; - // (undocumented) - end(): Promise; - // (undocumented) - static frameRangeExtractor: RegExp; - // (undocumented) - getCamera(): ICamera; - // (undocumented) - getCurrentImageId(index?: number): string; - // (undocumented) - getCurrentImageIdIndex(): number; - // (undocumented) - getFrameNumber(): number; - // (undocumented) - getFrameOfReferenceUID: () => string; - // (undocumented) - getFrameRange(): [number, number]; - // (undocumented) - getFrameRate(): number; - // (undocumented) - getImageData(): IImageData | CPUIImageData; - // (undocumented) - getImageDataMetadata(image: IImage | string): { - bitsAllocated: number; - numberOfComponents: number; - origin: any; - rows: any; - columns: any; - direction: number[]; - dimensions: any[]; - spacing: any[]; - hasPixelSpacing: boolean; - numVoxels: number; - imagePlaneModule: any; - }; - // (undocumented) - getImageIds(): string[]; - // (undocumented) - getMiddleSliceData: () => never; - // (undocumented) - getNumberOfSlices: () => number; - // (undocumented) - getPan(): Point2; - // (undocumented) - getProperties: () => VideoViewportProperties; - // (undocumented) - getRotation: () => number; - // (undocumented) - protected getScalarData(): CanvasScalarData; - // (undocumented) - getSliceIndex(): number; - // (undocumented) - getSliceIndexForImage(reference: string | ViewReference): number; - // (undocumented) - getSliceViewInfo(): { - width: number; - height: number; - sliceIndex: number; - slicePlane: number; - sliceToIndexMatrix: mat4; - indexToSliceMatrix: mat4; - }; - // (undocumented) - protected getTransform(): Transform; - // (undocumented) - getViewReference(viewRefSpecifier?: ViewReferenceSpecifier): ViewReference; - // (undocumented) - getViewReferenceId(specifier?: ViewReferenceSpecifier): string; - // (undocumented) - hasImageURI(imageURI: string): boolean; - // (undocumented) - protected imageId: string; - // (undocumented) - protected indexToCanvas: (indexPos: Point2) => Point2; - // (undocumented) - isReferenceViewable(viewRef: ViewReference, options?: ReferenceCompatibleOptions): boolean; - // (undocumented) - protected metadata: any; - // (undocumented) - modality: any; - // (undocumented) - pause(): void; - // (undocumented) - play(): Promise; - // (undocumented) - readonly renderingEngineId: string; - // (undocumented) - resetCamera: () => boolean; - // (undocumented) - resetProperties(): void; - // (undocumented) - resize: () => void; - // (undocumented) - scroll(delta?: number): Promise; - // (undocumented) - setAverageWhite(averageWhite: [number, number, number]): void; - // (undocumented) - setCamera(camera: ICamera): void; - // (undocumented) - protected setColorTransform(): void; - // (undocumented) - setDataIds(imageIds: string[], options?: DataSetOptions): void; - // (undocumented) - setFrameNumber(frame: number): Promise; - // (undocumented) - setFrameRange(frameRange: number[]): void; - // (undocumented) - setPlaybackRate(rate?: number): void; - // (undocumented) - setProperties(props: VideoViewportProperties): void; - // (undocumented) - setScrollSpeed(scrollSpeed?: number, unit?: VideoEnums.SpeedUnit): void; - // (undocumented) - setTime(timeInSeconds: number): Promise; - // (undocumented) - setVideo(imageId: string, frameNumber?: number): Promise; - // (undocumented) - setViewReference(viewRef: ViewReference): void; - // (undocumented) - setVOI(voiRange: VOIRange): void; - // (undocumented) - setWindowLevel(windowWidth?: number, windowCenter?: number): void; - // (undocumented) - start(): Promise; - // (undocumented) - togglePlayPause(): boolean; - // (undocumented) - readonly uid: any; - // (undocumented) - updateCameraClippingPlanesAndRange(): void; - // (undocumented) - static get useCustomRenderingPipeline(): boolean; - // (undocumented) - useCustomRenderingPipeline: boolean; - // (undocumented) - worldToCanvas: (worldPos: Point3) => Point2; -} - -// @public (undocumented) -interface VideoViewportInput { - // (undocumented) - canvas: HTMLCanvasElement; - // (undocumented) - defaultOptions: unknown; - // (undocumented) - element: HTMLDivElement; - // (undocumented) - id: string; - // (undocumented) - renderingEngineId: string; - // (undocumented) - sHeight: number; - // (undocumented) - sWidth: number; - // (undocumented) - sx: number; - // (undocumented) - sy: number; - // (undocumented) - type: ViewportType; -} - -// @public (undocumented) -type VideoViewportProperties = ViewportProperties & { - loop?: boolean; - muted?: boolean; - pan?: Point2; - playbackRate?: number; - scrollSpeed?: number; -}; - -// @public (undocumented) -export class Viewport { - constructor(props: ViewportInput); - // (undocumented) - _actors: Map; - // (undocumented) - addActor(actorEntry: ActorEntry): void; - // (undocumented) - addActors(actors: ActorEntry[], options?: { - resetCamera?: boolean; - }): void; - // (undocumented) - addWidget: (widgetId: any, widget: any) => void; - // (undocumented) - static boundsRadius(bounds: number[]): number; - // (undocumented) - protected calibration: IImageCalibration; - // (undocumented) - static readonly CameraViewPresentation: ViewPresentationSelector; - // (undocumented) - readonly canvas: HTMLCanvasElement; - // (undocumented) - canvasToWorld: (canvasPos: Point2) => Point3; - // (undocumented) - customRenderViewportToCanvas: () => unknown; - // (undocumented) - readonly defaultOptions: ViewportInputOptions; - // (undocumented) - readonly element: HTMLDivElement; - // (undocumented) - protected fitToCanvasCamera: ICamera; - // (undocumented) - protected flip({ flipHorizontal, flipVertical }: FlipDirection): void; - // (undocumented) - protected flipHorizontal: boolean; - // (undocumented) - protected flipVertical: boolean; - // (undocumented) - getActor(actorUID: string): ActorEntry; - // (undocumented) - getActorByIndex(index: number): ActorEntry; - // (undocumented) - getActors(): ActorEntry[]; - // (undocumented) - getActorUIDByIndex(index: number): string; - // (undocumented) - getActorUIDs(): string[]; - // (undocumented) - getCamera(): ICamera; - // (undocumented) - protected getCameraNoRotation(): ICamera; - // (undocumented) - getCanvas(): HTMLCanvasElement; - // (undocumented) - getClippingPlanesForActor(actorEntry?: ActorEntry): vtkPlane[]; - // (undocumented) - _getCorners(bounds: number[]): number[][]; - // (undocumented) - getCurrentImageIdIndex(): number; - // (undocumented) - getDefaultActor(): ActorEntry; - // (undocumented) - getDisplayArea(): DisplayArea | undefined; - // (undocumented) - _getEdges(bounds: number[]): [number[], number[]][]; - // (undocumented) - _getFocalPointForResetCamera(centeredFocalPoint: Point3, previousCamera: ICamera, { resetPan, resetToCenter }: { - resetPan?: boolean; - resetToCenter?: boolean; - }): Point3; - // (undocumented) - getFrameOfReferenceUID: () => string; - // (undocumented) - getImageActor(volumeId?: string): ImageActor | null; - // (undocumented) - getImageData(): any; - // (undocumented) - getNumberOfSlices: () => number; - // (undocumented) - getPan(initialCamera?: ICamera): Point2; - // (undocumented) - getProperties: () => ViewportProperties; - // (undocumented) - getRenderer(): vtkRenderer; - // (undocumented) - getRenderingEngine(): IRenderingEngine; - // (undocumented) - getRotation: () => number; - // (undocumented) - getSliceIndex(): number; - // (undocumented) - getSliceViewInfo(): { - width: number; - height: number; - sliceIndex: number; - slicePlane: number; - sliceToIndexMatrix: mat4; - indexToSliceMatrix: mat4; - }; - // (undocumented) - getViewPresentation(viewPresSel?: ViewPresentationSelector): ViewPresentation; - // (undocumented) - getViewReference(viewRefSpecifier?: ViewReferenceSpecifier): ViewReference; - // (undocumented) - getViewReferenceId(_specifier?: ViewReferenceSpecifier): string; - // (undocumented) - protected getVtkActiveCamera(): vtkCamera | vtkSlabCamera; - // (undocumented) - getWidget: (id: any) => any; - // (undocumented) - getWidgets: () => any[]; - // (undocumented) - getZoom(compareCamera?: ICamera): number; - // (undocumented) - protected hasPixelSpacing: boolean; - // (undocumented) - readonly id: string; - // (undocumented) - protected initialCamera: ICamera; - // (undocumented) - protected insetImageMultiplier: number; - // (undocumented) - isDisabled: boolean; - // (undocumented) - _isInBounds(point: Point3, bounds: number[]): boolean; - // (undocumented) - isReferenceViewable(viewRef: ViewReference, options?: ReferenceCompatibleOptions): boolean; - // (undocumented) - options: ViewportInputOptions; - // (undocumented) - _removeActor(actorUID: string): void; - // (undocumented) - removeActors(actorUIDs: string[]): void; - // (undocumented) - removeAllActors(): void; - // (undocumented) - removeWidgets: () => void; - // (undocumented) - render(): void; - // (undocumented) - readonly renderingEngineId: string; - // (undocumented) - reset(immediate?: boolean): void; - // (undocumented) - resetCamera(options?: { - resetPan?: boolean; - resetZoom?: boolean; - resetToCenter?: boolean; - storeAsInitialCamera?: boolean; - }): boolean; - // (undocumented) - protected resetCameraNoEvent(): void; - // (undocumented) - resize: () => void; - // (undocumented) - setActors(actors: ActorEntry[]): void; - // (undocumented) - setCamera(cameraInterface: ICamera, storeAsInitialCamera?: boolean): void; - // (undocumented) - protected setCameraNoEvent(camera: ICamera): void; - // (undocumented) - setDataIds(_imageIds: string[], _options?: DataSetOptions): void; - // (undocumented) - setDisplayArea(displayArea: DisplayArea, suppressEvents?: boolean): void; - // (undocumented) - protected setDisplayAreaFit(displayArea: DisplayArea): void; - // (undocumented) - protected setDisplayAreaScale(displayArea: DisplayArea): void; - // (undocumented) - protected setFitToCanvasCamera(camera: ICamera): void; - // (undocumented) - protected setInitialCamera(camera: ICamera): void; - // (undocumented) - protected setInterpolationType(_interpolationType: InterpolationType, _arg?: any): void; - // (undocumented) - setOptions(options: ViewportInputOptions, immediate?: boolean): void; - // (undocumented) - setOrientationOfClippingPlanes(vtkPlanes: vtkPlane[], slabThickness: number, viewPlaneNormal: Point3, focalPoint: Point3): void; - // (undocumented) - setPan(pan: Point2, storeAsInitialCamera?: boolean): void; - // (undocumented) - setRendered(): void; - // (undocumented) - protected setRotation: (_rotation: number) => void; - // (undocumented) - setViewPresentation(viewPres: ViewPresentation): void; - // (undocumented) - setViewReference(viewRef: ViewReference): void; - // (undocumented) - setZoom(value: number, storeAsInitialCamera?: boolean): void; - // (undocumented) - sHeight: number; - // (undocumented) - _suppressCameraModifiedEvents: boolean; - // (undocumented) - readonly suppressEvents: boolean; - // (undocumented) - sWidth: number; - // (undocumented) - sx: number; - // (undocumented) - sy: number; - // (undocumented) - static readonly TransferViewPresentation: ViewPresentationSelector; - // (undocumented) - triggerCameraModifiedEventIfNecessary(previousCamera: ICamera, updatedCamera: ICamera): void; - // (undocumented) - readonly type: ViewportType; - // (undocumented) - updateCameraClippingPlanesAndRange(): void; - // (undocumented) - protected updateClippingPlanesForActors(updatedCamera: ICamera): Promise; - // (undocumented) - updateRenderingPipeline: () => void; - // (undocumented) - static get useCustomRenderingPipeline(): boolean; - // (undocumented) - viewportStatus: ViewportStatus; - // (undocumented) - worldToCanvas: (worldPos: Point3) => Point2; -} - -// @public (undocumented) -interface ViewportInput { - // (undocumented) - canvas: HTMLCanvasElement; - // (undocumented) - defaultOptions: ViewportInputOptions; - // (undocumented) - element: HTMLDivElement; - // (undocumented) - id: string; - // (undocumented) - renderingEngineId: string; - // (undocumented) - sHeight: number; - // (undocumented) - sWidth: number; - // (undocumented) - sx: number; - // (undocumented) - sy: number; - // (undocumented) - type: ViewportType; -} - -// @public (undocumented) -interface ViewportInputOptions { - // (undocumented) - background?: RGB; - // (undocumented) - displayArea?: DisplayArea; - // (undocumented) - orientation?: OrientationAxis | OrientationVectors; - // (undocumented) - parallelProjection?: boolean; - // (undocumented) - suppressEvents?: boolean; -} - -// @public (undocumented) -interface ViewportPreset { - // (undocumented) - ambient: string; - // (undocumented) - colorTransfer: string; - // (undocumented) - diffuse: string; - // (undocumented) - gradientOpacity: string; - // (undocumented) - interpolation: string; - // (undocumented) - name: string; - // (undocumented) - scalarOpacity: string; - // (undocumented) - shade: string; - // (undocumented) - specular: string; - // (undocumented) - specularPower: string; -} - -// @public (undocumented) -interface ViewportProperties { - // (undocumented) - colormap?: ColormapPublic; - // (undocumented) - interpolationType?: InterpolationType; - // (undocumented) - invert?: boolean; - // (undocumented) - preset?: string; - // (undocumented) - VOILUTFunction?: VOILUTFunctionType; - // (undocumented) - voiRange?: VOIRange; -} - -// @public (undocumented) -enum ViewportStatus { - // (undocumented) - LOADING = "loading", - // (undocumented) - NO_DATA = "noData", - // (undocumented) - PRE_RENDER = "preRender", - // (undocumented) - RENDERED = "rendered", - // (undocumented) - RESIZE = "resize" -} - -// @public (undocumented) -enum ViewportType { - // (undocumented) - ORTHOGRAPHIC = "orthographic", - // (undocumented) - PERSPECTIVE = "perspective", - // (undocumented) - STACK = "stack", - // (undocumented) - VIDEO = "video", - // (undocumented) - VOLUME_3D = "volume3d", - // (undocumented) - WHOLE_SLIDE = "wholeSlide" -} - -// @public (undocumented) -interface ViewPresentation { - // (undocumented) - displayArea?: DisplayArea; - // (undocumented) - flipHorizontal?: boolean; - // (undocumented) - flipVertical?: boolean; - // (undocumented) - pan?: Point2; - // (undocumented) - rotation?: number; - // (undocumented) - slabThickness?: number; - // (undocumented) - zoom?: number; -} - -// @public (undocumented) -interface ViewPresentationSelector { - // (undocumented) - displayArea?: boolean; - // (undocumented) - flipHorizontal?: boolean; - // (undocumented) - flipVertical?: boolean; - // (undocumented) - paletteLut?: boolean; - // (undocumented) - pan?: boolean; - // (undocumented) - rotation?: boolean; - // (undocumented) - slabThickness?: number; - // (undocumented) - windowLevel?: boolean; - // (undocumented) - zoom?: boolean; -} - -// @public (undocumented) -type ViewReference = { - FrameOfReferenceUID?: string; - referencedImageId?: string; - referencedImageURI?: string; - multiSliceReference?: ReferencedImageRange; - cameraFocalPoint?: Point3; - viewPlaneNormal?: Point3; - viewUp?: Point3; - sliceIndex?: number; - volumeId?: string; - bounds?: BoundsLPS; -}; - -// @public (undocumented) -type ViewReferenceSpecifier = { - sliceIndex?: number; - rangeEndSliceIndex?: number; - frameNumber?: number; - forFrameOfReference?: boolean; - points?: Point3[]; - volumeId?: string; -}; - -// @public (undocumented) -interface VOI { - // (undocumented) - windowCenter: number; - // (undocumented) - windowWidth: number; -} - -// @public (undocumented) -enum VOILUTFunctionType { - // (undocumented) - LINEAR = "LINEAR", - // (undocumented) - LINEAR_EXACT = "LINEAR_EXACT", - // (undocumented) - SAMPLED_SIGMOID = "SIGMOID" -} - -// @public (undocumented) -type VoiModifiedEvent = CustomEvent_2; - -// @public (undocumented) -interface VoiModifiedEventDetail { - // (undocumented) - colormap?: ColormapPublic; - // (undocumented) - invert?: boolean; - // (undocumented) - invertStateChanged?: boolean; - // (undocumented) - range: VOIRange; - // (undocumented) - viewportId: string; - // (undocumented) - VOILUTFunction?: VOILUTFunctionType; - // (undocumented) - volumeId?: string; -} - -// @public (undocumented) -interface VOIRange { - // (undocumented) - lower: number; - // (undocumented) - upper: number; -} - -// @public (undocumented) -type VolumeActor = vtkVolume; - -// @public (undocumented) -type VolumeCacheVolumeAddedEvent = CustomEvent_2; - -// @public (undocumented) -interface VolumeCacheVolumeAddedEventDetail { - // (undocumented) - volume: ICachedVolume; -} - -// @public (undocumented) -type VolumeCacheVolumeRemovedEvent = CustomEvent_2; - -// @public (undocumented) -interface VolumeCacheVolumeRemovedEventDetail { - // (undocumented) - volumeId: string; -} - -// @public (undocumented) -type VolumeInputCallback = (params: { - volumeActor: VolumeActor; - volumeId: string; -}) => unknown; - -// @public (undocumented) -type VolumeLoadedEvent = CustomEvent_2; - -// @public (undocumented) -interface VolumeLoadedEventDetail { - // (undocumented) - volume: IImageVolume; -} - -// @public (undocumented) -type VolumeLoadedFailedEvent = CustomEvent_2; - -// @public (undocumented) -interface VolumeLoadedFailedEventDetail { - // (undocumented) - error: unknown; - // (undocumented) - volumeId: string; -} - -declare namespace volumeLoader { - export { - loadVolume, - createAndCacheVolume, - createAndCacheDerivedVolume, - createAndCacheVolumeFromImages, - createAndCacheVolumeFromImagesSync, - createLocalVolume, - registerVolumeLoader, - getVolumeLoaderSchemes, - registerUnknownVolumeLoader, - getUnknownVolumeLoaderSchema, - createAndCacheDerivedLabelmapVolume, - createLocalLabelmapVolume, - LocalVolumeOptions - } -} -export { volumeLoader } - -// @public (undocumented) -type VolumeLoaderFn = (volumeId: string, options?: Record) => { - promise: Promise; - cancelFn?: () => void | undefined; - decache?: () => void | undefined; -}; - -// @public (undocumented) -type VolumeNewImageEvent = CustomEvent_2; - -// @public (undocumented) -interface VolumeNewImageEventDetail { - // (undocumented) - imageIndex: number; - // (undocumented) - numberOfSlices: number; - // (undocumented) - renderingEngineId: string; - // (undocumented) - viewportId: string; -} - -// @public (undocumented) -interface VolumeProps { - // (undocumented) - additionalDetails?: Record; - // (undocumented) - dataType: PixelDataTypedArrayString; - // (undocumented) - dimensions: Point3; - // (undocumented) - direction: Mat3; - // (undocumented) - imageData?: vtkImageData; - // (undocumented) - metadata: Metadata; - // (undocumented) - numberOfComponents?: number; - // (undocumented) - origin: Point3; - // (undocumented) - referencedVolumeId?: string; - // (undocumented) - scalarData?: PixelDataTypedArray | PixelDataTypedArray[]; - // (undocumented) - scaling?: { - PT?: { - SUVlbmFactor?: number; - SUVbsaFactor?: number; - suvbwToSuvlbm?: number; - suvbwToSuvbsa?: number; - }; - }; - // (undocumented) - sizeInBytes?: number; - // (undocumented) - spacing: Point3; - // (undocumented) - volumeId: string; - // (undocumented) - voxelManager?: IVoxelManager | IVoxelManager; -} - -// @public (undocumented) -type VolumeScrollOutOfBoundsEvent = CustomEvent_2; - -// @public (undocumented) -type VolumeScrollOutOfBoundsEventDetail = { - volumeId: string; - viewport: IVolumeViewport; - desiredStepIndex: number; - currentStepIndex: number; - delta: number; - numScrollSteps: number; - currentImageId: string; -}; - -// @public (undocumented) -export class VolumeViewport extends BaseVolumeViewport { - constructor(props: ViewportInput); - // (undocumented) - addVolumes(volumeInputArray: IVolumeInput[], immediate?: boolean, suppressEvents?: boolean): Promise; - // (undocumented) - getBlendMode(filterActorUIDs?: string[]): BlendModes; - // (undocumented) - getCurrentImageId: () => string | undefined; - // (undocumented) - getCurrentImageIdIndex: (volumeId?: string, useSlabThickness?: boolean) => number; - // (undocumented) - getCurrentSlicePixelData(): PixelDataTypedArray; - // (undocumented) - getNumberOfSlices: () => number; - // (undocumented) - getSliceIndex: () => number; - // (undocumented) - getSlicePlaneCoordinates: () => { - sliceIndex: number; - point: Point3; - }[]; - // (undocumented) - getSlicesClippingPlanes(): { - sliceIndex: number; - planes: { - normal: Point3; - origin: Point3; - }[]; - }[]; - // (undocumented) - getSliceViewInfo(): { - sliceIndex: number; - slicePlane: number; - width: number; - height: number; - sliceToIndexMatrix: mat4; - indexToSliceMatrix: mat4; - }; - // (undocumented) - getViewReference(viewRefSpecifier?: ViewReferenceSpecifier): ViewReference; - // (undocumented) - jumpToWorld(worldPos: Point3): boolean; - // (undocumented) - resetCamera(options?: any): boolean; - // (undocumented) - resetCameraForResize: () => boolean; - // (undocumented) - resetProperties(volumeId?: string): void; - // (undocumented) - resetSlabThickness(): void; - // (undocumented) - setBlendMode(blendMode: BlendModes, filterActorUIDs?: any[], immediate?: boolean): void; - // (undocumented) - protected setCameraClippingRange(): void; - // (undocumented) - setOrientation(orientation: OrientationAxis | OrientationVectors, immediate?: boolean): void; - // (undocumented) - setSlabThickness(slabThickness: number, filterActorUIDs?: any[]): void; - // (undocumented) - setVolumes(volumeInputArray: IVolumeInput[], immediate?: boolean, suppressEvents?: boolean): Promise; -} - -// @public (undocumented) -export class VolumeViewport3D extends BaseVolumeViewport { - constructor(props: ViewportInput); - // (undocumented) - getCurrentImageId: () => string; - // (undocumented) - getCurrentImageIdIndex: () => number; - // (undocumented) - getNumberOfSlices: () => number; - // (undocumented) - getRotation: () => number; - // (undocumented) - getSliceIndex(): number; - // (undocumented) - resetCamera({ resetPan, resetZoom, resetToCenter, }?: { - resetPan?: boolean; - resetZoom?: boolean; - resetToCenter?: boolean; - }): boolean; - // (undocumented) - resetCameraForResize: () => boolean; - // (undocumented) - resetProperties(volumeId?: string): void; - // (undocumented) - resetSlabThickness(): void; - // (undocumented) - setBlendMode(blendMode: BlendModes, filterActorUIDs?: string[], immediate?: boolean): void; - // (undocumented) - setCamera(props: any): void; - // (undocumented) - protected setCameraClippingRange(): void; - // (undocumented) - setSlabThickness(slabThickness: number, filterActorUIDs?: string[]): void; -} - -// @public (undocumented) -type VolumeViewportProperties = ViewportProperties & { - preset?: string; - slabThickness?: number; - orientation?: OrientationAxis; -}; - -// @public (undocumented) -class VoxelManager { - constructor(dimensions: any, options: { - _get: (index: number) => T; - _set?: (index: number, v: T) => boolean; - _getScalarData?: () => ArrayLike; - _id?: string; - _updateScalarData?: (scalarData: ArrayLike) => PixelDataTypedArray; - numberOfComponents?: number; - scalarData?: ArrayLike; - _getConstructor?: () => new (length: number) => PixelDataTypedArray; - }); - // (undocumented) - static addBounds(bounds: BoundsIJK, point: Point3): void; - // (undocumented) - static addInstanceToImage(image: IImage): void; - // (undocumented) - addPoint(point: Point3 | number): void; - // (undocumented) - get bytePerVoxel(): number; - // (undocumented) - clear(): void; - // (undocumented) - static createHistoryVoxelManager({ sourceVoxelManager, }: { - sourceVoxelManager: VoxelManager; - }): VoxelManager; - // (undocumented) - static createImageVolumeVoxelManager({ dimensions, imageIds, numberOfComponents, }: { - dimensions: Point3; - imageIds: string[]; - numberOfComponents: number; - }): IVoxelManager | IVoxelManager; - // (undocumented) - static createImageVoxelManager({ width, height, scalarData, numberOfComponents, }: { - width: number; - height: number; - scalarData: PixelDataTypedArray; - numberOfComponents?: number; - }): IVoxelManager | IVoxelManager; - // (undocumented) - static createLazyVoxelManager({ dimensions, planeFactory, }: { - dimensions: Point3; - planeFactory: (width: number, height: number) => T; - }): VoxelManager; - // (undocumented) - static createMapVoxelManager({ dimension, }: { - dimension: Point3; - }): IVoxelManager; - // (undocumented) - static createRLEHistoryVoxelManager(sourceVoxelManager: VoxelManager): VoxelManager; - // (undocumented) - static createRLEImageVoxelManager({ dimensions, }: { - dimensions: Point2; - }): VoxelManager; - // (undocumented) - static createRLEVolumeVoxelManager({ dimensions, }: { - dimensions: Point3; - }): VoxelManager; - // (undocumented) - static createScalarDynamicVolumeVoxelManager({ imageIdGroups, dimensions, dimensionGroupNumber, timePoint, numberOfComponents, }: { - imageIdGroups: string[][]; - dimensions: Point3; - dimensionGroupNumber?: number; - timePoint?: number; - numberOfComponents?: number; - }): IVoxelManager | IVoxelManager; - // (undocumented) - static createScalarVolumeVoxelManager({ dimensions, scalarData, numberOfComponents, }: { - dimensions: Point3; - scalarData: any; - numberOfComponents?: number; - }): IVoxelManager | IVoxelManager; - // (undocumented) - readonly dimensions: Point3; - // (undocumented) - forEach: (callback: (args: { - value: unknown; - index: number; - pointIJK: Point3; - pointLPS: Point3; - }) => void, options?: { - boundsIJK?: BoundsIJK; - isInObject?: (pointLPS: any, pointIJK: any) => boolean; - returnPoints?: boolean; - imageData?: vtkImageData | CPUImageData; - }) => void | any[]; - // (undocumented) - frameSize: number; - // (undocumented) - readonly _get: (index: number) => T; - // (undocumented) - getArrayOfModifiedSlices(): number[]; - // (undocumented) - getAtIJK: (i: any, j: any, k: any) => T; - // (undocumented) - getAtIJKPoint: ([i, j, k]: [any, any, any]) => T; - // (undocumented) - getAtIndex: (index: any) => T; - // (undocumented) - getBoundsIJK(): BoundsIJK; - // (undocumented) - getCompleteScalarDataArray?: () => ArrayLike; - // (undocumented) - getConstructor(): new (length: number) => PixelDataTypedArray; - // (undocumented) - readonly _getConstructor?: () => new (length: number) => PixelDataTypedArray; - // (undocumented) - getDefaultBounds(): BoundsIJK; - // (undocumented) - getMiddleSliceData: () => PixelDataTypedArray; - // (undocumented) - getMinMax(): { - min: any; - max: any; - }; - // (undocumented) - getPoints(): Point3[]; - // (undocumented) - getRange: () => [number, number]; - // (undocumented) - getScalarData(storeScalarData?: boolean): PixelDataTypedArray; - // (undocumented) - _getScalarData?: () => ArrayLike; - // (undocumented) - getScalarDataLength(): number; - // (undocumented) - _getScalarDataLength?: () => number; - // (undocumented) - getSliceData: ({ sliceIndex, slicePlane, }: { - sliceIndex: number; - slicePlane: number; - }) => PixelDataTypedArray; - // (undocumented) - _getSliceData: (args: { - sliceIndex: number; - slicePlane: number; - }) => PixelDataTypedArray; - // (undocumented) - readonly _id: string; - // (undocumented) - isInObject: (pointLPS: any, pointIJK: any) => boolean; - // (undocumented) - map: Map | IRLEVoxelMap; - // (undocumented) - modifiedSlices: Set; - // (undocumented) - readonly numberOfComponents: any; - // (undocumented) - points: Set; - // (undocumented) - resetModifiedSlices(): void; - // (undocumented) - rleForEach(callback: any, options?: any): void; - // (undocumented) - readonly _set: (index: number, v: T) => boolean; - // (undocumented) - setAtIJK: (i: number, j: number, k: number, v: any) => boolean; - // (undocumented) - setAtIJKPoint: ([i, j, k]: Point3, v: any) => void; - // (undocumented) - setAtIndex: (index: any, v: any) => boolean; - // (undocumented) - setCompleteScalarDataArray?: (scalarData: ArrayLike) => void; - // (undocumented) - setScalarData(newScalarData: PixelDataTypedArray): void; - // (undocumented) - get sizeInBytes(): number; - // (undocumented) - sourceVoxelManager: IVoxelManager; - // (undocumented) - static: any; - // (undocumented) - toIJK(index: number): Point3; - // (undocumented) - toIndex(ijk: Point3): number; - // (undocumented) - _updateScalarData?: (scalarData: ArrayLike) => PixelDataTypedArray; - // (undocumented) - width: number; -} - -// @public (undocumented) -enum VoxelManagerEnum { - // (undocumented) - RLE = "RLE", - // (undocumented) - Volume = "Volume" -} - -declare namespace windowLevel { - export { - toWindowLevel, - toLowHighRange - } -} - -// @public (undocumented) -function worldToImageCoords(imageId: string, worldCoords: Point3): Point2 | undefined; - -// @public (undocumented) -export class WSIViewport extends Viewport { - constructor(props: ViewportInput); - // (undocumented) - static addMiniNavigationOverlayCss(): void; - // (undocumented) - protected canvasToIndex: (canvasPos: Point2) => Point2; - // (undocumented) - canvasToWorld: (canvasPos: Point2) => Point3; - // (undocumented) - customRenderViewportToCanvas: () => void; - // (undocumented) - getCamera(): ICamera; - // (undocumented) - getCurrentImageId(): string; - // (undocumented) - getCurrentImageIdIndex(): number; - // (undocumented) - static getDicomMicroscopyViewer: () => Promise; - // (undocumented) - getFrameNumber(): number; - // (undocumented) - getFrameOfReferenceUID: () => string; - // (undocumented) - getImageData(): CPUIImageData; - // (undocumented) - getImageIds: () => Array; - // (undocumented) - getNumberOfSlices: () => number; - // (undocumented) - getProperties: () => WSIViewportProperties; - // (undocumented) - getRotation: () => number; - // (undocumented) - protected getScalarData(): any; - // (undocumented) - getSliceIndex(): number; - // (undocumented) - protected getTransform(): Transform; - // (undocumented) - getView(): any; - // (undocumented) - getViewReferenceId(): string; - // (undocumented) - getZoom(): any; - // (undocumented) - hasImageURI(imageURI: string): boolean; - // (undocumented) - protected imageIds: string[]; - // (undocumented) - protected indexToCanvas: (indexPos: Point2) => Point2; - // (undocumented) - protected map: any; - // (undocumented) - protected metadata: any; - // (undocumented) - protected metadataDicomweb: any; - // (undocumented) - modality: any; - // (undocumented) - postrender: () => void; - // (undocumented) - readonly renderingEngineId: string; - // (undocumented) - resetCamera: () => boolean; - // (undocumented) - resetProperties(): void; - // (undocumented) - resize: () => void; - // (undocumented) - scroll(delta: number): void; - // (undocumented) - setCamera(camera: ICamera): void; - // (undocumented) - setDataIds(imageIds: string[], options?: DataSetOptions & { - miniNavigationOverlay?: boolean; - webClient: unknown; - }): Promise; - // (undocumented) - setFrameNumber(frame: number): Promise; - // (undocumented) - setProperties(props: WSIViewportProperties): void; - // (undocumented) - setWSI(imageIds: string[], client: any): Promise; - // (undocumented) - setZoom(zoom: number): void; - // (undocumented) - readonly uid: any; - // (undocumented) - static get useCustomRenderingPipeline(): boolean; - // (undocumented) - worldToCanvas: (worldPos: Point3) => Point2; -} - -// @public (undocumented) -type WSIViewportProperties = ViewportProperties; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/common/reviews/api/dicom-image-loader.api.md b/common/reviews/api/dicom-image-loader.api.md deleted file mode 100644 index 23c601c79b..0000000000 --- a/common/reviews/api/dicom-image-loader.api.md +++ /dev/null @@ -1,638 +0,0 @@ -## API Report File for "@cornerstonejs/dicom-image-loader" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { ByteArray } from 'dicom-parser'; -import { DataSet } from 'dicom-parser'; -import * as dicomParser from 'dicom-parser'; -import type { Element as Element_2 } from 'dicom-parser'; -import { ImageQualityStatus as ImageQualityStatus_2 } from 'packages/core/dist/esm/enums'; -import { mat4 } from 'gl-matrix'; -import { PromiseIterator } from 'packages/core/dist/esm/utilities/ProgressiveIterator'; -import type { Range as Range_2 } from '@kitware/vtk.js/types'; -import type vtkActor from '@kitware/vtk.js/Rendering/Core/Actor'; -import type { vtkCamera } from '@kitware/vtk.js/Rendering/Core/Camera'; -import { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData'; -import type vtkImageSlice from '@kitware/vtk.js/Rendering/Core/ImageSlice'; -import type { vtkObject } from '@kitware/vtk.js/interfaces'; -import type vtkOpenGLTexture from '@kitware/vtk.js/Rendering/OpenGL/Texture'; -import vtkPlane from '@kitware/vtk.js/Common/DataModel/Plane'; -import type vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer'; -import type vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume'; - -declare namespace constants { - export { - transferSyntaxes - } -} -export { constants } - -// @public (undocumented) -export function convertColorSpace(imageFrame: any, colorBuffer: any, useRGBA: any): void; - -// @public (undocumented) -export function (imageFrame: Types_2.IImageFrame, colorBuffer: ByteArray, useRGBA: boolean): void; - -// @public (undocumented) -export function (imageFrame: ByteArray, colorBuffer: ByteArray, useRGBA: boolean): void; - -// @public (undocumented) -export function (imageFrame: ByteArray, colorBuffer: ByteArray, useRGBA: boolean): void; - -// @public (undocumented) -export function (imageFrame: ByteArray, colorBuffer: ByteArray, useRGBA: boolean): void; - -// @public (undocumented) -export function (imageFrame: ByteArray, colorBuffer: ByteArray, useRGBA: boolean): void; - -// @public (undocumented) -const cornerstoneDICOMImageLoader: { - constants: typeof constants; - convertRGBColorByPixel: typeof convertRGBColorByPixel; - convertRGBColorByPlane: typeof convertRGBColorByPlane; - convertYBRFullByPixel: typeof convertYBRFullByPixel; - convertYBRFullByPlane: typeof convertYBRFullByPlane; - convertPALETTECOLOR: typeof convertPALETTECOLOR; - wadouri: { - metaData: { - getImagePixelModule: getImagePixelModule; - getLUTs: getLUTs; - getModalityLUTOutputPixelRepresentation: getModalityLUTOutputPixelRepresentation; - getNumberValues: getNumberValues; - metaDataProvider: metaDataProvider; - metadataForDataset: metadataForDataset; - }; - dataSetCacheManager: { - isLoaded: (uri: string) => boolean; - load: (uri: string, loadRequest: Types.LoadRequestFunction, imageId: string) => CornerstoneWadoLoaderCachedPromise; - unload: (uri: string) => void; - getInfo: getInfo; - purge: () => void; - get: (uri: string) => DataSet; - update: (uri: string, dataSet: DataSet) => void; - }; - fileManager: { - add: (file: Blob) => string; - get: (index: number) => Blob; - remove: (index: number) => void; - purge: () => void; - }; - getEncapsulatedImageFrame: getEncapsulatedImageFrame; - getUncompressedImageFrame: getUncompressedImageFrame; - loadFileRequest: loadFileRequest; - loadImageFromPromise: loadImageFromPromise; - getLoaderForScheme: getLoaderForScheme; - getPixelData: getPixelData_2; - loadImage: loadImage; - parseImageId: parseImageId; - unpackBinaryFrame: unpackBinaryFrame; - register: default_2; - }; - wadors: { - metaData: { - getNumberString: getNumberString; - getNumberValue: getNumberValue; - getNumberValues: getNumberValues_2; - getValue: getValue_2; - metaDataProvider: metaDataProvider_2; - }; - findIndexOfString: findIndexOfString; - getPixelData: typeof getPixelData; - loadImage: loadImage_2; - metaDataManager: { - add: (imageId: string, metadata: Types.WADORSMetaData) => void; - get: (imageId: string) => Types.WADORSMetaData; - remove: (imageId: any) => void; - purge: () => void; - }; - register: default_3; - }; - init: typeof init; - convertColorSpace: typeof convertColorSpace; - createImage: typeof createImage; - decodeJPEGBaseline8BitColor: typeof decodeJPEGBaseline8BitColor; - getImageFrame: typeof getImageFrame; - getPixelData: typeof getPixelData; - getMinMax: typeof getMinMax; - isColorImage: typeof isColorImage; - isJPEGBaseline8BitColor: typeof isJPEGBaseline8BitColor; - internal: { - xhrRequest: xhrRequest; - streamRequest: streamRequest; - setOptions: setOptions; - getOptions: getOptions; - }; - decodeImageFrame: typeof decodeImageFrame; -}; -export default cornerstoneDICOMImageLoader; - -// @public (undocumented) -export function createImage(imageId: string, pixelData: ByteArray, transferSyntax: string, options?: DICOMLoaderImageOptions): Promise; - -// @public (undocumented) -export function decodeImageFrame(imageFrame: any, transferSyntax: any, pixelData: any, decodeConfig: any, options: any, callbackFn: any): Promise; - -// @public (undocumented) -export function decodeJPEGBaseline8BitColor(imageFrame: Types_2.IImageFrame, pixelData: ByteArray, canvas: HTMLCanvasElement): Promise; - -// @public (undocumented) -interface DICOMLoaderDataSetWithFetchMore extends DataSet { - // (undocumented) - fetchMore?: (fetchOptions: { - uri: string; - imageId: string; - fetchedLength: number; - lengthToFetch: number; - }) => Promise; -} - -// @public (undocumented) -interface DICOMLoaderIImage extends Types_2.IImage { - // (undocumented) - data?: DataSet; - // (undocumented) - decodeTimeInMS: number; - // (undocumented) - floatPixelData?: ByteArray | Float32Array; - // (undocumented) - imageFrame?: Types_2.IImageFrame; - // (undocumented) - loadTimeInMS?: number; - // (undocumented) - totalTimeInMS?: number; - // (undocumented) - transferSyntaxUID?: string; -} - -// @public (undocumented) -interface DICOMLoaderImageOptions { - // (undocumented) - allowFloatRendering?: boolean; - // (undocumented) - decodeLevel?: number; - // (undocumented) - loader?: LoadRequestFunction; - // (undocumented) - preScale?: { - enabled: boolean; - scalingParameters?: Types_2.ScalingParameters; - }; - // (undocumented) - retrieveOptions?: Types_2.RetrieveOptions; - // (undocumented) - streamingData?: StreamingData; - // (undocumented) - targetBuffer?: { - type: Types_2.PixelDataTypedArrayString; - arrayBuffer: ArrayBufferLike; - length: number; - offset: number; - rows?: number; - columns?: number; - }; - // (undocumented) - useRGBA?: boolean; -} - -// @public (undocumented) -export function getImageFrame(imageId: string): Types_2.IImageFrame; - -// @public (undocumented) -export function getMinMax(storedPixelData: Types_2.PixelDataTypedArray): { - min: number; - max: number; -}; - -// @public (undocumented) -export function getPixelData(uri: string, imageId: string, mediaType?: string, options?: CornerstoneWadoRsLoaderOptions): PromiseIterator | LoaderXhrRequestPromise< { -contentType: string; -pixelData: Uint8Array; -imageQualityStatus: ImageQualityStatus_2; -percentComplete: number; -}> | Promise<{ - contentType: string; - imageQualityStatus: ImageQualityStatus_2; - pixelData: Uint8Array; - extractDone?: undefined; - tokenIndex?: undefined; - responseHeaders?: undefined; - boundary?: undefined; - multipartContentType?: undefined; -} | { - contentType: any; - extractDone: boolean; - tokenIndex: any; - responseHeaders: any; - boundary: any; - multipartContentType: any; - pixelData: any; - imageQualityStatus?: undefined; -}>; - -// @public (undocumented) -export function init(options?: LoaderOptions): void; - -// @public (undocumented) -export const internal: { - xhrRequest: typeof xhrRequest; - streamRequest: typeof streamRequest; - setOptions: typeof setOptions; - getOptions: typeof getOptions; -}; - -// @public (undocumented) -export function (photoMetricInterpretation: string): boolean; - -// @public (undocumented) -export function isJPEGBaseline8BitColor(imageFrame: Types_2.IImageFrame, transferSyntax: string): boolean; - -// @public (undocumented) -interface LoaderDecodeOptions { -} - -// @public (undocumented) -interface LoaderOptions { - // (undocumented) - beforeProcessing?: (xhr: XMLHttpRequest) => Promise; - // (undocumented) - beforeSend?: (xhr: XMLHttpRequest, imageId: string, defaultHeaders: Record, params: LoaderXhrRequestParams) => Record | void; - // (undocumented) - decodeConfig?: LoaderDecodeOptions; - // (undocumented) - errorInterceptor?: (error: LoaderXhrRequestError) => void; - // (undocumented) - imageCreated?: (imageObject: unknown) => void; - // (undocumented) - maxWebWorkers?: number; - // (undocumented) - onloadend?: (event: ProgressEvent, params: unknown) => void; - // (undocumented) - onloadstart?: (event: ProgressEvent, params: unknown) => void; - // (undocumented) - onprogress?: (event: ProgressEvent, params: unknown) => void; - // (undocumented) - onreadystatechange?: (event: Event, params: unknown) => void; - // (undocumented) - open?: (xhr: XMLHttpRequest, url: string, defaultHeaders: Record, params: LoaderXhrRequestParams) => void; - // (undocumented) - strict?: boolean; -} - -// @public (undocumented) -interface LoaderXhrRequestError extends Error { - // (undocumented) - request: XMLHttpRequest; - // (undocumented) - response: unknown; - // (undocumented) - status: number; -} - -// @public (undocumented) -interface LoaderXhrRequestParams { - // (undocumented) - deferred?: { - resolve: (value: ArrayBuffer | PromiseLike) => void; - reject: (reason: any) => void; - }; - // (undocumented) - imageId?: string; - // (undocumented) - url?: string; -} - -// @public (undocumented) -interface LoaderXhrRequestPromise extends Promise { - // (undocumented) - xhr?: XMLHttpRequest; -} - -// @public (undocumented) -type LoadRequestFunction = (url: string, imageId: string, ...args: unknown[]) => Promise; - -// @public (undocumented) -interface LutType { - // (undocumented) - firstValueMapped: number; - // (undocumented) - id: string; - // (undocumented) - lut: number[]; - // (undocumented) - numBitsPerEntry: number; -} - -// @public (undocumented) -namespace transferSyntaxes { - let // (undocumented) - IMPLICIT_VR_LITTLE_ENDIAN: string; - let // (undocumented) - EXPLICIT_VR_LITTLE_ENDIAN: string; - let // (undocumented) - DEFLATED_EXPLICIT_VR_LITTLE_ENDIAN: string; - let // (undocumented) - EXPLICIT_VR_BIG_ENDIAN: string; - let // (undocumented) - JPEG_BASELINE_PROCESS_1: string; - let // (undocumented) - JPEG_EXTENDED_PROCESS_2_4: string; - let // (undocumented) - JPEG_EXTENDED_PROCESSES_3_5: string; - let // (undocumented) - JPEG_SPECTRAL_SELECTION_NONHIERARCHICAL_PROCESSES_6_8: string; - let // (undocumented) - JPEG_SPECTRAL_SELECTION_NONHIERARCHICAL_PROCESSES_7_9: string; - let // (undocumented) - JPEG_FULL_PROGRESSION_NONHIERARCHICAL_PROCESSES_10_12: string; - let // (undocumented) - JPEG_FULL_PROGRESSION_NONHIERARCHICAL_PROCESSES_11_13: string; - let // (undocumented) - JPEG_LOSSLESS_NONHIERARCHICAL_PROCESS_14: string; - let // (undocumented) - JPEG_LOSSLESS_NONHIERARCHICAL_PROCESS_15: string; - let // (undocumented) - JPEG_EXTENDED_HIERARCHICAL_PROCESSES_16_18: string; - let // (undocumented) - JPEG_EXTENDED_HIERARCHICAL_PROCESSES_17_19: string; - let // (undocumented) - JPEG_SPECTRAL_SELECTION_HIERARCHICAL_PROCESSES_20_22: string; - let // (undocumented) - JPEG_SPECTRAL_SELECTION_HIERARCHICAL_PROCESSES_21_23: string; - let // (undocumented) - JPEG_FULL_PROGRESSION_HIERARCHICAL_PROCESSES_24_26: string; - let // (undocumented) - JPEG_FULL_PROGRESSION_HIERARCHICAL_PROCESSES_25_27: string; - let // (undocumented) - JPEG_LOSSLESS_NONHIERARCHICAL_PROCESS_28: string; - let // (undocumented) - JPEG_LOSSLESS_NONHIERARCHICAL_PROCESS_29: string; - let // (undocumented) - JPEG_LOSSLESS_NONHIERARCHICAL_FIRST_ORDER_PREDICTION_PROCESS_14: string; - let // (undocumented) - JPEG_LS_LOSSLESS_IMAGE_COMPRESSION: string; - let // (undocumented) - JPEG_LS_LOSSY_NEAR_LOSSLESS_IMAGE_COMPRESSION: string; - let // (undocumented) - JPEG_2000_IMAGE_COMPRESSION_LOSSLESS_ONLY: string; - let // (undocumented) - JPEG_2000_IMAGE_COMPRESSION: string; - let // (undocumented) - JPEG_2000_PART_2_MULTICOMPONENT_IMAGE_COMPRESSION_LOSSLESS_ONLY: string; - let // (undocumented) - JPEG_2000_PART_2_MULTICOMPONENT_IMAGE_COMPRESSION: string; - let // (undocumented) - JPIP_REFERENCED: string; - let // (undocumented) - JPIP_REFERENCED_DEFLATE: string; - let // (undocumented) - MPEG2_MAIN_PROFILE_MAIN_LEVEL: string; - let // (undocumented) - MPEG4_AVC_H264_HIGH_PROFILE_LEVEL_4_1: string; - let // (undocumented) - MPEG4_AVC_H264_BD_COMPATIBLE_HIGH_PROFILE_LEVEL_4_1: string; - let // (undocumented) - MPEG4_AVC_H264_HIGH_PROFILE_FOR_2D_VIDEO: string; - let // (undocumented) - MPEG4_AVC_H264_HIGH_PROFILE_FOR_3D_VIDEO: string; - let // (undocumented) - JPIP_LOSSLESS: string; - let // (undocumented) - JPIP_PART2_MULTICOMPONENT_IMAGE_COMPRESSION: string; - let // (undocumented) - RFC_2557_MIME_ENCAPSULATION: string; - let // (undocumented) - JPEG_XR_IMAGE_COMPRESSION: string; - let // (undocumented) - JPEG_2000_IMAGE_COMPRESSION_LOSSLESS_ONLY_RETIRED: string; - let // (undocumented) - JPEG_2000_IMAGE_COMPRESSION_RETIRED: string; - let // (undocumented) - JPEG_2000_PART_2_MULTICOMPONENT_IMAGE_COMPRESSION_LOSSLESS_ONLY_RETIRED: string; - let // (undocumented) - JPEG_2000_PART_2_MULTICOMPONENT_IMAGE_COMPRESSION_RETIRED: string; -} - -declare namespace Types { - export { - LoaderDecodeOptions, - LoaderOptions, - WADORSMetaData, - WADORSMetaDataElement, - LoaderXhrRequestError, - LoaderXhrRequestParams, - LoaderXhrRequestPromise, - DICOMLoaderIImage, - DICOMLoaderImageOptions, - LutType, - WebWorkerOptions, - WebWorkerDecodeConfig, - WebWorkerTaskOptions, - WorkerTaskTypes, - WorkerTask, - WebWorkerDecodeTaskData, - WebWorkerDecodeData, - WebWorkerLoadData, - WebWorkerInitializeData, - WebWorkerData, - WebWorkerResponse, - WebWorkerDeferredObject, - LoadRequestFunction, - DICOMLoaderDataSetWithFetchMore - } -} -export { Types } - -// @public (undocumented) -export const wadors: { - metaData: { - getNumberString: typeof getNumberString; - getNumberValue: typeof getNumberValue; - getNumberValues: typeof getNumberValues_2; - getValue: typeof getValue_2; - metaDataProvider: typeof metaDataProvider_2; - }; - findIndexOfString: typeof findIndexOfString; - getPixelData: typeof getPixelData; - loadImage: typeof loadImage_2; - metaDataManager: { - add: (imageId: string, metadata: WADORSMetaData) => void; - get: (imageId: string) => WADORSMetaData; - remove: (imageId: any) => void; - purge: () => void; - }; - register: typeof default_3; -}; - -// @public (undocumented) -type WADORSMetaData = Record; - -// @public (undocumented) -interface WADORSMetaDataElement { - // (undocumented) - Value: ValueType; -} - -// @public (undocumented) -export const wadouri: { - metaData: { - getImagePixelModule: typeof getImagePixelModule; - getLUTs: typeof getLUTs; - getModalityLUTOutputPixelRepresentation: typeof getModalityLUTOutputPixelRepresentation; - getNumberValues: typeof getNumberValues; - metaDataProvider: typeof metaDataProvider; - metadataForDataset: typeof metadataForDataset; - }; - dataSetCacheManager: { - isLoaded: (uri: string) => boolean; - load: (uri: string, loadRequest: LoadRequestFunction, imageId: string) => CornerstoneWadoLoaderCachedPromise; - unload: (uri: string) => void; - getInfo: getInfo; - purge: () => void; - get: (uri: string) => DataSet; - update: (uri: string, dataSet: DataSet) => void; - }; - fileManager: { - add: (file: Blob) => string; - get: (index: number) => Blob; - remove: (index: number) => void; - purge: () => void; - }; - getEncapsulatedImageFrame: typeof getEncapsulatedImageFrame; - getUncompressedImageFrame: typeof getUncompressedImageFrame; - loadFileRequest: typeof loadFileRequest; - loadImageFromPromise: typeof loadImageFromPromise; - getLoaderForScheme: typeof getLoaderForScheme; - getPixelData: typeof getPixelData_2; - loadImage: typeof loadImage; - parseImageId: typeof parseImageId; - unpackBinaryFrame: typeof unpackBinaryFrame; - register: typeof default_2; -}; - -// @public (undocumented) -type WebWorkerData = WebWorkerDecodeData | WebWorkerLoadData | WebWorkerInitializeData; - -// @public (undocumented) -interface WebWorkerDecodeConfig { - // (undocumented) - initializeCodecsOnStartup: boolean; - // (undocumented) - strict?: boolean; -} - -// @public (undocumented) -interface WebWorkerDecodeData { - // (undocumented) - data: WebWorkerDecodeTaskData; - // (undocumented) - taskType: 'decodeTask'; - // (undocumented) - workerIndex: number; -} - -// @public (undocumented) -interface WebWorkerDecodeTaskData { - // (undocumented) - decodeConfig: LoaderDecodeOptions; - // (undocumented) - imageFrame: Types_2.IImageFrame; - // (undocumented) - options: LoaderOptions; - // (undocumented) - pixelData: ByteArray; - // (undocumented) - transferSyntax: string; -} - -// @public (undocumented) -interface WebWorkerDeferredObject { - // (undocumented) - reject: (err: any) => void; - // (undocumented) - resolve: (arg: T | PromiseLike) => void; -} - -// @public (undocumented) -interface WebWorkerInitializeData { - // (undocumented) - config: WebWorkerOptions; - // (undocumented) - taskType: 'initialize'; - // (undocumented) - workerIndex: number; -} - -// @public (undocumented) -interface WebWorkerLoadData { - // (undocumented) - config: WebWorkerOptions; - // (undocumented) - sourcePath: string; - // (undocumented) - taskType: 'loadWebWorkerTask'; - // (undocumented) - workerIndex: number; -} - -// @public (undocumented) -interface WebWorkerOptions { - // (undocumented) - maxWebWorkers?: number; - // (undocumented) - startWebWorkersOnDemand?: boolean; - // (undocumented) - taskConfiguration?: WebWorkerTaskOptions; - // (undocumented) - webWorkerTaskPaths?: string[]; -} - -// @public (undocumented) -interface WebWorkerResponse { - // (undocumented) - data?: Types_2.IImageFrame; - // (undocumented) - result: string | Types_2.IImageFrame; - // (undocumented) - status: 'failed' | 'success'; - // (undocumented) - taskType: WorkerTaskTypes; - // (undocumented) - workerIndex: number; -} - -// @public (undocumented) -interface WebWorkerTaskOptions { - // (undocumented) - decodeTask: WebWorkerDecodeConfig; -} - -// @public (undocumented) -interface WorkerTask { - // (undocumented) - added: number; - // (undocumented) - data: WebWorkerDecodeTaskData; - // (undocumented) - deferred: WebWorkerDeferredObject; - // (undocumented) - priority: number; - // (undocumented) - start?: number; - // (undocumented) - status: 'ready' | 'success' | 'failed'; - // (undocumented) - taskId: number; - // (undocumented) - taskType: WorkerTaskTypes; - // (undocumented) - transferList: Transferable[]; -} - -// @public (undocumented) -type WorkerTaskTypes = 'decodeTask' | 'loadWebWorkerTask' | 'initialize'; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/common/reviews/api/labelmap-interpolation.api.md b/common/reviews/api/labelmap-interpolation.api.md deleted file mode 100644 index 272d39e37d..0000000000 --- a/common/reviews/api/labelmap-interpolation.api.md +++ /dev/null @@ -1,18 +0,0 @@ -## API Report File for "@cornerstonejs/labelmap-interpolation" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -// @public (undocumented) -export function interpolate({ segmentationId, segmentIndex, configuration, }: { - segmentationId: string; - segmentIndex: number; - configuration?: MorphologicalContourInterpolationOptions & { - preview: boolean; - }; -}): Promise; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/common/reviews/api/nifti-volume-loader.api.md b/common/reviews/api/nifti-volume-loader.api.md deleted file mode 100644 index a705125f62..0000000000 --- a/common/reviews/api/nifti-volume-loader.api.md +++ /dev/null @@ -1,68 +0,0 @@ -## API Report File for "@cornerstonejs/nifti-volume-loader" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { mat4 } from 'gl-matrix'; -import type { Range as Range_2 } from '@kitware/vtk.js/types'; -import type vtkActor from '@kitware/vtk.js/Rendering/Core/Actor'; -import type { vtkCamera } from '@kitware/vtk.js/Rendering/Core/Camera'; -import { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData'; -import type vtkImageSlice from '@kitware/vtk.js/Rendering/Core/ImageSlice'; -import type { vtkObject } from '@kitware/vtk.js/interfaces'; -import type vtkOpenGLTexture from '@kitware/vtk.js/Rendering/OpenGL/Texture'; -import vtkPlane from '@kitware/vtk.js/Common/DataModel/Plane'; -import type vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer'; -import type vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume'; - -// @public (undocumented) -export function cornerstoneNiftiImageLoader(imageId: string): Types.IImageLoadObject; - -// @public (undocumented) -export function createNiftiImageIdsAndCacheMetadata({ url }: { - url: any; -}): Promise; - -declare namespace Enums { - export { - Events - } -} -export { Enums } - -// @public (undocumented) -enum Events { - // (undocumented) - NIFTI_VOLUME_LOADED = "CORNERSTONE_NIFTI_VOLUME_LOADED", - // (undocumented) - NIFTI_VOLUME_PROGRESS = "CORNERSTONE_NIFTI_VOLUME_PROGRESS" -} - -declare namespace helpers { - export { - modalityScaleNifti, - makeVolumeMetadata - } -} -export { helpers } - -// @public (undocumented) -export function init(options?: LoaderOptions): void; - -// @public (undocumented) -function makeVolumeMetadata(niftiHeader: any, orientation: any, pixelRepresentation: any): { - volumeMetadata: Types.Metadata; - dimensions: Types.Point3; - direction: Types.Mat3; -}; - -// @public (undocumented) -function modalityScaleNifti(niftiHeader: any, niftiImageBuffer: any): { - scalarData: Types.PixelDataTypedArray; - pixelRepresentation: number; -}; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/common/reviews/api/polymorphic-segmentation.api.md b/common/reviews/api/polymorphic-segmentation.api.md deleted file mode 100644 index c2de14194a..0000000000 --- a/common/reviews/api/polymorphic-segmentation.api.md +++ /dev/null @@ -1,48 +0,0 @@ -## API Report File for "@cornerstonejs/polymorphic-segmentation" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type ColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; -import type { mat3 } from 'gl-matrix'; -import { mat4 } from 'gl-matrix'; -import type { Range as Range_2 } from '@kitware/vtk.js/types'; -import { vec3 } from 'gl-matrix'; -import type vtkActor from '@kitware/vtk.js/Rendering/Core/Actor'; -import type { vtkCamera } from '@kitware/vtk.js/Rendering/Core/Camera'; -import { vtkColorTransferFunction } from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; -import { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData'; -import type vtkImageSlice from '@kitware/vtk.js/Rendering/Core/ImageSlice'; -import type { vtkObject } from '@kitware/vtk.js/interfaces'; -import type vtkOpenGLTexture from '@kitware/vtk.js/Rendering/OpenGL/Texture'; -import type vtkPiecewiseFunction from '@kitware/vtk.js/Common/DataModel/PiecewiseFunction'; -import vtkPlane from '@kitware/vtk.js/Common/DataModel/Plane'; -import type vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer'; -import type vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume'; - -// @public (undocumented) -export function canComputeRequestedRepresentation(segmentationId: string, type: typeof SegmentationRepresentations): boolean; - -// @public (undocumented) -export function computeContourData(segmentationId: string, options?: PolySegConversionOptions): Promise<{ - annotationUIDsMap: Map>; -}>; - -// @public (undocumented) -export function computeLabelmapData(segmentationId: string, options?: PolySegConversionOptions): Promise; - -// @public (undocumented) -export function computeSurfaceData(segmentationId: string, options?: PolySegConversionOptions): Promise<{ - geometryIds: Map; -}>; - -// @public (undocumented) -export function init(): void; - -// @public (undocumented) -export function updateSurfaceData(segmentationId: any): Promise; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/common/reviews/api/tools.api.md b/common/reviews/api/tools.api.md deleted file mode 100644 index 44e8aa903d..0000000000 --- a/common/reviews/api/tools.api.md +++ /dev/null @@ -1,7183 +0,0 @@ -## API Report File for "@cornerstonejs/tools" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type ColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; -import { Corners } from '@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget/Constants'; -import type { IColorMapPreset } from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps'; -import type { mat3 } from 'gl-matrix'; -import { mat4 } from 'gl-matrix'; -import type { Range as Range_2 } from '@kitware/vtk.js/types'; -import { vec3 } from 'gl-matrix'; -import type vtkActor from '@kitware/vtk.js/Rendering/Core/Actor'; -import vtkAnnotatedCubeActor from '@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor'; -import type { vtkCamera } from '@kitware/vtk.js/Rendering/Core/Camera'; -import { vtkColorTransferFunction } from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; -import { vtkImageData } from '@kitware/vtk.js/Common/DataModel/ImageData'; -import type vtkImageSlice from '@kitware/vtk.js/Rendering/Core/ImageSlice'; -import type { vtkObject } from '@kitware/vtk.js/interfaces'; -import type vtkOpenGLTexture from '@kitware/vtk.js/Rendering/OpenGL/Texture'; -import type vtkPiecewiseFunction from '@kitware/vtk.js/Common/DataModel/PiecewiseFunction'; -import vtkPlane from '@kitware/vtk.js/Common/DataModel/Plane'; -import type vtkPolyData from '@kitware/vtk.js/Common/DataModel/PolyData'; -import type vtkRenderer from '@kitware/vtk.js/Rendering/Core/Renderer'; -import type vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume'; - -declare namespace aabb { - export { - intersectAABB, - distanceToPoint, - distanceToPointSquared - } -} - -// @public (undocumented) -function acceptAutogeneratedInterpolations(annotationGroupSelector: AnnotationGroupSelector, selector: AcceptInterpolationSelector): void; - -declare namespace activeSegmentation { - export { - getActiveSegmentation, - setActiveSegmentation - } -} - -// @public (undocumented) -const addCanvasPointsToArray: (element: HTMLDivElement, canvasPoints: Types_2.Point2[], newCanvasPoint: Types_2.Point2, commonData: PlanarFreehandROICommonData) => number; - -// @public (undocumented) -function addColorLUT(colorLUT: Types_2.ColorLUT, index?: number): number; - -// @public (undocumented) -function addColorLUT_2(colorLUT: Types_2.ColorLUT, colorLUTIndex?: number): number; - -// @public (undocumented) -function addContourRepresentationToViewport(viewportId: string, contourInputArray: RepresentationPublicInput[]): void; - -// @public (undocumented) -function addContourRepresentationToViewportMap(viewportInputMap: { - [viewportId: string]: RepresentationPublicInput[]; -}): {}; - -// @public (undocumented) -function addContourSegmentationAnnotation(annotation: ContourSegmentationAnnotation): void; - -// @public (undocumented) -function addEnabledElement(evt: Types_2.EventTypes.ElementEnabledEvent): void; - -// @public (undocumented) -function addLabelmapRepresentationToViewport(viewportId: string, labelmapInputArray: RepresentationPublicInput[]): void; - -// @public (undocumented) -function addLabelmapRepresentationToViewportMap(viewportInputMap: { - [viewportId: string]: RepresentationPublicInput[]; -}): void; - -// @public (undocumented) -function addSegmentationRepresentations(viewportId: string, segmentationInputArray: RepresentationPublicInput[]): void; - -// @public (undocumented) -function addSegmentations(segmentationInputArray: SegmentationPublicInput[], suppressEvents?: boolean): void; - -// @public (undocumented) -function addSurfaceRepresentationToViewport(viewportId: string, surfaceInputArray: RepresentationPublicInput[]): void; - -// @public (undocumented) -function addSurfaceRepresentationToViewportMap(viewportInputMap: { - [viewportId: string]: RepresentationPublicInput[]; -}): {}; - -// @public (undocumented) -export function addTool(ToolClass: any): void; - -// @public (undocumented) -function addToolState(element: HTMLDivElement, data: CINETypes.ToolData): void; - -// @public (undocumented) -interface AdvancedMagnifyAnnotation extends Annotation { - // (undocumented) - data: { - zoomFactor: number; - sourceViewportId: string; - magnifyViewportId: string; - isCanvasAnnotation: boolean; - handles: { - points: [Types_2.Point3, Types_2.Point3, Types_2.Point3, Types_2.Point3]; - activeHandleIndex: number | null; - }; - }; -} - -// @public (undocumented) -export class AdvancedMagnifyTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - static Actions: typeof AdvancedMagnifyToolActions; - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => AdvancedMagnifyAnnotation; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragDrawCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragHandle: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragModifyCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: Array; - handleIndex?: number; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: AdvancedMagnifyAnnotation, handle: ToolHandle) => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: AdvancedMagnifyAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - magnifyViewportManager: MagnifyViewportManager; - // (undocumented) - onSetToolDisabled: () => void; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - showZoomFactorsList(evt: EventTypes_2.InteractionEventType, annotation: AdvancedMagnifyAnnotation): void; - // (undocumented) - static toolName: any; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: AdvancedMagnifyAnnotation) => void; -} - -declare namespace angle { - export { - angleBetweenLines - } -} - -// @public (undocumented) -interface AngleAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - label: string; - cachedStats: { - [targetId: string]: { - angle: number; - }; - }; - }; -} - -// @public (undocumented) -function angleBetweenLines(line1: Line, line2: Line): number; - -// @public (undocumented) -export class AngleTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _activateModify: (element: HTMLDivElement) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => AngleAnnotation; - // (undocumented) - angleStartedNotYetCompleted: boolean; - // (undocumented) - _calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any): any; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _deactivateModify: (element: HTMLDivElement) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: AngleAnnotation, handle: ToolHandle): void; - // (undocumented) - static hydrate: (viewportId: string, points: Types_2.Point3[], options?: { - annotationUID?: string; - }) => AngleAnnotation; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: AngleAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: AngleAnnotation) => void; -} - -// @public (undocumented) -type Annotation = { - annotationUID?: string; - parentAnnotationUID?: string; - interpolationUID?: string; - childAnnotationUIDs?: string[]; - highlighted?: boolean; - isLocked?: boolean; - isVisible?: boolean; - invalidated?: boolean; - isSelected?: boolean; - autoGenerated?: boolean; - metadata: Types_2.ViewReference & { - toolName: string; - cameraPosition?: Types_2.Point3; - viewUp?: Types_2.Point3; - }; - data: { - handles?: { - points?: Types_2.Point3[]; - activeHandleIndex?: number | null; - textBox?: { - hasMoved?: boolean; - worldPosition?: Types_2.Point3; - worldBoundingBox?: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - [key: string]: unknown; - }; - [key: string]: unknown; - cachedStats?: Record; - }; -}; - -declare namespace annotation { - export { - config, - locking, - selection, - state_2 as state, - visibility, - FrameOfReferenceSpecificAnnotationManager, - AnnotationGroup - } -} -export { annotation } - -// @public (undocumented) -type AnnotationAddedEventDetail = { - viewportId?: string; - renderingEngineId?: string; - annotation: Annotation; -}; - -// @public (undocumented) -type AnnotationAddedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type AnnotationCompletedEventDetail = { - annotation: Annotation; - changeType?: ChangeTypes.Completed; -}; - -// @public (undocumented) -type AnnotationCompletedEventType = Types_2.CustomEventType; - -// @public (undocumented) -export abstract class AnnotationDisplayTool extends BaseTool { - // (undocumented) - protected createAnnotation(evt: EventTypes_2.InteractionEventType): Annotation; - // (undocumented) - filterInteractableAnnotationsForElement(element: HTMLDivElement, annotations: Annotations): Annotations; - // (undocumented) - protected getReferencedImageId(viewport: Types_2.IViewport, worldPos: Types_2.Point3, viewPlaneNormal: Types_2.Point3, viewUp?: Types_2.Point3): string; - // (undocumented) - getStyle(property: string, specifications: StyleSpecifier, annotation?: Annotation): unknown; - // (undocumented) - onImageSpacingCalibrated: (evt: Types_2.EventTypes.ImageSpacingCalibratedEvent) => void; - // (undocumented) - abstract renderAnnotation(enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper): any; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -class AnnotationGroup { - constructor(); - // (undocumented) - add(...annotationUIDs: string[]): void; - // (undocumented) - clear(): void; - // (undocumented) - findNearby(uid: string, direction: 1): string; - // (undocumented) - has(uid: string): boolean; - // (undocumented) - get isVisible(): boolean; - // (undocumented) - remove(...annotationUIDs: string[]): void; - // (undocumented) - setVisible(isVisible: boolean, baseEvent: BaseEventDetail, filter?: (annotationUID: string) => boolean): void; - // (undocumented) - protected unboundVisibleFilter(uid: string): boolean; - // (undocumented) - visibleFilter: (uid: string) => boolean; -} - -// @public (undocumented) -type AnnotationGroupSelector = HTMLDivElement | string; - -// @public (undocumented) -type AnnotationHandle = Types_2.Point3; - -// @public (undocumented) -function annotationHydration(viewport: Types_2.IViewport, toolName: string, worldPoints: Types_2.Point3[], options?: { - FrameOfReferenceUID?: string; - annotationUID?: string; -}): Annotation; - -// @public (undocumented) -type AnnotationInterpolationCompletedEventDetail = { - annotation: InterpolationROIAnnotation; - element: HTMLDivElement; - viewportId: string; - renderingEngineId: string; -}; - -// @public (undocumented) -type AnnotationInterpolationCompletedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type AnnotationInterpolationRemovedEventDetail = { - annotations: Array; - element: HTMLDivElement; - viewportId: string; - renderingEngineId: string; -}; - -// @public (undocumented) -type AnnotationInterpolationRemovedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type AnnotationLockChangeEventDetail = { - added: Array; - removed: Array; - locked: Array; -}; - -// @public (undocumented) -type AnnotationLockChangeEventType = Types_2.CustomEventType; - -// @public (undocumented) -type AnnotationModifiedEventDetail = { - annotation: Annotation; - changeType?: ChangeTypes; - viewportId?: string; - renderingEngineId?: string; -}; - -// @public (undocumented) -type AnnotationModifiedEventType = Types_2.CustomEventType; - -// @public (undocumented) -class AnnotationMultiSlice { - // (undocumented) - static getFrameRange(annotation: Annotation): number | [number, number]; - // (undocumented) - static getFrameRangeStr(annotation: Annotation): string; - // (undocumented) - static setEndRange(viewport: any, annotation: any, endRange?: any): void; - // (undocumented) - static setRange(viewport: any, annotation: any, startRange?: number, endRange?: number): void; - // (undocumented) - static setSingle(viewport: any, annotation: any, current?: any): void; - // (undocumented) - static setStartRange(viewport: any, annotation: any, startRange?: any): void; - // (undocumented) - static setViewportFrameRange(viewport: any, specifier: any): void; -} - -// @public (undocumented) -type AnnotationRemovedEventDetail = { - annotation: Annotation; - annotationManagerUID: string; -}; - -// @public (undocumented) -type AnnotationRemovedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type AnnotationRenderContext = { - enabledElement: Types_2.IEnabledElement; - targetId: string; - annotation: Annotation; - annotationStyle: AnnotationStyle; - svgDrawingHelper: SVGDrawingHelper; -}; - -// @public (undocumented) -type AnnotationRenderedEventDetail = { - element: HTMLDivElement; - viewportId: string; - renderingEngineId: string; -}; - -// @public (undocumented) -type AnnotationRenderedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type Annotations = Array; - -// @public (undocumented) -type AnnotationSelectionChangeEventDetail = { - added: Array; - removed: Array; - selection: Array; -}; - -// @public (undocumented) -type AnnotationSelectionChangeEventType = Types_2.CustomEventType; - -// @public (undocumented) -type AnnotationState = { - [key: string]: GroupSpecificAnnotations; -}; - -// @public (undocumented) -type AnnotationStyle = { - [key in `${Properties}${States}${Modes}`]?: string | number | boolean | Record; -}; - -declare namespace AnnotationStyle_2 { - export { - AnnotationStyle, - ToolStyleConfig, - StyleConfig, - StyleSpecifier - } -} - -// @public (undocumented) -enum AnnotationStyleStates { - // (undocumented) - AutoGenerated = "AutoGenerated", - // (undocumented) - Default = "", - // (undocumented) - Highlighted = "Highlighted", - // (undocumented) - Locked = "Locked", - // (undocumented) - Selected = "Selected" -} - -// @public (undocumented) -export abstract class AnnotationTool extends AnnotationDisplayTool { - constructor(toolProps: PublicToolProps, defaultToolProps: ToolProps); - // (undocumented) - abstract addNewAnnotation(evt: EventTypes_2.InteractionEventType, interactionType: InteractionTypes): Annotation; - // (undocumented) - abstract cancel(element: HTMLDivElement): any; - // (undocumented) - static createAndAddAnnotation(viewport: any, ...annotationBaseData: any[]): void; - // (undocumented) - static createAnnotation(...annotationBaseData: any[]): Annotation; - // (undocumented) - static createAnnotationForViewport(viewport: any, ...annotationBaseData: any[]): T; - // (undocumented) - static createAnnotationMemo(element: any, annotation: Annotation, options?: { - newAnnotation?: boolean; - deleting?: boolean; - }): { - restoreMemo: () => void; - }; - // (undocumented) - protected static createAnnotationState(annotation: Annotation, deleting?: boolean): { - annotationUID: string; - data: { - [key: string]: unknown; - handles?: { - points?: Types_2.Point3[]; - activeHandleIndex?: number | null; - textBox?: { - hasMoved?: boolean; - worldPosition?: Types_2.Point3; - worldBoundingBox?: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - [key: string]: unknown; - }; - cachedStats?: Record; - }; - deleting: boolean; - }; - // (undocumented) - protected createMemo(element: any, annotation: any, options?: any): void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender?: string[]; - newAnnotation?: boolean; - handleIndex?: number; - movingTextBox?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - protected eventDispatchDetail: { - viewportId: string; - renderingEngineId: string; - }; - // (undocumented) - protected getAnnotationStyle(context: { - annotation: Annotation; - styleSpecifier: StyleSpecifier; - }): AnnotationStyle; - // (undocumented) - getHandleNearImagePoint(element: HTMLDivElement, annotation: Annotation, canvasCoords: Types_2.Point2, proximity: number): ToolHandle | undefined; - // (undocumented) - getLinkedTextBoxStyle(specifications: StyleSpecifier, annotation?: Annotation): Record; - // (undocumented) - abstract handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: Annotation, handle: ToolHandle, interactionType: InteractionTypes): void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - abstract isPointNearTool(element: HTMLDivElement, annotation: Annotation, canvasCoords: Types_2.Point2, proximity: number, interactionType: string): boolean; - // (undocumented) - static isSuvScaled(viewport: Types_2.IStackViewport | Types_2.IVolumeViewport, targetId: string, imageId?: string): boolean; - // (undocumented) - isSuvScaled: typeof AnnotationTool.isSuvScaled; - // (undocumented) - mouseMoveCallback: (evt: EventTypes_2.MouseMoveEventType, filteredAnnotations?: Annotations) => boolean; - // (undocumented) - static toolName: any; - // (undocumented) - abstract toolSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: Annotation, interactionType: InteractionTypes, canvasCoords?: Types_2.Point2): void; -} - -// @public (undocumented) -class AnnotationToPointData { - constructor(); - // (undocumented) - static convert(annotation: any, index: any, metadataProvider: any): { - ReferencedROINumber: any; - ROIDisplayColor: number[]; - ContourSequence: any; - }; - // (undocumented) - static register(toolClass: any): void; - // (undocumented) - static TOOL_NAMES: Record; -} - -// @public (undocumented) -type AnnotationVisibilityChangeEventDetail = { - lastHidden: Array; - lastVisible: Array; - hidden: Array; -}; - -// @public (undocumented) -type AnnotationVisibilityChangeEventType = Types_2.CustomEventType; - -// @public (undocumented) -function areCoplanarContours(firstAnnotation: ContourAnnotation, secondAnnotation: ContourAnnotation): boolean; - -// @public (undocumented) -function areSameSegment(firstAnnotation: ContourSegmentationAnnotation, secondAnnotation: ContourSegmentationAnnotation): boolean; - -// @public (undocumented) -export class ArrowAnnotateTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _activateModify: (element: HTMLDivElement) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => ArrowAnnotation; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _deactivateModify: (element: HTMLDivElement) => void; - // (undocumented) - _doneChangingTextCallback(element: any, annotation: any, updatedText: any): void; - // (undocumented) - doubleClickCallback: (evt: EventTypes_2.TouchTapEventType) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: ArrowAnnotation, handle: ToolHandle): void; - // (undocumented) - static hydrate: (viewportId: string, points: Types_2.Point3[], text?: string, options?: { - annotationUID?: string; - }) => ArrowAnnotation; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume(index1: any, index2: any, dimensions: any): boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: ArrowAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: ArrowAnnotation) => void; - // (undocumented) - touchTapCallback: (evt: EventTypes_2.TouchTapEventType) => void; -} - -// @public (undocumented) -interface ArrowAnnotation extends Annotation { - // (undocumented) - data: { - text: string; - handles: { - points: Types_2.Point3[]; - arrowFirst: boolean; - activeHandleIndex: number | null; - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - }; -} - -// @public (undocumented) -type BaseLabelmapStyle = { - renderOutline?: boolean; - outlineWidth?: number; - activeSegmentOutlineWidthDelta?: number; - renderFill?: boolean; - fillAlpha?: number; - outlineOpacity?: number; -}; - -// @public (undocumented) -export abstract class BaseTool { - constructor(toolProps: PublicToolProps, defaultToolProps: ToolProps); - // (undocumented) - applyActiveStrategy(enabledElement: Types_2.IEnabledElement, operationData: unknown): any; - // (undocumented) - applyActiveStrategyCallback(enabledElement: Types_2.IEnabledElement, operationData: unknown, callbackType: StrategyCallbacks | string, ...extraArgs: any[]): any; - // (undocumented) - configuration: Record; - // (undocumented) - static createZoomPanMemo(viewport: any): { - restoreMemo: () => void; - }; - // (undocumented) - static defaults: { - configuration: { - strategies: {}; - defaultStrategy: any; - activeStrategy: any; - strategyOptions: {}; - }; - }; - // (undocumented) - doneEditMemo(): void; - // (undocumented) - protected getTargetId(viewport: Types_2.IViewport): string | undefined; - // (undocumented) - protected getTargetImageData(targetId: string): Types_2.IImageData | Types_2.CPUIImageData; - // (undocumented) - getToolName(): string; - // (undocumented) - protected memo: utilities_2.HistoryMemo.Memo; - // (undocumented) - static mergeDefaultProps(defaultProps?: {}, additionalProps?: any): any; - // (undocumented) - mode: ToolModes; - // (undocumented) - redo(): void; - // (undocumented) - setActiveStrategy(strategyName: string): void; - // (undocumented) - setConfiguration(newConfiguration: Record): void; - // (undocumented) - supportedInteractionTypes: InteractionTypes[]; - // (undocumented) - toolGroupId: string; - // (undocumented) - static toolName: any; - // (undocumented) - get toolName(): string; - // (undocumented) - undo(): void; -} - -declare namespace BasicStatsCalculator { - export { - BasicStatsCalculator_2 as BasicStatsCalculator, - Calculator - } -} - -// @public (undocumented) -class BasicStatsCalculator_2 extends Calculator { - // (undocumented) - static getStatistics: (options?: { - unit: string; - }) => NamedStatistics; - // (undocumented) - static statsCallback: ({ value: newValue, pointLPS, pointIJK, }: { - value: any; - pointLPS?: any; - pointIJK?: any; - }) => void; - // (undocumented) - static statsInit(options: { - storePointData: boolean; - }): void; -} - -// @public (undocumented) -interface BidirectionalAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - label: string; - cachedStats: { - [targetId: string]: { - length: number; - width: number; - unit: string; - }; - }; - }; -} - -// @public (undocumented) -type BidirectionalData = { - majorAxis: [Types_2.Point3, Types_2.Point3]; - minorAxis: [Types_2.Point3, Types_2.Point3]; - maxMajor: number; - maxMinor: number; - segmentIndex: number; - label?: string; - color?: string | number[]; - referencedImageId: string; - sliceIndex: number; -}; - -// @public (undocumented) -export class BidirectionalTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation(evt: EventTypes_2.InteractionEventType): BidirectionalAnnotation; - // (undocumented) - _calculateCachedStats: (annotation: any, renderingEngine: any, enabledElement: any) => any; - // (undocumented) - _calculateLength(pos1: any, pos2: any): number; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragDrawCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragModifyCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragModifyHandle: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _getSignedAngle: (vector1: any, vector2: any) => number; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: BidirectionalAnnotation, handle: ToolHandle) => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume: (index1: any, index2: any, index3: any, index4: any, dimensions: any) => boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: BidirectionalAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - _movingLongAxisWouldPutItThroughShortAxis: (firstLineSegment: any, secondLineSegment: any) => boolean; - // (undocumented) - preventHandleOutsideImage: boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: BidirectionalAnnotation) => void; -} - -declare namespace boundingBox { - export { - extend2DBoundingBoxInViewAxis, - getBoundingBoxAroundShapeIJK, - getBoundingBoxAroundShapeWorld, - getBoundingBoxAroundShapeIJK as getBoundingBoxAroundShape - } -} - -// @public (undocumented) -type BoundsIJK_2 = Types_2.BoundsIJK; - -// @public (undocumented) -export class BrushTool extends LabelmapBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - acceptPreview(element?: HTMLDivElement): void; - // (undocumented) - getStatistics(element: any, segmentIndices?: any): any; - // (undocumented) - interpolate(element: any, config: any): void; - // (undocumented) - invalidateBrushCursor(): void; - // (undocumented) - mouseMoveCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - onSetToolDisabled: (evt: any) => void; - // (undocumented) - onSetToolEnabled: () => void; - // (undocumented) - onSetToolPassive: (evt: any) => void; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.MouseDownActivateEventType) => boolean; - // (undocumented) - previewCallback: () => void; - // (undocumented) - rejectPreview(element?: HTMLDivElement): void; - // (undocumented) - renderAnnotation(enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper): void; - // (undocumented) - static toolName: any; - // (undocumented) - protected updateCursor(evt: EventTypes_2.InteractionEventType): void; -} - -// @public (undocumented) -class BSpline extends CubicSpline { - // (undocumented) - protected getTransformMatrix(): number[]; -} - -// @public (undocumented) -function calculateMinMaxMean(pixelLuminance: any, globalMin: any, globalMax: any): { - min: any; - max: any; - mean: number; -}; - -// @public (undocumented) -function calculatePerimeter(polyline: number[][], closed: boolean): number; - -// @public (undocumented) -abstract class Calculator { - // (undocumented) - static getStatistics: () => NamedStatistics; - // (undocumented) - static run: ({ value }: { - value: any; - }) => void; -} - -// @public (undocumented) -function calibrateImageSpacing(imageId: string, renderingEngine: Types_2.IRenderingEngine, calibrationOrScale: Types_2.IImageCalibration | number): void; - -// @public (undocumented) -export function cancelActiveManipulations(element: HTMLDivElement): string | undefined; - -// @public (undocumented) -type CanvasCoordinates = [ -Types_2.Point2, -Types_2.Point2, -Types_2.Point2, -Types_2.Point2 -]; - -// @public (undocumented) -class CardinalSpline extends CubicSpline { - constructor(props?: CardinalSplineProps); - // (undocumented) - get fixedScale(): boolean; - // (undocumented) - protected getTransformMatrix(): number[]; - // (undocumented) - get scale(): number; - set scale(scale: number); -} - -// @public (undocumented) -type CardinalSplineProps = SplineProps & { - scale?: number; - fixedScale?: boolean; -}; - -// @public (undocumented) -class CatmullRomSpline extends CardinalSpline { - constructor(); -} - -// @public (undocumented) -enum ChangeTypes { - // (undocumented) - Completed = "Completed", - // (undocumented) - HandlesUpdated = "HandlesUpdated", - // (undocumented) - History = "History", - // (undocumented) - InitialSetup = "InitialSetup", - // (undocumented) - Interaction = "Interaction", - // (undocumented) - InterpolationUpdated = "InterpolationUpdated", - // (undocumented) - MetadataReferenceModified = "MetadataReferenceModified", - // (undocumented) - StatsUpdated = "StatsUpdated" -} - -// @public (undocumented) -enum ChangeTypes_2 { - // (undocumented) - COMPUTE_STATISTICS = "Computing Statistics", - // (undocumented) - INTERPOLATE_LABELMAP = "Interpolating Labelmap", - // (undocumented) - POLYSEG_CONTOUR_TO_LABELMAP = "Converting Contour to Labelmap", - // (undocumented) - POLYSEG_CONTOUR_TO_SURFACE = "Converting Contour to Surface", - // (undocumented) - POLYSEG_LABELMAP_TO_SURFACE = "Converting Labelmap to Surface", - // (undocumented) - POLYSEG_SURFACE_TO_LABELMAP = "Converting Surfaces to Labelmap", - // (undocumented) - SURFACE_CLIPPING = "Clipping Surfaces" -} - -// @public (undocumented) -function checkAndSetAnnotationLocked(annotationUID: string): boolean; - -// @public (undocumented) -function checkAndSetAnnotationVisibility(annotationUID: string): boolean; - -// @public (undocumented) -function checkStandardBasis(directions: number[]): RotationMatrixInformation; - -declare namespace cine { - export { - playClip, - stopClip, - Events_3 as Events, - getToolState, - addToolState - } -} - -// @public (undocumented) -type CinePlayContext = { - get numScrollSteps(): number; - get currentStepIndex(): number; - get frameTimeVectorEnabled(): boolean; - waitForRenderedCount?: number; - scroll(delta: number): void; - play?(fps?: number): number; -}; - -declare namespace CINETypes { - export { - PlayClipOptions, - ToolData, - CinePlayContext - } -} - -declare namespace circle { - export { - getCanvasCircleRadius, - getCanvasCircleCorners - } -} - -// @public (undocumented) -interface CircleROIAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: [Types_2.Point3, Types_2.Point3]; - activeHandleIndex: number | null; - textBox?: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - label: string; - cachedStats?: (ROICachedStats & { - [targetId: string]: { - radius: number; - radiusUnit: string; - perimeter: number; - }; - }) | { - pointsInVolume: Types_2.Point3[]; - projectionPoints: Types_2.Point3[][]; - }; - }; -} - -// @public (undocumented) -interface CircleROIStartEndThresholdAnnotation extends Annotation { - // (undocumented) - data: { - label: string; - startCoordinate: number; - endCoordinate: number; - cachedStats?: { - pointsInVolume: Types_2.Point3[]; - projectionPoints: Types_2.Point3[][]; - statistics?: ROICachedStats; - }; - handles: { - points: [Types_2.Point3, Types_2.Point3]; - activeHandleIndex: number | null; - textBox?: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - }; - // (undocumented) - metadata: { - cameraPosition?: Types_2.Point3; - cameraFocalPoint?: Types_2.Point3; - viewPlaneNormal?: Types_2.Point3; - viewUp?: Types_2.Point3; - annotationUID?: string; - FrameOfReferenceUID: string; - referencedImageId?: string; - toolName: string; - enabledElement: Types_2.IEnabledElement; - volumeId: string; - spacingInNormal: number; - }; -} - -// @public (undocumented) -export class CircleROIStartEndThresholdTool extends CircleROITool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => { - highlighted: boolean; - invalidated: boolean; - metadata: { - toolName: string; - viewPlaneNormal: Types_2.Point3; - viewUp: Types_2.Point3; - FrameOfReferenceUID: string; - referencedImageId: any; - volumeId: any; - spacingInNormal: number; - enabledElement: Types_2.IEnabledElement; - }; - data: { - label: string; - startCoordinate: number; - endCoordinate: number; - handles: { - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - points: [Types_2.Point3, Types_2.Point3]; - activeHandleIndex: any; - }; - cachedStats: { - pointsInVolume: any[]; - projectionPoints: any[]; - statistics: ROICachedStats; - }; - labelmapUID: any; - }; - }; - // (undocumented) - _calculateCachedStatsTool(annotation: any, enabledElement: any): any; - // (undocumented) - _computePointsInsideVolume(annotation: any, imageVolume: any, targetId: any, enabledElement: any): void; - // (undocumented) - _computeProjectionPoints(annotation: CircleROIStartEndThresholdAnnotation, imageVolume: Types_2.IImageVolume): void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: Array; - handleIndex?: number; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _getCoordinateForViewplaneNormal(pos: vec3 | number, viewPlaneNormal: Types_2.Point3): number | undefined; - // (undocumented) - _getEndCoordinate(worldPos: Types_2.Point3, spacingInNormal: number, viewPlaneNormal: Types_2.Point3): number | undefined; - // (undocumented) - _getIndexOfCoordinatesForViewplaneNormal(viewPlaneNormal: Types_2.Point3): number; - // (undocumented) - _getStartCoordinate(worldPos: Types_2.Point3, spacingInNormal: number, viewPlaneNormal: Types_2.Point3): number | undefined; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -export class CircleROITool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => CircleROIAnnotation; - // (undocumented) - _calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any, enabledElement: any) => any; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragDrawCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragHandle: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragModifyCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: Array; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: CircleROIAnnotation, handle: ToolHandle) => void; - // (undocumented) - static hydrate: (viewportId: string, points: Types_2.Point3[], options?: { - annotationUID?: string; - }) => CircleROIAnnotation; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume: (index1: any, index2: any, dimensions: any) => boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: CircleROIAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: CircleROIAnnotation) => void; -} - -// @public (undocumented) -export class CircleScissorsTool extends LabelmapBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - segmentIndex: number; - segmentationId: string; - volumeId: string; - referencedVolumeId: string; - segmentsLocked: number[]; - segmentColor: [number, number, number, number]; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - imageId: string; - centerCanvas?: Array; - memo?: LabelmapMemo_2; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -function clip_2(a: any, b: any, box: any, da?: any, db?: any): 1 | 0; - -// @public (undocumented) -type ClosestControlPoint = ClosestPoint & { - index: number; -}; - -// @public (undocumented) -type ClosestPoint = { - point: Types_2.Point2; - distance: number; -}; - -// @public (undocumented) -type ClosestSplinePoint = ClosestPoint & { - uValue: number; -}; - -// @public (undocumented) -interface CobbAngleAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - label: string; - cachedStats: { - [targetId: string]: { - angle: number; - arc1Angle: number; - arc2Angle: number; - points: { - world: { - arc1Start: Types_2.Point3; - arc1End: Types_2.Point3; - arc2Start: Types_2.Point3; - arc2End: Types_2.Point3; - arc1Angle: number; - arc2Angle: number; - }; - canvas: { - arc1Start: Types_2.Point2; - arc1End: Types_2.Point2; - arc2Start: Types_2.Point2; - arc2End: Types_2.Point2; - arc1Angle: number; - arc2Angle: number; - }; - }; - }; - }; - }; -} - -// @public (undocumented) -export class CobbAngleTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _activateModify: (element: HTMLDivElement) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.MouseDownActivateEventType) => CobbAngleAnnotation; - // (undocumented) - angleStartedNotYetCompleted: boolean; - // (undocumented) - _calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any): any; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _deactivateModify: (element: HTMLDivElement) => void; - // (undocumented) - distanceToLines: ({ viewport, points, canvasCoords, proximity }: { - viewport: any; - points: any; - canvasCoords: any; - proximity: any; - }) => { - distanceToPoint: number; - distanceToPoint2: number; - isNearFirstLine: boolean; - isNearSecondLine: boolean; - }; - // (undocumented) - _dragCallback: (evt: EventTypes_2.MouseDragEventType | EventTypes_2.MouseMoveEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - isNearFirstLine?: boolean; - isNearSecondLine?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.MouseUpEventType | EventTypes_2.MouseClickEventType) => void; - // (undocumented) - getArcsStartEndPoints: ({ firstLine, secondLine, mid1, mid2, }: { - firstLine: any; - secondLine: any; - mid1: any; - mid2: any; - }) => { - arc1Start: Types_2.Point2; - arc1End: Types_2.Point2; - arc2Start: Types_2.Point2; - arc2End: Types_2.Point2; - arc1Angle: number; - arc2Angle: number; - }; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.MouseDownEventType, annotation: CobbAngleAnnotation, handle: ToolHandle, interactionType?: string): void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: CobbAngleAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - _mouseDownCallback: (evt: EventTypes_2.MouseUpEventType | EventTypes_2.MouseClickEventType) => void; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.MouseDownEventType, annotation: CobbAngleAnnotation, interactionType: InteractionTypes, canvasCoords: Types_2.Point2, proximity?: number) => void; -} - -declare namespace color_2 { - export { - getSegmentIndexColor, - addColorLUT_2 as addColorLUT, - setColorLUT, - setSegmentIndexColor - } -} - -// @public (undocumented) -class Colorbar extends Widget { - constructor(props: ColorbarProps); - // (undocumented) - get activeColormapName(): string; - set activeColormapName(colormapName: string); - // (undocumented) - protected createRootElement(): HTMLElement; - // (undocumented) - _createTicksBar(props: ColorbarProps): ColorbarTicks; - // (undocumented) - destroy(): void; - // (undocumented) - protected getVOIMultipliers(): [number, number]; - // (undocumented) - protected hideTicks(): void; - // (undocumented) - get imageRange(): ColorbarVOIRange; - set imageRange(imageRange: ColorbarVOIRange); - // (undocumented) - protected onContainerResize(): void; - // (undocumented) - protected onVoiChange(voiRange: ColorbarVOIRange): void; - // (undocumented) - get showFullImageRange(): boolean; - set showFullImageRange(value: boolean); - // (undocumented) - protected showTicks(): void; - // (undocumented) - get voiRange(): ColorbarVOIRange; - set voiRange(voiRange: ColorbarVOIRange); -} - -declare namespace colorbar { - export { - Types_3 as Types, - Enums_3 as Enums, - Colorbar, - ViewportColorbar - } -} - -// @public (undocumented) -type ColorbarCommonProps = { - imageRange?: ColorbarImageRange; - voiRange?: ColorbarVOIRange; - ticks?: { - position?: ColorbarRangeTextPosition; - style?: ColorbarTicksStyle; - }; - showFullPixelValueRange?: boolean; -}; - -// @public (undocumented) -type ColorbarImageRange = { - lower: number; - upper: number; -}; - -// @public (undocumented) -type ColorbarProps = (WidgetProps & ColorbarCommonProps) & { - colormaps: IColorMapPreset[]; - activeColormapName?: string; -}; - -// @public (undocumented) -enum ColorbarRangeTextPosition { - // (undocumented) - Bottom = "bottom", - // (undocumented) - Left = "left", - // (undocumented) - Right = "right", - // (undocumented) - Top = "top" -} - -// @public (undocumented) -type ColorbarSize = { - width: number; - height: number; -}; - -// @public (undocumented) -type ColorbarTicksProps = ColorbarCommonProps & { - top?: number; - left?: number; - size?: ColorbarSize; - container?: HTMLElement; -}; - -// @public (undocumented) -type ColorbarTicksStyle = { - font?: string; - color?: string; - tickSize?: number; - tickWidth?: number; - labelMargin?: number; - maxNumTicks?: number; -}; - -// @public (undocumented) -type ColorbarVOIRange = ColorbarImageRange; - -// @public (undocumented) -function computeStackLabelmapFromVolume({ volumeId, }: { - volumeId: string; -}): Promise<{ - imageIds: string[]; -}>; - -// @public (undocumented) -function computeVolumeLabelmapFromStack(args: any): Promise<{ - volumeId: string; -}>; - -declare namespace config { - export { - getState, - getFont, - toolStyle as style - } -} - -declare namespace config_2 { - export { - color_2 as color, - visibility_2 as visibility, - style - } -} - -declare namespace CONSTANTS { - export { - CORNERSTONE_COLOR_LUT as COLOR_LUT - } -} -export { CONSTANTS } - -// @public (undocumented) -function containsPoint(polyline: Types_2.Point2[], point: Types_2.Point2, options?: { - closed?: boolean; - holes?: Types_2.Point2[][]; -}): boolean; - -// @public (undocumented) -function containsPoints(polyline: Types_2.Point2[], points: Types_2.Point2[]): boolean; - -// @public (undocumented) -function contourAndFindLargestBidirectional(segmentation: any): any; - -// @public (undocumented) -type ContourAnnotation = Annotation & ContourAnnotationData; - -// @public (undocumented) -type ContourAnnotationCompletedEventDetail = AnnotationCompletedEventDetail & { - contourHoleProcessingEnabled: boolean; -}; - -// @public (undocumented) -type ContourAnnotationData = { - data: { - cachedStats?: Record; - contour: { - polyline: Types_2.Point3[]; - closed: boolean; - windingDirection?: ContourWindingDirection; - pointsManager?: Types_2.IPointsManager; - }; - }; - onInterpolationComplete?: () => void; -}; - -declare namespace contours { - export { - areCoplanarContours, - _default_2 as contourFinder, - getDeduplicatedVTKPolyDataPoints, - _default_3 as detectContourHoles, - generateContourSetsFromLabelmap, - AnnotationToPointData, - getContourHolesDataWorld, - getContourHolesDataCanvas, - updateContourPolyline, - acceptAutogeneratedInterpolations, - findHandlePolylineIndex, - calculatePerimeter - } -} - -declare namespace contourSegmentation { - export { - areSameSegment, - isContourSegmentationAnnotation, - addContourSegmentationAnnotation, - removeContourSegmentationAnnotation - } -} - -// @public (undocumented) -type ContourSegmentationAnnotation = ContourAnnotation & ContourSegmentationAnnotationData; - -// @public (undocumented) -type ContourSegmentationAnnotationData = { - autoGenerated?: boolean; - interpolationUID?: string; - interpolationCompleted?: boolean; - data: { - segmentation: { - segmentationId: string; - segmentIndex: number; - }; - contour: { - originalPolyline?: Types_2.Point3[]; - }; - }; - metadata?: { - originalToolName?: string; - }; - handles?: { - interpolationSources?: Types_2.IPointsManager[]; - }; - onInterpolationComplete?: (annotation: ContourSegmentationAnnotation) => unknown; -}; - -// @public (undocumented) -type ContourSegmentationData = { - geometryIds?: string[]; - annotationUIDsMap?: Map>; -}; - -// @public (undocumented) -type ContourStyle = BaseContourStyle & InactiveContourStyle & AutoGeneratedContourStyle; - -// @public (undocumented) -type ControlPointInfo = { - index: number; - point: Types_2.Point2; -}; - -// @public (undocumented) -function copyPoints(points: ITouchPoints): ITouchPoints; - -// @public (undocumented) -function copyPointsList(points: ITouchPoints[]): ITouchPoints[]; - -// @public (undocumented) -const CORNERSTONE_COLOR_LUT: Types_2.Color[]; - -// @public (undocumented) -function createBidirectionalToolData(bidirectionalData: BidirectionalData, viewport: any): Annotation; - -// @public (undocumented) -function createCameraPositionSynchronizer(synchronizerName: string): Synchronizer; - -// @public (undocumented) -function createImageSliceSynchronizer(synchronizerName: string): Synchronizer; - -// @public (undocumented) -function createLabelmapMemo(segmentationId: string, segmentationVoxelManager: Types_2.IVoxelManager, preview?: InitializedOperationData): { - segmentationId: string; - restoreMemo: typeof restoreMemo; - commitMemo: typeof commitMemo; - segmentationVoxelManager: Types_2.IVoxelManager; - voxelManager: Types_2.IVoxelManager; - memo: LabelmapMemo_2; - preview: InitializedOperationData; -} | { - segmentationId: string; - restoreMemo: typeof restoreMemo; - commitMemo: typeof commitMemo; - segmentationVoxelManager: Types_2.IVoxelManager; - voxelManager: utilities_2.VoxelManager; -}; - -// @public (undocumented) -function createLabelmapVolumeForViewport(input: { - viewportId: string; - renderingEngineId: string; - segmentationId?: string; - options?: Types_2.LocalVolumeOptions & { - volumeId?: string; - }; -}): Promise; - -// @public (undocumented) -function createMergedLabelmapForIndex(labelmaps: Array, segmentIndex?: number, volumeId?: string): Types_2.IImageVolume; - -// @public (undocumented) -function createPresentationViewSynchronizer(synchronizerName: string, options?: Types_2.ViewPresentation): Synchronizer; - -// @public (undocumented) -function createPresentationViewSynchronizer_2(synchronizerName: string): Synchronizer; - -// @public (undocumented) -function createPreviewMemo(segmentationId: string, preview: InitializedOperationData): { - segmentationId: string; - restoreMemo: typeof restoreMemo; - commitMemo: typeof commitMemo; - segmentationVoxelManager: Types_2.IVoxelManager; - voxelManager: Types_2.IVoxelManager; - memo: LabelmapMemo_2; - preview: InitializedOperationData; -}; - -// @public (undocumented) -function createRleMemo(segmentationId: string, segmentationVoxelManager: Types_2.IVoxelManager): { - segmentationId: string; - restoreMemo: typeof restoreMemo; - commitMemo: typeof commitMemo; - segmentationVoxelManager: Types_2.IVoxelManager; - voxelManager: utilities_2.VoxelManager; -}; - -// @public (undocumented) -const createStackImageSynchronizer: typeof createImageSliceSynchronizer; - -// @public (undocumented) -function createSynchronizer(synchronizerId: string, eventName: string, eventHandler: ISynchronizerEventHandler, options?: SynchronizerOptions): Synchronizer; - -// @public (undocumented) -function createToolGroup(toolGroupId: string): ToolGroup | undefined; - -// @public (undocumented) -function createVOISynchronizer(synchronizerName: string, options: VOISynchronizerOptions): Synchronizer; - -// @public (undocumented) -function createZoomPanSynchronizer(synchronizerName: string): Synchronizer; - -// @public (undocumented) -export class CrosshairsTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => CrosshairsAnnotation; - // (undocumented) - _applyDeltaShiftToSelectedViewportCameras(renderingEngine: any, viewportsAnnotationsToUpdate: any, delta: any): void; - // (undocumented) - _applyDeltaShiftToViewportCamera(renderingEngine: Types_2.IRenderingEngine, annotation: any, delta: any): void; - // (undocumented) - _areViewportIdArraysEqual: (viewportIdArrayOne: any, viewportIdArrayTwo: any) => boolean; - // (undocumented) - _autoPanViewportIfNecessary(viewportId: string, renderingEngine: Types_2.IRenderingEngine): void; - // (undocumented) - cancel: () => void; - // (undocumented) - _checkIfViewportsRenderingSameScene: (viewport: any, otherViewport: any) => any; - // (undocumented) - computeToolCenter: () => void; - // (undocumented) - _computeToolCenter: (viewportsInfo: any) => void; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _filterAnnotationsByUniqueViewportOrientations: (enabledElement: any, annotations: any) => any[]; - // (undocumented) - filterInteractableAnnotationsForElement: (element: any, annotations: any) => any; - // (undocumented) - _filterViewportWithSameOrientation: (enabledElement: any, referenceAnnotation: any, annotations: any) => any; - // (undocumented) - _getAnnotations: (enabledElement: Types_2.IEnabledElement) => Annotation[]; - // (undocumented) - _getAnnotationsForViewportsWithDifferentCameras: (enabledElement: any, annotations: any) => any; - // (undocumented) - getHandleNearImagePoint(element: HTMLDivElement, annotation: Annotation, canvasCoords: Types_2.Point2, proximity: number): ToolHandle | undefined; - // (undocumented) - _getReferenceLineColor?: (viewportId: string) => string; - // (undocumented) - _getReferenceLineControllable?: (viewportId: string) => boolean; - // (undocumented) - _getReferenceLineDraggableRotatable?: (viewportId: string) => boolean; - // (undocumented) - _getReferenceLineSlabThicknessControlsOn?: (viewportId: string) => boolean; - // (undocumented) - _getRotationHandleNearImagePoint(viewport: any, annotation: any, canvasCoords: any, proximity: any): any; - // (undocumented) - _getSlabThicknessHandleNearImagePoint(viewport: any, annotation: any, canvasCoords: any, proximity: any): any; - // (undocumented) - _getViewportsInfo: () => any[]; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: Annotation) => void; - // (undocumented) - initializeViewport: ({ renderingEngineId, viewportId, }: Types_2.IViewportId) => { - normal: Types_2.Point3; - point: Types_2.Point3; - }; - // (undocumented) - _isClockWise(a: any, b: any, c: any): boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: CrosshairsAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - _jump: (enabledElement: any, jumpWorld: any) => boolean; - // (undocumented) - mouseMoveCallback: (evt: EventTypes_2.MouseMoveEventType, filteredToolAnnotations: Annotations) => boolean; - // (undocumented) - onCameraModified: (evt: any) => void; - // (undocumented) - _onNewVolume: () => void; - // (undocumented) - onResetCamera: (evt: any) => void; - // (undocumented) - onSetToolActive(): void; - // (undocumented) - onSetToolDisabled(): void; - // (undocumented) - onSetToolEnabled(): void; - // (undocumented) - onSetToolPassive(): void; - // (undocumented) - _pointNearReferenceLine: (annotation: any, canvasCoords: any, proximity: any, lineViewport: any) => boolean; - // (undocumented) - _pointNearTool(element: any, annotation: any, canvasCoords: any, proximity: any): boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - resetCrosshairs: () => void; - // (undocumented) - setSlabThickness(viewport: any, slabThickness: any): void; - // (undocumented) - _subscribeToViewportNewVolumeSet(viewports: any): void; - // (undocumented) - toolCenter: Types_2.Point3; - // (undocumented) - static toolName: any; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: Annotation, interactionType: InteractionTypes) => void; - // (undocumented) - _unsubscribeToViewportNewVolumeSet(viewportsInfo: any): void; -} - -// @public (undocumented) -abstract class CubicSpline extends Spline { - // (undocumented) - protected getPreviewCurveSegments(controlPointPreview: Types_2.Point2, closeSpline: boolean): SplineCurveSegment[]; - // (undocumented) - protected getSplineCurves(): SplineCurveSegment[]; -} - -// @public (undocumented) -const CursorNames: string[]; - -declare namespace cursors { - export { - MouseCursor, - ImageMouseCursor, - SVGMouseCursor, - elementCursor, - registerCursor, - CursorNames, - CursorSVG, - setCursorForElement - } -} -export { cursors } - -// @public (undocumented) -const CursorSVG: Record; - -// @public (undocumented) -function debounce(func: Function, wait?: number, options?: { - leading?: boolean; - maxWait?: number; - trailing?: boolean; -}): Function; - -// @public (undocumented) -function decimate_2(polyline: Types_2.Point2[], epsilon?: number): Types_2.Point2[]; - -// @public (undocumented) -const _default: { - filterAnnotationsWithinSlice: typeof filterAnnotationsWithinSlice; - getWorldWidthAndHeightFromCorners: typeof getWorldWidthAndHeightFromCorners; - getWorldWidthAndHeightFromTwoPoints: typeof getWorldWidthAndHeightFromTwoPoints; - filterAnnotationsForDisplay: typeof filterAnnotationsForDisplay; - getPointInLineOfSightWithCriteria: typeof getPointInLineOfSightWithCriteria; - isPlaneIntersectingAABB: (origin: any, normal: any, minX: any, minY: any, minZ: any, maxX: any, maxY: any, maxZ: any) => boolean; - filterAnnotationsWithinSamePlane: typeof filterAnnotationsWithinSamePlane; - getPointsInLineOfSight: typeof getPointsInLineOfSight; -}; - -// @public (undocumented) -const _default_2: { - findContours: typeof findContours; - findContoursFromReducedSet: typeof findContoursFromReducedSet; -}; - -// @public (undocumented) -const _default_3: { - processContourHoles: typeof processContourHoles; -}; - -// @public (undocumented) -const _default_4: { - smoothAnnotation: typeof smoothAnnotation; -}; - -// @public (undocumented) -const defaultSegmentationStateManager: SegmentationStateManager; - -// @public (undocumented) -function deselectAnnotation(annotationUID?: string): void; - -// @public (undocumented) -export function destroy(): void; - -// @public (undocumented) -function destroy_2(): void; - -// @public (undocumented) -function destroy_3(): void; - -// @public (undocumented) -function destroy_4(): void; - -// @public (undocumented) -function destroySynchronizer(synchronizerId: string): void; - -// @public (undocumented) -function destroyToolGroup(toolGroupId: string): void; - -// @public (undocumented) -function distanceToPoint(aabb: Types_2.AABB2, point: Types_2.Point2): number; - -// @public (undocumented) -function distanceToPoint_2(lineStart: Types_2.Point2, lineEnd: Types_2.Point2, point: Types_2.Point2): number; - -// @public (undocumented) -function distanceToPoint_3(p1: Point, p2: Point): number; - -// @public (undocumented) -function distanceToPoint_4(rect: number[], point: Types_2.Point2): number; - -// @public (undocumented) -function distanceToPointSquared(aabb: Types_2.AABB2, point: Types_2.Point2): number; - -// @public (undocumented) -function distanceToPointSquared_2(lineStart: Types_2.Point2, lineEnd: Types_2.Point2, point: Types_2.Point2): number; - -// @public (undocumented) -function distanceToPointSquared_3(p1: Point_2, p2: Point_2): number; - -// @public (undocumented) -function distanceToPointSquaredInfo(lineStart: Types_2.Point2, lineEnd: Types_2.Point2, point: Types_2.Point2): { - point: Types_2.Point2; - distanceSquared: number; -}; - -// @public (undocumented) -export class DragProbeTool extends ProbeTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - newAnnotation?: boolean; - } | null; - // (undocumented) - eventDispatchDetail: { - viewportId: string; - renderingEngineId: string; - }; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - postMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => ProbeAnnotation; - // (undocumented) - postTouchStartCallback: (evt: EventTypes_2.InteractionEventType) => ProbeAnnotation; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: string; -} - -// @public (undocumented) -function draw(element: HTMLDivElement, fn: (svgDrawingElement: SVGDrawingHelper) => void): void; - -// @public (undocumented) -function drawArrow(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, arrowUID: string, start: Types_2.Point2, end: Types_2.Point2, options?: {}): void; - -// @public (undocumented) -function drawCircle(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, circleUID: string, center: Types_2.Point2, radius: number, options?: {}, dataId?: string): void; - -// @public (undocumented) -function drawEllipse(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, ellipseUID: string, corner1: Types_2.Point2, corner2: Types_2.Point2, options?: {}, dataId?: string): void; - -// @public (undocumented) -function drawEllipseByCoordinates(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, ellipseUID: string, canvasCoordinates: [Types_2.Point2, Types_2.Point2, Types_2.Point2, Types_2.Point2], options?: {}, dataId?: string): void; - -// @public (undocumented) -function drawHandle(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, handleGroupUID: string, handle: Types_2.Point2, options: {}, uniqueIndex: any): void; - -// @public (undocumented) -function drawHandles(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, handleGroupUID: string, handlePoints: Array, options?: {}): void; - -// @public (undocumented) -function drawHeight(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, heightUID: string, start: Types_2.Point2, end: Types_2.Point2, options?: {}): void; - -declare namespace drawing { - export { - draw, - drawCircle, - drawEllipse, - drawEllipseByCoordinates, - drawHandles, - drawHandle, - drawLine, - drawHeight, - drawPolyline, - drawPath, - drawLinkedTextBox, - drawRect, - drawRectByCoordinates, - drawTextBox, - drawArrow, - drawRedactionRect, - setAttributesIfNecessary, - setNewAttributesIfValid - } -} -export { drawing } - -declare namespace drawing_2 { - export { - getTextBoxCoordsCanvas - } -} - -// @public (undocumented) -function drawLine(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, lineUID: string, start: Types_2.Point2, end: Types_2.Point2, options?: {}, dataId?: string): void; - -// @public (undocumented) -function drawLinkedTextBox(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, textBoxUID: string, textLines: Array, textBoxPosition: Types_2.Point2, annotationAnchorPoints: Array, textBox: unknown, options?: {}): SVGRect; - -// @public (undocumented) -function drawPath(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, pathUID: string, points: Types_2.Point2[] | Types_2.Point2[][], options: { - color?: string; - fillColor?: string; - fillOpacity?: number; - width?: number; - lineWidth?: number; - lineDash?: string; - closePath?: boolean; -}): void; - -// @public (undocumented) -function drawPolyline(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, polylineUID: string, points: Types_2.Point2[], options: { - color?: string; - fillColor?: string; - fillOpacity?: number; - width?: number; - lineWidth?: number; - lineDash?: string; - closePath?: boolean; - markerStartId?: string; - markerEndId?: string; -}): void; - -// @public (undocumented) -function drawRect(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, rectangleUID: string, start: Types_2.Point2, end: Types_2.Point2, options?: {}, dataId?: string): void; - -// @public (undocumented) -function drawRectByCoordinates(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, rectangleUID: string, canvasCoordinates: Types_2.Point2[], options?: {}, dataId?: string): void; - -// @public (undocumented) -function drawRedactionRect(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, rectangleUID: string, start: Types_2.Point2, end: Types_2.Point2, options?: {}): void; - -// @public (undocumented) -function drawTextBox(svgDrawingHelper: SVGDrawingHelper, annotationUID: string, textUID: string, textLines: Array, position: Types_2.Point2, options?: {}): SVGRect; - -declare namespace dynamicVolume { - export { - getDataInTime, - generateImageFromTimeData, - updateVolumeFromTimeData - } -} - -declare namespace elementCursor { - export { - initElementCursor, - resetElementCursor, - hideElementCursor, - _setElementCursor as setElementCursor - } -} - -declare namespace ellipse { - export { - pointInEllipse, - precalculatePointInEllipse, - getCanvasEllipseCorners - } -} - -// @public (undocumented) -interface EllipticalROIAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: [Types_2.Point3, Types_2.Point3, Types_2.Point3, Types_2.Point3]; - activeHandleIndex: number | null; - textBox?: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - label: string; - cachedStats?: ROICachedStats; - initialRotation: number; - }; -} - -// @public (undocumented) -export class EllipticalROITool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => EllipticalROIAnnotation; - // (undocumented) - _calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any) => any; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragDrawCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragHandle: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragModifyCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: Array; - handleIndex?: number; - movingTextBox?: boolean; - centerWorld?: Array; - canvasWidth?: number; - canvasHeight?: number; - originalHandleCanvas?: Array; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _getCanvasEllipseCenter(ellipseCanvasPoints: Types_2.Point2[]): Types_2.Point2; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: EllipticalROIAnnotation, handle: ToolHandle) => void; - // (undocumented) - static hydrate: (viewportId: string, points: Types_2.Point3[], options?: { - annotationUID?: string; - }) => EllipticalROIAnnotation; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume: (index1: any, index2: any, dimensions: any) => boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: EllipticalROIAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - _pointInEllipseCanvas(ellipse: any, location: Types_2.Point2): boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: EllipticalROIAnnotation) => void; -} - -declare namespace Enums { - export { - MouseBindings, - KeyboardBindings, - ToolModes, - AnnotationStyleStates, - Events, - SegmentationRepresentations, - Swipe, - StrategyCallbacks, - ChangeTypes, - ChangeTypes_2 as WorkerTypes - } -} -export { Enums } - -declare namespace Enums_3 { - export { - ColorbarRangeTextPosition - } -} - -// @public (undocumented) -export class EraserTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _deleteNearbyAnnotations(evt: EventTypes_2.InteractionEventType, interactionType: string): boolean; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - preTouchStartCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -export class ETDRSGridTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => ETDRSGridAnnotation; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragDrawCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragHandle: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragModifyCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: Array; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: ETDRSGridAnnotation) => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: ETDRSGridAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - mouseDragCallback: unknown; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: ETDRSGridAnnotation) => void; - // (undocumented) - touchDragCallback: unknown; - // (undocumented) - worldMeasureToCanvas(measurement: any, viewport: any): number; -} - -// @public (undocumented) -enum Events { - // (undocumented) - ANNOTATION_ADDED = "CORNERSTONE_TOOLS_ANNOTATION_ADDED", - // (undocumented) - ANNOTATION_COMPLETED = "CORNERSTONE_TOOLS_ANNOTATION_COMPLETED", - // (undocumented) - ANNOTATION_INTERPOLATION_PROCESS_COMPLETED = "CORNERSTONE_TOOLS_ANNOTATION_INTERPOLATION_PROCESS_COMPLETED", - // (undocumented) - ANNOTATION_LOCK_CHANGE = "CORNERSTONE_TOOLS_ANNOTATION_LOCK_CHANGE", - // (undocumented) - ANNOTATION_MODIFIED = "CORNERSTONE_TOOLS_ANNOTATION_MODIFIED", - // (undocumented) - ANNOTATION_REMOVED = "CORNERSTONE_TOOLS_ANNOTATION_REMOVED", - // (undocumented) - ANNOTATION_RENDERED = "CORNERSTONE_TOOLS_ANNOTATION_RENDERED", - // (undocumented) - ANNOTATION_SELECTION_CHANGE = "CORNERSTONE_TOOLS_ANNOTATION_SELECTION_CHANGE", - // (undocumented) - ANNOTATION_VISIBILITY_CHANGE = "CORNERSTONE_TOOLS_ANNOTATION_VISIBILITY_CHANGE", - // (undocumented) - INTERPOLATED_ANNOTATIONS_REMOVED = "CORNERSTONE_TOOLS_INTERPOLATED_ANNOTATIONS_REMOVED", - // (undocumented) - KEY_DOWN = "CORNERSTONE_TOOLS_KEY_DOWN", - // (undocumented) - KEY_UP = "CORNERSTONE_TOOLS_KEY_UP", - // (undocumented) - MOUSE_CLICK = "CORNERSTONE_TOOLS_MOUSE_CLICK", - // (undocumented) - MOUSE_DOUBLE_CLICK = "CORNERSTONE_TOOLS_MOUSE_DOUBLE_CLICK", - // (undocumented) - MOUSE_DOWN = "CORNERSTONE_TOOLS_MOUSE_DOWN", - // (undocumented) - MOUSE_DOWN_ACTIVATE = "CORNERSTONE_TOOLS_MOUSE_DOWN_ACTIVATE", - // (undocumented) - MOUSE_DRAG = "CORNERSTONE_TOOLS_MOUSE_DRAG", - // (undocumented) - MOUSE_MOVE = "CORNERSTONE_TOOLS_MOUSE_MOVE", - // (undocumented) - MOUSE_UP = "CORNERSTONE_TOOLS_MOUSE_UP", - // (undocumented) - MOUSE_WHEEL = "CORNERSTONE_TOOLS_MOUSE_WHEEL", - // (undocumented) - SEGMENTATION_ADDED = "CORNERSTONE_TOOLS_SEGMENTATION_ADDED", - // (undocumented) - SEGMENTATION_DATA_MODIFIED = "CORNERSTONE_TOOLS_SEGMENTATION_DATA_MODIFIED", - // (undocumented) - SEGMENTATION_MODIFIED = "CORNERSTONE_TOOLS_SEGMENTATION_MODIFIED", - // (undocumented) - SEGMENTATION_REMOVED = "CORNERSTONE_TOOLS_SEGMENTATION_REMOVED", - // (undocumented) - SEGMENTATION_RENDERED = "CORNERSTONE_TOOLS_SEGMENTATION_RENDERED", - // (undocumented) - SEGMENTATION_REPRESENTATION_ADDED = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_ADDED", - // (undocumented) - SEGMENTATION_REPRESENTATION_MODIFIED = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_MODIFIED", - // (undocumented) - SEGMENTATION_REPRESENTATION_REMOVED = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_REMOVED", - // (undocumented) - TOOL_ACTIVATED = "CORNERSTONE_TOOLS_TOOL_ACTIVATED", - // (undocumented) - TOOL_MODE_CHANGED = "CORNERSTONE_TOOLS_TOOL_MODE_CHANGED", - // (undocumented) - TOOLGROUP_VIEWPORT_ADDED = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_ADDED", - // (undocumented) - TOOLGROUP_VIEWPORT_REMOVED = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_REMOVED", - // (undocumented) - TOUCH_DRAG = "CORNERSTONE_TOOLS_TOUCH_DRAG", - // (undocumented) - TOUCH_END = "CORNERSTONE_TOOLS_TOUCH_END", - // (undocumented) - TOUCH_PRESS = "CORNERSTONE_TOOLS_TOUCH_PRESS", - // (undocumented) - TOUCH_START = "CORNERSTONE_TOOLS_TOUCH_START", - // (undocumented) - TOUCH_START_ACTIVATE = "CORNERSTONE_TOOLS_TOUCH_START_ACTIVATE", - // (undocumented) - TOUCH_SWIPE = "CORNERSTONE_TOOLS_SWIPE", - // (undocumented) - TOUCH_TAP = "CORNERSTONE_TOOLS_TAP" -} - -// @public (undocumented) -enum Events_3 { - // (undocumented) - CLIP_STARTED = "CORNERSTONE_CINE_TOOL_STARTED", - // (undocumented) - CLIP_STOPPED = "CORNERSTONE_CINE_TOOL_STOPPED" -} - -declare namespace EventTypes_2 { - export { - InteractionStartType, - InteractionEndType, - InteractionEventType, - NormalizedInteractionEventDetail, - NormalizedMouseEventType, - NormalizedTouchEventType, - ToolModeChangedEventDetail, - ToolModeChangedEventType, - ToolActivatedEventDetail, - ToolActivatedEventType, - AnnotationAddedEventDetail, - AnnotationAddedEventType, - AnnotationCompletedEventDetail, - AnnotationCompletedEventType, - AnnotationModifiedEventDetail, - AnnotationModifiedEventType, - AnnotationRemovedEventDetail, - AnnotationRemovedEventType, - AnnotationSelectionChangeEventDetail, - AnnotationSelectionChangeEventType, - AnnotationRenderedEventDetail, - AnnotationRenderedEventType, - AnnotationLockChangeEventDetail, - AnnotationVisibilityChangeEventDetail, - AnnotationLockChangeEventType, - AnnotationVisibilityChangeEventType, - AnnotationInterpolationCompletedEventDetail, - AnnotationInterpolationCompletedEventType, - AnnotationInterpolationRemovedEventDetail, - AnnotationInterpolationRemovedEventType, - ContourAnnotationCompletedEventDetail, - SegmentationDataModifiedEventType, - SegmentationRepresentationModifiedEventDetail, - SegmentationRepresentationModifiedEventType, - SegmentationRepresentationRemovedEventDetail, - SegmentationRepresentationRemovedEventType, - SegmentationRemovedEventType, - SegmentationRemovedEventDetail, - SegmentationDataModifiedEventDetail, - SegmentationRenderedEventType, - SegmentationRenderedEventDetail, - SegmentationModifiedEventType, - SegmentationModifiedEventDetail, - KeyDownEventDetail, - KeyDownEventType, - KeyUpEventDetail, - KeyUpEventType, - MouseDownEventDetail, - TouchStartEventDetail, - MouseDownEventType, - TouchStartEventType, - MouseDownActivateEventDetail, - TouchStartActivateEventDetail, - MouseDownActivateEventType, - TouchStartActivateEventType, - MouseDragEventDetail, - TouchDragEventDetail, - MouseDragEventType, - TouchDragEventType, - MouseUpEventDetail, - TouchEndEventDetail, - MouseUpEventType, - TouchEndEventType, - MouseClickEventDetail, - MouseClickEventType, - TouchTapEventDetail, - TouchTapEventType, - TouchSwipeEventDetail, - TouchSwipeEventType, - TouchPressEventDetail, - TouchPressEventType, - MouseMoveEventDetail, - MouseMoveEventType, - MouseDoubleClickEventDetail, - MouseDoubleClickEventType, - MouseWheelEventDetail, - MouseWheelEventType, - SegmentationAddedEventDetail, - SegmentationAddedEventType - } -} - -// @public (undocumented) -function extend2DBoundingBoxInViewAxis(boundsIJK: [Types_2.Point2, Types_2.Point2, Types_2.Point2], numSlicesToProject: number): [Types_2.Point2, Types_2.Point2, Types_2.Point2]; - -// @public (undocumented) -function extractWindowLevelRegionToolData(viewport: Types_2.IVolumeViewport | Types_2.IStackViewport): { - scalarData: Types_2.PixelDataTypedArray; - minPixelValue: number; - maxPixelValue: number; - width: number; - height: number; - rows: number; - columns: number; -}; - -// @public (undocumented) -const fillInsideCircle: (enabledElement: any, operationData: any) => unknown; - -// @public (undocumented) -const fillInsideRectangle: (enabledElement: any, operationData: any) => unknown; - -// @public (undocumented) -function fillOutsideCircle(): void; - -// @public (undocumented) -function filterAnnotationsForDisplay(viewport: Types_2.IViewport, annotations: Annotations, filterOptions?: Types_2.ReferenceCompatibleOptions): Annotations; - -// @public (undocumented) -function filterAnnotationsWithinSamePlane(annotations: Annotations, camera: Types_2.ICamera): Annotations; - -// @public (undocumented) -function filterAnnotationsWithinSlice(annotations: Annotations, camera: Types_2.ICamera, spacingInNormalDirection: number): Annotations; - -// @public (undocumented) -function filterViewportsWithFrameOfReferenceUID(viewports: Array, FrameOfReferenceUID: string): Array; - -// @public (undocumented) -function filterViewportsWithParallelNormals(viewports: any, camera: any, EPS?: number): any; - -// @public (undocumented) -function filterViewportsWithToolEnabled(viewports: Array, toolName: string): Array; - -// @public (undocumented) -function findClosestPoint(sourcePoints: Array, targetPoint: Types_2.Point2): Types_2.Point2; - -// @public (undocumented) -function findHandlePolylineIndex(annotation: ContourAnnotation, handleIndex: number): number; - -// @public (undocumented) -function floodFill(getter: FloodFillGetter, seed: Types_2.Point2 | Types_2.Point3, options?: FloodFillOptions): FloodFillResult; - -// @public (undocumented) -type FloodFillGetter = FloodFillGetter2D | FloodFillGetter3D; - -// @public (undocumented) -type FloodFillOptions = { - onFlood?: (x: number, y: number, z?: number) => void; - onBoundary?: (x: number, y: number, z?: number) => void; - equals?: (a: any, b: any) => boolean; - diagonals?: boolean; - bounds?: Map; - filter?: (point: any) => boolean; -}; - -// @public (undocumented) -type FloodFillResult = { - flooded: Types_2.Point2[] | Types_2.Point3[]; -}; - -// @public (undocumented) -class FrameOfReferenceSpecificAnnotationManager implements IAnnotationManager { - constructor(uid?: string); - // (undocumented) - addAnnotation: (annotation: Annotation, groupKey?: string) => void; - // (undocumented) - getAllAnnotations: () => Annotations; - // (undocumented) - getAnnotation: (annotationUID: string) => Annotation | undefined; - // (undocumented) - getAnnotations: (groupKey: string, toolName?: string) => GroupSpecificAnnotations | Annotations; - // (undocumented) - getFramesOfReference: () => Array; - // (undocumented) - getGroupKey: (annotationGroupSelector: AnnotationGroupSelector) => string; - // (undocumented) - getNumberOfAllAnnotations: () => number; - // (undocumented) - getNumberOfAnnotations: (groupKey: string, toolName?: string) => number; - // (undocumented) - _imageVolumeModifiedHandler: (evt: Types_2.EventTypes.ImageVolumeModifiedEvent) => void; - // (undocumented) - removeAllAnnotations: () => Annotations; - // (undocumented) - removeAnnotation: (annotationUID: string) => void; - // (undocumented) - removeAnnotations: (groupKey: string, toolName?: string) => Annotations; - // (undocumented) - restoreAnnotations: (state: AnnotationState | GroupSpecificAnnotations | Annotations, groupKey?: string, toolName?: string) => void; - // (undocumented) - saveAnnotations: (groupKey?: string, toolName?: string) => AnnotationState | GroupSpecificAnnotations | Annotations; - // (undocumented) - setPreprocessingFn(preprocessingFn: (annotation: Annotation) => Annotation): void; - // (undocumented) - readonly uid: string; -} - -// @public (undocumented) -function generateContourSetsFromLabelmap({ segmentations }: { - segmentations: any; -}): any[]; - -// @public (undocumented) -function generateImageFromTimeData(dynamicVolume: Types_2.IDynamicImageVolume, operation: Enums_2.GenerateImageType, options: { - dimensionGroupNumbers?: number[]; - frameNumbers?: number[]; -}): Float32Array; - -declare namespace geometricSurfaceUtils { - export { - inverse3x3Matrix, - checkStandardBasis, - rotatePoints - } -} - -// @public (undocumented) -function getAABB(polyline: Types_2.Point2[] | Types_2.Point3[] | number[], options?: { - numDimensions: number; -}): Types_2.AABB2 | Types_2.AABB3; - -// @public (undocumented) -function getActiveSegmentation(viewportId: string): Segmentation; - -// @public (undocumented) -function getActiveSegmentIndex(segmentationId: string): number | undefined; - -// @public (undocumented) -function getAllSynchronizers(): Array; - -// @public (undocumented) -function getAllToolGroups(): Array; - -// @public (undocumented) -function getAnnotationNearPoint(element: HTMLDivElement, canvasPoint: Types_2.Point2, proximity?: number): Annotation | null; - -// @public (undocumented) -function getAnnotationNearPointOnEnabledElement(enabledElement: Types_2.IEnabledElement, point: Types_2.Point2, proximity: number): Annotation | null; - -// @public (undocumented) -function getAnnotationsLocked(): Array; - -// @public (undocumented) -function getAnnotationsLockedCount(): number; - -// @public (undocumented) -function getAnnotationsSelected(): Array; - -// @public (undocumented) -function getAnnotationsSelectedByToolName(toolName: string): Array; - -// @public (undocumented) -function getAnnotationsSelectedCount(): number; - -// @public (undocumented) -function getArea(points: Types_2.Point2[]): number; - -// @public (undocumented) -function getBoundingBoxAroundShapeIJK(points: Types_2.Point2[] | Types_2.Point3[], dimensions?: Types_2.Point2 | Types_2.Point3): BoundingBox; - -// @public (undocumented) -function getBoundingBoxAroundShapeWorld(points: Types_2.Point2[] | Types_2.Point3[], clipBounds?: Types_2.Point2 | Types_2.Point3): BoundingBox; - -// @public (undocumented) -function getBoundsIJKFromRectangleAnnotations(annotations: any, referenceVolume: any, options?: Options_3): any; - -// @public (undocumented) -function getBrushSizeForToolGroup(toolGroupId: string, toolName?: string): void; - -// @public (undocumented) -function getBrushThresholdForToolGroup(toolGroupId: string): any; - -// @public (undocumented) -function getBrushToolInstances(toolGroupId: string, toolName?: string): any[]; - -// @public (undocumented) -const getCalibratedAspect: (image: any) => any; - -// @public (undocumented) -const getCalibratedLengthUnitsAndScale: (image: any, handles: any) => { - unit: string; - areaUnit: string; - scale: number; -}; - -// @public (undocumented) -const getCalibratedProbeUnitsAndValue: (image: any, handles: any) => { - units: string[]; - values: any[]; - calibrationType?: undefined; -} | { - units: string[]; - values: any[]; - calibrationType: string; -}; - -// @public (undocumented) -function getCanvasCircleCorners(circleCanvasPoints: canvasCoordinates): Array; - -// @public (undocumented) -function getCanvasCircleRadius(circleCanvasPoints: canvasCoordinates): number; - -// @public (undocumented) -function getCanvasEllipseCorners(ellipseCanvasPoints: CanvasCoordinates): Array; - -// @public (undocumented) -function getClosestImageIdForStackViewport(viewport: StackViewport, worldPos: Types_2.Point3, viewPlaneNormal: Types_2.Point3): string; - -// @public (undocumented) -function getClosestLineSegmentIntersection(points: Types_2.Point2[], p1: Types_2.Point2, q1: Types_2.Point2, closed?: boolean): { - segment: Types_2.Point2; - distance: number; -} | undefined; - -// @public (undocumented) -function getColorLUT(index: number): Types_2.ColorLUT | undefined; - -// @public (undocumented) -function getContourHolesDataCanvas(annotation: Annotation, viewport: Types_2.IViewport): Types_2.Point2[][]; - -// @public (undocumented) -function getContourHolesDataWorld(annotation: Annotation): Types_2.Point3[][]; - -// @public (undocumented) -function getCurrentLabelmapImageIdForViewport(viewportId: string, segmentationId: string): string; - -// @public (undocumented) -function getDataInTime(dynamicVolume: Types_2.IDynamicImageVolume, options: { - dimensionGroupNumbers?: number[]; - frameNumbers?: number[]; - maskVolumeId?: string; - worldCoordinate?: Types_2.Point3; -}): number[] | number[][]; - -// @public (undocumented) -function getDeduplicatedVTKPolyDataPoints(polyData: any, bypass?: boolean): { - points: any[]; - lines: { - a: any; - b: any; - }[]; -}; - -// @public (undocumented) -function getDeltaDistance(currentPoints: IPoints[], lastPoints: IPoints[]): IDistance; - -// @public (undocumented) -function getDeltaDistanceBetweenIPoints(currentPoints: IPoints[], lastPoints: IPoints[]): IDistance; - -// @public (undocumented) -function getDeltaPoints(currentPoints: IPoints[], lastPoints: IPoints[]): IPoints; - -// @public (undocumented) -function getDeltaRotation(currentPoints: ITouchPoints[], lastPoints: ITouchPoints[]): void; - -// @public (undocumented) -function getFirstLineSegmentIntersectionIndexes(points: Types_2.Point2[], p1: Types_2.Point2, q1: Types_2.Point2, closed?: boolean): Types_2.Point2 | undefined; - -// @public (undocumented) -function getFont(styleSpecifier: StyleSpecifier, state?: AnnotationStyleStates, mode?: ToolModes): string; - -// @public (undocumented) -function getHiddenSegmentIndices(viewportId: string, specifier: { - segmentationId: string; - type: SegmentationRepresentations; -}): Set; - -// @public (undocumented) -function getHoveredContourSegmentationAnnotation(segmentationId: any): number; - -// @public (undocumented) -function getLabelmapImageIds(segmentationId: string): string | undefined; - -// @public (undocumented) -function getLineSegmentIntersectionsCoordinates(points: Types_2.Point2[], p1: Types_2.Point2, q1: Types_2.Point2, closed?: boolean): Types_2.Point2[]; - -// @public (undocumented) -function getLineSegmentIntersectionsIndexes(polyline: Types_2.Point2[], p1: Types_2.Point2, q1: Types_2.Point2, closed?: boolean): Types_2.Point2[]; - -// @public (undocumented) -function getLockedSegmentIndices(segmentationId: string): number[] | []; - -// @public (undocumented) -function getLuminanceFromRegion(imageData: any, x: any, y: any, width: any, height: any): any[]; - -// @public (undocumented) -function getMeanPoints(points: IPoints[]): IPoints; - -// @public (undocumented) -function getMeanTouchPoints(points: ITouchPoints[]): ITouchPoints; - -// @public (undocumented) -function getNextColorLUTIndex(): number; - -// @public (undocumented) -function getNormal2(polyline: Types_2.Point2[]): Types_2.Point3; - -// @public (undocumented) -function getNormal3(polyline: Types_2.Point3[]): Types_2.Point3; - -// @public (undocumented) -function getOrCreateSegmentationVolume(segmentationId: any): any; - -// @public (undocumented) -function getOrientationStringLPS(vector: Types_2.Point3): string; - -// @public (undocumented) -function getPixelValueUnits(modality: string, imageId: string, options: pixelUnitsOptions): string; - -// @public (undocumented) -function getPixelValueUnitsImageId(imageId: string, options: pixelUnitsOptions): string; - -// @public (undocumented) -function getPoint(points: any, idx: any): Types_2.Point3; - -// @public (undocumented) -function getPointInLineOfSightWithCriteria(viewport: Types_2.IVolumeViewport, worldPos: Types_2.Point3, targetVolumeId: string, criteriaFunction: (intensity: number, point: Types_2.Point3) => Types_2.Point3, stepSize?: number): Types_2.Point3; - -// @public (undocumented) -function getPointsInLineOfSight(viewport: Types_2.IVolumeViewport, worldPos: Types_2.Point3, { targetVolumeId, stepSize }: { - targetVolumeId: string; - stepSize: number; -}): Types_2.Point3[]; - -// @public (undocumented) -function getPolyDataPointIndexes(polyData: vtkPolyData): any[]; - -// @public (undocumented) -function getPolyDataPoints(polyData: vtkPolyData): any[]; - -// @public (undocumented) -function getRenderInactiveSegmentations(viewportId: string): boolean; - -// @public (undocumented) -function getSegmentation(segmentationId: string): Segmentation | undefined; - -// @public (undocumented) -function getSegmentationRepresentation(viewportId: string, specifier: { - segmentationId: string; - type: SegmentationRepresentations; -}): SegmentationRepresentation | undefined; - -// @public (undocumented) -function getSegmentationRepresentations(viewportId: string, specifier?: { - segmentationId?: string; - type?: SegmentationRepresentations; -}): SegmentationRepresentation[] | []; - -// @public (undocumented) -function getSegmentationRepresentationsBySegmentationId(segmentationId: string): { - viewportId: string; - representations: SegmentationRepresentation[]; -}[]; - -// @public (undocumented) -function getSegmentationRepresentationVisibility(viewportId: string, specifier: { - segmentationId: string; - type: SegmentationRepresentations; -}): boolean | undefined; - -// @public (undocumented) -function getSegmentations(): Segmentation[] | []; - -// @public (undocumented) -function getSegmentIndexAtLabelmapBorder(segmentationId: string, worldPoint: Types_2.Point3, { viewport, searchRadius }: Options_2): number; - -// @public (undocumented) -function getSegmentIndexAtWorldPoint(segmentationId: string, worldPoint: Types_2.Point3, options?: Options): number; - -// @public (undocumented) -function getSegmentIndexColor(viewportId: string, segmentationId: string, segmentIndex: number): Types_2.Color; - -// @public (undocumented) -function getSegmentIndexVisibility(viewportId: string, specifier: { - segmentationId: string; - type: SegmentationRepresentations; -}, segmentIndex: number): boolean; - -// @public (undocumented) -function getSignedArea(polyline: Types_2.Point2[]): number; - -// @public (undocumented) -function getSphereBoundsInfo(circlePoints: [Types_2.Point3, Types_2.Point3], imageData: vtkImageData): SphereBoundsInfo; - -// @public (undocumented) -function getStackSegmentationImageIdsForViewport(viewportId: string, segmentationId: string): string[]; - -// @public (undocumented) -function getState(annotation?: Annotation): AnnotationStyleStates; - -// @public (undocumented) -function getStatistics({ segmentationId, segmentIndices, }: { - segmentationId: string; - segmentIndices: number[] | number; -}): Promise; - -// @public (undocumented) -function getStyle(specifier: SpecifierWithType): StyleForType; - -// @public (undocumented) -const getSubPixelSpacingAndXYDirections: (viewport: Types_2.IStackViewport | Types_2.IVolumeViewport, subPixelResolution: number) => { - spacing: Types_2.Point2; - xDir: Types_2.Point3; - yDir: Types_2.Point3; -}; - -// @public (undocumented) -function getSynchronizer(synchronizerId: string): Synchronizer | void; - -// @public (undocumented) -function getSynchronizersForViewport(viewportId: string, renderingEngineId: string): Array; - -// @public (undocumented) -function getTextBoxCoordsCanvas(annotationCanvasPoints: Array): Types_2.Point2; - -// @public (undocumented) -function getToolGroup(toolGroupId: string): ToolGroup | undefined; - -// @public (undocumented) -function getToolGroupForViewport(viewportId: string, renderingEngineId?: string): ToolGroup | undefined; - -// @public (undocumented) -function getToolGroupsWithToolName(toolName: string): ToolGroup[] | []; - -// @public (undocumented) -function getToolState(element: HTMLDivElement): CINETypes.ToolData | undefined; - -// @public (undocumented) -function getUniqueSegmentIndices(segmentationId: any): any; - -// @public (undocumented) -function getViewportForAnnotation(annotation: Annotation): Types_2.IStackViewport | Types_2.IVolumeViewport | undefined; - -// @public (undocumented) -function getViewportIdsWithSegmentation(segmentationId: string): string[]; - -// @public (undocumented) -function getViewportIdsWithToolToRender(element: HTMLDivElement, toolName: string, requireParallelNormals?: boolean): string[]; - -// @public (undocumented) -function getViewportSegmentations(viewportId: string, type?: SegmentationRepresentations): Segmentation[]; - -// @public (undocumented) -function getWindingDirection(polyline: Types_2.Point2[]): number; - -// @public (undocumented) -function getWorldWidthAndHeightFromCorners(viewPlaneNormal: Types_2.Point3, viewUp: Types_2.Point3, topLeftWorld: Types_2.Point3, bottomRightWorld: Types_2.Point3): { - worldWidth: number; - worldHeight: number; -}; - -// @public (undocumented) -function getWorldWidthAndHeightFromTwoPoints(viewPlaneNormal: Types_2.Point3, viewUp: Types_2.Point3, worldPos1: Types_2.Point3, worldPos2: Types_2.Point3): { - worldWidth: number; - worldHeight: number; -}; - -// @public (undocumented) -type GroupSpecificAnnotations = { - [toolName: string]: Annotations; -}; - -declare namespace growCut { - export { - runGrowCut as run, - runGrowCutForSphere, - runGrowCutForBoundingBox, - runOneClickGrowCut, - SphereInfo, - GrowCutOptions as GrowCutSphereOptions, - GrowCutBoundingBoxOptions, - GrowCutOneClickOptions - } -} - -// @public (undocumented) -type GrowCutBoundingBoxOptions = GrowCutOptions & { - negativePixelRange?: [number, number]; - positivePixelRange?: [number, number]; -}; - -// @public (undocumented) -type GrowCutOneClickOptions = GrowCutOptions & { - subVolumePaddingPercentage?: number | [number, number, number]; - subVolumeMinPadding?: number | [number, number, number]; -}; - -// @public (undocumented) -type GrowCutOptions = { - maxProcessingTime?: number; - windowSize?: number; - positiveSeedValue?: number; - negativeSeedValue?: number; - positiveSeedVariance?: number; - negativeSeedVariance?: number; - inspection?: { - numCyclesInterval?: number; - numCyclesBelowThreashold?: number; - threshold?: number; - }; -}; - -// @public (undocumented) -function hasCustomStyle(specifier: { - viewportId?: string; - segmentationId?: string; - type?: SegmentationRepresentations; - segmentIndex?: number; -}): boolean; - -// @public (undocumented) -function hasTool(ToolClass: any): boolean; - -// @public (undocumented) -export class HeightTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _activateModify: (element: HTMLDivElement) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => LengthAnnotation; - // (undocumented) - _calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any): any; - // (undocumented) - _calculateHeight(pos1: any, pos2: any): number; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _deactivateModify: (element: HTMLDivElement) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: LengthAnnotation, handle: ToolHandle): void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume(index1: any, index2: any, dimensions: any): boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: LengthAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - midX: number; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: LengthAnnotation) => void; -} - -// @public (undocumented) -const helpers: { - clearSegmentValue: typeof clearSegmentValue; - convertStackToVolumeLabelmap: typeof convertStackToVolumeLabelmap; - computeVolumeLabelmapFromStack: typeof computeVolumeLabelmapFromStack; - convertVolumeToStackLabelmap: typeof convertVolumeToStackLabelmap; -}; - -// @public (undocumented) -function hideElementCursor(element: HTMLDivElement): void; - -// @public (undocumented) -interface IAnnotationManager { - // (undocumented) - addAnnotation: (annotation: Annotation, groupKey: string) => void; - // (undocumented) - getAnnotation: (annotationUID: string) => Annotation; - // (undocumented) - getAnnotations: (groupKey: string, toolName?: string) => GroupSpecificAnnotations | Annotations; - // (undocumented) - getGroupKey: (annotationGroupSelector: AnnotationGroupSelector) => string; - // (undocumented) - getNumberOfAllAnnotations: () => number; - // (undocumented) - getNumberOfAnnotations: (groupKey: string, toolName?: string) => number; - // (undocumented) - removeAllAnnotations: () => void; - // (undocumented) - removeAnnotation: (annotationUID: string) => void; - // (undocumented) - removeAnnotations: (groupKey: string) => void; -} - -// @public (undocumented) -type IBaseTool = BaseTool; - -// @public (undocumented) -type IDistance = { - page: number; - client: number; - canvas: number; - world: number; -}; - -// @public (undocumented) -type ImageInterpolationData = { - sliceIndex: number; - annotations?: Annotation[]; -}; - -// @public (undocumented) -class ImageMouseCursor extends MouseCursor { - constructor(url: string, x?: number, y?: number, name?: string | undefined, fallback?: MouseCursor | undefined); - // (undocumented) - getStyleProperty(): string; - // (undocumented) - static getUniqueInstanceName(prefix: string): string; -} - -// @public (undocumented) -type InactiveLabelmapStyle = { - renderOutlineInactive?: boolean; - outlineWidthInactive?: number; - renderFillInactive?: boolean; - fillAlphaInactive?: number; - outlineOpacityInactive?: number; -}; - -// @public (undocumented) -export function init(defaultConfiguration?: Config): void; - -// @public (undocumented) -function initElementCursor(element: HTMLDivElement, cursor: MouseCursor | null): void; - -// @public (undocumented) -type InteractionEndType = Types_2.CustomEventType; - -// @public (undocumented) -type InteractionEventType = Types_2.CustomEventType; - -// @public (undocumented) -type InteractionStartType = Types_2.CustomEventType; - -// @public (undocumented) -type InteractionTypes = 'Mouse' | 'Touch'; - -// @public (undocumented) -function internalAddRepresentationData({ segmentationId, type, data, }: AddRepresentationData): void; - -// @public (undocumented) -type InterpolationROIAnnotation = ContourAnnotation & ContourSegmentationAnnotationData & { - metadata: { - annotationUID?: string; - }; - interpolationUID?: string; - interpolationCompleted?: boolean; - isInterpolationUpdate?: boolean; -}; - -// @public (undocumented) -type InterpolationViewportData = { - annotation: InterpolationROIAnnotation; - interpolationUID: string; - viewport: Types_2.IViewport; - sliceData: Types_2.ImageSliceData; - isInterpolationUpdate?: boolean; -}; - -// @public (undocumented) -function intersectAABB(aabb1: Types_2.AABB2, aabb2: Types_2.AABB2): boolean; - -// @public (undocumented) -function intersectLine(line1Start: Types_2.Point2, line1End: Types_2.Point2, line2Start: Types_2.Point2, line2End: Types_2.Point2): number[]; - -// @public (undocumented) -function intersectPolyline(sourcePolyline: Types_2.Point2[], targetPolyline: Types_2.Point2[]): boolean; - -// @public (undocumented) -function invalidateBrushCursor(toolGroupId: string): void; - -// @public (undocumented) -function inverse3x3Matrix(matrix: number[]): number[]; - -// @public (undocumented) -function invertOrientationStringLPS(orientationString: string): string; - -// @public (undocumented) -type IPoints = { - page: Types_2.Point2; - client: Types_2.Point2; - canvas: Types_2.Point2; - world: Types_2.Point3; -}; - -// @public (undocumented) -function isAnnotationLocked(annotationUID: string): boolean; - -// @public (undocumented) -function isAnnotationSelected(annotationUID: string): boolean; - -// @public (undocumented) -function isAnnotationVisible(annotationUID: string): boolean | undefined; - -// @public (undocumented) -function isAxisAlignedRectangle(rectangleCornersIJK: any): boolean; - -// @public (undocumented) -function isClosed(polyline: Types_2.Point2[]): boolean; - -// @public (undocumented) -function isContourSegmentationAnnotation(annotation: Annotation): annotation is ContourSegmentationAnnotation; - -// @public (undocumented) -interface ISculptToolShape { - // (undocumented) - configureToolSize(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - getInsertPosition(previousIndex: number, nextIndex: number, sculptData: SculptData): Types_2.Point3; - // (undocumented) - getMaxSpacing(minSpacing: number): number; - // (undocumented) - pushHandles(viewport: Types_2.IViewport, sculptData: SculptData): PushedHandles; - // (undocumented) - renderShape(svgDrawingHelper: SVGDrawingHelper, canvasLocation: Types_2.Point2, options: any): void; - // (undocumented) - updateToolSize(canvasCoords: Types_2.Point2, viewport: Types_2.IViewport, activeAnnotation: ContourAnnotation): void; -} - -// @public (undocumented) -class IslandRemoval { - constructor(options?: { - maxInternalRemove?: number; - fillInternalEdge?: boolean; - }); - // (undocumented) - static covers(rle: any, row: any): boolean; - // (undocumented) - fillSegments: (index: number) => boolean; - // (undocumented) - floodFillSegmentIsland(): number; - // (undocumented) - initialize(viewport: any, segmentationVoxels: any, options: any): boolean; - // (undocumented) - previewSegmentIndex: number; - // (undocumented) - previewVoxelManager: Types_2.VoxelManager; - // (undocumented) - removeExternalIslands(): void; - // (undocumented) - removeInternalIslands(): number[]; - // (undocumented) - segmentIndex: number; - // (undocumented) - segmentSet: Types_2.RLEVoxelMap; - // (undocumented) - selectedPoints: Types_2.Point3[]; -} - -// @public (undocumented) -function isObject(value: any): boolean; - -// @public (undocumented) -const isPlaneIntersectingAABB: (origin: any, normal: any, minX: any, minY: any, minZ: any, maxX: any, maxY: any, maxZ: any) => boolean; - -// @public (undocumented) -interface ISpline { - // (undocumented) - get aabb(): Types_2.AABB2; - // (undocumented) - addControlPoint(point: Types_2.Point2): void; - // (undocumented) - addControlPointAtU(u: number): ControlPointInfo; - // (undocumented) - addControlPoints(points: Types_2.Point2[]): void; - // (undocumented) - clearControlPoints(): void; - // (undocumented) - get closed(): boolean; - set closed(closed: boolean); - // (undocumented) - containsPoint(point: Types_2.Point2): boolean; - // (undocumented) - deleteControlPointByIndex(index: number): boolean; - // (undocumented) - get fixedResolution(): boolean; - // (undocumented) - getClosestControlPoint(point: Types_2.Point2): ClosestControlPoint; - // (undocumented) - getClosestControlPointWithinDistance(point: Types_2.Point2, range: number): ClosestControlPoint; - // (undocumented) - getClosestPoint(point: Types_2.Point2): ClosestSplinePoint; - // (undocumented) - getClosestPointOnControlPointLines(point: Types_2.Point2): ClosestPoint; - // (undocumented) - getControlPoints(): Types_2.Point2[]; - // (undocumented) - getPolylinePoints(): Types_2.Point2[]; - // (undocumented) - getPreviewPolylinePoints(controlPointPreview: Types_2.Point2, closeDistance: number): Types_2.Point2[]; - // (undocumented) - hasTangentPoints(): boolean; - // (undocumented) - get invalidated(): boolean; - // (undocumented) - isPointNearCurve(point: Types_2.Point2, maxDist: number): boolean; - // (undocumented) - get length(): number; - // (undocumented) - get numControlPoints(): number; - // (undocumented) - get resolution(): number; - set resolution(resolution: number); - // (undocumented) - setControlPoints(points: Types_2.Point2[]): void; - // (undocumented) - updateControlPoint(index: number, newControlPoint: Types_2.Point2): void; -} - -// @public (undocumented) -function isPointInsidePolyline3D(point: Types_2.Point3, polyline: Types_2.Point3[], options?: { - holes?: Types_2.Point3[][]; -}): boolean; - -// @public (undocumented) -function isPointOnLineSegment(lineStart: Types_2.Point2, lineEnd: Types_2.Point2, point: Types_2.Point2): boolean; - -// @public (undocumented) -function isSegmentIndexLocked(segmentationId: string, segmentIndex: number): boolean; - -// @public (undocumented) -function isViewportPreScaled(viewport: Types_2.IStackViewport | Types_2.IVolumeViewport, targetId: string): boolean; - -// @public (undocumented) -interface ISynchronizerEventHandler { - // (undocumented) - (synchronizer: Synchronizer, sourceViewport: Types_2.IViewportId, targetViewport: Types_2.IViewportId, sourceEvent: any, options?: unknown): Promise | void; -} - -// @public (undocumented) -type IToolBinding = { - mouseButton?: ToolBindingMouseType; - modifierKey?: ToolBindingKeyboardType; - numTouchPoints?: number; -}; - -// @public (undocumented) -type IToolClassReference = new (config: unknown) => T; - -// @public (undocumented) -type ITouchPoints = IPoints & { - touch: { - identifier: string; - radiusX: number; - radiusY: number; - force: number; - rotationAngle: number; - }; -}; - -// @public (undocumented) -enum KeyboardBindings { - // (undocumented) - Alt = 18, - // (undocumented) - AltMeta = 1891, - // (undocumented) - Ctrl = 17, - // (undocumented) - CtrlAlt = 1718, - // (undocumented) - CtrlMeta = 1791, - // (undocumented) - Meta = 91, - // (undocumented) - Shift = 16, - // (undocumented) - ShiftAlt = 1618, - // (undocumented) - ShiftCtrl = 1617, - // (undocumented) - ShiftMeta = 1691 -} - -// @public (undocumented) -type KeyDownEventDetail = { - element: HTMLDivElement; - viewportId: string; - renderingEngineId: string; - key: string; - keyCode: number; -}; - -// @public (undocumented) -type KeyDownEventType = Types_2.CustomEventType; - -// @public (undocumented) -type KeyImageAnnotation = ProbeAnnotation & { - data: { - isPoint: boolean; - seriesLevel: boolean; - }; -}; - -// @public (undocumented) -export class KeyImageTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => Annotation; - // (undocumented) - cancel(element: HTMLDivElement): string; - // (undocumented) - static dataPoint: { - data: { - isPoint: boolean; - }; - }; - // (undocumented) - static dataSeries: { - data: { - seriesLevel: boolean; - }; - }; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _doneChangingTextCallback(element: any, annotation: any, updatedText: any): void; - // (undocumented) - doubleClickCallback: (evt: EventTypes_2.TouchTapEventType) => void; - // (undocumented) - _dragCallback: (evt: any) => void; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: KeyImageAnnotation): void; - // (undocumented) - _isInsideVolume(index1: any, index2: any, dimensions: any): boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: Annotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static setPoint(annotation: any, isPoint?: boolean, element?: any): void; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: Annotation) => void; -} - -// @public (undocumented) -type KeyUpEventDetail = KeyDownEventDetail; - -// @public (undocumented) -type KeyUpEventType = Types_2.CustomEventType; - -// @public (undocumented) -interface LabelAnnotation extends Annotation { - // (undocumented) - data: { - text: string; - handles: { - points: Types_2.Point3[]; - }; - }; -} - -// @public (undocumented) -export class LabelmapBaseTool extends BaseTool { - constructor(toolProps: any, defaultToolProps: any); - // (undocumented) - acceptPreview(element?: HTMLDivElement): void; - // (undocumented) - addPreview(element?: HTMLDivElement, options?: { - acceptReject: boolean; - }): unknown; - // (undocumented) - protected createEditData(element: any): EditDataReturnType; - // (undocumented) - protected createHoverData(element: any, centerCanvas?: any): { - brushCursor: { - metadata: { - viewPlaneNormal: Types_2.Point3; - viewUp: Types_2.Point3; - FrameOfReferenceUID: string; - referencedImageId: string; - toolName: string; - segmentColor: Types_2.Color; - }; - data: {}; - }; - centerCanvas: any; - segmentIndex: number; - viewport: Types_2.IStackViewport | VolumeViewport; - segmentationId: string; - segmentColor: Types_2.Color; - viewportIdsToRender: string[]; - }; - // (undocumented) - createMemo(segmentId: string, segmentationVoxelManager: any, preview: any): LabelmapMemo.LabelmapMemo; - // (undocumented) - protected _editData: { - override: { - voxelManager: Types_2.IVoxelManager; - imageData: vtkImageData; - }; - segmentsLocked: number[]; - imageId?: string; - imageIds?: string[]; - volumeId?: string; - referencedVolumeId?: string; - } | null; - // (undocumented) - protected getActiveSegmentationData(viewport: any): { - segmentIndex: number; - segmentationId: string; - segmentColor: Types_2.Color; - }; - // (undocumented) - protected getEditData({ viewport, representationData, segmentsLocked, segmentationId, }: { - viewport: any; - representationData: any; - segmentsLocked: any; - segmentationId: any; - }): EditDataReturnType; - // (undocumented) - protected getOperationData(element?: any): ModifiedLabelmapToolOperationData; - // (undocumented) - protected _hoverData?: { - brushCursor: any; - segmentationId: string; - segmentIndex: number; - segmentColor: [number, number, number, number]; - viewportIdsToRender: string[]; - centerCanvas?: Array; - viewport: Types_2.IViewport; - }; - // (undocumented) - static previewData?: PreviewData; - // (undocumented) - protected get _previewData(): PreviewData; - // (undocumented) - rejectPreview(element?: HTMLDivElement): void; - // (undocumented) - static viewportContoursToLabelmap(viewport: Types_2.IViewport, options?: { - removeContours: boolean; - }): void; -} - -declare namespace LabelmapMemo { - export { - createLabelmapMemo, - restoreMemo, - createRleMemo, - createPreviewMemo, - LabelmapMemo_2 as LabelmapMemo - } -} - -// @public (undocumented) -type LabelmapMemo_2 = Types_2.Memo & { - segmentationVoxelManager: Types_2.IVoxelManager; - voxelManager: Types_2.IVoxelManager; - redoVoxelManager?: Types_2.IVoxelManager; - undoVoxelManager?: Types_2.IVoxelManager; - memo?: LabelmapMemo_2; -}; - -// @public (undocumented) -type LabelmapSegmentationData = LabelmapSegmentationDataVolume | LabelmapSegmentationDataStack | { - volumeId?: string; - referencedVolumeId?: string; - referencedImageIds?: string[]; - imageIds?: string[]; -}; - -// @public (undocumented) -type LabelmapSegmentationDataStack = { - imageIds: string[]; -}; - -// @public (undocumented) -type LabelmapSegmentationDataVolume = { - volumeId: string; - referencedVolumeId?: string; -}; - -// @public (undocumented) -type LabelmapStyle = BaseLabelmapStyle & InactiveLabelmapStyle; - -// @public (undocumented) -type LabelmapToolOperationData = { - segmentationId: string; - segmentIndex: number; - previewColors?: Record; - segmentsLocked: number[]; - viewPlaneNormal: number[]; - viewUp: number[]; - activeStrategy: string; - points: Types_2.Point3[]; - voxelManager: any; - override: { - voxelManager: Types_2.IVoxelManager; - imageData: vtkImageData; - }; - preview: any; - toolGroupId: string; - createMemo: (segmentId: any, segmentVoxels: any, previewVoxels?: any, previewMemo?: any) => LabelmapMemo_2; -}; - -// @public (undocumented) -type LabelmapToolOperationDataStack = LabelmapToolOperationData & LabelmapSegmentationDataStack; - -// @public (undocumented) -type LabelmapToolOperationDataVolume = LabelmapToolOperationData & LabelmapSegmentationDataVolume; - -// @public (undocumented) -export class LabelTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _activateModify: (element: HTMLDivElement) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => LabelAnnotation; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _deactivateModify: (element: HTMLDivElement) => void; - // (undocumented) - _doneChangingTextCallback(element: any, annotation: any, updatedText: any): void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - newAnnotation?: boolean; - hasMoved?: boolean; - offset: Types_2.Point3; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: Annotation, handle: ToolHandle, interactionType: InteractionTypes): void; - // (undocumented) - static hydrate: (viewportId: string, position: Types_2.Point3, text: string, options?: { - annotationUID?: string; - }) => LabelAnnotation; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume(index1: any, index2: any, dimensions: any): boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: LabelAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: any; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: LabelAnnotation) => void; -} - -// @public (undocumented) -interface LengthAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - label: string; - cachedStats: { - [targetId: string]: { - length: number; - unit: string; - }; - }; - }; -} - -// @public (undocumented) -export class LengthTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _activateModify: (element: HTMLDivElement) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => LengthAnnotation; - // (undocumented) - _calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any): any; - // (undocumented) - _calculateLength(pos1: any, pos2: any): number; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _deactivateModify: (element: HTMLDivElement) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: LengthAnnotation, handle: ToolHandle): void; - // (undocumented) - static hydrate: (viewportId: string, points: Types_2.Point3[], options?: { - annotationUID?: string; - }) => LengthAnnotation; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume(index1: any, index2: any, dimensions: any): boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: LengthAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: LengthAnnotation) => void; -} - -// @public (undocumented) -class LinearSpline extends CardinalSpline { - constructor(); -} - -declare namespace lineSegment { - export { - distanceToPoint_2 as distanceToPoint, - distanceToPointSquared_2 as distanceToPointSquared, - distanceToPointSquaredInfo, - intersectLine, - isPointOnLineSegment - } -} - -// @public (undocumented) -type LivewireContourAnnotation = ContourAnnotation; - -// @public (undocumented) -type LivewireContourSegmentationAnnotation = LivewireContourAnnotation & ContourSegmentationAnnotationData; - -// @public (undocumented) -export class LivewireContourSegmentationTool extends LivewireContourTool { - // (undocumented) - protected isContourSegmentationTool(): boolean; - // (undocumented) - protected renderAnnotationInstance(renderContext: any): boolean; - // (undocumented) - static toolName: string; - // (undocumented) - updateInterpolatedAnnotation(annotation: ContourSegmentationAnnotation, enabledElement: Types_2.IEnabledElement): void; -} - -// @public (undocumented) -export class LivewireContourTool extends ContourSegmentationBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - addNewAnnotation(evt: EventTypes_2.InteractionEventType): LivewireContourAnnotation; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - cancelInProgress(element: any, config: any, evt: any): void; - // (undocumented) - protected clearEditData(): void; - // (undocumented) - protected createAnnotation(evt: EventTypes_2.InteractionEventType): ContourAnnotation; - // (undocumented) - editData: { - annotation: LivewireContourAnnotation; - viewportIdsToRender: Array; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - lastCanvasPoint?: Types_2.Point2; - confirmedPath?: LivewirePath; - currentPath?: LivewirePath; - confirmedPathNext?: LivewirePath; - closed?: boolean; - worldToSlice?: (point: Types_2.Point3) => Types_2.Point2; - sliceToWorld?: (point: Types_2.Point2) => Types_2.Point3; - originalPath?: Types_2.Point3[]; - contourHoleProcessingEnabled?: boolean; - } | null; - // (undocumented) - editHandle(worldPos: Types_2.Point3, element: any, annotation: LivewireContourAnnotation, handleIndex: number): void; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType, clearAnnotation?: boolean) => void; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: LivewireContourAnnotation, handle: ToolHandle) => void; - // (undocumented) - protected isContourSegmentationTool(): boolean; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: LivewireContourAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation(enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper): boolean; - // (undocumented) - protected renderAnnotationInstance(renderContext: { - enabledElement: Types_2.IEnabledElement; - targetId: string; - annotation: LivewireContourAnnotation; - annotationStyle: AnnotationStyle; - svgDrawingHelper: SVGDrawingHelper; - }): boolean; - // (undocumented) - protected scissors: LivewireScissors; - // (undocumented) - protected scissorsNext: LivewireScissors; - // (undocumented) - protected setupBaseEditData(worldPos: any, element: any, annotation: any, nextPos?: any, contourHoleProcessingEnabled?: any): void; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: LivewireContourAnnotation) => void; - // (undocumented) - triggerAnnotationModified: (annotation: LivewireContourAnnotation, enabledElement: Types_2.IEnabledElement, changeType?: ChangeTypes) => void; - // (undocumented) - triggerChangeEvent: (annotation: LivewireContourAnnotation, enabledElement: Types_2.IEnabledElement, changeType?: ChangeTypes, contourHoleProcessingEnabled?: boolean) => void; - // (undocumented) - protected updateAnnotation(livewirePath: LivewirePath): void; -} - -declare namespace locking { - export { - setAnnotationLocked, - getAnnotationsLocked, - getAnnotationsLockedCount, - unlockAllAnnotations, - isAnnotationLocked, - checkAndSetAnnotationLocked - } -} - -// @public (undocumented) -export class MagnifyTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _createMagnificationViewport: () => void; - // (undocumented) - _deactivateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _dragEndCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - referencedImageId: string; - viewportIdsToRender: string[]; - enabledElement: Types_2.IEnabledElement; - renderingEngine: Types_2.IRenderingEngine; - currentPoints: IPoints; - } | null; - // (undocumented) - _getReferencedImageId(viewport: Types_2.IStackViewport | Types_2.IVolumeViewport): string; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - preTouchStartCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - static toolName: any; -} - -declare namespace math { - export { - aabb, - BasicStatsCalculator, - circle, - ellipse, - lineSegment, - point, - polyline, - rectangle, - vec2, - angle - } -} - -// @public (undocumented) -function mergePolylines(targetPolyline: Types_2.Point2[], sourcePolyline: Types_2.Point2[]): Types_2.Point2[]; - -// @public (undocumented) -export class MIPJumpToClickTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - mouseClickCallback(evt: any): void; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -function mirror(mirrorPoint: Types_2.Point2, staticPoint: Types_2.Point2): Types_2.Point2; - -// @public (undocumented) -enum MouseBindings { - // (undocumented) - Auxiliary = 4, - // (undocumented) - Fifth_Button = 16, - // (undocumented) - Fourth_Button = 8, - // (undocumented) - Primary = 1, - // (undocumented) - Primary_And_Auxiliary = 5, - // (undocumented) - Primary_And_Secondary = 3, - // (undocumented) - Primary_And_Secondary_And_Auxiliary = 7, - // (undocumented) - Secondary = 2, - // (undocumented) - Secondary_And_Auxiliary = 6, - // (undocumented) - Wheel = 524288, - // (undocumented) - Wheel_Primary = 524289 -} - -// @public (undocumented) -type MouseClickEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & { - mouseButton: number; -}; - -// @public (undocumented) -type MouseClickEventType = Types_2.CustomEventType; - -// @public (undocumented) -class MouseCursor { - constructor(name: string, fallback?: MouseCursor | undefined); - // (undocumented) - addFallbackStyleProperty(style: string): string; - // (undocumented) - static getDefinedCursor(name: string): MouseCursor | undefined; - // (undocumented) - getName(): string; - // (undocumented) - getStyleProperty(): string; - // (undocumented) - static setDefinedCursor(name: string, cursor: MouseCursor): boolean; -} - -// @public (undocumented) -type MouseDoubleClickEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail; - -// @public (undocumented) -type MouseDoubleClickEventType = Types_2.CustomEventType; - -// @public (undocumented) -type MouseDownActivateEventDetail = NormalizedInteractionEventDetail & MousePointsDetail & MouseCustomEventDetail & { - mouseButton: number; -}; - -// @public (undocumented) -type MouseDownActivateEventType = Types_2.CustomEventType; - -// @public (undocumented) -type MouseDownEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & { - mouseButton: number; -}; - -// @public (undocumented) -type MouseDownEventType = Types_2.CustomEventType; - -// @public (undocumented) -type MouseDragEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & { - mouseButton: number; -}; - -// @public (undocumented) -type MouseDragEventType = Types_2.CustomEventType; - -// @public (undocumented) -type MouseMoveEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & { - currentPoints: IPoints; -}; - -// @public (undocumented) -type MouseMoveEventType = Types_2.CustomEventType; - -// @public (undocumented) -type MouseUpEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & MousePointsDetail & { - mouseButton: number; -}; - -// @public (undocumented) -type MouseUpEventType = Types_2.CustomEventType; - -// @public (undocumented) -type MouseWheelEventDetail = NormalizedInteractionEventDetail & MouseCustomEventDetail & { - detail: Record; - wheel: { - spinX: number; - spinY: number; - pixelX: number; - pixelY: number; - direction: number; - }; - points: IPoints; -}; - -// @public (undocumented) -type MouseWheelEventType = Types_2.CustomEventType; - -// @public (undocumented) -type NamedStatistics = { - mean: Statistics & { - name: 'mean'; - }; - max: Statistics & { - name: 'max'; - }; - min: Statistics & { - name: 'min'; - }; - stdDev: Statistics & { - name: 'stdDev'; - }; - count: Statistics & { - name: 'count'; - }; - area?: Statistics & { - name: 'area'; - }; - volume?: Statistics & { - name: 'volume'; - }; - circumference?: Statistics & { - name: 'circumference'; - }; - pointsInShape?: Types_2.IPointsManager; - maxIJKs?: Array<{ - value: number; - pointIJK: Types_2.Point3; - }>; - array: Statistics[]; -}; - -// @public (undocumented) -type NormalizedInteractionEventDetail = { - eventName: string; - renderingEngineId: string; - viewportId: string; - camera: Record; - element: HTMLDivElement; -}; - -// @public (undocumented) -type NormalizedMouseEventType = Types_2.CustomEventType; - -// @public (undocumented) -type NormalizedTouchEventType = Types_2.CustomEventType; - -// @public (undocumented) -function normalizeViewportPlane(viewport: Types_2.IViewport, boundsIJK: Types_2.BoundsIJK): { - toIJK: any; - boundsIJKPrime: any; - fromIJK: any; - error: string; -} | { - boundsIJKPrime: any; - toIJK: (ijkPrime: any) => any; - fromIJK: (ijk: any) => any; - type: string; - error?: undefined; -} | { - boundsIJKPrime: any; - toIJK: ([j, k, i]: [any, any, any]) => any[]; - fromIJK: ([i, j, k]: [any, any, any]) => any[]; - type: string; - error?: undefined; -}; - -declare namespace orientation_2 { - export { - getOrientationStringLPS, - invertOrientationStringLPS - } -} - -// @public (undocumented) -export class OrientationMarkerTool extends BaseTool { - constructor(toolProps?: {}, defaultToolProps?: { - configuration: { - orientationWidget: { - enabled: boolean; - viewportCorner: Corners; - viewportSize: number; - minPixelSize: number; - maxPixelSize: number; - }; - overlayMarkerType: OverlayMarkerType; - overlayConfiguration: OverlayConfiguration; - }; - }); - // (undocumented) - addAxisActorInViewport(viewport: any): Promise; - // (undocumented) - static AXIS: number; - // (undocumented) - createAnnotatedCubeActor(): Promise; - // (undocumented) - static CUBE: number; - // (undocumented) - _getViewportsInfo: () => any[]; - // (undocumented) - onSetToolActive: () => void; - // (undocumented) - onSetToolDisabled: () => void; - // (undocumented) - onSetToolEnabled: () => void; - // (undocumented) - orientationMarkers: any; - // (undocumented) - static OVERLAY_MARKER_TYPES: typeof OverlayMarkerType; - // (undocumented) - polyDataURL: any; - // (undocumented) - resize: (viewportId: any) => void; - // (undocumented) - _resizeObservers: Map; - // (undocumented) - _subscribeToViewportEvents(): void; - // (undocumented) - static toolName: any; - // (undocumented) - _unsubscribeToViewportNewVolumeSet(): void; - // (undocumented) - updatingOrientationMarker: any; - // (undocumented) - static VTPFILE: number; -} - -// @public (undocumented) -export class OverlayGridTool extends AnnotationDisplayTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - calculateImageIdPointSets: (imageId: string) => { - pointSet1: Types_2.Point3[]; - pointSet2: Types_2.Point3[]; - }; - // (undocumented) - _init: () => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - onSetToolActive: () => void; - // (undocumented) - onSetToolEnabled: () => void; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -export class PaintFillTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -export class PanTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _dragCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - mouseDragCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - static toolName: any; - // (undocumented) - touchDragCallback(evt: EventTypes_2.InteractionEventType): void; -} - -declare namespace planar_2 { - export { - _default as default, - filterAnnotationsWithinSlice, - getWorldWidthAndHeightFromCorners, - getWorldWidthAndHeightFromTwoPoints, - filterAnnotationsForDisplay, - getPointInLineOfSightWithCriteria, - isPlaneIntersectingAABB, - filterAnnotationsWithinSamePlane, - getPointsInLineOfSight - } -} - -// @public (undocumented) -type PlanarBoundingBox = { - x: number; - y: number; - width: number; - height: number; -}; - -// @public (undocumented) -type PlanarFreehandContourSegmentationAnnotation = PlanarFreehandROIAnnotation & ContourSegmentationAnnotationData; - -// @public (undocumented) -export class PlanarFreehandContourSegmentationTool extends PlanarFreehandROITool { - constructor(toolProps: PublicToolProps); - // (undocumented) - protected isContourSegmentationTool(): boolean; - // (undocumented) - protected renderAnnotationInstance(renderContext: AnnotationRenderContext): boolean; - // (undocumented) - static toolName: string; -} - -// @public (undocumented) -type PlanarFreehandROIAnnotation = ContourAnnotation & { - data: { - label?: string; - isOpenUShapeContour?: boolean; - openUShapeContourVectorToPeak?: Types_2.Point3[]; - cachedStats?: ROICachedStats; - }; -}; - -// @public (undocumented) -export class PlanarFreehandROITool extends ContourSegmentationBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - protected activateDraw: (evt: EventTypes_2.InteractionEventType, annotation: PlanarFreehandROIAnnotation, viewportIdsToRender: string[]) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => PlanarFreehandROIAnnotation; - // (undocumented) - _calculateStatsIfActive(annotation: PlanarFreehandROIAnnotation, targetId: string, viewport: any, renderingEngine: any, enabledElement: any): void; - // (undocumented) - cancel: (element: HTMLDivElement) => void; - // (undocumented) - protected createAnnotation(evt: EventTypes_2.InteractionEventType): ContourAnnotation; - // (undocumented) - filterInteractableAnnotationsForElement(element: HTMLDivElement, annotations: Annotations): Annotations | undefined; - // (undocumented) - protected getAnnotationStyle(context: any): any; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: PlanarFreehandROIAnnotation, handle: ToolHandle) => void; - // (undocumented) - protected isContourSegmentationTool(): boolean; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isEditingClosed: boolean; - // (undocumented) - isEditingOpen: boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: PlanarFreehandROIAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - protected renderAnnotationInstance(renderContext: AnnotationRenderContext): boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: PlanarFreehandROIAnnotation) => void; - // (undocumented) - protected updateClosedCachedStats({ viewport, points, imageData, metadata, cachedStats, targetId, modalityUnit, canvasCoordinates, calibratedScale, }: { - viewport: any; - points: any; - imageData: any; - metadata: any; - cachedStats: any; - targetId: any; - modalityUnit: any; - canvasCoordinates: any; - calibratedScale: any; - }): void; - // (undocumented) - protected updateOpenCachedStats({ targetId, metadata, canvasCoordinates, cachedStats, modalityUnit, calibratedScale, }: { - targetId: any; - metadata: any; - canvasCoordinates: any; - cachedStats: any; - modalityUnit: any; - calibratedScale: any; - }): void; -} - -declare namespace planarFreehandROITool { - export { - _default_4 as default, - smoothAnnotation - } -} - -// @public (undocumented) -export class PlanarRotateTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _dragCallback(evt: EventTypes_2.MouseDragEventType): void; - // (undocumented) - mouseDragCallback: (evt: EventTypes_2.MouseDragEventType) => void; - // (undocumented) - mouseWheelCallback: (evt: EventTypes_2.MouseWheelEventType) => void; - // (undocumented) - setAngle(viewport: any, angle: any): void; - // (undocumented) - static toolName: any; - // (undocumented) - touchDragCallback: (evt: EventTypes_2.MouseDragEventType) => void; -} - -// @public (undocumented) -function playClip(element: HTMLDivElement, playClipOptions: CINETypes.PlayClipOptions): void; - -// @public (undocumented) -type PlayClipOptions = { - framesPerSecond?: number; - frameTimeVector?: number[]; - reverse?: boolean; - loop?: boolean; - dynamicCineEnabled?: boolean; - frameTimeVectorSpeedMultiplier?: number; - waitForRendered?: number; -}; - -declare namespace point { - export { - distanceToPoint_3 as distanceToPoint, - distanceToPointSquared_3 as distanceToPointSquared, - mirror - } -} - -// @public (undocumented) -const pointCanProjectOnLine: (p: Types_2.Point2, p1: Types_2.Point2, p2: Types_2.Point2, proximity: number) => boolean; - -// @public (undocumented) -function pointInEllipse(ellipse: any, pointLPS: any, inverts?: Inverts): boolean; - -// @public (undocumented) -function pointInSurroundingSphereCallback(imageData: vtkImageData, circlePoints: [Types_2.Point3, Types_2.Point3], callback: (args: { - value: unknown; - index: number; - pointIJK: Types_2.Point3; - pointLPS: Types_2.Point3; -}) => void, viewport?: Types_2.IVolumeViewport): void; - -// @public (undocumented) -const pointsAreWithinCloseContourProximity: (p1: Types_2.Point2, p2: Types_2.Point2, closeContourProximity: number) => boolean; - -// @public (undocumented) -function pointToString(point: any, decimals?: number): string; - -declare namespace polyDataUtils { - export { - getPoint, - getPolyDataPointIndexes, - getPolyDataPoints - } -} - -declare namespace polyline { - export { - isClosed, - containsPoint, - containsPoints, - getAABB, - getArea, - getSignedArea, - getWindingDirection, - getNormal3, - getNormal2, - intersectPolyline, - decimate_2 as decimate, - getFirstLineSegmentIntersectionIndexes, - getLineSegmentIntersectionsIndexes, - getLineSegmentIntersectionsCoordinates, - getClosestLineSegmentIntersection, - getSubPixelSpacingAndXYDirections, - pointsAreWithinCloseContourProximity, - addCanvasPointsToArray, - pointCanProjectOnLine, - mergePolylines, - subtractPolylines, - isPointInsidePolyline3D, - projectTo2D - } -} - -// @public (undocumented) -const precalculatePointInEllipse: (ellipse: any, inverts?: Inverts) => Inverts; - -// @public (undocumented) -interface ProbeAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - }; - cachedStats: { - [targetId: string]: { - Modality: string; - index: Types_2.Point3; - value: number; - }; - }; - label: string; - }; -} - -// @public (undocumented) -export class ProbeTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: any); - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => ProbeAnnotation; - // (undocumented) - _calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any, changeType?: ChangeTypes): any; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragCallback: (evt: any) => void; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - getHandleNearImagePoint(element: HTMLDivElement, annotation: ProbeAnnotation, canvasCoords: Types_2.Point2, proximity: number): ToolHandle | undefined; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: ProbeAnnotation): void; - // (undocumented) - static hydrate: (viewportId: string, points: Types_2.Point3[], options?: { - annotationUID?: string; - }) => ProbeAnnotation; - // (undocumented) - isPointNearTool(element: HTMLDivElement, annotation: ProbeAnnotation, canvasCoords: Types_2.Point2, proximity: number): boolean; - // (undocumented) - static probeDefaults: { - supportedInteractionTypes: string[]; - configuration: { - shadow: boolean; - preventHandleOutsideImage: boolean; - getTextLines: typeof defaultGetTextLines; - handleRadius: string; - }; - }; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback(): void; -} - -// @public (undocumented) -function projectTo2D(polyline: Types_2.Point3[]): { - sharedDimensionIndex: any; - projectedPolyline: Types_2.Point2[]; -}; - -// @public (undocumented) -type PublicToolProps = SharedToolProp & { - name?: string; -}; - -// @public (undocumented) -class QuadraticBezier extends QuadraticSpline { - // (undocumented) - protected getTransformMatrix(): number[]; - // (undocumented) - hasTangentPoints(): boolean; -} - -// @public (undocumented) -abstract class QuadraticSpline extends Spline { - // (undocumented) - protected getLineSegments(): SplineLineSegment[]; - // (undocumented) - getPreviewCurveSegments(controlPointPreview: Types_2.Point2, closeSpline: boolean): SplineCurveSegment[]; - // (undocumented) - protected getSplineCurves(): SplineCurveSegment[]; -} - -declare namespace rectangle { - export { - distanceToPoint_4 as distanceToPoint - } -} - -// @public (undocumented) -interface RectangleROIAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - label: string; - cachedStats?: ROICachedStats | { - pointsInVolume?: Types_2.Point3[]; - projectionPoints?: Types_2.Point3[]; - projectionPointsImageIds?: string[]; - }; - }; -} - -// @public (undocumented) -interface RectangleROIStartEndThresholdAnnotation extends Annotation { - // (undocumented) - data: { - label: string; - startCoordinate: number; - endCoordinate: number; - cachedStats: { - pointsInVolume: Types_2.Point3[]; - projectionPoints: Types_2.Point3[][]; - projectionPointsImageIds: string[]; - statistics?: ROICachedStats; - }; - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - }; - // (undocumented) - metadata: { - cameraPosition?: Types_2.Point3; - cameraFocalPoint?: Types_2.Point3; - viewPlaneNormal?: Types_2.Point3; - viewUp?: Types_2.Point3; - annotationUID?: string; - FrameOfReferenceUID: string; - referencedImageId?: string; - toolName: string; - enabledElement: Types_2.IEnabledElement; - volumeId: string; - spacingInNormal: number; - }; -} - -// @public (undocumented) -export class RectangleROIStartEndThresholdTool extends RectangleROITool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => { - highlighted: boolean; - invalidated: boolean; - metadata: { - viewPlaneNormal: Types_2.Point3; - enabledElement: Types_2.IEnabledElement; - viewUp: Types_2.Point3; - FrameOfReferenceUID: string; - referencedImageId: any; - toolName: string; - volumeId: any; - spacingInNormal: number; - }; - data: { - label: string; - startCoordinate: number; - endCoordinate: number; - cachedStats: { - pointsInVolume: any[]; - projectionPoints: any[]; - projectionPointsImageIds: any[]; - statistics: ROICachedStats; - }; - handles: { - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - points: Types_2.Point3[]; - activeHandleIndex: any; - }; - labelmapUID: any; - }; - }; - // (undocumented) - _calculateCachedStatsTool(annotation: any, enabledElement: any): any; - // (undocumented) - _computePointsInsideVolume(annotation: any, targetId: any, imageVolume: any, enabledElement: any): void; - // (undocumented) - _computeProjectionPoints(annotation: RectangleROIStartEndThresholdAnnotation, imageVolume: Types_2.IImageVolume): void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _getCoordinateForViewplaneNormal(pos: vec3 | number, viewPlaneNormal: Types_2.Point3): number | undefined; - // (undocumented) - _getEndCoordinate(worldPos: Types_2.Point3, spacingInNormal: number, viewPlaneNormal: Types_2.Point3): number | undefined; - // (undocumented) - _getIndexOfCoordinatesForViewplaneNormal(viewPlaneNormal: Types_2.Point3): number; - // (undocumented) - _getStartCoordinate(worldPos: Types_2.Point3, viewPlaneNormal: Types_2.Point3): number | undefined; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -interface RectangleROIThresholdAnnotation extends Annotation { - // (undocumented) - data: { - label: string; - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - }; - }; - // (undocumented) - metadata: { - cameraPosition?: Types_2.Point3; - cameraFocalPoint?: Types_2.Point3; - viewPlaneNormal?: Types_2.Point3; - viewUp?: Types_2.Point3; - annotationUID?: string; - FrameOfReferenceUID: string; - referencedImageId?: string; - toolName: string; - enabledElement: Types_2.IEnabledElement; - volumeId: string; - }; -} - -// @public (undocumented) -export class RectangleROIThresholdTool extends RectangleROITool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => { - highlighted: boolean; - invalidated: boolean; - metadata: { - viewPlaneNormal: Types_2.Point3; - enabledElement: Types_2.IEnabledElement; - viewUp: Types_2.Point3; - FrameOfReferenceUID: string; - referencedImageId: any; - toolName: string; - volumeId: any; - }; - data: { - label: string; - handles: { - textBox: { - hasMoved: boolean; - worldPosition: any; - worldBoundingBox: any; - }; - points: Types_2.Point3[]; - activeHandleIndex: any; - }; - segmentationId: any; - }; - }; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -function rectangleROIThresholdVolumeByRange(annotationUIDs: string[], segmentationVolume: Types_2.IImageVolume, thresholdVolumeInformation: ThresholdInformation[], options: ThresholdOptions): Types_2.IImageVolume; - -// @public (undocumented) -export class RectangleROITool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => RectangleROIAnnotation; - // (undocumented) - _calculateCachedStats: (annotation: any, viewPlaneNormal: any, viewUp: any, renderingEngine: any, enabledElement: any) => any; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _getRectangleImageCoordinates: (points: Array) => { - left: number; - top: number; - width: number; - height: number; - }; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: RectangleROIAnnotation, handle: ToolHandle) => void; - // (undocumented) - static hydrate: (viewportId: string, points: Types_2.Point3[], options?: { - annotationUID?: string; - }) => RectangleROIAnnotation; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume: (index1: any, index2: any, dimensions: any) => boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: RectangleROIAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: RectangleROIAnnotation) => void; -} - -declare namespace rectangleROITool { - export { - getBoundsIJKFromRectangleAnnotations, - isAxisAlignedRectangle - } -} - -// @public (undocumented) -export class RectangleScissorsTool extends LabelmapBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - volumeId: string; - referencedVolumeId: string; - imageId: string; - annotation: Annotation; - segmentationId: string; - segmentIndex: number; - segmentsLocked: number[]; - segmentColor: [number, number, number, number]; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -interface ReferenceCursor extends Annotation { - // (undocumented) - data: { - handles: { - points: [Types_2.Point3]; - }; - }; -} - -// @public (undocumented) -export class ReferenceCursors extends AnnotationDisplayTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - createInitialAnnotation: (worldPos: Types_2.Point3, element: HTMLDivElement) => void; - // (undocumented) - _currentCanvasPosition: null | Types_2.Point2; - // (undocumented) - _currentCursorWorldPosition: null | Types_2.Point3; - // (undocumented) - _disableCursorEnabled: boolean; - // (undocumented) - _elementWithCursor: null | HTMLDivElement; - // (undocumented) - filterInteractableAnnotationsForElement(element: HTMLDivElement, annotations: Annotations): Annotations; - // (undocumented) - getActiveAnnotation(element: HTMLDivElement): null | Annotation; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - mouseMoveCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - onCameraModified: (evt: Types_2.EventTypes.CameraModifiedEvent) => void; - // (undocumented) - onSetToolActive(): void; - // (undocumented) - onSetToolDisabled(): void; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: any; - // (undocumented) - updateAnnotationPosition(element: HTMLDivElement, annotation: Annotation): void; - // (undocumented) - updateViewportImage(viewport: Types_2.IStackViewport | Types_2.IVolumeViewport): void; -} - -// @public (undocumented) -interface ReferenceLineAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - }; - }; -} - -// @public (undocumented) -export class ReferenceLinesTool extends AnnotationDisplayTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - editData: { - renderingEngine: Types_2.IRenderingEngine; - sourceViewportId: string; - annotation: ReferenceLineAnnotation; - } | null; - // (undocumented) - _init: () => void; - // (undocumented) - intersectInfiniteLines(line1Start: Types_2.Point2, line1End: Types_2.Point2, line2Start: Types_2.Point2, line2End: Types_2.Point2): number[]; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - isInBound(point: number[], dimensions: Types_2.Point3): boolean; - // (undocumented) - isParallel(vec1: Types_2.Point3, vec2: Types_2.Point3): boolean; - // (undocumented) - isPerpendicular: (vec1: Types_2.Point3, vec2: Types_2.Point3) => boolean; - // (undocumented) - onCameraModified: (evt: Types_2.EventTypes.CameraModifiedEvent) => void; - // (undocumented) - onSetToolConfiguration: () => void; - // (undocumented) - onSetToolEnabled: () => void; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -export class RegionSegmentPlusTool extends GrowCutBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - protected getGrowCutLabelmap(growCutData: any): Promise; - // (undocumented) - protected getRemoveIslandData(growCutData: RegionSegmentPlusToolData): RemoveIslandData; - // (undocumented) - protected growCutData: RegionSegmentPlusToolData | null; - // (undocumented) - preMouseDownCallback(evt: EventTypes_2.MouseDownActivateEventType): Promise; - // (undocumented) - static toolName: string; -} - -// @public (undocumented) -export class RegionSegmentTool extends GrowCutBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - protected getGrowCutLabelmap(growCutData: any): Promise; - // (undocumented) - protected growCutData: RegionSegmentToolData | null; - // (undocumented) - preMouseDownCallback(evt: EventTypes_2.MouseDownActivateEventType): Promise; - // (undocumented) - renderAnnotation(enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper): void; - // (undocumented) - static toolName: string; -} - -// @public (undocumented) -function registerCursor(toolName: string, iconContent: string, viewBox: { - x: number; - y: number; -}): void; - -// @public (undocumented) -function removeAllSegmentationRepresentations(): void; - -// @public (undocumented) -function removeAllSegmentations(): void; - -// @public (undocumented) -function removeColorLUT(colorLUTIndex: number): void; - -// @public (undocumented) -function removeContourRepresentation(viewportId: string, segmentationId: string, immediate?: boolean): void; - -// @public (undocumented) -function removeContourSegmentationAnnotation(annotation: ContourSegmentationAnnotation): void; - -// @public (undocumented) -function removeEnabledElement(elementDisabledEvt: Types_2.EventTypes.ElementDisabledEvent): void; - -// @public (undocumented) -function removeLabelmapRepresentation(viewportId: string, segmentationId: string, immediate?: boolean): void; - -// @public (undocumented) -function removeSegment(segmentationId: string, segmentIndex: number, options?: { - setNextSegmentAsActive: boolean; -}): void; - -// @public (undocumented) -function removeSegmentation(segmentationId: string): void; - -// @public (undocumented) -function removeSegmentationRepresentation(viewportId: string, specifier: { - segmentationId: string; - type: SegmentationRepresentations; -}, immediate?: boolean): Array<{ - segmentationId: string; - type: SegmentationRepresentations; -}>; - -// @public (undocumented) -function removeSegmentationRepresentations(viewportId: string, specifier: { - segmentationId?: string; - type?: SegmentationRepresentations; -}, immediate?: boolean): Array<{ - segmentationId: string; - type: SegmentationRepresentations; -}>; - -// @public (undocumented) -function removeSurfaceRepresentation(viewportId: string, segmentationId: string, immediate?: boolean): void; - -// @public (undocumented) -export function removeTool(ToolClass: any): void; - -// @public (undocumented) -type RepresentationData = LabelmapSegmentationData | ContourSegmentationData | SurfaceSegmentationData; - -// @public (undocumented) -type RepresentationsData = { - [Enums.SegmentationRepresentations.Labelmap]?: LabelmapSegmentationData; - [Enums.SegmentationRepresentations.Contour]?: ContourSegmentationData; - [Enums.SegmentationRepresentations.Surface]?: SurfaceSegmentationData; -}; - -// @public (undocumented) -type RepresentationStyle = LabelmapStyle | ContourStyle | SurfaceStyle; - -// @public (undocumented) -function resetElementCursor(element: HTMLDivElement): void; - -// @public (undocumented) -function resetToGlobalStyle(): void; - -// @public (undocumented) -function restoreMemo(isUndo?: boolean): void; - -// @public (undocumented) -interface ROICachedStats { - // (undocumented) - [targetId: string]: { - Modality: string; - area: number; - areaUnit: string; - max: number; - mean: number; - stdDev: number; - }; -} - -// @public (undocumented) -function rotatePoints(rotationMatrix: number[], origin: number[], points: number[]): number[]; - -// @public (undocumented) -const roundNumber_2: typeof utilities_2.roundNumber; - -// @public (undocumented) -function runGrowCut(referenceVolumeId: string, labelmapVolumeId: string, options?: GrowCutOptions): Promise; - -// @public (undocumented) -function runGrowCutForBoundingBox(referencedVolumeId: string, boundingBoxInfo: BoundingBoxInfo, options?: GrowCutBoundingBoxOptions): Promise; - -// @public (undocumented) -function runGrowCutForSphere(referencedVolumeId: string, sphereInfo: SphereInfo, viewport: Types_2.IViewport, options?: GrowCutOptions): Promise; - -// @public (undocumented) -function runOneClickGrowCut(referencedVolumeId: string, worldPosition: Types_2.Point3, viewport: Types_2.IViewport, options?: GrowCutOneClickOptions): Promise; - -// @public (undocumented) -interface ScaleOverlayAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - }; - viewportId: string; - }; -} - -// @public (undocumented) -export class ScaleOverlayTool extends AnnotationDisplayTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - computeCanvasScaleCoordinates: (canvasSize: any, canvasCoordinates: any, vscaleBounds: any, hscaleBounds: any, location: any) => any; - // (undocumented) - computeEndScaleTicks: (canvasCoordinates: any, location: any) => { - endTick1: any[][]; - endTick2: any[][]; - }; - // (undocumented) - computeInnerScaleTicks: (scaleSize: number, location: string, annotationUID: string, leftTick: Types_2.Point2[], rightTick: Types_2.Point2[]) => { - tickIds: any[]; - tickUIDs: any[]; - tickCoordinates: any[]; - }; - // (undocumented) - computeScaleBounds: (canvasSize: any, horizontalReduction: any, verticalReduction: any, location: any) => { - height: any; - width: any; - }; - // (undocumented) - computeScaleSize: (worldWidthViewport: number, worldHeightViewport: number, location: string) => any; - // (undocumented) - computeWorldScaleCoordinates: (scaleSize: any, location: any, pointSet: any) => any; - // (undocumented) - editData: { - renderingEngine: Types_2.IRenderingEngine; - viewport: Types_2.IViewport; - annotation: ScaleOverlayAnnotation; - } | null; - // (undocumented) - _getTextLines(scaleSize: number): string[] | undefined; - // (undocumented) - _init: () => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - onCameraModified: (evt: Types_2.EventTypes.CameraModifiedEvent) => void; - // (undocumented) - onSetToolEnabled: () => void; - // (undocumented) - renderAnnotation(enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper): boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -export class SculptorTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - protected activateModify(element: HTMLDivElement): void; - // (undocumented) - protected deactivateModify(element: HTMLDivElement): void; - // (undocumented) - protected interpolatePointsWithinMaxSpacing(i: number, points: Array, indicesToInsertAfter: Array, maxSpacing: number): void; - // (undocumented) - mouseMoveCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - registeredShapes: Map; - // (undocumented) - registerShapes(shapeName: string, shapeClass: new () => T): void; - // (undocumented) - renderAnnotation(enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper): void; - // (undocumented) - protected sculpt(eventData: any, points: Array): void; - // (undocumented) - setToolShape(toolShape: string): void; - // (undocumented) - static toolName: string; -} - -// @public (undocumented) -type Segment = { - segmentIndex: number; - label: string; - locked: boolean; - cachedStats: { - [key: string]: unknown; - }; - active: boolean; -}; - -// @public (undocumented) -type Segmentation = { - segmentationId: string; - label: string; - segments: { - [segmentIndex: number]: Segment; - }; - representationData: RepresentationsData; - cachedStats: { - [key: string]: unknown; - }; -}; - -declare namespace segmentation { - export { - removeSegmentationRepresentation, - removeContourRepresentation, - removeLabelmapRepresentation, - removeSurfaceRepresentation, - removeAllSegmentations, - removeSegmentation, - removeSegmentationRepresentations, - addLabelmapRepresentationToViewport, - addLabelmapRepresentationToViewportMap, - addSegmentationRepresentations, - removeAllSegmentationRepresentations, - addContourRepresentationToViewport, - addContourRepresentationToViewportMap, - addSurfaceRepresentationToViewport, - addSurfaceRepresentationToViewportMap, - addSegmentations, - updateSegmentations, - state_3 as state, - activeSegmentation, - segmentLocking, - config_2 as config, - segmentIndex, - triggerSegmentationEvents, - helpers, - removeSegment, - getLabelmapImageIds, - internalAddRepresentationData as addRepresentationData, - strategies, - segmentationStyle, - defaultSegmentationStateManager - } -} -export { segmentation } - -declare namespace segmentation_2 { - export { - thresholdVolumeByRange, - createMergedLabelmapForIndex, - createLabelmapVolumeForViewport, - rectangleROIThresholdVolumeByRange, - triggerSegmentationRender, - triggerSegmentationRenderBySegmentationId, - floodFill, - getBrushSizeForToolGroup, - setBrushSizeForToolGroup, - getBrushThresholdForToolGroup, - setBrushThresholdForToolGroup, - VolumetricCalculator, - thresholdSegmentationByRange, - contourAndFindLargestBidirectional, - createBidirectionalToolData, - segmentContourAction, - invalidateBrushCursor, - getUniqueSegmentIndices, - getSegmentIndexAtWorldPoint, - getSegmentIndexAtLabelmapBorder, - getHoveredContourSegmentationAnnotation, - getBrushToolInstances, - growCut, - LabelmapMemo, - IslandRemoval, - getOrCreateSegmentationVolume, - getStatistics, - validateLabelmap, - computeStackLabelmapFromVolume, - computeVolumeLabelmapFromStack - } -} - -// @public (undocumented) -type SegmentationAddedEventDetail = { - segmentationId: string; -}; - -// @public (undocumented) -type SegmentationAddedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type SegmentationDataModifiedEventDetail = { - segmentationId: string; - modifiedSlicesToUse?: number[]; - segmentIndex?: number; -}; - -// @public (undocumented) -type SegmentationDataModifiedEventType = Types_2.CustomEventType; - -// @public (undocumented) -export class SegmentationIntersectionTool extends AnnotationDisplayTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _init: () => void; - // (undocumented) - onCameraModified: (evt: Types_2.EventTypes.CameraModifiedEvent) => void; - // (undocumented) - onSetToolEnabled: () => void; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -type SegmentationModifiedEventDetail = { - segmentationId: string; -}; - -// @public (undocumented) -type SegmentationModifiedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type SegmentationPublicInput = { - segmentationId: string; - representation: { - type: Enums.SegmentationRepresentations; - data?: RepresentationData; - }; - config?: { - segments?: { - [segmentIndex: number]: Partial; - }; - label?: string; - cachedStats?: { - [key: string]: unknown; - }; - }; -}; - -// @public (undocumented) -type SegmentationRemovedEventDetail = { - segmentationId: string; -}; - -// @public (undocumented) -type SegmentationRemovedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type SegmentationRenderedEventDetail = { - viewportId: string; - segmentationId: string; - type: string; -}; - -// @public (undocumented) -type SegmentationRenderedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type SegmentationRepresentation = LabelmapRepresentation | ContourRepresentation | SurfaceRepresentation; - -// @public (undocumented) -type SegmentationRepresentationModifiedEventDetail = { - segmentationId: string; - type: string; - viewportId: string; -}; - -// @public (undocumented) -type SegmentationRepresentationModifiedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type SegmentationRepresentationRemovedEventDetail = { - segmentationId: string; - type: string; - viewportId: string; -}; - -// @public (undocumented) -type SegmentationRepresentationRemovedEventType = Types_2.CustomEventType; - -// @public (undocumented) -enum SegmentationRepresentations { - // (undocumented) - Contour = "Contour", - // (undocumented) - Labelmap = "Labelmap", - // (undocumented) - Surface = "Surface" -} - -// @public (undocumented) -type SegmentationState = { - colorLUT: Types_2.ColorLUT[]; - segmentations: Segmentation[]; - viewportSegRepresentations: { - [viewportId: string]: Array; - }; -}; - -// @public (undocumented) -const segmentationStyle: SegmentationStyle; - -// @public (undocumented) -function segmentContourAction(element: HTMLDivElement, configuration: any): any; - -declare namespace segmentIndex { - export { - setActiveSegmentIndex, - getActiveSegmentIndex - } -} - -declare namespace segmentLocking { - export { - isSegmentIndexLocked, - setSegmentIndexLocked, - getLockedSegmentIndices - } -} - -// @public (undocumented) -export class SegmentSelectTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - mouseMoveCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - onSetToolActive: () => void; - // (undocumented) - onSetToolDisabled: () => void; - // (undocumented) - onSetToolEnabled: () => void; - // (undocumented) - static SelectMode: { - Inside: string; - Border: string; - }; - // (undocumented) - _setActiveSegment(evt?: EventTypes_2.InteractionEventType): void; - // (undocumented) - _setActiveSegmentForType(activeSegmentation: Segmentation, worldPoint: Types_2.Point3, viewport: Types_2.IStackViewport | Types_2.IVolumeViewport): void; - // (undocumented) - static toolName: any; -} - -declare namespace selection { - export { - setAnnotationSelected, - getAnnotationsSelected, - getAnnotationsSelectedByToolName, - getAnnotationsSelectedCount, - deselectAnnotation, - isAnnotationSelected - } -} - -// @public (undocumented) -function setActiveSegmentation(viewportId: string, segmentationId: string): void; - -// @public (undocumented) -function setActiveSegmentIndex(segmentationId: string, segmentIndex: number): void; - -// @public (undocumented) -function setAnnotationLocked(annotationUID: string, locked?: boolean): void; - -// @public (undocumented) -function setAnnotationSelected(annotationUID: string, selected?: boolean, preserveSelected?: boolean): void; - -// @public (undocumented) -function setAnnotationVisibility(annotationUID: string, visible?: boolean): void; - -// @public (undocumented) -function setAttributesIfNecessary(attributes: any, svgNode: any): void; - -// @public (undocumented) -function setBrushSizeForToolGroup(toolGroupId: string, brushSize: number, toolName?: string): void; - -// @public (undocumented) -function setBrushThresholdForToolGroup(toolGroupId: string, threshold: { - range: Types_2.Point2; - isDynamic: boolean; - dynamicRadius: number; -}): void; - -// @public (undocumented) -function setColorLUT(viewportId: string, segmentationId: string, colorLUTsIndex: number): void; - -// @public (undocumented) -function setCursorForElement(element: HTMLDivElement, cursorName: string): void; - -// @public (undocumented) -function _setElementCursor(element: HTMLDivElement, cursor: MouseCursor | null): void; - -// @public (undocumented) -function setNewAttributesIfValid(attributes: any, svgNode: any): void; - -// @public (undocumented) -function setRenderInactiveSegmentations(viewportId: string, renderInactiveSegmentations: boolean): void; - -// @public (undocumented) -function setSegmentationRepresentationVisibility(viewportId: string, specifier: { - segmentationId: string; - type?: SegmentationRepresentations; -}, visibility: boolean): void; - -// @public (undocumented) -function setSegmentIndexColor(viewportId: string, segmentationId: string, segmentIndex: number, color: Types_2.Color): void; - -// @public (undocumented) -function setSegmentIndexLocked(segmentationId: string, segmentIndex: number, locked?: boolean): void; - -// @public (undocumented) -function setSegmentIndexVisibility(viewportId: string, specifier: { - segmentationId: string; - type?: SegmentationRepresentations; -}, segmentIndex: number, visibility: boolean): void; - -// @public (undocumented) -function setStyle(specifier: SpecifierWithType, style: StyleForType): void; - -// @public (undocumented) -type SetToolBindingsType = { - bindings: IToolBinding[]; -}; - -// @public (undocumented) -function showAllAnnotations(): void; - -// @public (undocumented) -function smoothAnnotation(annotation: PlanarFreehandROIAnnotation, options?: SmoothOptions): boolean; - -// @public (undocumented) -type SphereInfo = { - center: Types_2.Point3; - radius: number; -}; - -// @public (undocumented) -export class SphereScissorsTool extends LabelmapBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - segmentIndex: number; - segmentsLocked: number[]; - segmentationId: string; - volumeId: string; - referencedVolumeId: string; - imageId: string; - toolGroupId: string; - segmentColor: [number, number, number, number]; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - centerCanvas?: Array; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => true; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -abstract class Spline implements ISpline { - constructor(props?: SplineProps); - // (undocumented) - get aabb(): Types_2.AABB2; - // (undocumented) - addControlPoint(point: Types_2.Point2): void; - // (undocumented) - addControlPointAtU(u: number): ControlPointInfo; - // (undocumented) - addControlPoints(points: Types_2.Point2[]): void; - // (undocumented) - clearControlPoints(): void; - // (undocumented) - get closed(): boolean; - set closed(closed: boolean); - // (undocumented) - containsPoint(point: Types_2.Point2): boolean; - // (undocumented) - protected get controlPoints(): Types_2.Point2[]; - // (undocumented) - deleteControlPointByIndex(index: number): boolean; - // (undocumented) - get fixedResolution(): boolean; - // (undocumented) - getClosestControlPoint(point: Types_2.Point2): ClosestControlPoint; - // (undocumented) - getClosestControlPointWithinDistance(point: Types_2.Point2, maxDist: number): ClosestControlPoint; - // (undocumented) - getClosestPoint(point: Types_2.Point2): ClosestSplinePoint; - // (undocumented) - getClosestPointOnControlPointLines(point: Types_2.Point2): ClosestPoint; - // (undocumented) - getControlPoints(): Types_2.Point2[]; - // (undocumented) - getPolylinePoints(): Types_2.Point2[]; - // (undocumented) - protected abstract getPreviewCurveSegments(controlPointPreview: Types_2.Point2, closeSpline: boolean): SplineCurveSegment[]; - // (undocumented) - getPreviewPolylinePoints(controlPointPreview: Types_2.Point2, closeDistance: number): Types_2.Point2[]; - // (undocumented) - protected abstract getSplineCurves(): SplineCurveSegment[]; - // (undocumented) - protected abstract getTransformMatrix(): number[]; - // (undocumented) - hasTangentPoints(): boolean; - // (undocumented) - get invalidated(): boolean; - protected set invalidated(invalidated: boolean); - // (undocumented) - isPointNearCurve(point: Types_2.Point2, maxDist: number): boolean; - // (undocumented) - get length(): number; - // (undocumented) - get numControlPoints(): number; - // (undocumented) - get resolution(): number; - set resolution(resolution: number); - // (undocumented) - setControlPoints(points: Types_2.Point2[]): void; - // (undocumented) - updateControlPoint(index: number, newControlPoint: Types_2.Point2): void; -} - -// @public (undocumented) -type SplineContourSegmentationAnnotation = SplineROIAnnotation & ContourSegmentationAnnotationData; - -// @public (undocumented) -export class SplineContourSegmentationTool extends SplineROITool { - constructor(toolProps: PublicToolProps); - // (undocumented) - protected isContourSegmentationTool(): boolean; - // (undocumented) - static toolName: string; -} - -// @public (undocumented) -type SplineCurveSegment = { - controlPoints: { - p0: Types_2.Point2; - p1: Types_2.Point2; - p2: Types_2.Point2; - p3: Types_2.Point2; - }; - aabb: Types_2.AABB2; - length: number; - previousCurveSegmentsLength: number; - lineSegments: SplineLineSegment[]; -}; - -// @public (undocumented) -type SplineLineSegment = { - points: { - start: Types_2.Point2; - end: Types_2.Point2; - }; - aabb: Types_2.AABB2; - length: number; - previousLineSegmentsLength: number; -}; - -// @public (undocumented) -type SplineProps = { - resolution?: number; - fixedResolution?: boolean; - closed?: boolean; -}; - -// @public (undocumented) -type SplineROIAnnotation = ContourAnnotation & { - data: { - label?: string; - spline: { - type: string; - instance: ISpline; - resolution: number; - }; - cachedStats?: { - [targetId: string]: { - Modality: string; - area: number; - areaUnit: string; - }; - }; - }; -}; - -// @public (undocumented) -export class SplineROITool extends ContourSegmentationBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - static Actions: typeof SplineToolActions; - // (undocumented) - addControlPointCallback: (evt: EventTypes_2.InteractionEventType, annotation: SplineROIAnnotation) => void; - // (undocumented) - addNewAnnotation(evt: EventTypes_2.InteractionEventType): SplineROIAnnotation; - // (undocumented) - cancel(element: HTMLDivElement): string; - // (undocumented) - protected createAnnotation(evt: EventTypes_2.InteractionEventType): ContourAnnotation; - // (undocumented) - protected createInterpolatedSplineControl(annotation: any): void; - // (undocumented) - deleteControlPointCallback: (evt: EventTypes_2.InteractionEventType, annotation: SplineROIAnnotation) => void; - // (undocumented) - editData: { - annotation: SplineROIAnnotation; - viewportIdsToRender: Array; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - lastCanvasPoint?: Types_2.Point2; - contourHoleProcessingEnabled?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - fireChangeOnUpdate: { - annotationUID: string; - changeType: ChangeTypes; - contourHoleProcessingEnabled: boolean; - }; - // (undocumented) - handleSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: SplineROIAnnotation, handle: ToolHandle) => void; - // (undocumented) - static hydrate: (viewportId: string, points: Types_2.Point3[], options?: { - annotationUID?: string; - splineType?: SplineTypesEnum; - }) => SplineROIAnnotation; - // (undocumented) - protected isContourSegmentationTool(): boolean; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: SplineROIAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - _isSplineROIAnnotation(annotation: Annotation): annotation is SplineROIAnnotation; - // (undocumented) - protected renderAnnotationInstance(renderContext: AnnotationRenderContext): boolean; - // (undocumented) - static SplineTypes: typeof SplineTypesEnum; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: EventTypes_2.InteractionEventType, annotation: SplineROIAnnotation) => void; - // (undocumented) - triggerAnnotationCompleted: (annotation: SplineROIAnnotation, contourHoleProcessingEnabled: boolean) => void; - // (undocumented) - triggerAnnotationModified: (annotation: SplineROIAnnotation, enabledElement: Types_2.IEnabledElement, changeType?: ChangeTypes) => void; - // (undocumented) - triggerChangeEvent: (annotation: SplineROIAnnotation, enabledElement: Types_2.IEnabledElement, changeType: ChangeTypes, contourHoleProcessingEnabled: any) => void; -} - -declare namespace splines { - export { - BSpline, - CardinalSpline, - CatmullRomSpline, - CubicSpline, - LinearSpline, - QuadraticBezier, - QuadraticSpline, - Spline - } -} -export { splines } - -// @public (undocumented) -const stackContextPrefetch: { - enable: (element: any) => void; - disable: typeof disable_2; - getConfiguration: typeof getConfiguration_2; - setConfiguration: typeof setConfiguration_2; -}; - -// @public (undocumented) -const stackPrefetch: { - enable: typeof enable; - disable: typeof disable; - getConfiguration: typeof getConfiguration; - setConfiguration: typeof setConfiguration; -}; - -// @public (undocumented) -export class StackScrollTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - deltaY: number; - // (undocumented) - _dragCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - _getPixelPerImage(viewport: any): number; - // (undocumented) - mouseDragCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - mouseWheelCallback(evt: EventTypes_2.MouseWheelEventType): void; - // (undocumented) - _scroll(evt: EventTypes_2.MouseWheelEventType): void; - // (undocumented) - _scrollDrag(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - static toolName: any; - // (undocumented) - touchDragCallback(evt: EventTypes_2.InteractionEventType): void; -} - -// @public (undocumented) -export let state: ICornerstoneTools3dState; - -// @public (undocumented) -const state_2: { - resetAnnotationManager: typeof resetAnnotationManager; - triggerAnnotationAddedForElement: typeof annotationStateHelpers.triggerAnnotationAddedForElement; - triggerAnnotationAddedForFOR: typeof annotationStateHelpers.triggerAnnotationAddedForFOR; - triggerAnnotationRemoved: typeof annotationStateHelpers.triggerAnnotationRemoved; - triggerAnnotationModified: typeof annotationStateHelpers.triggerAnnotationModified; - triggerAnnotationCompleted: typeof annotationStateHelpers.triggerAnnotationCompleted; - triggerContourAnnotationCompleted: typeof annotationStateHelpers.triggerContourAnnotationCompleted; - getAllAnnotations: typeof annotationState.getAllAnnotations; - getAnnotations: typeof annotationState.getAnnotations; - getParentAnnotation: typeof annotationState.getParentAnnotation; - getChildAnnotations: typeof annotationState.getChildAnnotations; - clearParentAnnotation: typeof annotationState.clearParentAnnotation; - addChildAnnotation: typeof annotationState.addChildAnnotation; - getNumberOfAnnotations: typeof annotationState.getNumberOfAnnotations; - addAnnotation: typeof annotationState.addAnnotation; - removeAnnotation: typeof annotationState.removeAnnotation; - removeAnnotations: typeof annotationState.removeAnnotations; - removeAllAnnotations: typeof annotationState.removeAllAnnotations; - setAnnotationManager: typeof annotationState.setAnnotationManager; - getAnnotationManager: typeof annotationState.getAnnotationManager; - invalidateAnnotation: typeof annotationState.invalidateAnnotation; - getAnnotation: typeof annotationState.getAnnotation; -}; - -declare namespace state_3 { - export { - getColorLUT, - getCurrentLabelmapImageIdForViewport, - getNextColorLUTIndex, - getSegmentation, - getSegmentations, - getStackSegmentationImageIdsForViewport, - getViewportIdsWithSegmentation, - getSegmentationRepresentation, - getSegmentationRepresentations, - removeColorLUT, - getViewportSegmentations, - removeSegmentation, - removeLabelmapRepresentation, - removeContourRepresentation, - removeSurfaceRepresentation, - removeSegmentationRepresentation, - removeAllSegmentationRepresentations, - removeAllSegmentations, - addColorLUT, - addSegmentations, - updateLabelmapSegmentationImageReferences, - getSegmentationRepresentationsBySegmentationId, - destroy_4 as destroy - } -} - -// @public (undocumented) -type Statistics = { - name: string; - label?: string; - value: number | number[]; - unit: null | string; - pointIJK?: Types_2.Point3; - pointLPS?: Types_2.Point3; -}; - -// @public (undocumented) -function stopClip(element: HTMLDivElement, options?: StopClipOptions): void; - -declare namespace store { - export { - addTool, - hasTool, - removeTool, - addEnabledElement, - removeEnabledElement, - cancelActiveManipulations, - svgNodeCache, - ToolGroupManager, - SynchronizerManager, - Synchronizer, - state - } -} -export { store } - -declare namespace strategies { - export { - fillInsideRectangle, - thresholdInsideRectangle, - fillInsideCircle, - fillOutsideCircle - } -} - -// @public (undocumented) -enum StrategyCallbacks { - // (undocumented) - AcceptPreview = "acceptPreview", - // (undocumented) - AddPreview = "addPreview", - // (undocumented) - ComputeInnerCircleRadius = "computeInnerCircleRadius", - // (undocumented) - CreateIsInThreshold = "createIsInThreshold", - // (undocumented) - EnsureImageVolumeFor3DManipulation = "ensureImageVolumeFor3DManipulation", - // (undocumented) - EnsureSegmentationVolumeFor3DManipulation = "ensureSegmentationVolumeFor3DManipulation", - // (undocumented) - Fill = "fill", - // (undocumented) - GetStatistics = "getStatistics", - // (undocumented) - Initialize = "initialize", - // (undocumented) - INTERNAL_setValue = "setValue", - // (undocumented) - Interpolate = "interpolate", - // (undocumented) - OnInteractionEnd = "onInteractionEnd", - // (undocumented) - OnInteractionStart = "onInteractionStart", - // (undocumented) - Preview = "preview", - // (undocumented) - RejectPreview = "rejectPreview", - // (undocumented) - StrategyFunction = "strategyFunction" -} - -declare namespace style { - export { - getStyle, - setStyle, - setRenderInactiveSegmentations, - getRenderInactiveSegmentations, - resetToGlobalStyle, - hasCustomStyle - } -} - -// @public (undocumented) -type StyleConfig = { - annotations?: { - [annotationUID: string]: AnnotationStyle; - }; - viewports?: { - [viewportId: string]: ToolStyleConfig; - }; - toolGroups?: { - [toolGroupId: string]: ToolStyleConfig; - }; - default: ToolStyleConfig; -}; - -// @public (undocumented) -type StyleSpecifier = { - viewportId?: string; - toolGroupId?: string; - toolName?: string; - annotationUID?: string; -}; - -// @public (undocumented) -function subtractPolylines(targetPolyline: Types_2.Point2[], sourcePolyline: Types_2.Point2[]): Types_2.Point2[][]; - -// @public (undocumented) -type SurfaceSegmentationData = { - geometryIds: Map; -}; - -// @public (undocumented) -type SurfaceStateStyles = {}; - -// @public (undocumented) -type SurfaceStyle = {}; - -// @public (undocumented) -type SVGCursorDescriptor = { - name?: string; - iconContent: string; - iconSize?: number; - viewBox: { - x: number; - y: number; - }; - mousePoint?: { - x: number; - y: number; - }; - mousePointerGroupString?: string; -}; - -// @public (undocumented) -type SVGDrawingHelper = { - svgLayerElement: HTMLDivElement; - svgNodeCacheForCanvas: Record; - getSvgNode: (cacheKey: string) => SVGGElement | undefined; - appendNode: (svgNode: SVGElement, cacheKey: string) => void; - setNodeTouched: (cacheKey: string) => void; - clearUntouched: () => void; -}; - -// @public (undocumented) -class SVGMouseCursor extends ImageMouseCursor { - constructor(url: string, x?: number, y?: number, name?: string | undefined, fallback?: MouseCursor | undefined); - // (undocumented) - static getDefinedCursor(name: string, pointer?: boolean, color?: string): MouseCursor; -} - -// @public (undocumented) -let svgNodeCache: {}; - -// @public (undocumented) -type SVGPoint_2 = { - x: number; - y: number; -}; - -// @public (undocumented) -enum Swipe { - // (undocumented) - DOWN = "DOWN", - // (undocumented) - LEFT = "LEFT", - // (undocumented) - RIGHT = "RIGHT", - // (undocumented) - UP = "UP" -} - -// @public (undocumented) -export class Synchronizer { - constructor(synchronizerId: string, eventName: string, eventHandler: ISynchronizerEventHandler, options?: SynchronizerOptions); - // (undocumented) - add(viewportInfo: Types_2.IViewportId): void; - // (undocumented) - addSource(viewportInfo: Types_2.IViewportId): void; - // (undocumented) - addTarget(viewportInfo: Types_2.IViewportId): void; - // (undocumented) - destroy(): void; - // (undocumented) - getOptions(viewportId: string): Record | undefined; - // (undocumented) - getSourceViewports(): Array; - // (undocumented) - getTargetViewports(): Array; - // (undocumented) - hasSourceViewport(renderingEngineId: string, viewportId: string): boolean; - // (undocumented) - hasTargetViewport(renderingEngineId: string, viewportId: string): boolean; - // (undocumented) - id: string; - // (undocumented) - isDisabled(): boolean; - // (undocumented) - remove(viewportInfo: Types_2.IViewportId): void; - // (undocumented) - removeSource(viewportInfo: Types_2.IViewportId): void; - // (undocumented) - removeTarget(viewportInfo: Types_2.IViewportId): void; - // (undocumented) - setEnabled(enabled: boolean): void; - // (undocumented) - setOptions(viewportId: string, options?: Record): void; -} - -declare namespace SynchronizerManager { - export { - createSynchronizer, - destroy_2 as destroy, - getSynchronizer, - getSynchronizersForViewport, - getAllSynchronizers, - destroySynchronizer - } -} -export { SynchronizerManager } - -declare namespace synchronizers { - export { - createCameraPositionSynchronizer, - createPresentationViewSynchronizer, - createVOISynchronizer, - createZoomPanSynchronizer, - createImageSliceSynchronizer, - createStackImageSynchronizer, - createPresentationViewSynchronizer_2 as createSlabThicknessSynchronizer - } -} -export { synchronizers } - -// @public (undocumented) -type TextBoxHandle = { - hasMoved: boolean; - worldBoundingBox: { - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - }; - worldPosition: Types_2.Point3; -}; - -// @public (undocumented) -const thresholdInsideRectangle: (enabledElement: any, operationData: any) => unknown; - -// @public (undocumented) -function thresholdSegmentationByRange(segmentationVolume: Types_2.IImageVolume, segmentationIndex: number, thresholdVolumeInformation: ThresholdInformation[], overlapType: number): Types_2.IImageVolume; - -// @public (undocumented) -function thresholdVolumeByRange(segmentationVolume: Types_2.IImageVolume, thresholdVolumeInformation: ThresholdInformation[], options: ThresholdRangeOptions): Types_2.IImageVolume; - -// @public (undocumented) -function throttle(func: Function, wait?: number, options?: { - leading?: boolean; - trailing?: boolean; -}): Function; - -// @public (undocumented) -type ToolAction = { - method: string | ((evt: InteractionEventType, annotation: Annotation) => void); - bindings: SetToolBindingsType[]; -}; - -// @public (undocumented) -type ToolActivatedEventDetail = { - toolGroupId: string; - toolName: string; - toolBindingsOptions: SetToolBindingsType; -}; - -// @public (undocumented) -type ToolActivatedEventType = Types_2.CustomEventType; - -// @public (undocumented) -type ToolConfiguration = Record & { - statsCalculator?: Calculator; -}; - -// @public (undocumented) -interface ToolData { - // (undocumented) - dynamicCineEnabled?: boolean; - // (undocumented) - framesPerSecond: number; - // (undocumented) - frameTimeVector: number[] | undefined; - // (undocumented) - ignoreFrameTimeVector: boolean; - // (undocumented) - intervalId: number | undefined; - // (undocumented) - lastFrameTimeStamp: number | undefined; - // (undocumented) - loop: boolean; - // (undocumented) - reverse: boolean; - // (undocumented) - speed: number; - // (undocumented) - usingFrameTimeVector: boolean; -} - -// @public (undocumented) -class ToolGroup { - constructor(id: string); - // (undocumented) - addTool(toolName: string, configuration?: ToolConfiguration): void; - // (undocumented) - addToolInstance(toolName: string, parentClassName: string, configuration?: {}): void; - // (undocumented) - addViewport(viewportId: string, renderingEngineId?: string): void; - // (undocumented) - clone(newToolGroupId: any, fnToolFilter?: (toolName: string) => void): ToolGroup; - // (undocumented) - currentActivePrimaryToolName: string | null; - // (undocumented) - getActivePrimaryMouseButtonTool(): string; - // (undocumented) - getCurrentActivePrimaryToolName(): string; - // (undocumented) - getDefaultMousePrimary(): MouseBindings; - // (undocumented) - getDefaultPrimaryBindings(): IToolBinding[]; - // (undocumented) - getPrevActivePrimaryToolName(): string; - // (undocumented) - getToolConfiguration(toolName: string, configurationPath?: string): unknown; - // (undocumented) - getToolInstance(toolInstanceName: string): any; - // (undocumented) - getToolInstances(): Record; - // (undocumented) - getToolOptions(toolName: string): ToolOptionsType; - // (undocumented) - getViewportIds(): string[]; - // (undocumented) - getViewportsInfo(): Array; - // (undocumented) - hasTool(toolName: string): boolean; - // (undocumented) - id: string; - // (undocumented) - prevActivePrimaryToolName: string | null; - // (undocumented) - removeViewports(renderingEngineId: string, viewportId?: string): void; - // (undocumented) - restoreToolOptions: {}; - // (undocumented) - setActivePrimaryTool(toolName: string): void; - // (undocumented) - setActiveStrategy(toolName: string, strategyName: string): void; - // (undocumented) - _setCursorForViewports(cursor: MouseCursor): void; - // (undocumented) - setToolActive(toolName: string, toolBindingsOptions?: SetToolBindingsType): void; - // (undocumented) - setToolConfiguration(toolName: string, configuration: ToolConfiguration, overwrite?: boolean): boolean; - // (undocumented) - setToolDisabled(toolName: string): void; - // (undocumented) - setToolEnabled(toolName: string): void; - // (undocumented) - setToolMode(toolName: string, mode: ToolModes, options?: SetToolBindingsType): void; - // (undocumented) - setToolPassive(toolName: string, options?: { - removeAllBindings?: boolean | IToolBinding[]; - }): void; - // (undocumented) - setViewportsCursorByToolName(toolName: string, strategyName?: string): void; - // (undocumented) - _toolInstances: {}; - // (undocumented) - toolOptions: {}; - // (undocumented) - viewportsInfo: any[]; -} - -declare namespace ToolGroupManager { - export { - createToolGroup, - destroy_3 as destroy, - destroyToolGroup, - getToolGroup, - getToolGroupForViewport, - getAllToolGroups, - getToolGroupsWithToolName - } -} -export { ToolGroupManager } - -// @public (undocumented) -type ToolHandle = AnnotationHandle | TextBoxHandle; - -// @public (undocumented) -type ToolModeChangedEventDetail = { - toolGroupId: string; - toolName: string; - mode: ToolModes; - toolBindingsOptions?: SetToolBindingsType; -}; - -// @public (undocumented) -type ToolModeChangedEventType = Types_2.CustomEventType; - -// @public (undocumented) -enum ToolModes { - // (undocumented) - Active = "Active", - // (undocumented) - Disabled = "Disabled", - // (undocumented) - Enabled = "Enabled", - // (undocumented) - Passive = "Passive" -} - -// @public (undocumented) -type ToolOptionsType = { - bindings: IToolBinding[]; - mode: ToolModes; -}; - -// @public (undocumented) -type ToolProps = SharedToolProp; - -declare namespace ToolSpecificAnnotationTypes { - export { - ROICachedStats, - RectangleROIAnnotation, - ProbeAnnotation, - KeyImageAnnotation, - LengthAnnotation, - AdvancedMagnifyAnnotation, - CircleROIAnnotation, - SplineROIAnnotation, - SplineContourSegmentationAnnotation, - LivewireContourAnnotation, - LivewireContourSegmentationAnnotation, - EllipticalROIAnnotation, - BidirectionalAnnotation, - RectangleROIThresholdAnnotation, - RectangleROIStartEndThresholdAnnotation, - CircleROIStartEndThresholdAnnotation, - PlanarFreehandROIAnnotation, - PlanarFreehandContourSegmentationAnnotation, - InterpolationROIAnnotation, - ArrowAnnotation, - LabelAnnotation, - AngleAnnotation, - UltrasoundDirectionalAnnotation, - CobbAngleAnnotation, - ReferenceCursor, - ReferenceLineAnnotation, - ScaleOverlayAnnotation, - VideoRedactionAnnotation, - ContourAnnotation - } -} - -// @public (undocumented) -const toolStyle: ToolStyle; - -// @public (undocumented) -type ToolStyleConfig = { - [toolName: string]: AnnotationStyle; -} & { - global?: AnnotationStyle; -}; - -declare namespace touch { - export { - getMeanPoints, - getMeanTouchPoints, - copyPoints, - copyPointsList, - getDeltaDistanceBetweenIPoints, - getDeltaPoints, - getDeltaDistance, - getDeltaRotation - } -} - -// @public (undocumented) -type TouchDragEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail; - -// @public (undocumented) -type TouchDragEventType = Types_2.CustomEventType; - -// @public (undocumented) -type TouchEndEventDetail = NormalizedInteractionEventDetail & TouchPointsDetail & TouchCustomEventDetail; - -// @public (undocumented) -type TouchEndEventType = Types_2.CustomEventType; - -// @public (undocumented) -type TouchPressEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & { - startPointsList: ITouchPoints[]; - lastPointsList: ITouchPoints[]; - startPoints: ITouchPoints; - lastPoints: ITouchPoints; -}; - -// @public (undocumented) -type TouchPressEventType = Types_2.CustomEventType; - -// @public (undocumented) -type TouchStartActivateEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail; - -// @public (undocumented) -type TouchStartActivateEventType = Types_2.CustomEventType; - -// @public (undocumented) -type TouchStartEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & TouchPointsDetail; - -// @public (undocumented) -type TouchStartEventType = Types_2.CustomEventType; - -// @public (undocumented) -type TouchSwipeEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & { - swipe: Swipe; -}; - -// @public (undocumented) -type TouchSwipeEventType = Types_2.CustomEventType; - -// @public (undocumented) -type TouchTapEventDetail = NormalizedInteractionEventDetail & TouchCustomEventDetail & { - currentPointsList: ITouchPoints[]; - currentPoints: ITouchPoints; - taps: number; -}; - -// @public (undocumented) -type TouchTapEventType = Types_2.CustomEventType; - -// @public (undocumented) -export class TrackballRotateTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - cleanUp: () => void; - // (undocumented) - _dragCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - _getViewportsInfo: () => any[]; - // (undocumented) - _hasResolutionChanged: boolean; - // (undocumented) - mouseDragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - onSetToolActive: () => void; - // (undocumented) - onSetToolDisabled: () => void; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - _resizeObservers: Map; - // (undocumented) - rotateCamera: (viewport: any, centerWorld: any, axis: any, angle: any) => void; - // (undocumented) - static toolName: any; - // (undocumented) - touchDragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _viewportAddedListener: (evt: any) => void; -} - -// @public (undocumented) -function triggerAnnotationRender(element: HTMLDivElement): void; - -// @public (undocumented) -function triggerAnnotationRenderForToolGroupIds(toolGroupIds: string[]): void; - -// @public (undocumented) -function triggerAnnotationRenderForViewportIds(viewportIdsToRender: string[]): void; - -// @public (undocumented) -function triggerEvent(el: EventTarget, type: string, detail?: unknown): boolean; - -// @public (undocumented) -function triggerSegmentationDataModified(segmentationId: string, modifiedSlicesToUse?: number[], segmentIndex?: number): void; - -declare namespace triggerSegmentationEvents { - export { - triggerSegmentationDataModified, - triggerSegmentationModified, - triggerSegmentationRemoved, - triggerSegmentationRepresentationModified, - triggerSegmentationRepresentationRemoved - } -} - -// @public (undocumented) -function triggerSegmentationModified(segmentationId: string): void; - -// @public (undocumented) -function triggerSegmentationRemoved(segmentationId: string): void; - -// @public (undocumented) -function triggerSegmentationRender(viewportId?: string): void; - -// @public (undocumented) -function triggerSegmentationRenderBySegmentationId(segmentationId?: string): void; - -// @public (undocumented) -function triggerSegmentationRepresentationModified(viewportId: string, segmentationId: string, type?: SegmentationRepresentations): void; - -// @public (undocumented) -function triggerSegmentationRepresentationRemoved(viewportId: string, segmentationId: string, type: SegmentationRepresentations): void; - -declare namespace Types { - export { - Annotation, - Annotations, - ContourAnnotationData, - ContourAnnotation, - ContourSegmentationAnnotationData, - ContourSegmentationAnnotation, - BidirectionalData, - CanvasCoordinates, - IAnnotationManager, - InterpolationViewportData, - ImageInterpolationData, - GroupSpecificAnnotations, - AnnotationState, - AnnotationStyle_2 as AnnotationStyle, - ToolSpecificAnnotationTypes, - AnnotationGroupSelector, - AnnotationRenderContext, - PlanarBoundingBox, - ToolProps, - PublicToolProps, - ToolConfiguration, - EventTypes_2 as EventTypes, - IPoints, - ITouchPoints, - IDistance, - IToolBinding, - SetToolBindingsType, - ToolOptionsType, - InteractionTypes, - ToolAction, - ToolGroup as IToolGroup, - IToolClassReference, - ISynchronizerEventHandler, - ToolHandle, - AnnotationHandle, - TextBoxHandle, - Segmentation, - SegmentationRepresentation, - SegmentationState, - RepresentationData, - RepresentationsData, - SVGCursorDescriptor, - SVGPoint_2 as SVGPoint, - CINETypes, - BoundsIJK_2 as BoundsIJK, - SVGDrawingHelper, - FloodFillResult, - FloodFillGetter, - FloodFillOptions, - ContourSegmentationData, - ISculptToolShape, - Statistics, - NamedStatistics, - LabelmapToolOperationData, - LabelmapToolOperationDataStack, - LabelmapToolOperationDataVolume, - CardinalSplineProps, - ClosestControlPoint, - ClosestPoint, - ClosestSplinePoint, - ControlPointInfo, - ISpline, - SplineCurveSegment, - SplineLineSegment, - SplineProps, - IBaseTool, - RepresentationStyle, - Segment, - SegmentationPublicInput, - LabelmapStyle, - ContourStyle, - SurfaceStyle, - SurfaceSegmentationData, - SurfaceStateStyles, - LabelmapSegmentationData, - LabelmapSegmentationDataStack, - LabelmapSegmentationDataVolume, - BaseLabelmapStyle, - InactiveLabelmapStyle - } -} -export { Types } - -declare namespace Types_3 { - export { - ColorbarCommonProps, - ColorbarProps, - ColorbarImageRange, - ColorbarVOIRange, - ColorbarSize, - ColorbarTicksProps, - ColorbarTicksStyle, - ViewportColorbarProps - } -} - -// @public (undocumented) -interface UltrasoundDirectionalAnnotation extends Annotation { - // (undocumented) - data: { - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - textBox: { - hasMoved: boolean; - worldPosition: Types_2.Point3; - worldBoundingBox: { - topLeft: Types_2.Point3; - topRight: Types_2.Point3; - bottomLeft: Types_2.Point3; - bottomRight: Types_2.Point3; - }; - }; - }; - label: string; - cachedStats: { - [targetId: string]: { - xValues: number[]; - yValues: number[]; - units: string[]; - isHorizontal: boolean; - isUnitless: boolean; - }; - }; - }; -} - -// @public (undocumented) -export class UltrasoundDirectionalTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _activateModify: (element: HTMLDivElement) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => UltrasoundDirectionalAnnotation; - // (undocumented) - _calculateCachedStats(annotation: any, renderingEngine: any, enabledElement: any): any; - // (undocumented) - cancel: (element: HTMLDivElement) => string; - // (undocumented) - _deactivateDraw: (element: HTMLDivElement) => void; - // (undocumented) - _deactivateModify: (element: HTMLDivElement) => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - handleIndex?: number; - movingTextBox?: boolean; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: UltrasoundDirectionalAnnotation, handle: ToolHandle): void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - isPointNearTool: (element: HTMLDivElement, annotation: UltrasoundDirectionalAnnotation, canvasCoords: Types_2.Point2, proximity: number) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - startedDrawing: boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback(evt: EventTypes_2.InteractionEventType, annotation: Annotation, interactionType: InteractionTypes, canvasCoords?: Types_2.Point2): void; -} - -// @public (undocumented) -function unlockAllAnnotations(): void; - -// @public (undocumented) -function updateContourPolyline(annotation: ContourAnnotation, polylineData: { - points: Types_2.Point2[]; - closed?: boolean; - targetWindingDirection?: ContourWindingDirection; -}, transforms: { - canvasToWorld: (point: Types_2.Point2) => Types_2.Point3; - worldToCanvas: (point: Types_2.Point3) => Types_2.Point2; -}, options?: { - updateWindingDirection?: boolean; - decimate?: { - enabled?: boolean; - epsilon?: number; - }; -}): void; - -// @public (undocumented) -function updateLabelmapSegmentationImageReferences(viewportId: string, segmentationId: string): string | undefined; - -// @public (undocumented) -function updateSegmentations(segmentationUpdateArray: { - segmentationId: string; - payload: Partial; -}[], suppressEvents?: boolean): void; - -// @public (undocumented) -function updateVolumeFromTimeData(dynamicVolume: Types_2.IDynamicImageVolume, operation: Enums_2.GenerateImageType, options: { - dimensionGroupNumbers?: number[]; - frameNumbers?: number[]; - targetVolume: Types_2.IImageVolume; -}): void; - -declare namespace utilities { - export { - math, - planar_2 as planar, - viewportFilters, - drawing_2 as drawing, - debounce, - dynamicVolume, - throttle, - orientation_2 as orientation, - isObject, - touch, - triggerEvent, - calibrateImageSpacing, - getCalibratedLengthUnitsAndScale, - getCalibratedProbeUnitsAndValue, - getCalibratedAspect, - getPixelValueUnits, - getPixelValueUnitsImageId, - segmentation_2 as segmentation, - contours, - triggerAnnotationRenderForViewportIds, - triggerAnnotationRenderForToolGroupIds, - triggerAnnotationRender, - getSphereBoundsInfo, - getAnnotationNearPoint, - getViewportForAnnotation, - getAnnotationNearPointOnEnabledElement, - viewport, - cine, - boundingBox, - rectangleROITool, - planarFreehandROITool, - stackPrefetch, - stackContextPrefetch, - roundNumber_2 as roundNumber, - pointToString, - polyDataUtils, - voi, - AnnotationMultiSlice, - contourSegmentation, - annotationHydration, - getClosestImageIdForStackViewport, - pointInSurroundingSphereCallback, - normalizeViewportPlane, - IslandRemoval, - geometricSurfaceUtils - } -} -export { utilities } - -// @public (undocumented) -function validate(segmentationRepresentationData: LabelmapSegmentationData): void; - -declare namespace validateLabelmap { - export { - validatePublic, - validate - } -} - -// @public (undocumented) -function validatePublic(segmentationInput: SegmentationPublicInput): void; - -declare namespace vec2 { - export { - findClosestPoint, - clip_2 as liangBarksyClip - } -} - -// @public (undocumented) -interface VideoRedactionAnnotation extends Annotation { - // (undocumented) - data: { - invalidated: boolean; - handles: { - points: Types_2.Point3[]; - activeHandleIndex: number | null; - }; - cachedStats: { - [key: string]: unknown; - }; - active: boolean; - }; - // (undocumented) - metadata: { - viewPlaneNormal: Types_2.Point3; - viewUp: Types_2.Point3; - FrameOfReferenceUID: string; - referencedImageId: string; - toolName: string; - }; -} - -// @public (undocumented) -export class VideoRedactionTool extends AnnotationTool { - constructor(toolConfiguration?: {}); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _activateModify: (element: any) => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => VideoRedactionAnnotation; - // (undocumented) - _calculateCachedStats: (annotation: any, viewPlaneNormal: any, viewUp: any, renderingEngine: any, enabledElement: any) => any; - // (undocumented) - cancel(element: any): any; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _deactivateModify: (element: any) => void; - // (undocumented) - _dragCallback: (evt: any) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportUIDsToRender: string[]; - handleIndex?: number; - newAnnotation?: boolean; - hasMoved?: boolean; - } | null; - // (undocumented) - _endCallback: (evt: any) => void; - // (undocumented) - getHandleNearImagePoint: (element: any, annotation: any, canvasCoords: any, proximity: any) => any; - // (undocumented) - _getImageVolumeFromTargetUID(targetUID: any, renderingEngine: any): { - imageVolume: any; - viewport: any; - }; - // (undocumented) - _getRectangleImageCoordinates: (points: Array) => { - left: number; - top: number; - width: number; - height: number; - }; - // (undocumented) - _getTargetStackUID(viewport: any): string; - // (undocumented) - _getTargetVolumeUID: (scene: any) => any; - // (undocumented) - handleSelectedCallback: (evt: any, annotation: any, handle: any, interactionType?: string) => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isHandleOutsideImage: boolean; - // (undocumented) - _isInsideVolume: (index1: any, index2: any, dimensions: any) => boolean; - // (undocumented) - isPointNearTool: (element: any, annotation: any, canvasCoords: any, proximity: any) => boolean; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - _throttledCalculateCachedStats: Function; - // (undocumented) - static toolName: string; - // (undocumented) - toolSelectedCallback: (evt: any, annotation: any, interactionType?: string) => void; -} - -declare namespace viewport { - export { - isViewportPreScaled - } -} - -// @public (undocumented) -class ViewportColorbar extends Colorbar { - constructor(props: ViewportColorbarProps); - // (undocumented) - destroy(): void; - // (undocumented) - get element(): HTMLDivElement; - // (undocumented) - get enabledElement(): Types_2.IEnabledElement; - // (undocumented) - protected getVOIMultipliers(): [number, number]; - // (undocumented) - protected onVoiChange(voiRange: ColorbarVOIRange): void; -} - -// @public (undocumented) -type ViewportColorbarProps = ColorbarProps & { - element: HTMLDivElement; - volumeId?: string; -}; - -declare namespace viewportFilters { - export { - filterViewportsWithToolEnabled, - filterViewportsWithFrameOfReferenceUID, - getViewportIdsWithToolToRender, - filterViewportsWithParallelNormals - } -} - -declare namespace visibility { - export { - setAnnotationVisibility, - showAllAnnotations, - isAnnotationVisible, - checkAndSetAnnotationVisibility - } -} - -declare namespace visibility_2 { - export { - setSegmentationRepresentationVisibility, - getSegmentationRepresentationVisibility, - setSegmentIndexVisibility, - getSegmentIndexVisibility, - getHiddenSegmentIndices - } -} - -declare namespace voi { - export { - colorbar, - windowLevel_2 as windowLevel - } -} - -// @public (undocumented) -export class VolumeRotateTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _configuration: unknown; - // (undocumented) - mouseWheelCallback(evt: MouseWheelEventType): void; - // (undocumented) - static toolName: any; -} - -// @public (undocumented) -class VolumetricCalculator extends BasicStatsCalculator_2 { - // (undocumented) - static getStatistics(options: { - spacing?: number; - unit?: string; - }): NamedStatistics; - // (undocumented) - static statsCallback(data: { - value: number | Types_2.RGB; - pointLPS?: Types_2.Point3; - pointIJK?: Types_2.Point3; - }): void; -} - -// @public (undocumented) -export class WholeBodySegmentTool extends GrowCutBaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - protected getGrowCutLabelmap(growCutData: any): Promise; - // (undocumented) - protected getRemoveIslandData(): RemoveIslandData; - // (undocumented) - protected growCutData: WholeBodySegmentToolData | null; - // (undocumented) - preMouseDownCallback(evt: EventTypes_2.MouseDownActivateEventType): Promise; - // (undocumented) - renderAnnotation(enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper): void; - // (undocumented) - static toolName: any; -} - -declare namespace windowLevel_2 { - export { - getLuminanceFromRegion, - calculateMinMaxMean, - extractWindowLevelRegionToolData - } -} - -// @public (undocumented) -export class WindowLevelRegionTool extends AnnotationTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - _activateDraw: (element: any) => void; - // (undocumented) - _activateModify: () => void; - // (undocumented) - addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => Annotation; - // (undocumented) - applyWindowLevelRegion: (annotation: any, element: any) => void; - // (undocumented) - cancel: () => void; - // (undocumented) - _deactivateDraw: (element: any) => void; - // (undocumented) - _deactivateModify: () => void; - // (undocumented) - _dragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - editData: { - annotation: Annotation; - viewportIdsToRender: string[]; - } | null; - // (undocumented) - _endCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - handleSelectedCallback: () => void; - // (undocumented) - isDrawing: boolean; - // (undocumented) - isPointNearTool: () => any; - // (undocumented) - renderAnnotation: (enabledElement: Types_2.IEnabledElement, svgDrawingHelper: SVGDrawingHelper) => boolean; - // (undocumented) - static toolName: any; - // (undocumented) - toolSelectedCallback: () => void; -} - -// @public (undocumented) -export class WindowLevelTool extends BaseTool { - constructor(toolProps?: {}, defaultToolProps?: { - supportedInteractionTypes: string[]; - }); - // (undocumented) - _getImageDynamicRangeFromMiddleSlice: (scalarData: any, dimensions: any) => number; - // (undocumented) - _getImageDynamicRangeFromViewport(viewport: any): number; - // (undocumented) - _getMultiplierFromDynamicRange(viewport: any, volumeId: any): number; - // (undocumented) - getNewRange({ viewport, deltaPointsCanvas, volumeId, lower, upper }: { - viewport: any; - deltaPointsCanvas: any; - volumeId: any; - lower: any; - upper: any; - }): { - lower: number; - upper: number; - }; - // (undocumented) - getPTScaledNewRange({ deltaPointsCanvas, lower, upper, clientHeight, viewport, volumeId, isPreScaled, }: { - deltaPointsCanvas: any; - lower: any; - upper: any; - clientHeight: any; - viewport: any; - volumeId: any; - isPreScaled: any; - }): { - lower: any; - upper: any; - }; - // (undocumented) - mouseDragCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - static toolName: any; - // (undocumented) - touchDragCallback(evt: EventTypes_2.InteractionEventType): void; -} - -// @public (undocumented) -export class ZoomTool extends BaseTool { - constructor(toolProps?: PublicToolProps, defaultToolProps?: ToolProps); - // (undocumented) - dirVec: Types_2.Point3; - // (undocumented) - _dragCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - _dragParallelProjection: (evt: EventTypes_2.InteractionEventType, viewport: Types_2.IStackViewport | Types_2.IVolumeViewport, camera: Types_2.ICamera, pinch?: boolean) => void; - // (undocumented) - _dragPerspectiveProjection: (evt: EventTypes_2.InteractionEventType, viewport: Types_2.IStackViewport | Types_2.IVolumeViewport, camera: Types_2.ICamera, pinch?: boolean) => void; - // (undocumented) - initialMousePosWorld: Types_2.Point3; - // (undocumented) - mouseDragCallback: (evt: EventTypes_2.InteractionEventType) => void; - // (undocumented) - _panCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - _pinchCallback(evt: EventTypes_2.InteractionEventType): void; - // (undocumented) - preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - preTouchStartCallback: (evt: EventTypes_2.InteractionEventType) => boolean; - // (undocumented) - static toolName: any; - // (undocumented) - touchDragCallback: (evt: EventTypes_2.InteractionEventType) => void; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/package.json b/package.json index a1a1575346..c02a47d5fe 100644 --- a/package.json +++ b/package.json @@ -19,14 +19,7 @@ "build": "npx lerna run build --stream && npx lerna run build:loader", "build:esm": "npx lerna run build:esm --stream", "watch": "npx lerna watch -- lerna run build --scope=$LERNA_PACKAGE_NAME --include-dependents", - "build:update-api:ai": "cd packages/ai && npm run build:update-api", - "build:update-api:labelmap-interpolation": "cd packages/labelmap-interpolation && npm run build:update-api", - "build:update-api:polymorphic-segmentation": "cd packages/polymorphic-segmentation && npm run build:update-api", - "build:update-api:core": "cd packages/core && npm run build:update-api", - "build:update-api:tools": "cd packages/tools && npm run build:update-api", - "build:update-api:nifti": "cd packages/nifti-volume-loader && npm run build:update-api", - "build:update-api:dicomImageLoader": "cd packages/dicomImageLoader && npm run build:update-api", - "build:update-api": "npm run build && npm run build:update-api:ai && npm run build:update-api:core && npm run build:update-api:tools && npm run build:update-api:nifti && npm run build:update-api:dicomImageLoader", + "build:update-api": "echo not needed anymore", "clean": "npx lerna run clean --stream", "clean:deep": "npx lerna run clean:deep --stream", "example": "node ./utils/ExampleRunner/example-runner-cli.js", @@ -40,7 +33,7 @@ "docs:watch": "npx lerna run docs:watch", "preinstall": "node preinstall.js", "prepare": "husky", - "commit:prepare": "yarn build:update-api && yarn test:ci && yarn test:unit", + "commit:prepare": "yarn test:ci && yarn test:unit", "start": "yarn run dev", "test:e2e:ci": "npx playwright test", "test:e2e:ui": "npx playwright test --ui", diff --git a/packages/adapters/api-extractor.json b/packages/adapters/api-extractor.json deleted file mode 100644 index 4ddb5f44d3..0000000000 --- a/packages/adapters/api-extractor.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "projectFolder": ".", - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - "apiReport": { - "reportFileName": ".api.md", - "reportFolder": "../../common/reviews/api" - } -} diff --git a/packages/ai/api-extractor.json b/packages/ai/api-extractor.json deleted file mode 100644 index 4ddb5f44d3..0000000000 --- a/packages/ai/api-extractor.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "projectFolder": ".", - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - "apiReport": { - "reportFileName": ".api.md", - "reportFolder": "../../common/reviews/api" - } -} diff --git a/packages/ai/package.json b/packages/ai/package.json index 7ecea9c0a0..ba339d88a6 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -28,7 +28,6 @@ "build:esm:watch": "tsc --project ./tsconfig.json --watch", "dev": "tsc --project ./tsconfig.json --watch", "build:all": "yarn run build:esm", - "build:update-api": "yarn run build:esm && api-extractor run --local", "start": "tsc --project ./tsconfig.json --watch", "format": "prettier --write 'src/**/*.js' 'test/**/*.js'", "lint": "eslint --fix .", diff --git a/packages/core/api-extractor.json b/packages/core/api-extractor.json deleted file mode 100644 index 4ddb5f44d3..0000000000 --- a/packages/core/api-extractor.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "projectFolder": ".", - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - "apiReport": { - "reportFileName": ".api.md", - "reportFolder": "../../common/reviews/api" - } -} diff --git a/packages/core/package.json b/packages/core/package.json index 80eec62b00..898cb50f76 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -63,7 +63,6 @@ "dev": "tsc --project ./tsconfig.json --watch", "format-check": "npx eslint ./src --quiet", "api-check": "api-extractor --debug run ", - "build:update-api": "yarn run build:esm && api-extractor run --local", "prepublishOnly": "yarn run build" }, "dependencies": { diff --git a/packages/core/src/cache/classes/Surface.ts b/packages/core/src/cache/classes/Surface.ts index a3e2bb1965..b97a8383a2 100644 --- a/packages/core/src/cache/classes/Surface.ts +++ b/packages/core/src/cache/classes/Surface.ts @@ -15,6 +15,7 @@ export class Surface { private _polys: number[]; private _segmentIndex: number; private _centroid: Point3; + private _visible: boolean; /** * Creates an instance of Surface. @@ -29,6 +30,7 @@ export class Surface { this._segmentIndex = props.segmentIndex; this.sizeInBytes = this._getSizeInBytes(); this._updateCentroid(); + this._visible = true; } /** @@ -120,6 +122,21 @@ export class Surface { return this._segmentIndex; } + /** + * Gets the visibility of the surface. + */ + get visible(): boolean { + return this._visible; + } + + /** + * Sets the visibility of the surface. + * @param {boolean} visible - The new visibility for the surface. + */ + set visible(visible: boolean) { + this._visible = visible; + } + /** * Gets the centroid of the surface. * @returns {Point3} The centroid of the surface. diff --git a/packages/dicomImageLoader/api-extractor.json b/packages/dicomImageLoader/api-extractor.json deleted file mode 100644 index 4ddb5f44d3..0000000000 --- a/packages/dicomImageLoader/api-extractor.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "projectFolder": ".", - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - "apiReport": { - "reportFileName": ".api.md", - "reportFolder": "../../common/reviews/api" - } -} diff --git a/packages/dicomImageLoader/package.json b/packages/dicomImageLoader/package.json index ec6a3c9c64..2d4bb1c645 100644 --- a/packages/dicomImageLoader/package.json +++ b/packages/dicomImageLoader/package.json @@ -76,7 +76,6 @@ "clean:deep": "yarn run clean && shx rm -rf node_modules", "format-check": "npx eslint ./src --quiet", "api-check": "api-extractor --debug run ", - "build:update-api": "yarn run build:esm && api-extractor run --local", "cm": "npx git-cz", "clean:dist": "shx rm -rf dist", "clean:docs": "shx rm -rf documentation", diff --git a/packages/docs/docs/contribute/update-api.md b/packages/docs/docs/contribute/update-api.md deleted file mode 100644 index 8bbb78bd42..0000000000 --- a/packages/docs/docs/contribute/update-api.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -id: update-api ---- - -# API Updating - -We have adopted the [api-extractor](https://api-extractor.com/) tool to extract the public API from the codebase. -Having a consistent API is the key to making our library easy to use and build upon; therefore, -for each Pull Request (PR) we extract the API for the PR and compare it to the API of the base branch. - -If you have unintentionally changed the public API of the library, one of our checks in Github would -catch it and notify you by an Error. - -If the change to the API is intentional, you need to run `yarn run build:update-api` to update the API. -This will create set of new API summary files (located at `common/reviews/api/*`) and you need to add and commit them -with your changes, in order for the Error to be fixed. diff --git a/packages/docs/docs/migration-guides/2x/8-deverloper-experience.md b/packages/docs/docs/migration-guides/2x/8-deverloper-experience.md index f398c4300d..cd1a20000a 100644 --- a/packages/docs/docs/migration-guides/2x/8-deverloper-experience.md +++ b/packages/docs/docs/migration-guides/2x/8-deverloper-experience.md @@ -13,9 +13,6 @@ import TabItem from '@theme/TabItem'; We have removed all dependency cycles in the library, ensuring it is now free of any such issues. To maintain this, we have added rules in our linters that will catch any dependency cycles in pull requests during continuous integration. Additionally, you can run `yarn run format-check` to ensure that the formatting is correct and to check for dependencies as well. -### Published APIs - -We have now published the APIs for the DICOM Image Loader and Nifti Volume Loader. So in creating your PRs don't forget to run `yarn run build:update-api` and include the generated files in your PR. ### Karma tests diff --git a/packages/docs/package.json b/packages/docs/package.json index c336754b91..b0bf942d12 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -1,6 +1,6 @@ { "name": "docs", - "version": "3.0.0-beta.5", + "version": "3.0.0", "private": true, "repository": "https://github.com/cornerstonejs/cornerstone3D", "scripts": { diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js index 1ae3288400..43b8fab24f 100644 --- a/packages/docs/sidebars.js +++ b/packages/docs/sidebars.js @@ -251,7 +251,6 @@ module.exports = { collapsed: true, items: [ 'contribute/pull-request', - 'contribute/update-api', 'contribute/documentation', 'contribute/playwright-tests', 'contribute/karma-tests', diff --git a/packages/labelmap-interpolation/api-extractor.json b/packages/labelmap-interpolation/api-extractor.json deleted file mode 100644 index 4ddb5f44d3..0000000000 --- a/packages/labelmap-interpolation/api-extractor.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "projectFolder": ".", - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - "apiReport": { - "reportFileName": ".api.md", - "reportFolder": "../../common/reviews/api" - } -} diff --git a/packages/labelmap-interpolation/package.json b/packages/labelmap-interpolation/package.json index 50df075968..25e67cc3d8 100644 --- a/packages/labelmap-interpolation/package.json +++ b/packages/labelmap-interpolation/package.json @@ -33,7 +33,6 @@ "lint": "eslint --fix .", "format-check": "npx eslint ./src --quiet", "api-check": "api-extractor --debug run ", - "build:update-api": "yarn run build:esm && api-extractor run --local", "prepublishOnly": "yarn clean && yarn build" }, "repository": { diff --git a/packages/nifti-volume-loader/api-extractor.json b/packages/nifti-volume-loader/api-extractor.json deleted file mode 100644 index 4ddb5f44d3..0000000000 --- a/packages/nifti-volume-loader/api-extractor.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "projectFolder": ".", - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - "apiReport": { - "reportFileName": ".api.md", - "reportFolder": "../../common/reviews/api" - } -} diff --git a/packages/nifti-volume-loader/package.json b/packages/nifti-volume-loader/package.json index 4b38c4e9c8..419014beab 100644 --- a/packages/nifti-volume-loader/package.json +++ b/packages/nifti-volume-loader/package.json @@ -53,7 +53,6 @@ "format-check": "npx eslint ./src --quiet", "api-check": "api-extractor --debug run ", "copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist/esm", - "build:update-api": "yarn run build:esm && api-extractor run --local", "prepublishOnly": "yarn run build", "webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js" }, diff --git a/packages/polymorphic-segmentation/api-extractor.json b/packages/polymorphic-segmentation/api-extractor.json deleted file mode 100644 index 4ddb5f44d3..0000000000 --- a/packages/polymorphic-segmentation/api-extractor.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "projectFolder": ".", - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - "apiReport": { - "reportFileName": ".api.md", - "reportFolder": "../../common/reviews/api" - } -} diff --git a/packages/polymorphic-segmentation/package.json b/packages/polymorphic-segmentation/package.json index a4a1632e39..57c8480269 100644 --- a/packages/polymorphic-segmentation/package.json +++ b/packages/polymorphic-segmentation/package.json @@ -32,7 +32,6 @@ "lint": "eslint --fix .", "format-check": "npx eslint ./src --quiet", "api-check": "api-extractor --debug run ", - "build:update-api": "yarn run build:esm && api-extractor run --local", "prepublishOnly": "yarn clean && yarn build" }, "repository": { diff --git a/packages/tools/api-extractor.json b/packages/tools/api-extractor.json deleted file mode 100644 index 4ddb5f44d3..0000000000 --- a/packages/tools/api-extractor.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "projectFolder": ".", - "mainEntryPointFilePath": "/dist/esm/index.d.ts", - "apiReport": { - "reportFileName": ".api.md", - "reportFolder": "../../common/reviews/api" - } -} diff --git a/packages/tools/package.json b/packages/tools/package.json index 5f329dec44..7f48f3b0d1 100644 --- a/packages/tools/package.json +++ b/packages/tools/package.json @@ -89,7 +89,6 @@ "clean": "rm -rf node_modules/.cache/storybook && shx rm -rf dist", "clean:deep": "yarn run clean && shx rm -rf node_modules", "dev": "tsc --project ./tsconfig.json --watch", - "build:update-api": "yarn run build:esm && api-extractor run --local", "format-check": "npx eslint ./src --quiet", "api-check": "api-extractor --debug run ", "prepublishOnly": "yarn run build", diff --git a/packages/tools/src/stateManagement/segmentation/helpers/getSegmentationActor.ts b/packages/tools/src/stateManagement/segmentation/helpers/getSegmentationActor.ts index 0c088d69fe..845eb904ad 100644 --- a/packages/tools/src/stateManagement/segmentation/helpers/getSegmentationActor.ts +++ b/packages/tools/src/stateManagement/segmentation/helpers/getSegmentationActor.ts @@ -76,11 +76,12 @@ export function getSurfaceActorEntry( segmentationId: string, segmentIndex?: number | string ) { - return getActorEntry(viewportId, segmentationId, (actor) => - // @ts-expect-error - actor.representationUID?.startsWith( + return getActorEntry( + viewportId, + segmentationId, + (actor) => + actor.representationUID === getSurfaceRepresentationUID(segmentationId, segmentIndex) - ) ); } diff --git a/packages/tools/src/tools/displayTools/Surface/addOrUpdateSurfaceToElement.ts b/packages/tools/src/tools/displayTools/Surface/addOrUpdateSurfaceToElement.ts index 24595b4452..7e4764f703 100644 --- a/packages/tools/src/tools/displayTools/Surface/addOrUpdateSurfaceToElement.ts +++ b/packages/tools/src/tools/displayTools/Surface/addOrUpdateSurfaceToElement.ts @@ -25,7 +25,14 @@ function addOrUpdateSurfaceToElement( const surfaceActor = surfaceActorEntry?.actor as Types.Actor; + const isVisible = surface.visible; + if (surfaceActor) { + surfaceActor.setVisibility(isVisible); + + if (!isVisible) { + return; + } // we already have an actor for this surface, we just need to update it // Todo: figure out if the surface configuration has changed diff --git a/packages/tools/src/tools/displayTools/Surface/surfaceDisplay.ts b/packages/tools/src/tools/displayTools/Surface/surfaceDisplay.ts index de06cfb335..2fbf737c89 100644 --- a/packages/tools/src/tools/displayTools/Surface/surfaceDisplay.ts +++ b/packages/tools/src/tools/displayTools/Surface/surfaceDisplay.ts @@ -13,6 +13,7 @@ import { getSegmentation } from '../../../stateManagement/segmentation/getSegmen import { getColorLUT } from '../../../stateManagement/segmentation/getColorLUT'; import { getPolySeg } from '../../../config'; import { computeAndAddRepresentation } from '../../../utilities/segmentation/computeAndAddRepresentation'; +import { internalGetHiddenSegmentIndices } from '../../../stateManagement/segmentation/helpers/internalGetHiddenSegmentIndices'; /** * It removes a segmentation representation from the tool group's viewports and @@ -55,7 +56,7 @@ async function render( viewport: Types.IVolumeViewport | Types.IStackViewport, representation: SegmentationRepresentation ): Promise { - const { segmentationId } = representation; + const { segmentationId, type } = representation; const segmentation = getSegmentation(segmentationId); @@ -124,10 +125,17 @@ async function render( } const segmentIndex = geometry.data.segmentIndex; + const hiddenSegments = internalGetHiddenSegmentIndices(viewport.id, { + segmentationId, + type, + }); + const isHidden = hiddenSegments.has(segmentIndex); + const surface = geometry.data as Types.ISurface; const color = colorLUT[segmentIndex]; surface.color = color.slice(0, 3) as Types.Point3; + surface.visible = !isHidden; surfaces.push(surface); addOrUpdateSurfaceToElement(