Hacker News new | ask | show | jobs
by artemonster 411 days ago
Wow, I used to hate myself, but I hate this even more! /j.

Jokes aside, congrats on the release! why choice of DOM for nodes instead of canvas?

1 comments

Haha, thanks!

As for the DOM nodes - as a React frontend developer by trade, the DOM was my first choice for simplicity when I started working on Flyde a few years ago.

I was sure I’d eventually need to switch to Canvas or WebGL, but surprisingly, the DOM has held up pretty well. It’s been performant enough to render complex flows smoothly, and being able to leverage the existing React ecosystem has been a huge advantage.

I do think there's an option for a canvas/WebGL based version in the longer-term future, especially to be able to build interactions like this one - https://xai-primer.com/tool/

checkout Node-RED[1], they use a giant SVG as their canvas.

Has nice features such as vector image exports of flows ...

[1] https://nodered.org