SceneInterface interface
Contract for scenes.
Signature:
interface SceneInterface extends EventEmitter<SceneEvents>
Extends: EventEmitter<SceneEvents>
Remarks
Scenes allow for visualization of a Model or Design. The options and behavior are standardized across adapters.
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
Required<Exclude<SceneOptions['camera'], string>> |
The current camera details. | |
|
number |
The distance to the target. | |
|
HTMLCanvasElement |
The | |
|
boolean |
Whether the scene is supported in the current context. | |
|
The current scene options. | ||
|
[number, number] |
The current size of the scene. | |
|
Design | undefined |
The current target of the scene. |
Methods
Method |
Description |
---|---|
Method for updating scene options. | |
Dispose of the scene and internals. | |
Attempt to adjust the camera to fit the model within the viewport. | |
Invalidate the scene. | |
Load the scene, prepare internal resources. | |
Reset the camera to its original configured position. | |
Capture a screenshot of the scene. | |
Start the render loop. | |
Stop the render loop. | |
Manually render the scene. |