jerosoler / Drawflow

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

connect two nodes again with the existance connection line #762

Open itsrajatcodehub opened 10 months ago

itsrajatcodehub commented 10 months ago

hi @jerosoler thanks for the great library!

I'm facing a problem I'm opening a Dialog box when I created a connection between node1 to node2

I'm able to open a Dialog successfully, when I create a very first connection using this:- editor.on("connectionCreated", connection => { console.log("Connection created"); console.log(connection); });

now I want to open the Dialog again when I try to create a connection between already existed connection nodes, without breaking it.

this dialog image

on the connection of these nodes image

jerosoler commented 10 months ago

You could use the connectionSelected event.

Or view: