Members
(constant) aspect :number
Aspect ratio of the camera.
Type:
- number
- Source:
Methods
init()
Callback to load the apllication.
- Source:
onWindowResize()
Callback to set the camera aspect ratio and renderer size.
- Source:
Events
change
Appends an event listener for events whose type attribute value is change.
Fired when the "Auto Rotate" <input type="checkbox"> is checked or unchecked (by clicking or using the keyboard).
The callback argument sets the callback that will be invoked when the event is dispatched.- Source:
- See:
load
Load the application.
Fired when the whole page has loaded, including all dependent resources such as stylesheets, scripts, iframes, and images, except those that are loaded lazily.- Source:
resize
Appends an event listener for events whose type attribute value is resize.
Fires when the document view (window) has been resized.
The callback argument sets the callback that will be invoked when the event is dispatched.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | a generic event. |
function |
callback | function to run when the event occurs. |
useCapture |
Boolean | handler is executed in the bubbling or capturing phase. |
- Source:
- See: