Doc > API > ThreejsViewer

Doc > API > ThreejsViewer

threejs viewers are created by the PerspectiveCamera and OrthographicCamera object nodes. They inherit from TypedViewer.

Methods

.override

mounts the viewer onto an element

.override

disposes the viewer

.override

setAutoRender to false will stop the rendering. This can be useful if you know that nothing has changed in the scene, or if the renderer is currently not visible.

.renderer()

returns the current renderer

source