Constructor
new Interactable(owner, options)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
owner |
Object
|
The owner (customizer instance) for this interactable. |
options |
Object
|
The options to be used to configure the interactable instance to be created. |
Extends
- Observable
Methods
deinit()
The deinitializer to be called (by the owner) when
it should stop responding to updates so that any necessary
cleanup operations can be executed.
- Source:
init()
The initializer of the class, to be called (by the owner)
whenever this interactable is going to become active.
- Source:
update(state, options)
Callback function to be called when the owner configurator has
been changed and some kind of visual update should take place.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
state |
Object
|
The new configuration state. |
options |
Object
|
Set of update options that change the way the update operation is going to be performed. |
updateOptions(options)
Updates the current set of options (object) with the partial
options object provided as argument.
The merge operation between both objects may override the current
set of configurations.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
options |
Object
|
Map with the partial set of values to update the currently set options |