jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.41k stars 713 forks source link

How to translate Node [QUESTION] #839

Closed darioillusorium closed 2 months ago

darioillusorium commented 3 months ago

Hi! Is there a way to update position of node? It exists "updateNodeDataFromId" but it edit node data, not position. I modify the value in node manually, how can refresh the graph to this changes take effect?

editor.drawflow.drawflow[editor.module].data[node_id].pos_x = pos_x

Thanks in advance.

jerosoler commented 3 months ago

View: