Is there a way to give a link two colors #2548
Unanswered
reshin-pulapaddy
asked this question in
Q&A
Replies: 2 comments 2 replies
-
It's possible when you define a custom Note that the definition of custom attributes has not yet been officially published and documented |
Beta Was this translation helpful? Give feedback.
1 reply
-
I wish you'd tell us this when you asked the question (it would'd save us some time).
In this case, I believe it would be easier to split the link into multiple links and connect them with 1x1 sized elements.
paper.on('link:pointerclick', (linkView, evt, x, y) => {
// - add new element at x,y
// - add new link starting at `linkView` source
// - reconnect the `linkView` source to new element
// - reconnect the new link target to the new element
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
Is there a way to give a link two colors
Example
The first half of the link should be red, and the second half should be blue
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions