From 839fa6ba22d801b5f7b6f9a0122dbc1253ae49e9 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 30 Dec 2022 00:54:29 +0100 Subject: [PATCH] refactor(core): remove `nodes` property from ConnectionLineProps Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/components/ConnectionLine/ConnectionLine.vue | 2 -- packages/core/src/types/connection.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/packages/core/src/components/ConnectionLine/ConnectionLine.vue b/packages/core/src/components/ConnectionLine/ConnectionLine.vue index 53d572ca..b8930b7f 100644 --- a/packages/core/src/components/ConnectionLine/ConnectionLine.vue +++ b/packages/core/src/components/ConnectionLine/ConnectionLine.vue @@ -6,7 +6,6 @@ import { getMarkerId } from '../../utils/graph' const { sourceNode } = defineProps<{ sourceNode: GraphNode }>() const { - getNodes, connectionMode, connectionStartHandle, connectionPosition, @@ -94,7 +93,6 @@ export default { targetX, targetY, targetPosition, - nodes: getNodes, sourceNode, sourceHandle, markerEnd: `url(#${getMarkerId(connectionLineOptions.markerEnd)})`, diff --git a/packages/core/src/types/connection.ts b/packages/core/src/types/connection.ts index f5b7d12e..7f3cba2d 100644 --- a/packages/core/src/types/connection.ts +++ b/packages/core/src/types/connection.ts @@ -70,8 +70,6 @@ export interface ConnectionLineProps { connectionLineType: ConnectionLineType /** extra styles */ connectionLineStyle: CSSProperties - /** All currently stored nodes */ - nodes: GraphNode[] /** The source node of the connection line */ sourceNode: GraphNode /** The source handle element of the connection line */