Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix(diagram): attach architecture arrows to node borders

tianma-if3262bd8b16ad
diff --git a/apps/web/src/components/DiagramEditorPane.tsx b/apps/web/src/components/DiagramEditorPane.tsx
index f12c3ead..bee1b39c 100644
--- a/apps/web/src/components/DiagramEditorPane.tsx
+++ b/apps/web/src/components/DiagramEditorPane.tsx
@@ -1949,6 +1949,9 @@ export const DiagramEditorPane = ({
mousewheel: { enabled: true, modifiers: ["ctrl", "meta"], minScale: DIAGRAM_ZOOM_SCALE_MIN, maxScale: DIAGRAM_ZOOM_SCALE_MAX },
interacting: () => !readOnly && !spacePanActiveRef.current,
connecting: {
+ // The port's transparent hit area is larger than the visible node.
+ // Connect to its center so arrowheads reach the node border.
+ connectionPoint: document.kind === "architecture" ? "anchor" : "boundary",
allowBlank: document.kind === "flowchart",
allowLoop: false,
allowNode: false,