andre-dietrich/elm-svgbob/2.1.0

NOTE: the latest version is 5.0.8

Rerouted (regenerated, verified). Same repository and tag, but GitHub now builds the zip with different bytes, so it no longer matches the SHA-1 package.elm-lang.org recorded. The Lamdera package server serves a copy recovered from https://github.com/andre-dietrich/elm-svgbob.

What we checked: Rebuilt with git archive from commit e0152cd54bbc of https://github.com/andre-dietrich/elm-svgbob (zip prefix andre-dietrich-elm-svgbob-2824c7d/, America/Los_Angeles times, the tag object 2824c7d1cdc9 it had before it was re-made, tagger time 2020-12-15 13:38 UTC): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 ef19b0d7b484c258c8e613793fd7faa1dc804bfb.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/andre-dietrich/elm-svgbob/zipball/2.1.0/

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