UNPKG

@lunit/insight-viewer

Version:

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

20 lines (19 loc) 818 B
/// <reference types="react" /> import { WithChildren, Viewport, Point } from '../types'; import { EnabledElement } from '../utils/cornerstoneHelper/types'; import { Image } from '../Viewer/types'; export interface OverlayContext { image: Image | null; enabledElement: EnabledElement | null; setToPixelCoordinateSystem: (context: CanvasRenderingContext2D) => void; pixelToCanvas: (point: Point) => Point; pageToPixel: (point: Point) => Point; viewport: Viewport; } export declare function OverlayContextProvider({ image, element, imageEnabled, viewport, children, }: WithChildren<{ image: Image; element: HTMLElement | null; imageEnabled: boolean; viewport: Viewport | undefined; }>): JSX.Element; export declare function useOverlayContext(): OverlayContext;