ProjectionPicker

external class ProjectionPicker(var container: Element, scene: Scene)(source)

The ProjectionPicker is a single button widget for switching between perspective and orthographic projections.

// In HTML head, include a link to the ProjectionPicker.css stylesheet,
// and in the body, include: <div id="projectionPickerContainer"></div>
// Note: This code assumes you already have a Scene instance.

const projectionPicker = new ProjectionPicker('projectionPickerContainer', scene);

Parameters

scene

The Scene instance to use.

See also

Constructors

Link copied to clipboard
constructor(container: Element, scene: Scene)

Properties

Link copied to clipboard

The DOM element that will contain the widget.

Link copied to clipboard

Gets the view model.

Functions

Link copied to clipboard
fun destroy()

Destroys the widget. Should be called if permanently removing the widget from layout.

Link copied to clipboard