This module provides attributes for configuring draw, svgNodeDrawer and svgEdgeDrawer given in Dagre.Render.
Note : This module uses elm-community/typed-svg, so don't confuse Svg as elm/svg.
Please see the following table that maps which attributes are allowed for which drawers.
| S.No. | Attribute Name | Node's XLabel | Node | Edge |
|-------|----------------------|----------------|-------|-------|
| 1 | label | ✅ | ✅ | ✅ |
| 2 | fontSize | ✅ | ✅ | ✅ |
| 3 | strokeColor | ✅ | ✅ | ✅ |
| 4 | strokeWidth | ✅ | ✅ | ✅ |
| 5 | strokeDashArray | ✅ | ✅ | ✅ |
| 6 | title | ✅ | ✅ | ✅ |
| 7 | onClick | ❌ | ✅ | ✅ |
| 8 | style | ❌ | ✅ | ✅ |
| 9 | fill | ✅ | ✅ | ❌ |
| 10 | shape | ✅ | ✅ | ❌ |
| 11 | xLabels | ✅ | ✅ | ❌ |
| 12 | arrowHead | ❌ | ❌ | ✅ |
| 13 | linkStyle | ❌ | ❌ | ✅ |
| 14 | alpha | ❌ | ❌ | ✅ |
| 15 | orientLabelAlongEdge | ❌ | ❌ | ✅ |
| 16 | pos | ✅ | ❌ | ❌ |The following attributes can be used on Node, Node's xLabels and Edge Drawers.
The following attribute can be used to set label on node/edge/xlabel.
To add event handlers to Nodes and Edges
To set the font Size for label of a node/edge/xlabel
To set the stroke color of a node/edge/xlabel
To set the stroke width of a node/edge/xlabel
To set the stroke dash array of a node/edge/xlabel
To add any inline css to path element of the edge, or polygon of node.
To set the title (appears as a tooltip) of a node/edge/xlabel
This attributes sets the type of arrow head used for drawing the edge. The possible values are None, Triangle, Vee.
Set the style used for drawing links. The possible values are polyline and splines
Set alpha used for drawing the spline using Catmull-Rom
Note: alpha>=0.5 produces centripetal splines , which are useful to avoid self-intersections and overshoots. ref
To set the label orientation along the curvature of edge
To add fill colour to Node and xLabel of node
This attributes sets the shape of Node used for drawing the node. The possible values are Circle, Ellipse, Box, RoundedBox.
Set the Extra Labels for a node.
Used to set the position of Extra Label relative to the node.
Attribute type for Standard Drawers