UNPKG

@lunit/insight-viewer

Version:

Based on the cornerstone library, it provides several components for handling Dicom images

24 lines (23 loc) 848 B
import { DataSet } from 'dicom-parser'; import { CornerstoneImage } from '../utils/cornerstoneHelper'; import { ProgressComponent, Viewport, OnViewportChange } from '../types'; import { SetFrame } from '../hooks/useMultipleImages/useFrame'; import { Interaction } from '../hooks/useInteraction/types'; import type { MutableRefObject } from 'react'; export declare type Image = (CornerstoneImage & { _imageSeriesKey?: string; data: DataSet; }) | undefined; export declare type ImageWithoutKey = CornerstoneImage & { data: DataSet; }; export declare type ViewerProp = { image: Image; } & { Progress?: ProgressComponent; viewport?: Viewport; onViewportChange?: OnViewportChange; onFrameChange?: SetFrame; interaction?: Interaction; viewerRef?: MutableRefObject<HTMLDivElement | null>; };