Interface: SingleSliceViewerOptions
Defined in: src/display/SingleSliceViewer.ts:61
Options for creating a SingleSliceViewer
Properties
width?
optional width?: number;Defined in: src/display/SingleSliceViewer.ts:65
Width of the viewer in pixels
height?
optional height?: number;Defined in: src/display/SingleSliceViewer.ts:70
Height of the viewer in pixels
showCrosshair?
optional showCrosshair?: boolean;Defined in: src/display/SingleSliceViewer.ts:75
Show crosshair overlay
showSlider?
optional showSlider?: boolean;Defined in: src/display/SingleSliceViewer.ts:80
Show slice navigation slider
initialCoord?
optional initialCoord?: number[];Defined in: src/display/SingleSliceViewer.ts:85
Initial coordinate to display (world coordinates in mm)
showIntensityReadout?
optional showIntensityReadout?: boolean;Defined in: src/display/SingleSliceViewer.ts:91
Show intensity value readout under cursor
Default
falseshowOrientationLabels?
optional showOrientationLabels?: boolean;Defined in: src/display/SingleSliceViewer.ts:97
Show orientation labels (L/R/A/P/S/I) at slice edges
Default
falseorientationLabelOptions?
optional orientationLabelOptions?: OrientationLabelOptions;Defined in: src/display/SingleSliceViewer.ts:103
Styling for the orientation labels (font size, color, margin, outline). Only used when showOrientationLabels is true.
enableDepthEnhancement?
optional enableDepthEnhancement?: boolean;Defined in: src/display/SingleSliceViewer.ts:111
Enable depth-enhanced viewing with blur and parallax effects. When true, adjacent slices are rendered with blur and shift based on cursor position to provide depth cues.
Default
falsedepthEnhancementOptions?
optional depthEnhancementOptions?: DepthEnhancedOptions;Defined in: src/display/SingleSliceViewer.ts:116
Options for depth-enhanced viewing (only used if enableDepthEnhancement is true)