From d7d0966adcf848a6bc2f1e3ff9f2c7f998d58a1a Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 20 Jun 2026 11:19:37 +0200 Subject: [PATCH] feat(editor): snap dragged nodes to the 20px grid Match Vue Flow's snap grid to the background gap so nodes line up on the dots they already render against. --- src/components/Editor.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Editor.vue b/src/components/Editor.vue index c6be5b9..e612a7f 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -385,6 +385,8 @@ onBeforeUnmount(() => { :connection-radius="30" :min-zoom="0.2" :max-zoom="4" + :snap-to-grid="true" + :snap-grid="[20, 20]" class="size-full" >