Remove dragging of the diagram


After my diagram is rendered, i want to remove the dragging part of svg. I dont want to be able to drag the diagram. How can it be done?


Exclude the MoveCanvas from your modeler build, if you’d like to disable canvas movement all together.


ok so if i have bpmn tool integrated with my application. i am installing directly Modeler.js into my node modules folder. so i have to override the nodemodules folder file right?


No, please do not override stuff in your node_modules.

Instead, consult our examples and learn how to extend bpmn-js without monkey patching.