[{"name":"Svg.Editor","comment":" Basic types\n\n@docs Config, Model, Msg\n\n\n## Type alias\n\n@docs Meters, Url, Text\n\n\n## Elm Archtecture\n\n@docs defaulConfig, init, subscriptions, update, view, cmd\n\n\n## Inserting elements to the scene\n\n@docs withFigures, image, line, point, text\n\n\n## Figure transformations\n\n@docs editable, grow, move, visible, withLabel, withStyle\n\n","unions":[{"name":"Model","comment":" Editor model\n","args":[],"cases":[]}],"aliases":[{"name":"Config","comment":" Editor config\n","args":[],"type":"Svg.Editor.Config.Config"},{"name":"Meters","comment":" Length units\n","args":[],"type":"Basics.Float"},{"name":"Msg","comment":" Message\n","args":[],"type":"Msg.Msg"},{"name":"Text","comment":" Type alias for textual data. Usually strings that are shown directly to the end user.\n","args":[],"type":"String.String"},{"name":"Url","comment":" Type alias for Urls\n","args":[],"type":"String.String"}],"values":[{"name":"cmd","comment":" Command to properly initialize the editor\n","type":"Platform.Cmd.Cmd Svg.Editor.Msg"},{"name":"defaulConfig","comment":" Configuration object\n","type":"Svg.Editor.Config"},{"name":"editable","comment":" Control if figure is editable or not\n","type":"Basics.Bool -> Figure.Figure -> Figure.Figure"},{"name":"grow","comment":" Re-scale figure by the given scaling factor\n","type":"Basics.Float -> Figure.Figure -> Figure.Figure"},{"name":"image","comment":" Create an image with given width and source URL\n","type":"Svg.Editor.Meters -> Svg.Editor.Url -> Figure.Figure"},{"name":"init","comment":" Init function in TEA\n","type":"Svg.Editor.Config -> Svg.Editor.Model"},{"name":"line","comment":" Create a line from a list of vertices\n","type":"List.List ( Svg.Editor.Meters, Svg.Editor.Meters ) -> Figure.Figure"},{"name":"move","comment":" Move figure by the given vector displacement\n","type":"( Svg.Editor.Meters, Svg.Editor.Meters ) -> Figure.Figure -> Figure.Figure"},{"name":"point","comment":" Create a point at origin.\n\nUse move to set its position.\n\n","type":"( Svg.Editor.Meters, Svg.Editor.Meters ) -> Figure.Figure"},{"name":"subscriptions","comment":" Subscription function in TEA\n","type":"Svg.Editor.Config -> Svg.Editor.Model -> Platform.Sub.Sub Svg.Editor.Msg"},{"name":"text","comment":" Create a text figure from string\n","type":"Svg.Editor.Text -> Figure.Figure"},{"name":"update","comment":" Update function in TEA\n","type":"Svg.Editor.Config -> Svg.Editor.Msg -> Svg.Editor.Model -> ( Svg.Editor.Model, Platform.Cmd.Cmd Svg.Editor.Msg )"},{"name":"view","comment":" View function in TEA\n","type":"Svg.Editor.Config -> Svg.Editor.Model -> Html.Html Svg.Editor.Msg"},{"name":"visible","comment":" Control if figure is visible or not\n","type":"Basics.Bool -> Figure.Figure -> Figure.Figure"},{"name":"withFigures","comment":" Add list of figures to model\n","type":"String.String -> List.List Figure.Figure -> Svg.Editor.Model -> Svg.Editor.Model"},{"name":"withLabel","comment":" Set figure label\n","type":"Types.Label -> Figure.Figure -> Figure.Figure"},{"name":"withStyle","comment":" Add style to figure\n","type":"String.String -> String.String -> Figure.Figure -> Figure.Figure"}],"binops":[]},{"name":"Svg.Editor.Config","comment":" Global application configuration\n\n@docs Config, init\n\n\n## Custom config\n\n@docs config, controls, groups, pointRadius, sceneId, editable, shape, readOnly\n\n","unions":[],"aliases":[{"name":"Config","comment":" The config object. Usually should be created using init or the config utilitiy function\n","args":[],"type":"Internal.Types.Config"}],"values":[{"name":"config","comment":" Create a custom config from a list of properties,\ne.g.\n\n    config\n        [ groups [ \"routes\", \"rock-faces\", \"elements\" ]\n        , pointRadius 2\n        , controls { zoom = False, pan = True, drag = False }\n        ]\n\n","type":"List.List (Svg.Editor.Config.Config -> Svg.Editor.Config.Config) -> Svg.Editor.Config.Config"},{"name":"controls","comment":" Enable/disable zoom and pan controls in the UI\n","type":"{ zoom : Basics.Bool, pan : Basics.Bool, drag : Basics.Bool } -> Svg.Editor.Config.Config -> Svg.Editor.Config.Config"},{"name":"editable","comment":" Control if editor is editable or not.\n","type":"Basics.Bool -> Svg.Editor.Config.Config -> Svg.Editor.Config.Config"},{"name":"groups","comment":" List of allowed groups in scene.\n\nEach element can be in at most a single group and have a unique index in that group.\n\nThis is useful, for instance, to mark routes or other highlights on the topo map and\nhave numbers identifying each element.\n\n","type":"List.List Types.Label -> Svg.Editor.Config.Config -> Svg.Editor.Config.Config"},{"name":"init","comment":" Default config\n","type":"Svg.Editor.Config.Config"},{"name":"pointRadius","comment":" Radius of points, when rendered as circles.\n","type":"Basics.Float -> Svg.Editor.Config.Config -> Svg.Editor.Config.Config"},{"name":"readOnly","comment":" Initialize editor in a read-only state if boolean is true.\n","type":"Basics.Bool -> Svg.Editor.Config.Config -> Svg.Editor.Config.Config"},{"name":"sceneId","comment":" Change the default scene id.\n\nThis is necessary if two scenes are present in the same screen. Each scene must have a unique id.\n\n","type":"String.String -> Svg.Editor.Config.Config -> Svg.Editor.Config.Config"},{"name":"shape","comment":" Initial shape, (width, height), of the viewing area.\n\nScale is in meters.\n\n","type":"( Basics.Float, Basics.Float ) -> Svg.Editor.Config.Config -> Svg.Editor.Config.Config"}],"binops":[]}]