[{"name":"FlowChart","comment":" This library aims to provide a flow chart builder in Elm.\n\n\n# Definition\n\n@docs Model, Msg\n\n\n# Helpers\n\n@docs init, subscriptions, update, view\n\n\n# Functionalities\n\n@docs addNode\n\n","unions":[{"name":"Msg","comment":" flowchart message\n","args":[],"cases":[]}],"aliases":[{"name":"Model","comment":" flowchart model\n","args":[],"type":"{ position : FlowChart.Types.Vector2, nodes : Dict.Dict String.String FlowChart.Types.FCNode, links : Dict.Dict String.String Link.Model, currentlyDragging : DraggableTypes.DraggableTypes, dragState : Utils.Draggable.DragState, nodeMap : String.String -> Html.Html FlowChart.Msg }"}],"values":[{"name":"addNode","comment":" call to add node to canvas\n","type":"FlowChart.Types.FCNode -> Platform.Cmd.Cmd FlowChart.Msg"},{"name":"init","comment":" init flowchart\n\n    init fcCanvas nodeMap\n\n","type":"FlowChart.Types.FCCanvas -> (String.String -> Html.Html FlowChart.Msg) -> FlowChart.Model"},{"name":"subscriptions","comment":" subscriptions\n","type":"FlowChart.Model -> Platform.Sub.Sub FlowChart.Msg"},{"name":"update","comment":" call to update the canvas\n","type":"FlowChart.Msg -> FlowChart.Model -> ( FlowChart.Model, Platform.Cmd.Cmd FlowChart.Msg )"},{"name":"view","comment":" display the canvas\n","type":"FlowChart.Model -> List.List (Html.Attribute FlowChart.Msg) -> Html.Html FlowChart.Msg"}],"binops":[]},{"name":"FlowChart.Types","comment":"\n\n\n# Defination\n\n@docs Vector2, FCNode, FCPort, FCLink, FCCanvas\n\n","unions":[],"aliases":[{"name":"FCCanvas","comment":" Canvas data to initialize the flowchart\n","args":[],"type":"{ nodes : List.List FlowChart.Types.FCNode, position : FlowChart.Types.Vector2, links : List.List FlowChart.Types.FCLink }"},{"name":"FCLink","comment":" Link data to connect nodes through ports\n\nid -> Id of the link, should be unique\nfrom -> NodeId, portId of the start of link\nto -> NodeId, portId of the end of link\n\n","args":[],"type":"{ id : String.String, from : { nodeId : String.String, portId : String.String }, to : { nodeId : String.String, portId : String.String } }"},{"name":"FCNode","comment":" Represent the data of a single node in flowchart\n","args":[],"type":"{ id : String.String, position : FlowChart.Types.Vector2, dim : FlowChart.Types.Vector2, nodeType : String.String, ports : List.List FlowChart.Types.FCPort }"},{"name":"FCPort","comment":" Nodes are connected through links at Port position\n","args":[],"type":"{ id : String.String, position : FlowChart.Types.Vector2 }"},{"name":"Vector2","comment":" Vector2 which can represent position or dimension of node, canvas, etc.\n\n        pos = Vector2 10 10\n\n","args":[],"type":"{ x : Basics.Float, y : Basics.Float }"}],"values":[],"binops":[]}]