Source File
edge_style.go
Belonging Package
github.com/pancsta/d2/d2layouts/d2talalayout/internal/layoutgraph
package layoutgraph// Arrowhead is TALA's layout-time arrowhead value. The adapter translates// between D2 renderer arrowheads and this owned string type at the engine// boundary; layout algorithms only need stable value equality.type Arrowhead stringconst (NoArrowhead Arrowhead = "none"TriangleArrowhead Arrowhead = "triangle")// StyleScalar carries the value of one edge style attribute. Parser// provenance belongs to the D2 adapter and must not enter the layout engine.type StyleScalar struct {Value string}// EdgeStyle is the complete style record carried through TALA's layout graph.// Routing currently compares only a subset of these fields, but every value// must survive cloning and fixture round-trips unchanged.type EdgeStyle struct {Opacity *StyleScalarStroke *StyleScalarFill *StyleScalarFillPattern *StyleScalarStrokeWidth *StyleScalarStrokeDash *StyleScalarBorderRadius *StyleScalarShadow *StyleScalarThreeDee *StyleScalarMultiple *StyleScalarFont *StyleScalarFontSize *StyleScalarFontColor *StyleScalarAnimated *StyleScalarBold *StyleScalarItalic *StyleScalarUnderline *StyleScalarFilled *StyleScalarDoubleBorder *StyleScalarTextTransform *StyleScalar}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |