jerosoler / Drawflow

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

Update Minimap to update Node Content and scrolling #731

Open rogereyes86 opened 1 year ago

rogereyes86 commented 1 year ago

Hi, if I updated the Content of a Node(also updated the JSON Html), how can I update that in the Minimap?.

I see in the code that we have "this.minimap.updateNodeDataFromId(id, node);" but I'm not sure how can I call that as a function.

Also, is there a way to have scroll enabled in the minimap as well?

Thanks

jerosoler commented 1 year ago

Minimap is still "Drawflow" itself.

It supports scrolling and scrolling.

You can see it in the demo: https://jerosoler.github.io/drawflow-minimap-example/

This correct, you have to duplicate the calls. Or you could do it with events.

The minimap repo is just an example, which you can customize.