
Elm Town 42 – It's Just Darth Vader
Elm Town
00:00
Using D3 With Ports to Run a Graph
I thought everything, it cannot run so fast. I decided to use D3 with ports. In every tick, D3 was calculating the new positions of vertices and sending as an array of positions to via through a port to kite. And then all these node positions were applied to the vertices. And again, they were sent to via ports to D3, and the D3 calculates the next positions in the next tick. Yeah. This is one of the main points that I built this app, because it makes so much easier and much more fun to play with graphs and roll them.
Transcript
Play full episode