Fix Anchors story.

development
Junsik Shim 2021-10-18 10:22:04 +09:00
parent 570dfaab7b
commit 74fb23eb4e
1 changed files with 2 additions and 4 deletions

View File

@ -927,7 +927,6 @@ class ConnectionHandler extends EventSource implements GraphPlugin {
* <icons> is null or <icons> and <icon> are not null. * <icons> is null or <icons> and <icon> are not null.
*/ */
isStartEvent(me: InternalMouseEvent) { isStartEvent(me: InternalMouseEvent) {
console.log('isStartEvent', this.constraintHandler.currentFocus, this.constraintHandler.currentConstraint, this.previous, this.error, this.icons, this.icon)
return ( return (
(this.constraintHandler.currentFocus !== null && (this.constraintHandler.currentFocus !== null &&
this.constraintHandler.currentConstraint !== null) || this.constraintHandler.currentConstraint !== null) ||
@ -944,8 +943,7 @@ class ConnectionHandler extends EventSource implements GraphPlugin {
*/ */
mouseDown(sender: EventSource, me: InternalMouseEvent) { mouseDown(sender: EventSource, me: InternalMouseEvent) {
this.mouseDownCounter += 1; this.mouseDownCounter += 1;
console.log('mouseDown in ConnectionHandler')
console.log(this.isEnabled(), this.graph.isEnabled(), me.isConsumed(), this.isConnecting(), this.isStartEvent(me))
if ( if (
this.isEnabled() && this.isEnabled() &&
this.graph.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 // Stores the location of the initial mousedown
this.first = new Point(me.getGraphX(), me.getGraphY()); this.first = new Point(me.getGraphX(), me.getGraphY());
} }
console.log('if')
this.edgeState = this.createEdgeState(me); this.edgeState = this.createEdgeState(me);
this.mouseDownCounter = 1; this.mouseDownCounter = 1;