Interaction mode map. Has a .modes property that maps mode names to AInteractionModes.
whether or not modified three.interactive-based interactions are enabled (e.g., for click and drag interactions)
Getter for the current interaction mode.
The default / 2d camera. This camera is special in that it is not part of the 2d model hierarchy. This means that it does not affect other 2d controllers or models.
Get set sceneController
Add an interaction to the current mode.
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
If you provide a handle, then the action will not call so long as an existing subscription by that handle exists. This means that you won't duplicate the action before one has finished previously.
Runs after view has been created (so it's threeCamera has been created), before view.init() has been called
Should create the new controller and view in response to the new node. It is important that the new controller be registered
Generated using TypeDoc
Right now, controllers are restricted to having one or zero active modes at a time. The name of the current mode, which can be active or inactive, is stored here.