Constructor
new SpaceTimeLayout(width, delta)
Parameters:
Name | Type | Description |
---|---|---|
width |
Number | The maximum width of the resulting layout |
delta |
Number | The vertical distance between nodes |
- Source:
Extends
Methods
getHeight() → {Number}
Gets the height of the resulting layout
- Source:
Returns:
The height
- Type
- Number
getWidth() → {Number}
Gets the width of the resulting layout
- Source:
Returns:
The width
- Type
- Number
setWidth()
Sets the width of the resulting layout
- Source:
start(visualGraph, hostPermutation)
This method is solely responsible for actually performing the layout (i.e by
manipulating the x and y coordinates of VisualNodes in the
VisualGraph. A topological sort is performed to ensure that the
y-coordinate of any VisualNode's Node is greater than that of its prev and
parent nodes
Parameters:
Name | Type | Description |
---|---|---|
visualGraph |
VisualGraph | The visualGraph to lay out |
hostPermutation |
HostPermutation |
- Overrides:
- Source: