Documentation ¶
Index ¶
- func DefaultRouter(ctx context.Context, graph *d2graph.Graph, edges []*d2graph.Edge) error
- func ExtractSubgraph(container *d2graph.Object, includeSelf bool) (nestedGraph *d2graph.Graph, externalEdges []*d2graph.Edge, ...)
- func FitToGraph(container *d2graph.Object, nestedGraph *d2graph.Graph, padding geo.Spacing)
- func InjectNested(container *d2graph.Object, nestedGraph *d2graph.Graph, isRoot bool)
- func LayoutNested(ctx context.Context, g *d2graph.Graph, graphInfo GraphInfo, ...) error
- func PositionNested(container *d2graph.Object, nestedGraph *d2graph.Graph)
- func SaveChildrenOrder(container *d2graph.Object) (restoreOrder func())
- func SaveOrder(g *d2graph.Graph) (restoreOrder func())
- type DiagramType
- type GraphInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRouter ¶ added in v0.6.2
func ExtractSubgraph ¶
func FitToGraph ¶
func InjectNested ¶
func LayoutNested ¶
func LayoutNested(ctx context.Context, g *d2graph.Graph, graphInfo GraphInfo, coreLayout d2graph.LayoutGraph, edgeRouter d2graph.RouteEdges) error
func SaveChildrenOrder ¶
Types ¶
type DiagramType ¶
type DiagramType string
const ( DefaultGraphType DiagramType = "" ConstantNearGraph DiagramType = "constant-near" GridDiagram DiagramType = "grid-diagram" SequenceDiagram DiagramType = "sequence-diagram" )
a grid diagram at a constant near is
type GraphInfo ¶
type GraphInfo struct { IsConstantNear bool DiagramType DiagramType }
func NestedGraphInfo ¶
Directories ¶
Path | Synopsis |
---|---|
d2elklayout is a wrapper around the Javascript port of ELK.
|
d2elklayout is a wrapper around the Javascript port of ELK. |
d2near applies near keywords when they're constants Intended to be run as the last stage of layout after the diagram has already undergone layout
|
d2near applies near keywords when they're constants Intended to be run as the last stage of layout after the diagram has already undergone layout |
Click to show internal directories.
Click to hide internal directories.