Skip to content

Interface: NeuroSurfaceViewerConfig ​

Defined in: NeuroSurfaceViewer.ts:104

Properties ​

ambientLightColor? ​

ts
ambientLightColor?: number;

Defined in: NeuroSurfaceViewer.ts:105


directionalLightColor? ​

ts
directionalLightColor?: number;

Defined in: NeuroSurfaceViewer.ts:106


directionalLightIntensity? ​

ts
directionalLightIntensity?: number;

Defined in: NeuroSurfaceViewer.ts:107


rotationSpeed? ​

ts
rotationSpeed?: number;

Defined in: NeuroSurfaceViewer.ts:108


initialZoom? ​

ts
initialZoom?: number;

Defined in: NeuroSurfaceViewer.ts:109


ssaoRadius? ​

ts
ssaoRadius?: number;

Defined in: NeuroSurfaceViewer.ts:110


ssaoKernelSize? ​

ts
ssaoKernelSize?: number;

Defined in: NeuroSurfaceViewer.ts:111


rimStrength? ​

ts
rimStrength?: number;

Defined in: NeuroSurfaceViewer.ts:112


metalness? ​

ts
metalness?: number;

Defined in: NeuroSurfaceViewer.ts:114

PBR metalness for standard/physical surface materials; Phong surfaces ignore it.


roughness? ​

ts
roughness?: number;

Defined in: NeuroSurfaceViewer.ts:115


useShaders? ​

ts
useShaders?: boolean;

Defined in: NeuroSurfaceViewer.ts:116


showControls? ​

ts
showControls?: boolean;

Defined in: NeuroSurfaceViewer.ts:118

Deprecated ​

Pane UI is no longer part of the viewer runtime.


useControls? ​

ts
useControls?: boolean;

Defined in: NeuroSurfaceViewer.ts:120

Deprecated ​

Use the report mount controls or a ViewerPlugin.


controlType? ​

ts
controlType?: "surface" | "trackball";

Defined in: NeuroSurfaceViewer.ts:121


backgroundColor? ​

ts
backgroundColor?: number;

Defined in: NeuroSurfaceViewer.ts:122


preset? ​

ts
preset?: SurfViewStylePresetName;

Defined in: NeuroSurfaceViewer.ts:123


linkHemispheres? ​

ts
linkHemispheres?: boolean;

Defined in: NeuroSurfaceViewer.ts:124


hoverCrosshair? ​

ts
hoverCrosshair?: boolean;

Defined in: NeuroSurfaceViewer.ts:125


hoverCrosshairColor? ​

ts
hoverCrosshairColor?: number;

Defined in: NeuroSurfaceViewer.ts:126


hoverCrosshairSize? ​

ts
hoverCrosshairSize?: number;

Defined in: NeuroSurfaceViewer.ts:127


clickToAddAnnotation? ​

ts
clickToAddAnnotation?: boolean;

Defined in: NeuroSurfaceViewer.ts:128


allowCDNFallback? ​

ts
allowCDNFallback?: boolean;

Defined in: NeuroSurfaceViewer.ts:130

Deprecated ​

Runtime CDN loading is disabled and will be removed in v3.


useGPUPicking? ​

ts
useGPUPicking?: boolean;

Defined in: NeuroSurfaceViewer.ts:132

Use GPU-based picking for faster vertex selection on large meshes


headlight? ​

ts
headlight?: boolean;

Defined in: NeuroSurfaceViewer.ts:139

Hold the key and fill lights fixed relative to the camera (default true), so whichever side of the cortex faces the viewer is key-lit. false restores the world-fixed rig of earlier releases: key light at the preset's directionalPosition, fill at (-1, -0.5, -1).

Released under the MIT License.