marczoid
marczoid

Reputation: 1475

JointJS: Add SVG to the center of a link

I know it is possible to create custom link ends in JointJS using SVG as demonstrated here. However, I don't know how one can create custom shapes that stay at the center of the link. I only know one can put labels there.

Upvotes: 1

Views: 492

Answers (2)

Dokki
Dokki

Reputation: 11

Try this. Just add the path with attr connection: true and ref your svg to this path.

First Second

Upvotes: 1

Vinay Prabhakaran
Vinay Prabhakaran

Reputation: 773

The shapes that you see at the ends of the link are paths tags with shapes, you can customize a link to add a new path shape to show up in the center. Sorry i do not have an example with me.

Upvotes: 1

Related Questions