Options for creating Instance

interface InstanceOptions {
    backgroundColor?: null | ColorRepresentation;
    camera?: PerspectiveCamera;
    crs: string;
    renderer?: WebGLRenderer | WebGLRendererParameters;
    scene3D?: Scene;
    target: string | HTMLDivElement;
}

Hierarchy (view full)

Properties

backgroundColor?: null | ColorRepresentation

The background color of the canvas. If null, the canvas is transparent. If undefined, the default color is used.

'#030508'

the THREE camera to use

crs: string

The coordinate reference system of the scene. Must be a cartesian system. Must first be registered via Instance.registerCRS

The renderer to use. Might be either an instance of an existing WebGLRenderer, or options to create one. If undefined, a new one will be created with default parameters.

scene3D?: Scene

The Three.js Scene instance to use, otherwise a default one will be constructed

target: string | HTMLDivElement

The container for the instance. May be either the id of an existing <div> element, or the element itself.