The three.js object for this view. Should be a subclass of THREE.Object3D
Get set backgroundElement
The current THREE.Camera being used by this 2d view
Sets a callback function to be called whenever the state specified in state_key changes. The return value callbackSwitch is a callback switch. You can activate the listener with callbackSwitch.activate() and deactive with callbackSwitch.deactivate(). Example Usage:
var callbackswitch = model.addStateKeyListener('name',()=>{
n_name_changes = n_name_changes+1;
})
the name of the state to listen to
the callback to be executed when state changes
the handle / unique identifier for
whether callbacks should happen synchronously or allow for batching
initGraphics() is called AFTER the constructor and used to initialize any three.js objects for rendering
Should be one of the BackgroundOrder enums ("Back" or "Front"); background order determines whether the background is in front or behind other scenevis content. This is important for determining whether clicks that overlap scenevis objects should be directed at the scenevis object as a target or the background.
IMPORTANT! The convention is that background order should be "Back" by default. This means that unless an interaction mode switches the background order to "Front", it should be "Back". This also means that when an interaction mode that uses "Front" mode gets deactivated, it should switch things back to "Back".
Generated using TypeDoc
should create the camera and bind functions that are used as callbacks.