Skip to content

How do I add arrowhead for my edges? #1113

Discussion options

You must be logged in to vote

Hi Dinko,

On the server, you need to specify a type attribute for your Edge, and then, on your client-side Diagram Module, map this type to an EdgeView that supports Arrow decorations. This is typically done with a subclass of PolylineEdgeView, which implements the renderAdditionals method to add an SVG triangle at the end of the last segment.

You can find examples of arrow decoration in these discussions:

#1058 (reply in thread)
#753 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dinkoivanov-gepard
Comment options

Answer selected by dinkoivanov-gepard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants