Skip to content

option to disable node dragging #43

@bagnus

Description

@bagnus

I need a way to disable dragging on some nodes.

Case test:
graph.addNode('Banana', { nodrag:true });
I changed the original code at bottom of drawNode():

node.shape.connections = [];
dragify(node.shape);

resulting in:

node.shape.connections = [];
if(!node.nodrag) {dragify(node.shape);}

Is there a better way to do it ?

Regards
Andrea

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions