Interface: MountSurfViewOptions
Defined in: report/SceneMount.ts:74
Properties
lazy?
lazy?: boolean;Defined in: report/SceneMount.ts:76
Delay asset loading and WebGL creation until the container intersects the viewport.
rootMargin?
rootMargin?: string;Defined in: report/SceneMount.ts:78
IntersectionObserver root margin used by lazy mounting.
baseUrl?
baseUrl?: string;Defined in: report/SceneMount.ts:80
Asset URL base for adjacent-directory manifests.
fetcher?
fetcher?: (input, init?) => Promise<Response>;Defined in: report/SceneMount.ts:82
Fetch implementation used for adjacent assets.
Parameters
input
RequestInfo | URL
init?
RequestInit
Returns
Promise<Response>
width?
width?: number;Defined in: report/SceneMount.ts:84
Initial CSS-pixel width. Defaults to the container width or 640.
height?
height?: number;Defined in: report/SceneMount.ts:86
Initial CSS-pixel height. Defaults to the container height or 480.
preset?
preset?: SurfViewStylePresetName;Defined in: report/SceneMount.ts:88
Viewer appearance preset. paper-light is the report default.
background?
background?: SurfViewMountBackground;Defined in: report/SceneMount.ts:95
Canvas background, replacing the preset's. 'transparent' lets an embedded widget sit on the page colour; a colour paints that colour. PNG export follows it (transparent or that colour) unless export options say otherwise. Default: the preset's background.
controls?
controls?: boolean;Defined in: report/SceneMount.ts:97
Show the small report toolbar. This never loads an external pane UI.
styles?
styles?: boolean;Defined in: report/SceneMount.ts:103
Add SurfView's default report stylesheet (REPORT_STYLES) to the document. Default true. Its rules have zero specificity, so host CSS wins without !important; pass false when the page supplies its own styles.
initialView?
initialView?: AnatomicalView;Defined in: report/SceneMount.ts:105
Initial anatomical view.
bilateralGroup?
bilateralGroup?: BilateralSurfaceGroup;Defined in: report/SceneMount.ts:110
Explicit pair controlled by coordinated report views. Required when a report contains more than one surface; pairs are never inferred.
hemisphereGap?
hemisphereGap?: number;Defined in: report/SceneMount.ts:112
Gap between recentered hemispheres in scene units.
layout?
layout?: ReportLayout;Defined in: report/SceneMount.ts:117
Pair pose: split (default) rotates each hemisphere into the view side by side; anatomical keeps one coherent brain and rotates it as a whole.
initialBrainView?
initialBrainView?: ReportBrainView;Defined in: report/SceneMount.ts:119
Initial whole-brain view for the anatomical layout. Defaults to oblique.
headlight?
headlight?: boolean;Defined in: report/SceneMount.ts:121
Attach the key light to the camera. Defaults to true for the anatomical layout.
fov?
fov?: number;Defined in: report/SceneMount.ts:123
Vertical camera field of view in degrees.
fitMargin?
fitMargin?: number;Defined in: report/SceneMount.ts:125
Camera fit margin as a fraction of the framed distance.
oblique?
oblique?: "auto" | ReportObliqueAngle;Defined in: report/SceneMount.ts:127
Camera angle of the oblique whole-brain view in degrees, or auto (data-driven).
fitInsets?
fitInsets?: ReportFitInsets;Defined in: report/SceneMount.ts:129
Canvas insets (CSS px) kept clear of the fitted brain for overlaid controls.
onError?
onError?: (error) => void;Defined in: report/SceneMount.ts:131
Called after a load or WebGL initialization failure is rendered inline.
Parameters
error
Error
Returns
void