Any way to connect an anchor with a Node by dropping it anywhere on the node? #306
Replies: 4 comments 4 replies
-
Will look into it. |
Beta Was this translation helpful? Give feedback.
-
Okay. There's a first pass of this in the newest version releasing tonight. You can pass the <Node useDefaults dimensions={{ width: 400, height: 300 }} position={{ x: 100, y: 300 }}>
<Anchor invisible />
</Node> Untitled.mov |
Beta Was this translation helpful? Give feedback.
-
Your code works on my end. Sandbox linked below. The only thing I changed was the outer wrapper, for display purposes, but it worked that way too https://stackblitz.com/edit/vitejs-vite-zd3zfq?file=src/App.svelte |
Beta Was this translation helpful? Give feedback.
-
There's now a prop on the Anchor component called |
Beta Was this translation helpful? Give feedback.
-
I was trying to figure out a way to connect an anchor to a node by just dropping the edge anywhere on the node. I guess it might require introducing some changes to svelvet? Mainly because of two issues
Overall, I know it's a big ask, but just putting it out there to know how big of a feature request this is. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions