Skip to content

Function: mountSurfView() ​

ts
function mountSurfView(
   container, 
   manifest, 
   options?
): SurfViewMountHandle;

Defined in: report/SceneMount.ts:698

Mount a portable SurfView scene into an ordinary DOM element.

Validation is synchronous and happens before an observer, fetch, animation frame, or WebGL context is created. Runtime failures are also rendered in the mount so knitted/static reports never degrade to an unexplained blank panel.

Parameters ​

container ​

HTMLElement

manifest ​

SurfViewSceneManifest

options? ​

MountSurfViewOptions = {}

Returns ​

SurfViewMountHandle

Released under the MIT License.