Skip to content

Change vertices shape of a link when using tools #1766

Answered by kumilingus
ivokst92 asked this question in Q&A
Discussion options

You must be logged in to vote

You have to override the VertexHandle class.

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 });

Replies: 1 comment 3 replies

Comment options

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

@kumilingus
Comment options

@ivokst92
Comment options

Answer selected by kumilingus
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