new LightSphereController(parent [, options])
Creates a new LightSphereController instance.
Parameters:
Name | Type | Argument | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parent |
HTMLElement | string | Parent element or selector where the controller will be mounted |
||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
Configuration options Properties
|
- Source:
Methods
-
addLayer(layer)
-
Adds a layer to be controlled by this light sphere. The layer must support light control operations.
Parameters:
Name Type Description layer
Layer Layer to be controlled
- Source:
-
hide()
-
Hides the controller.
- Source:
Returns:
The visibility style value
- Type
- string
-
show()
-
Makes the controller visible.
- Source:
Returns:
The visibility style value
- Type
- string