From 939b9cbd281cff25512e1c7f7e2e5a4f8ca3ad14 Mon Sep 17 00:00:00 2001 From: Peaceultime Date: Thu, 6 Feb 2025 23:36:55 +0100 Subject: [PATCH] Add neighbor snapping. Add edge snapping. Change accent colors and logo colors, fix canvas history being transported when changing canvas. --- components/CanvasEditor.vue | 308 ++++++++++++++++++----- components/Editor.vue | 8 +- components/canvas/CanvasEdge.vue | 18 +- components/canvas/CanvasEdgeEditor.vue | 30 +-- components/canvas/CanvasNode.vue | 7 + components/canvas/CanvasNodeEditor.vue | 49 ++-- db.sqlite | Bin 585728 -> 585728 bytes db.sqlite-shm | Bin 32768 -> 32768 bytes db.sqlite-wal | Bin 2418472 -> 968232 bytes nuxt.config.ts | 4 +- pages/explore/edit/index.vue | 2 +- shared/canvas.util.ts | 13 + shared/physics.util.ts | 332 +++++++++++++++++++++++++ todo.md | 10 +- types/general.d.ts | 4 +- 15 files changed, 665 insertions(+), 120 deletions(-) create mode 100644 shared/physics.util.ts diff --git a/components/CanvasEditor.vue b/components/CanvasEditor.vue index a6b5cb8..f23b738 100644 --- a/components/CanvasEditor.vue +++ b/components/CanvasEditor.vue @@ -1,7 +1,9 @@ +