Layout
See reference for a full list of layouts.
Animating layouts
All layouts can be tweened or not-tweened.
Tweened
await gxr.line({
tween: {
duration: 1000
}
})
Not-tweened
await gxr.line()
Applying to a subgraph
We can apply layout to all nodes, or a selection.
All nodes
await gxr.grid()
Selection
await gxr.nodes("color = blue").grid()