From c09ae3c18c469aa4e96c4d63f59e46c23ed02db5 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Mon, 30 Sep 2024 13:27:37 +0300 Subject: [PATCH] feat(editor): Improve sticky note experience on new canvas (no-changelog) (#11010) --- .../src/components/Node/NodeCreation.vue | 127 ++++++++-------- .../render-types/CanvasNodeStickyNote.vue | 1 + .../src/composables/useCanvasMapping.spec.ts | 135 ++++++++++++++++++ .../src/composables/useCanvasMapping.ts | 68 ++++++++- .../src/styles/plugins/_vueflow.scss | 30 ++++ packages/editor-ui/src/types/canvas.ts | 7 + .../src/utils/__tests__/canvasUtilsV2.spec.ts | 45 ++++++ packages/editor-ui/src/utils/canvasUtilsV2.ts | 17 ++- 8 files changed, 353 insertions(+), 77 deletions(-) diff --git a/packages/editor-ui/src/components/Node/NodeCreation.vue b/packages/editor-ui/src/components/Node/NodeCreation.vue index 38c89d135a..dd00098932 100644 --- a/packages/editor-ui/src/components/Node/NodeCreation.vue +++ b/packages/editor-ui/src/components/Node/NodeCreation.vue @@ -1,5 +1,6 @@