How do I add arrowhead for my edges? #1113
-
Hi, First of all, great project, thanks for your work! Now to the question - I'm doing a quick prototype based on the node-json-vscode template (https://github.com/eclipse-glsp/glsp-examples/tree/master/project-templates/node-json-vscode) and I've added support for edges between tasks. I'm using this code to create my edges:
How do I add an arrow head to point to the target? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Dinko, On the server, you need to specify a You can find examples of arrow decoration in these discussions: |
Beta Was this translation helpful? Give feedback.
Hi Dinko,
On the server, you need to specify a
type
attribute for your Edge, and then, on your client-side Diagram Module, map thistype
to an EdgeView that supports Arrow decorations. This is typically done with a subclass ofPolylineEdgeView
, which implements therenderAdditionals
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)