Skip to content

Commit

Permalink
Make the arrowheads sharper
Browse files Browse the repository at this point in the history
The style of the arrows used in the flowchart stencil always annoied me: they use a 90 degrees angle between the arrow heads.
This simple patch changes that to half that angle. It looks so much better, especially if multiple arrows come together in one point.
  • Loading branch information
mvdw committed Oct 14, 2015
1 parent 99bdd9b commit 6fbf932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/content/pencil/common/connectorSupports.js
Expand Up @@ -333,7 +333,7 @@ function arrowTo(startPoints, handle, w, VIA_LENGTH, supportUnconnected,
if (typeof(withStartArrow) == "undefined") withStartArrow = true;
if (typeof(withEndArrow) == "undefined") withEndArrow = true;

const ANGLE = Math.PI / 4;
const ANGLE = Math.PI / 8;
const ARROW_WING_LENGTH = Math.max(w * 4, 6);

if (startPoints[0].x == handle.x &&
Expand Down

0 comments on commit 6fbf932

Please sign in to comment.