Hi QED,
By using the NodeConstraints we can able to restrict the node resize. To prevent the node from resizing remove resize constraints from node constraints. So that you cannot able to resize the node and able to drag, rotate the node. Please refer below code snippet for how to remove resize from node constraints
|
let node: NodeModel = {
id: 'node1', width: 100, height: 100, offsetX: 100, offsetY: 100, annotations: [ { content: 'Node1'}],
constraints: NodeConstraints.Default & ~(NodeConstraints.Resize)
}; |
Regards
Aravind Ravi