mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Fix Curved line issue.
This commit is contained in:
parent
30c13905c0
commit
8f87359b78
@ -79,7 +79,7 @@ mindplot.util.Shape =
|
||||
calculateDefaultControlPoints:function (srcPos, tarPos) {
|
||||
var y = srcPos.y - tarPos.y;
|
||||
var x = srcPos.x - tarPos.x;
|
||||
var m = y / x;
|
||||
var m = y / (x == 0 ? 1 : x); // Prevent division by 0.
|
||||
var l = Math.sqrt(y * y + x * x) / 3;
|
||||
var fix = 1;
|
||||
if (srcPos.x > tarPos.x) {
|
||||
|
Loading…
Reference in New Issue
Block a user