jcberentsen/elm-wiring-diagrams/4.0.0

NOTE: the latest version is 5.4.7

Cartesian.Svg

Convert a cartesian structure to Svg

Usage

toSvg : C a -> Svg msg

Layout a cartesian structure and render to Svg This uses some silly defaults. Use this to do some simple testing. Otherwise use the toSvgWith function that lets you control layout and styling

toSvgWith : Styling a -> C a -> Svg msg

Layout and render to Svg with Styling

You supply two configs. One for layout and one for Svg styling.

The layout styling lets you control, sizes, padding, arrow measurements... The svg styling lets you control fonts, colors, strokes, transparency...

type alias Styling a =
{ layoutConfig : Config a
, svgConfig : Config a
}

A type for configuring Layout and Svg styling