Constructs a new instance of the class with the provided settings.
The settings object defining viewer configurations.
Readonly
HTML Canvas on which the model is rendered
HTML Element in which text is rendered
Signal dispatched when the canvas is resized.
Resizes the canvas and updates the camera to match new parent dimensions.
Removes the canvas if it's owned by the viewer.
Calculates and returns the aspect ratio of the parent element.
The aspect ratio (width divided by height) of the parent element.
Returns the pixel size of the parent element.
The pixel size of the parent element.
Returns the pixel size of the canvas.
The pixel size of the canvas.
Generated using TypeDoc
Constructs a new instance of the class with the provided settings.