Utilities for arranging sets of 2D/3D geometries into various layouts, with additional options for rendering text labels and descriptions.
Methods
addToLayout(opts, geom)
Adds an element to the layout.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
Properties
|
||||||||||||||||||||||||||||||||||||
geom |
Object |
clearLayout(opts)
Clears all the layout elements.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
object |
gridLayout(opts)
Renders a grid layout.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
object |
Returns:
...
linearLayout(opts)
Renders a linear layout.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
object |
Returns:
...
removeFromLayout(opts)
Removes an element with the given ID from the layout.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
object |