add cornerstone3d to global window interface for enhanced functionality
This commit is contained in:
@@ -8,6 +8,7 @@ import { init as csToolsInit, addTool, ToolGroupManager, Enums as csToolsEnums,
|
||||
import { LengthTool, ProbeTool, ArrowAnnotateTool, RectangleROITool, EllipticalROITool, PlanarFreehandROITool, PlanarFreehandContourSegmentationTool, SculptorTool, CrosshairsTool, ReferenceLinesTool, ReferenceCursors } from "@cornerstonejs/tools"
|
||||
import { init as dicomImageLoaderInit } from "@cornerstonejs/dicom-image-loader"
|
||||
import * as cornerstoneTools from '@cornerstonejs/tools';
|
||||
import * as cornerstone3d from '@cornerstonejs/core';
|
||||
import { segmentation, Enums as csEnums } from '@cornerstonejs/tools';
|
||||
import { voi } from "@cornerstonejs/tools/utilities"
|
||||
import { readDicomElementExplicit } from "dicom-parser"
|
||||
@@ -25,6 +26,7 @@ import { render } from "@cornerstonejs/tools/tools/displayTools/Labelmap/labelma
|
||||
declare global {
|
||||
interface Window {
|
||||
cornerstone3dTools: typeof cornerstoneTools;
|
||||
cornerstone3d: typeof cornerstone3d;
|
||||
}
|
||||
}
|
||||
function pixelToWorld(imageId: string, point: { x: number, y: number }) {
|
||||
@@ -75,6 +77,7 @@ declare global {
|
||||
}
|
||||
|
||||
window.cornerstone3dTools = cornerstoneTools;
|
||||
window.cornerstone3d = cornerstone3d
|
||||
|
||||
|
||||
type ViewportDiv = HTMLDivElement & {
|
||||
|
||||
Reference in New Issue
Block a user