Problems creating connections for dynamically added nodes dragged from a palette #246
Closed
Luandrada
started this conversation in
Show and tell
Replies: 1 comment
-
|
everything was wrong on my side |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Description
My goal is to create new nodes by dragging elements from an external
<div class="palette">into the canvas at a given position — and then be able to connect these new nodes with existing ones in my entity tree.**Creating nodes by drag-and-drop already works correctly, and they are properly rendered in the canvas.
The problem appears when I try to create connections between the newly added nodes and existing ones.
entity-tree.component.html
**
I based my implementation on the Pro Examples → Visual Programming demo, but I noticed a few differences that prevent me from reproducing the same behavior:
<vp-node>instead of<div fNode ...>.@foblex/flowin itspackage.json.<f-connection-for-create></f-connection-for-create>to enable manual connections, I lose the ability to drag existing nodes — clicks on nodes start drawing the connection line instead of moving the node.Even when I successfully reach another node with that connection line, it disappears when I release the mouse (the connection is not created or persisted).
Questions
@foblex/flow@17.9.5with Angular 20?<div fNode ...>or migrate to<vp-node>?Thank you
Thank you in advance for any guidance!
I’m attaching my component’s HTML and TypeScript files for reference.
Beta Was this translation helpful? Give feedback.
All reactions