andre-dietrich/elm-svgbob/2.1.2

NOTE: the latest version is 5.0.8

SvgBob

Convert ASCII to SVG

It is a fork of Ivan Ceras example that is hosted at:

https://github.com/ivanceras/elm-examples

init : Settings -> String -> Model

Pass a String and generate a Model with default settings

getSvg : List (Attribute msg) -> Model -> Html msg

Get the resulting svg and pass it into a div or whatever

default : Settings

Default parameters to work with ...

getSvgWith : (String -> Svg msg) -> List (Attribute msg) -> Model -> Html msg

Get the resulting svg and pass it into a div or parse it further or do whatever ...

type alias Model =
Model

The model contains the whole ASCII String as well as some basic configuration settings.

type alias Settings =
Settings

general settings ...

type alias Settings = { fontSize : Float , lineWidth : Float , textWidth : Float , textHeight : Float , arcRadius : Float , color : String , textColor : String }