From 74fb23eb4ea6720accaa435232d2e1f50cdd76be Mon Sep 17 00:00:00 2001 From: Junsik Shim Date: Mon, 18 Oct 2021 10:22:04 +0900 Subject: [PATCH] Fix Anchors story. --- packages/core/src/view/connection/ConnectionHandler.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/src/view/connection/ConnectionHandler.ts b/packages/core/src/view/connection/ConnectionHandler.ts index b5947790b..3b6d7122a 100644 --- a/packages/core/src/view/connection/ConnectionHandler.ts +++ b/packages/core/src/view/connection/ConnectionHandler.ts @@ -927,7 +927,6 @@ class ConnectionHandler extends EventSource implements GraphPlugin { * is null or and are not null. */ isStartEvent(me: InternalMouseEvent) { - console.log('isStartEvent', this.constraintHandler.currentFocus, this.constraintHandler.currentConstraint, this.previous, this.error, this.icons, this.icon) return ( (this.constraintHandler.currentFocus !== null && this.constraintHandler.currentConstraint !== null) || @@ -944,8 +943,7 @@ class ConnectionHandler extends EventSource implements GraphPlugin { */ mouseDown(sender: EventSource, me: InternalMouseEvent) { this.mouseDownCounter += 1; -console.log('mouseDown in ConnectionHandler') -console.log(this.isEnabled(), this.graph.isEnabled(), me.isConsumed(), this.isConnecting(), this.isStartEvent(me)) + if ( this.isEnabled() && this.graph.isEnabled() && @@ -965,7 +963,7 @@ console.log(this.isEnabled(), this.graph.isEnabled(), me.isConsumed(), this.isCo // Stores the location of the initial mousedown this.first = new Point(me.getGraphX(), me.getGraphY()); } -console.log('if') + this.edgeState = this.createEdgeState(me); this.mouseDownCounter = 1;