Change vertices shape of a link when using tools #1766
-
Hello,
Is there any way to change the vertices circles with any other shape(rectangle for example)? |
Beta Was this translation helpful? Give feedback.
Answered by
kumilingus
Aug 5, 2022
Replies: 1 comment 3 replies
-
You have to override the const VertexHandle = joint.linkTools.Vertices.VertexHandle.extend({
tagName: 'rect',
attributes: {
'x': -6,
'y': -6,
'width': 12,
'height': 12,
'fill': '#33334F',
'stroke': '#FFFFFF',
'stroke-width': 2,
'cursor': 'move'
},
});
const vertices = new joint.linkTools.Vertices({ handleClass: VertexHandle }); |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
kumilingus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to override the
VertexHandle
class.