Link style customization #1771
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
You need to define a link with an extra SVGPath (or SVGPolyline) and then:
|
Beta Was this translation helpful? Give feedback.
-
Thank you! Is there any way to use the SVG Attribute approach without appyling it between every vertices, but only between particular, for example: |
Beta Was this translation helpful? Give feedback.
You need to define a link with an extra SVGPath (or SVGPolyline) and then:
Set the points of the
SVGPolyline
wheneververtices
changes.Example: https://jsfiddle.net/kumilingus/5npeku14/
Note: Styling is limited as the polyline is rendered on top of the original path
Define a custom SVG Attribute
Example: https://jsfiddle.net/kumilingus/378e9vcL/
Note: using an internal mechanism to define an SVG Attributes
Available also via decorators - https://changelog.jointjs.com/rappid/docs/decorators#SVGAttribute