From 348c991c54def4da83377782e00306a18bd5f3c3 Mon Sep 17 00:00:00 2001 From: Peaceultime Date: Tue, 14 Jan 2025 17:57:57 +0100 Subject: [PATCH] Add edge editor, generalize selection and edition to both node and edge. Still trying to find a proper tween. --- components/CanvasEditor.vue | 371 +++++++++++++------------ components/canvas/CanvasEdgeEditor.vue | 67 +++++ components/canvas/CanvasNodeEditor.vue | 29 +- composables/useTween.ts | 76 +++-- db.sqlite-shm | Bin 32768 -> 32768 bytes db.sqlite-wal | Bin 0 -> 1236032 bytes 6 files changed, 329 insertions(+), 214 deletions(-) create mode 100644 components/canvas/CanvasEdgeEditor.vue diff --git a/components/CanvasEditor.vue b/components/CanvasEditor.vue index 6c1b3a5..66bffea 100644 --- a/components/CanvasEditor.vue +++ b/components/CanvasEditor.vue @@ -1,22 +1,13 @@ @@ -466,7 +492,7 @@ useShortcuts({
-
+
@@ -481,7 +507,7 @@ useShortcuts({
-
+
@@ -532,7 +558,7 @@ useShortcuts({ 'transform-origin': 'center center', }" class="h-full">
-
+
@@ -547,30 +573,30 @@ useShortcuts({
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -578,29 +604,18 @@ useShortcuts({ -
+
- + +
+
+
- - - - - - - - -
diff --git a/components/canvas/CanvasEdgeEditor.vue b/components/canvas/CanvasEdgeEditor.vue new file mode 100644 index 0000000..1ffda57 --- /dev/null +++ b/components/canvas/CanvasEdgeEditor.vue @@ -0,0 +1,67 @@ + + + \ No newline at end of file diff --git a/components/canvas/CanvasNodeEditor.vue b/components/canvas/CanvasNodeEditor.vue index 7d25daa..0af2acc 100644 --- a/components/canvas/CanvasNodeEditor.vue +++ b/components/canvas/CanvasNodeEditor.vue @@ -34,7 +34,8 @@