Skip to content

Link style customization #1771

Answered by kumilingus
ivokst92 asked this question in Q&A
Aug 9, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

You need to define a link with an extra SVGPath (or SVGPolyline) and then:

  1. Set the points of the SVGPolyline whenever vertices changes.
    Example: https://jsfiddle.net/kumilingus/5npeku14/
    Note: Styling is limited as the polyline is rendered on top of the original path

  2. 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

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ivokst92
Comment options

You must be logged in to vote
6 replies
@ivokst92
Comment options

@kumilingus
Comment options

@ivokst92
Comment options

@kumilingus
Comment options

@ivokst92
Comment options

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