vernacular-ai/elm-flow-chart/1.0.0

NOTE: the latest version is 3.0.0

Renamed to skit-ai/elm-flow-chart. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as vernacular-ai/elm-flow-chart still install under that name. 4 versions of 4 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/skit-ai/elm-flow-chart.

What we checked: The repo moved to github.com/skit-ai/elm-flow-chart and tag 1.0.0 is there; its commit b213408b543c is from 2019-05-06 21:02 UTC, before the version was published (2019-05-06 21:03 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

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/vernacular-ai/elm-flow-chart/zipball/1.0.0/

FlowChart

This library aims to provide a flow chart builder in Elm.

Definition

type alias Model =
{ position : Vector2
, nodes : Dict String FCNode
, links : Dict String Model
, currentlyDragging : DraggableTypes
, dragState : DragState
, nodeMap : String -> Html Msg
}

flowchart model

type Msg

flowchart message

Helpers

init : FCCanvas -> (String -> Html Msg) -> Model

init flowchart

init fcCanvas nodeMap
subscriptions : Model -> Sub Msg

subscriptions

update : Msg -> Model -> ( Model, Cmd Msg )

call to update the canvas

view : Model -> List (Attribute Msg) -> Html Msg

display the canvas

Functionalities

addNode : FCNode -> Cmd Msg

call to add node to canvas