From c36cf59a80e0f8c7fc8fc73a275e58c68aac06c0 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 5 Feb 2023 21:59:04 +0100 Subject: [PATCH] feat(core): add connection status to connection lines Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/auto-imports.d.ts | 1 + .../ConnectionLine/ConnectionLine.vue | 27 +++++++++---------- packages/core/src/composables/useHandle.ts | 5 ++++ packages/core/src/store/state.ts | 1 + packages/core/src/types/connection.ts | 8 +++--- packages/core/src/types/store.ts | 10 ++++++- packages/core/src/utils/handle.ts | 13 +++++++++ 7 files changed, 46 insertions(+), 19 deletions(-) diff --git a/packages/core/src/auto-imports.d.ts b/packages/core/src/auto-imports.d.ts index 246243a6..1f26f375 100644 --- a/packages/core/src/auto-imports.d.ts +++ b/packages/core/src/auto-imports.d.ts @@ -68,6 +68,7 @@ declare global { const getBoundsofRects: typeof import('./utils/graph')['getBoundsofRects'] const getClosestHandle: typeof import('./utils/handle')['getClosestHandle'] const getConnectedEdges: typeof import('./utils/graph')['getConnectedEdges'] + const getConnectionStatus: typeof import('./utils/handle')['getConnectionStatus'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] const getDimensions: typeof import('./utils/graph')['getDimensions'] diff --git a/packages/core/src/components/ConnectionLine/ConnectionLine.vue b/packages/core/src/components/ConnectionLine/ConnectionLine.vue index b8930b7f..573dd463 100644 --- a/packages/core/src/components/ConnectionLine/ConnectionLine.vue +++ b/packages/core/src/components/ConnectionLine/ConnectionLine.vue @@ -1,7 +1,6 @@