Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Customize arrowhead direction?

$
0
0

@david0 wrote:

Hi, we have overridden Link.prototype.makeGeometry in order to make custom paths for links. That works well enough, but arrowhead orientation is a bit askew. It appears arrowheads are taking a linear direction from last two points, which is at least an understandable best guess, but still not quite right.

Arrowheads are coming from the standard approach about like this...

diagram.linkTemplate =
  $(CustomLink, // subclass of go.Link
    ...
    $(go.Shape, { toArrow: "Standard" }, ...)
  );

Is there any nice way to specify the correct arrowhead direction, e.g., with a binding on that shape?

As a workaround, we could put the arrowhead shape in its own panel and position with segmentIndex/segmentFraction/segmentOffset etc and specify an angle, but it would be preferable to avoid all that if possible.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles