Skip to content

Interface: MountSurfViewOptions ​

Defined in: report/SceneMount.ts:61

Properties ​

lazy? ​

ts
lazy?: boolean;

Defined in: report/SceneMount.ts:63

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


rootMargin? ​

ts
rootMargin?: string;

Defined in: report/SceneMount.ts:65

IntersectionObserver root margin used by lazy mounting.


baseUrl? ​

ts
baseUrl?: string;

Defined in: report/SceneMount.ts:67

Asset URL base for adjacent-directory manifests.


fetcher? ​

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

Defined in: report/SceneMount.ts:69

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:71

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


height? ​

ts
height?: number;

Defined in: report/SceneMount.ts:73

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


preset? ​

ts
preset?: SurfViewStylePresetName;

Defined in: report/SceneMount.ts:75

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


controls? ​

ts
controls?: boolean;

Defined in: report/SceneMount.ts:77

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


initialView? ​

ts
initialView?: AnatomicalView;

Defined in: report/SceneMount.ts:79

Initial anatomical view.


bilateralGroup? ​

ts
bilateralGroup?: BilateralSurfaceGroup;

Defined in: report/SceneMount.ts:84

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:86

Gap between recentered hemispheres in scene units.


layout? ​

ts
layout?: ReportLayout;

Defined in: report/SceneMount.ts:91

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:93

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


headlight? ​

ts
headlight?: boolean;

Defined in: report/SceneMount.ts:95

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


fov? ​

ts
fov?: number;

Defined in: report/SceneMount.ts:97

Vertical camera field of view in degrees.


fitMargin? ​

ts
fitMargin?: number;

Defined in: report/SceneMount.ts:99

Camera fit margin as a fraction of the framed distance.


oblique? ​

ts
oblique?: "auto" | ReportObliqueAngle;

Defined in: report/SceneMount.ts:101

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


fitInsets? ​

ts
fitInsets?: ReportFitInsets;

Defined in: report/SceneMount.ts:103

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


onError? ​

ts
onError?: (error) => void;

Defined in: report/SceneMount.ts:105

Called after a load or WebGL initialization failure is rendered inline.

Parameters ​

error ​

Error

Returns ​

void

Released under the MIT License.