[{"name":"SvgBob","comment":" Convert ASCII to SVG\n\nIt is a fork of Ivan Ceras example that is hosted at:\n\n<https://github.com/ivanceras/elm-examples>\n\n@docs getSvg, defaultOptions, getSvgWith, getElements, drawElements\n\n@docs Settings, Configuration\n\n@docs setColors, setColorsIn\n\n","unions":[],"aliases":[{"name":"Configuration","comment":" This record is used to store all relevant data to draw an svg-image multiple\ntimes, without re-parsing it.\n","args":["a"],"type":"{ svg : List.List ( SvgBob.Types.Point, SvgBob.Types.Element ), foreign : List.List ( a, ( SvgBob.Types.Point, ( Basics.Int, Basics.Int ) ) ), settings : SvgBob.Settings, columns : Basics.Int, rows : Basics.Int }"},{"name":"Settings","comment":" general settings ...\n\n    type alias Settings =\n        { fontSize : Float\n        , lineWidth : Float\n        , textWidth : Float\n        , textHeight : Float\n        , arcRadius : Float\n        , color :\n            { stroke : String\n            , text : String\n            , background : String\n            }\n        , verbatim :\n            { string : String\n            , multiline : Bool\n            , height : Maybe String\n            , width : Maybe String\n            }\n        }\n\nThe additional `verbatim.height` and `verbatim.width` can be used to overwrite the\ncalculated dimensions for that specific element. Otherwise the dimensions for\nverbatim elements are calculated on the basis of the position and dimensions\nof the strings within the ASCII-Art image.\n\n","args":[],"type":"SvgBob.Model.Settings"}],"values":[{"name":"defaultOptions","comment":" Default parameters to work with ...\n\n    defaultOptions =\n        { fontSize = 14.0\n        , lineWidth = 1.0\n        , textWidth = 8.0\n        , textHeight = 16.0\n        , arcRadius = 4.0\n        , color =\n            { stroke = \"#222\"\n            , text = \"black\"\n            , background = \"white\"\n            }\n        , verbatim =\n            { string = \"\\\"\"\n            , multiline = False\n            , height = Nothing\n            , width = Nothing\n            }\n        }\n\n","type":"SvgBob.Settings"},{"name":"drawElements","comment":" Use this to draw the result of the getElements function into an svg container.\nThe function that translates foreign objects into Svg elements is mandatory.\n","type":"List.List (Svg.Attribute msg) -> (a -> Svg.Svg msg) -> SvgBob.Configuration a -> Html.Html msg"},{"name":"getElements","comment":" Identified elements can be stored for later usage and verbatim code can be\nexposed, so that it can be transformed into any other kind of representation.\n\nThe foreign part can be translated into anything, strings are not mandatory.\nThis way it can also be used within your model, if those foreign elements are\nused to store more relevant information.\n\nUse this function in conjunction with `drawElements`.\n\n","type":"SvgBob.Settings -> String.String -> SvgBob.Configuration String.String"},{"name":"getSvg","comment":" Get the resulting svg and pass it into a div or whatever\n","type":"List.List (Svg.Attribute msg) -> String.String -> SvgBob.Settings -> Html.Html msg"},{"name":"getSvgWith","comment":" Get the resulting svg and pass it into a div or parse it further or do whatever ...\n","type":"(String.String -> Svg.Svg msg) -> List.List (Svg.Attribute msg) -> String.String -> SvgBob.Settings -> Html.Html msg"},{"name":"setColors","comment":" Helper for changing the color settings.\n\n    settings\n    |> setColors { stroke = \"red\", text = \"green\", background = \"blue\" }\n    |> getSvg [] ...\n\n","type":"SvgBob.Model.Colors -> SvgBob.Settings -> SvgBob.Settings"},{"name":"setColorsIn","comment":" Helper for changing the color configuration.\n\n    config\n    |> setColorsIn { stroke = \"red\", text = \"green\", background = \"blue\" }\n    |> drawElements [] ...\n\n","type":"SvgBob.Model.Colors -> SvgBob.Configuration a -> SvgBob.Configuration a"}],"binops":[]}]