Skip to content

Interface: MountSurfViewOptions ​

Defined in: report/SceneMount.ts:74

Properties ​

lazy? ​

ts
lazy?: boolean;

Defined in: report/SceneMount.ts:76

Delay asset loading and WebGL creation until the container intersects the viewport.


rootMargin? ​

ts
rootMargin?: string;

Defined in: report/SceneMount.ts:78

IntersectionObserver root margin used by lazy mounting.


baseUrl? ​

ts
baseUrl?: string;

Defined in: report/SceneMount.ts:80

Asset URL base for adjacent-directory manifests.


fetcher? ​

ts
fetcher?: (input, init?) => Promise<Response>;

Defined in: report/SceneMount.ts:82

Fetch implementation used for adjacent assets.

MDN Reference

Parameters ​

input ​

RequestInfo | URL

init? ​

RequestInit

Returns ​

Promise<Response>


width? ​

ts
width?: number;

Defined in: report/SceneMount.ts:84

Initial CSS-pixel width. Defaults to the container width or 640.


height? ​

ts
height?: number;

Defined in: report/SceneMount.ts:86

Initial CSS-pixel height. Defaults to the container height or 480.


preset? ​

ts
preset?: SurfViewStylePresetName;

Defined in: report/SceneMount.ts:88

Viewer appearance preset. paper-light is the report default.


background? ​

ts
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? ​

ts
controls?: boolean;

Defined in: report/SceneMount.ts:97

Show the small report toolbar. This never loads an external pane UI.


styles? ​

ts
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? ​

ts
initialView?: AnatomicalView;

Defined in: report/SceneMount.ts:105

Initial anatomical view.


bilateralGroup? ​

ts
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? ​

ts
hemisphereGap?: number;

Defined in: report/SceneMount.ts:112

Gap between recentered hemispheres in scene units.


layout? ​

ts
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? ​

ts
initialBrainView?: ReportBrainView;

Defined in: report/SceneMount.ts:119

Initial whole-brain view for the anatomical layout. Defaults to oblique.


headlight? ​

ts
headlight?: boolean;

Defined in: report/SceneMount.ts:121

Attach the key light to the camera. Defaults to true for the anatomical layout.


fov? ​

ts
fov?: number;

Defined in: report/SceneMount.ts:123

Vertical camera field of view in degrees.


fitMargin? ​

ts
fitMargin?: number;

Defined in: report/SceneMount.ts:125

Camera fit margin as a fraction of the framed distance.


oblique? ​

ts
oblique?: "auto" | ReportObliqueAngle;

Defined in: report/SceneMount.ts:127

Camera angle of the oblique whole-brain view in degrees, or auto (data-driven).


fitInsets? ​

ts
fitInsets?: ReportFitInsets;

Defined in: report/SceneMount.ts:129

Canvas insets (CSS px) kept clear of the fitted brain for overlaid controls.


onError? ​

ts
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

Released under the MIT License.