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 3.0.0 is there; its commit 800ffb3eb22a is from 2019-06-07 00:08 UTC, before the version was published (2019-06-07 00:09 UTC); every file Elm uses matches a copy in a Lamdera package cache from 2021-02-13, from before the change; 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/3.0.0/
This library aims to provide a flow chart builder in Elm.
flowchart message
Event declaration for event config
Config for subscribing to events
onCanvasClick -> when canvas is clicked
onNodeClick FCNode -> when any node is clicked
onLinkClick FCLink -> when any link is clickedList of events to subscribe
Currently supported are :
onCanvasClick, onNodeClick, onLinkClickGet default port config
portSize = Size of port in Vector2 (20, 20)
portColor = Color of port (grey)Get default link config
linkSize = stroke width of link (2px)
linkColor = Color of link (#6495ED)subscriptions
** Update the flowchart **** Display the flowchart **
- model -> Model holding flowchart Model
- nodeMap -> function which gives node's html. For example:
nodeMap : FCNode -> Model -> Html FlowChart.Msg
nodeMap fcNode model =
div
[ A.style "width" "100%"
, A.style "height" "100%"
, A.style "background-color" "white"
]
[ text fcNode.id ]
- fcChartStyle -> css attributes for flowchartadd node to canvas
addNode fcNode Modelremove node from canvas
removeNode "node-id" Modelremove link from canvas
removeLink "link-id" FlowChartModelGet current flowchart state i.e position of canvas, nodes and links
getFCState FlowChart.ModelSet flowchart state i.e will override position of canvas, nodes and links
flowchart model