We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Prevent drag and drop and resize of the node without usage of diagram constrants

-For some reason, my overview panel and diagram is bugging when I use ~NodeConstraints.Drag and ~NodeConstraints.Resize constraints. Is there some other way to prevent dragging and resizing of the nodes in diagram?



1 Reply

SG Shyam G Syncfusion Team January 22, 2020 05:20 AM

Hi Dominique, 
 
We have created a sample in which we have removed Drag and resize functionality for the nodes using NodeConstraints. Could you please check in the below sample?. Still if you face any issues, please share us more details such as modify the below sample. 
 
Code example: 
let nodes = [ 
  { 
    id: "NewIdea", 
    height: 60, 
    offsetX: 300, 
    offsetY: 80, 
    shape: { type: "Flow", shape: "Terminator" }, 
    //remove drag and resize for nodes 
    constraints: NodeConstraints.Default &~(NodeConstraints.Drag | NodeConstraints.Resize), 
  
  },  
] 
 
 
 
Regards, 
Shyam G 


Loader.
Live Chat Icon For mobile
Up arrow icon