Class: DefaultLayouts
Provides a web worker with basic diagram layout algorithms.
Constructors
new DefaultLayouts()
new DefaultLayouts():
DefaultLayouts
Returns
Methods
defaultLayout()
defaultLayout(
graph
,state
,options
?):Promise
<LayoutState
>
Default layout algorithm, the same as blockingDefaultLayout but non-blocking due to being run in a worker.
Parameters
Parameter | Type |
---|---|
| |
| |
|
Returns
Promise
<LayoutState
>
See
Defined in
flowLayout()
flowLayout(
graph
,state
,options
?):Promise
<LayoutState
>
Flow layout algorithm from cola.js.
Parameters
Parameter | Type |
---|---|
| |
| |
|
Returns
Promise
<LayoutState
>
Defined in
forceLayout()
forceLayout(
graph
,state
,options
?):Promise
<LayoutState
>
Force-directed layout algorithm from cola.js.
Parameters
Parameter | Type |
---|---|
| |
| |
|
Returns
Promise
<LayoutState
>
Defined in
removeOverlaps()
removeOverlaps(
graph
,state
):Promise
<LayoutState
>
Remove overlaps algorithm from cola.js.
Parameters
Parameter | Type |
---|---|
| |
|
Returns
Promise
<LayoutState
>