This is an extension and not part of the main GoJS library. Note that the API for this class may change at any time. If you intend to use an extension in production, you should copy the code to your own source directory. See the Extensions intro page for more information.
Constructs a FishboneLayout and sets the following properties:
Optional
init: Partial<FishboneLayout>Override
assignAdd a direction property to each vertex and modify go.TreeVertex.layerSpacing.
Override
commitThis override stops links from being committed since the work is done by the FishboneLink class.
Override
commitAssigns go.Link.fromSpots and go.Link.toSpots based on branching and angle and moves vertexes based on dummy locations.
Override
makeCreate and initialize a go.LayoutNetwork with the given nodes and links. This override creates dummy vertexes, when necessary, to allow for proper positioning within the fishbone.
Shifts subtrees within the fishbone based on angle and node spacing.
Shifts a subtree.
FishboneLayout is a custom go.Layout derived from go.TreeLayout for creating "fishbone" diagrams. A fishbone diagram also requires a go.Link class that implements custom routing, FishboneLink.
This only works for angle === 0 or angle === 180.
This layout assumes Links are automatically routed in the way needed by fishbone diagrams, by using the FishboneLink class instead of go.Link.
If you want to experiment with this extension, try the Fishbone Layout sample.