Constructor
# new DefaultLayout(pluginData, viewport)
Default constructor.
Parameters:
Name | Type | Description |
---|---|---|
pluginData |
DefaultData
|
Plugin data storage. |
viewport |
object
|
D3 selection of the view port. |
Members
Methods
# generateComponentsLayout(id, keepPosition) → {boolean}
Generate layout of a container.
Will update all component drawOption with new position and size.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
Container id, null for root container. |
keepPosition |
boolean
|
If true, rearrange only components without a specified position; otherwise, rearrange all components. |
Return true on successful generation.
boolean
# resize(id) → {boolean}
Resize component to its minimum size.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
Id of component to resize. |
Return true on successful resizing.
boolean