From fa9baf1f9b65f577948aab51904a139cfea9bd54 Mon Sep 17 00:00:00 2001 From: Mutasem Date: Mon, 18 Oct 2021 16:59:00 +0200 Subject: [PATCH] update interface --- packages/editor-ui/src/Interface.ts | 1 + packages/editor-ui/src/views/NodeView.vue | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor-ui/src/Interface.ts b/packages/editor-ui/src/Interface.ts index 75a2c389a3..a557de94af 100644 --- a/packages/editor-ui/src/Interface.ts +++ b/packages/editor-ui/src/Interface.ts @@ -47,6 +47,7 @@ declare module 'jsplumb' { interface Overlay { setVisible(visible: boolean): void; + setLocation(location: number | [number, number]): void; } interface OnConnectionBindInfo { diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index 559e15a3fb..d59bed7ae8 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -1743,7 +1743,6 @@ export default mixins( outgoing.forEach((connection: Connection) => { const arrow = connection.getOverlay('midpoint-arrow'); if (arrow) { - // @ts-ignore arrow.setLocation(0.5); } @@ -1844,7 +1843,6 @@ export default mixins( const arrow = connections[0].getOverlay('midpoint-arrow'); if (arrow) { - // @ts-ignore arrow.setLocation(0.6); } });