Types of Arrows

Hello everyone,

Is it possible to use different types of arrow ends on the same diagram?

For example, I would like to use a certain type of arrow end when drawing a link between node A and node B, and another type of arrow end when drawing a link between node C and D.

Would appreciate any help, thank you.

Sure, it’s just a matter of setting or binding the Shape.toArrow property of the Shape representing the arrowhead. Which way you choose depends on how many differences you want there to be and how you want to control them.
Take a look at http://gojs.net/latest/samples/arrowheads.html. The Link template has two separate arrowhead Shapes – you probably only need one. Each arrowhead Shape has a Binding allowing a link data property to specify which arrowhead figure to use.
Alternatively, if you only need to show two or three kinds of links, typically with other differences besides the arrowhead figure, you might find it preferable to employ two or three different link templates. I think the http://gojs.net/latest/samples/linkstolinks.html is the only sample to demonstrate this. You can then specify the “category” property on the link data to choose between the link templates in the Diagram.linkTemplateMap. And each link template can be simpler, perhaps even without any data binding.

The link template map on the “linkstolinks” sample is exactly what I was looking for. Thank you for the quick and helpful reply Thumbs Up.