retejs / rete.js.org

Examples and documentation for Rete.js v1
http://rete.js.org
35 stars 29 forks source link

Usage with dagre.js ? #70

Open michealroberts opened 11 months ago

michealroberts commented 11 months ago

Hi there, I like Elk.js, but I find that the algorithms from dagre.js give better positional constraints and a tighter tree structure than Elk.js ... is there support for dagre.js with Rete?

Ni55aN commented 11 months ago

Rete.js does not have native support for dagre.js (yet). I think if you have experience with dagre.js, converting a Rete NodeEditor + AreaPlugin graph (nodes, connections, positions, sizes) to a dagre.js graph and back should be pretty easy for you

https://retejs.org/docs/guides/data-structures https://retejs.org/docs/api/rete-area-plugin#areaplugin-translate https://retejs.org/docs/faq#10