|
@ -457,11 +457,11 @@ class EdgeBase { |
|
|
|
|
|
|
|
|
if (position === 'from') { |
|
|
if (position === 'from') { |
|
|
arrowPoint = this.findBorderPosition(this.from, ctx, {x, y, low:0.25, high:0.6, direction:-1}); |
|
|
arrowPoint = this.findBorderPosition(this.from, ctx, {x, y, low:0.25, high:0.6, direction:-1}); |
|
|
angle = point.t * -2 * Math.PI + 1.5 * Math.PI + 0.1 * Math.PI; |
|
|
|
|
|
|
|
|
angle = arrowPoint.t * -2 * Math.PI + 1.5 * Math.PI + 0.1 * Math.PI; |
|
|
} |
|
|
} |
|
|
else if (position === 'to') { |
|
|
else if (position === 'to') { |
|
|
arrowPoint = this.findBorderPosition(this.from, ctx, {x, y, low:0.6, high:1.0, direction:1}); |
|
|
arrowPoint = this.findBorderPosition(this.from, ctx, {x, y, low:0.6, high:1.0, direction:1}); |
|
|
angle = point.t * -2 * Math.PI + 1.5 * Math.PI - 1.1 * Math.PI; |
|
|
|
|
|
|
|
|
angle = arrowPoint.t * -2 * Math.PI + 1.5 * Math.PI - 1.1 * Math.PI; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
arrowPoint = this._pointOnCircle(x, y, radius, 0.175); |
|
|
arrowPoint = this._pointOnCircle(x, y, radius, 0.175); |
|
|