Options
Public/Protected
  • Public
  • Public/Protected
  • All
Menu

GoJS API 文档

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. Extensions can be found in the GoJS kit under the extensions or extensionsTS folders. See the Extensions intro page for more information.

Hierarchy

FishboneLayout is a custom Layout derived from TreeLayout for creating "fishbone" diagrams. A fishbone diagram also requires a 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.

Index

Constructors

constructor

Methods

Override assignTreeVertexValues

Override commitLinks

  • commitLinks(): void
  • This override stops links from being committed since the work is done by the FishboneLink class.

    Returns void

Override commitNodes

  • commitNodes(): void
  • Assigns Link.fromSpots and Link.toSpots based on branching and angle and moves vertexes based on dummy locations.

    Returns void

Override makeNetwork

shift

  • Shifts subtrees within the fishbone based on angle and node spacing.

    Parameters

    Returns void

shiftAll

  • Shifts a subtree.

    Parameters

    Returns void

加入 GoJS 交流群
GoJS 交流群 (769862113)