# Dynamic connection line anchoring for canvas nodes and groups

**URL:** <https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659>\
**Category:** Feature requests\
**Tags:** canvas\
**Created:** [December 14, 2022, 3:33am UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659 "2022-12-14T03:33:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![I-d-as](https://forum.obsidian.md/user_avatar/forum.obsidian.md/i-d-as/32/59965_2.png) [@I-d-as](https://forum.obsidian.md/u/I-d-as)\
**Post date:** [December 14, 2022, 3:33am UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/1 "2022-12-14T03:33:58Z")

</div>

### Use case or problem

For me, oftentimes nodes/groups will be moved all over the canvas. However the nodes/groups that they are connected to may stay in one place, or not. So, it regularly occurs that the anchor that I originally chose to attach to, becomes a less than ideal choice, causing the connection line to overlap/interfere. I can remove the connection line and reattach it to a better anchor, but even this is a temporary solution.

### Proposed solution

It would be nice if there were an option to have connection lines for nodes/groups be dynamic, automatically attaching to the nearest anchor.

Thanks!

---

<div class="post-metadata">

**Author:** ![Iv3llios](https://forum.obsidian.md/user_avatar/forum.obsidian.md/iv3llios/32/36204_2.png) [@Iv3llios](https://forum.obsidian.md/u/Iv3llios)\
**Post date:** [December 14, 2022, 9:02am UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/2 "2022-12-14T09:02:40Z")

</div>

Yep I agree this would be a nice improvement!

[Draw.io](http://Draw.io) has a nice solution for that. They give you the ability to either connect to a specific anchor (at which point there is no dynamic behaviour), or connect to the node itself (by dragging the connection line anywhere else on the node itself. If the second option is used, the anchor point becomes “shortest path” and is dynamic.

I hope we get to see a similar system put 8n place!

---

<div class="post-metadata">

**Author:** ![Flummic](https://forum.obsidian.md/user_avatar/forum.obsidian.md/flummic/32/39801_2.png) [@Flummic](https://forum.obsidian.md/u/Flummic)\
**Post date:** [December 21, 2022, 8:26am UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/3 "2022-12-21T08:26:51Z")

</div>

Great feature request!  
For now you can also click on the connection line and simply drag one end to another connection point of your card - maybe this helps a little, in case you didn’t know that already 🙂

---

<div class="post-metadata">

**Author:** ![rigmarole](https://forum.obsidian.md/user_avatar/forum.obsidian.md/rigmarole/32/29973_2.png) [@rigmarole](https://forum.obsidian.md/u/rigmarole)\
**Post date:** [December 21, 2022, 4:46pm UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/4 "2022-12-21T16:46:10Z")

</div>

Why did you create this as two separate feature requests? What distinguishes them? I’m on the verge of merging the other one into here.

---

<div class="post-metadata">

**Author:** ![I-d-as](https://forum.obsidian.md/user_avatar/forum.obsidian.md/i-d-as/32/59965_2.png) [@I-d-as](https://forum.obsidian.md/u/I-d-as)\
**Post date:** [December 21, 2022, 8:26pm UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/5 "2022-12-21T20:26:49Z")

</div>

I thought that maybe it was less realistic for it to be implemented for all nodes and thought maybe doing it for groups might be a starting point. Feel free to merge them. Thanks.

---

<div class="post-metadata">

**Author:** ![I-d-as](https://forum.obsidian.md/user_avatar/forum.obsidian.md/i-d-as/32/59965_2.png) [@I-d-as](https://forum.obsidian.md/u/I-d-as)\
**Post date:** [December 14, 2022, 3:40am UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/6 "2022-12-14T03:40:29Z")

</div>

### Use case or problem

Sometimes I wish Obsidian could make and maintain the choice of node anchors with which the canvas connection lines are attached.

### Proposed solution

It would be helpful in some cases to be able to turn on a dynamic anchor mode to let the nearest anchor always be used in order to make a connection between two canvas nodes.

### Related feature requests (optional)

Related: [Dynamic connection line anchoring for canvas nodes and groups](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-groups/49659)

Thanks!

---

<div class="post-metadata">

**Author:** ![Stray-Sticky-Note](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@Stray-Sticky-Note](https://forum.obsidian.md/u/Stray-Sticky-Note)\
**Post date:** [February 1, 2023, 2:44pm UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/7 "2023-02-01T14:44:45Z")

</div>

+1. I’ve been using the canvas feature to divergently/ spatially think through things. I end up updating a lot of arrows as things become clearer and as I prepare the canvas to share with others.

---

<div class="post-metadata">

**Author:** ![I-d-as](https://forum.obsidian.md/user_avatar/forum.obsidian.md/i-d-as/32/59965_2.png) [@I-d-as](https://forum.obsidian.md/u/I-d-as)\
**Post date:** [February 5, 2023, 10:30pm UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/8 "2023-02-05T22:30:47Z")

</div>

Although I haven’t tried this and it appears to require a command to be run rather than dynamic adjustment, I wanted to link to this seemingly useful and relevant post: [New plugin: Optimize Canvas Connections](https://forum.obsidian.md/t/new-plugin-optimize-canvas-connections/53653)

I still would very much look forward to this functionality being a core option that occurs automatically.

Thanks.

---

<div class="post-metadata">

**Author:** ![felixchenier](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/f/b487fb/32.png) [@felixchenier](https://forum.obsidian.md/u/felixchenier)\
**Post date:** [February 6, 2023, 1:30am UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/9 "2023-02-06T01:30:05Z")

</div>

Hi @I-d-as  
Thanks for pushing my pluggin 🙂  
Like you, I would prefer Obsidian to provide some options for canvas, such as automatic connection line optimization. I made this plugin as a first step to try Obsidian canvas myself, to see if I would move to it (currently using Scapple that doesn’t have this problem). I would love to be able to use Obsidian canvas and this was one of some show stoppers for me. But they just started, I guess it will improve in the following months, and I hope my plugin will soon become obsolete.

---

<div class="post-metadata">

**Author:** ![I-d-as](https://forum.obsidian.md/user_avatar/forum.obsidian.md/i-d-as/32/59965_2.png) [@I-d-as](https://forum.obsidian.md/u/I-d-as)\
**Post date:** [February 11, 2023, 6:58am UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/10 "2023-02-11T06:58:11Z")

</div>

Although groups are not mentioned, this is the same as [Canvas- Auto-change connection points when connected items are moved](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290)

---

<div class="post-metadata">

**Author:** ![untitled](https://forum.obsidian.md/user_avatar/forum.obsidian.md/untitled/32/97098_2.png) [@untitled](https://forum.obsidian.md/u/untitled)\
**Post date:** [July 8, 2024, 11:30am UTC](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/11 "2024-07-08T11:30:22Z")

</div>

[drawDB:](https://drawdb.vercel.app/editor)

![Idle_715](https://forum.obsidian.md/uploads/default/original/3X/0/8/0861fd7913dbeb91515266a5700f972c2f74930a.gif)
