Skip to content

Display remove button above and vertex tool below the link labels #2686

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

You must be logged in to vote

Currently, this is not possible. However, it turns out that the current solution with the extra path overlay does not meet all requirements.

Here is a workaround for now. Something similar will soon turn into a feature.

const Vertices = joint.linkTools.Vertices.extend({
    pathNode: null,
    renderChildren: function() {
        const { pathSelector = 'wrapper' } = this.options;
        const el = this.relatedView.findNode(pathSelector);
        if (!el) return;
        this.delegateElementEvents(el, {
            mousedown:  'onLinkPointerDown',
            touchstart: 'onLinkPointerDown',
        });
        this.pathNode = el;
    },
    onLinkPointerDown: function(evt) {
        this.r…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dsrdh
Comment options

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