jerosoler / Drawflow

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

connection line is not properly synced with output or inputs #43

Closed MehbubRashid closed 4 years ago

MehbubRashid commented 4 years ago

error Hi, @jerosoler , when the node height gets changed, the connection line does not sync with it and stays in the same place. when i move the node, then it syncs...what can be the solution for it?

jerosoler commented 4 years ago

Hello @MehbubRashid

Wow!! nice design!!!

Force update connections with:

Mehtod Description
updateConnectionNodes(id) Update connections position from Node Ex id: node-x
MehbubRashid commented 4 years ago

@jerosoler works great, thanks!

shailesh345 commented 3 years ago

error Hi, @jerosoler , when the node height gets changed, the connection line does not sync with it and stays in the same place. when i move the node, then it syncs...what can be the solution for it?

Nice design

dina-setiana commented 2 years ago

Hi , I tried to use updateConnectionNodes but the connection line still won't sync properly. I tried to use updateConnectionNodes after addConnection, on connectionCreated but none of them works. Could you tell me where should I put the updateConnectionNodes code??

jerosoler commented 2 years ago

Hi @dina-setiana

The nodes are shown to you correctly? View commun problem: https://github.com/jerosoler/Drawflow/issues/123#issuecomment-784149366

When you create the connection from one node to another does it work correctly?

Are you loading the data from an external source? Maybe with a settimeout? https://github.com/jerosoler/Drawflow/issues/286

Jero

dina-setiana commented 2 years ago

@jerosoler Thank you for the reply.

I'm loading data from external source and settimeout solved my problem. Works like a charm. Thank you once again