jerosoler / Drawflow

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

Auto Pan to the selected Node #723

Open Tarun031201 opened 1 year ago

Tarun031201 commented 1 year ago

Hi,

I am trying to highlight a node based on some logic, I am able to select them through code, but when I am trying to drag the screen to see the node, it gets deselected. Is there a way to pan the view to the selected node. And is there a way to select a connection?

jerosoler commented 1 year ago

View to translate wiith javascript.

Simulate click to select connection:

Tarun031201 commented 1 year ago

Thanks for the Translate function. But for selecting a connection , a click event will select only one connection. How would I go about selecting multiple. Like I am trying to show a path.

jerosoler commented 1 year ago

Simple add css class to elements