You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When refreshing the page or changing node dimensions/positions, the connection strings/paths become misaligned from their input/output points. The connections only realign properly after moving the nodes.
Current Behavior
I create multiple nodes, connect them using the input/output points and save. But when I refresh the page, the connections lines become misaligned and only snap back to correct positions when I move a node.
This happens even when I resize a node or change input/outpu positions.
Expected Behavior
Connections should maintain their correct positions relative to input/output points after page refresh
Connections should stay properly aligned when nodes are resized or modified
Connection paths should remain fixed unless explicitly deleted or modified
Code Example
consteditor=ref(null)constdrawflowRef=ref(null)editor.value=newDrawflow(drawflowRef.value)editor.value!.reroute=trueeditor.value!.reroute_fix_curvature=trueconstdata=savedContent// From database/storageif(data){editor.value!.clear()editor.value!.import(data)constallNodes=editor.value.drawflow.drawflow.Home.data;for(constnodeIdinallNodes){constnode=allNodes[nodeId];constnodeElement=document.querySelector(`#node-${nodeId} .drawflow_content_node`);if(nodeElement){nodeElement.style.width=`${node.data.width}px`;nodeElement.style.height=`${node.data.height}px`;}}// Attempt to update connectionssetTimeout(()=>{editor.value.updateConnectionNodes('all');},0);}
I am using the latest version of Drawflow with Vue 3. I am also using the latest CSS
The text was updated successfully, but these errors were encountered:
@jerosoler Please note none of the solutions you posted are not working. I am still having the same issue where the connection lines are being rendered out of position and only snap back into position when I move the node
When refreshing the page or changing node dimensions/positions, the connection strings/paths become misaligned from their input/output points. The connections only realign properly after moving the nodes.
Current Behavior
I create multiple nodes, connect them using the input/output points and save. But when I refresh the page, the connections lines become misaligned and only snap back to correct positions when I move a node.
This happens even when I resize a node or change input/outpu positions.
Expected Behavior
Code Example
I am using the latest version of Drawflow with Vue 3. I am also using the latest CSS
The text was updated successfully, but these errors were encountered: