Interface: LayoutRequest
Page → worker: lay out a graph.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
arrangement | readonly | | "radial" | "preset" | "force" | "layered" | "tree" | "dendrogram" | "circular" | "grid" | "arc" | "hive" | - |
bundle? | readonly | BundleOptions | Bundle the links once the nodes are placed (bundleLinks): the result's routes are then the bundled ones. The positions are reported first, in a progress with settled. |
graph | readonly | LayoutGraph | The worker's from here on (see the file comment). |
id | readonly | number | Chosen by the sender; every answer carries it. |
options? | readonly | unknown | The layout's own options (ForceOptions, LayeredOptions, …), as calc would pass them to the layout. They are cloned, so they must hold data only: no functions. |
progress? | readonly | false | LayoutProgressOptions | false: no progress messages. Default: LayoutProgressOptions' defaults. |
slice? | readonly | number | Milliseconds of work between two looks at the message queue (for a cancel, and on the main thread for everything else the page does). A tick is never cut, so a slice lasts at least one tick. Default 8. |
start? | readonly | ForceStart | force only: positions the simulation goes on from instead of starting from the spiral, and how warm it is there (the trace's force.start). The result is then what the simulation ends on, neither centered nor cleared of overlaps afterwards. |
type | readonly | "layout" | - |