andre-dietrich/elm-svgbob/2.0.1

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 ...

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 : Color.Color }