jcberentsen/elm-wiring-diagrams/3.1.0

NOTE: the latest version is 5.4.7

WiringDiagram.Svg.Config

Configure how to convert Layout Labels to Strings for Svg output

type Config a

Preliminary way to control how labels turn into String for SVG

Simple starting config when labels are already String

initWithLabelToString : (a -> String) -> Config a

Init needs a labelToString function

withLabelToString : (a -> String) -> Config a -> Config a

Simple starting config when labels are already String

Applying the config (You probably won't need to use this, it will be used by Svg.layoutToSvgWithConfig)

applyToLabelString : Config a -> a -> String

Apply the toLabelString function of the config to a value of type a