goyalarchit/elm-dagre/2.0.0

NOTE: the latest version is 4.0.1

Render.StandardDrawers

This module provides the standard Drawers for drawing a graph. These are default drawers for the draw function.

Standard Drawers

List (Attribute (EdgeDrawerConfig e msg))
-> EdgeAttributes e
-> Svg msg

Standard Edge Drawer. It can be configured using Rander.StandardDrawers.Attributes

List (Attribute (NodeDrawerConfig n msg))
-> NodeAttributes n
-> Svg msg

Standard Node Drawer. It can be configured using Rander.StandardDrawers.Attributes

Standard Configurations

Edge Drawer

  1. arrowHead = None
  2. strokeColor = Color.darkGrey
  3. strokeWidth = 3px
  4. title = Edge.from → Edge.to
  5. linkStyle = Spline
  6. alpha = 0.5
  7. orientLabelAlongEdge = False

Note: All missing attributes don't have any preset values

NodeDrawer

  1. label = Node.id
  2. shape = Ellipse
  3. strokeColor = Color.blue
  4. strokeWidth = 1px
  5. fill = #b2ebf2
  6. title = Node.id 7.xLabelPos = ( (w / 2) + 1, (-h / 2) - 1 )

Note: All missing attributes don't have any preset values