Jan Hrček
2017-05-28 12:03:05 UTC
Hello all,
I was surprised that there's no elm package that would enable to render
force directed graph layout animation purely in elm (please let me know if
there's any existing package supporting this). So I tried implementing it
myself and here's my first prototype [1] (source code here [2]). I'm
playing with an idea of making this into reusable library.
Would some of you find such library useful? If so what functionality it
should provide?
My idea for the functionality provided by the library would be this:
What you provide:
- a graph with some data (probably based on elm-community/graph)
- parameters of the layout algorithms (similar to what you see in the
prototype)
- node and edge rendering function (something returning Svg elements for
rendering nodes and edges, given (x,y) coordinates of the nodes)
What library would do for you:
- it would enrich the graph by adding "node position" information and would
simulate how these positions change over time
I'd be grateful for any comments / questions / ideas for improving my
existing code.
regards,
Jan HrÄek
[1] http://janhrcek.cz/elm-graph-layout.html
[2] https://github.com/jhrcek/force-layout
I was surprised that there's no elm package that would enable to render
force directed graph layout animation purely in elm (please let me know if
there's any existing package supporting this). So I tried implementing it
myself and here's my first prototype [1] (source code here [2]). I'm
playing with an idea of making this into reusable library.
Would some of you find such library useful? If so what functionality it
should provide?
My idea for the functionality provided by the library would be this:
What you provide:
- a graph with some data (probably based on elm-community/graph)
- parameters of the layout algorithms (similar to what you see in the
prototype)
- node and edge rendering function (something returning Svg elements for
rendering nodes and edges, given (x,y) coordinates of the nodes)
What library would do for you:
- it would enrich the graph by adding "node position" information and would
simulate how these positions change over time
I'd be grateful for any comments / questions / ideas for improving my
existing code.
regards,
Jan HrÄek
[1] http://janhrcek.cz/elm-graph-layout.html
[2] https://github.com/jhrcek/force-layout
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.