BowtieLayoutParameters
Options for the Bowtie layout
| Name | Type | Description |
|---|---|---|
| axis? | "horizontal" | "vertical" | Whether to draw the layout horizontally or vertically. Defaults to "horizontal". |
| childVerticesFunction? | (node:HasIdAndType, dataSource:DataSource) => Array<HasIdAndType> | Optional function to invoke on any non-focus vertex, to get the vertex's children. Will not be invoked with the focus vertex. If this function returns the focus vertex in its set it will be filtered out. When you do not provide this function, VisuallyJs will find all vertices that are targets of edges for which this vertex is a source. |
| getDownstream | (dataSource:DataSource, vertex:HasIdAndType) => Array<HasIdAndType> | Gets immediate downstream nodes for the focus vertex. Only invoked with the focus vertex. |
| getRootNode? | (dataSource:DataSource) => string | Vertex | Optional function you can provide that will dynamically be invoked to get the root node to use. You must provide this or . |
| getUpstream | (dataSource:DataSource, vertex:HasIdAndType) => Array<HasIdAndType> | Gets immediate upstream nodes for the focus vertex. Only invoked with the focus vertex. |
| height? | number | Optional fixed height for the layout. |
| locationFunction? | LocationFunction | Optional function that, given some vertex, can provide the x/y location of the vertex on the canvas |
| padding? | PointXY | Optional padding to put around the elements. |
| rootNode? | string | Vertex | Optional node to use as the root. You must provide this or . |
| width? | number | Optional fixed width for the layout. |