Skip to content

Commit

Permalink
minor update to end arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
sqville committed Mar 9, 2024
1 parent 0a87272 commit 19001d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/class/ville/connect/Connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ _positionConnection : function(connection)
pBtop = pBtop - parseInt((endAsize)/2, 10);
}
this._wendarrow.setUserBounds(pBleft, pBtop, endAsize, endAsize);
transval["transform-origin"] = "center";
this._wendarrow.getContentElement().setStyles(transval);
}
}
Expand Down Expand Up @@ -672,7 +673,7 @@ _positionConnection : function(connection)
var halfRadius = parseInt(radius/2, 10);
var posL = (point1left > point2left)? (point2left - halfRadius) : (point1left - halfRadius);
var posT = point1top - halfRadius;
var linewidth = Math.abs(point1left - point2left + radius); //(point1left > point2left)? (point1left - point2left + radius) : (point2left - point1left + radius);
var linewidth = Math.abs(point1left - point2left + radius);

// rotate line
var wid = Math.abs(point1left-point2left);
Expand Down

0 comments on commit 19001d9

Please sign in to comment.