Lock Modeler canvas


#1

Hello

I would like to fix the canvas position so it can not be accidentally changed while dragging some components or by using the hand tool.

The idea is to have the position fixed as the viewer does.

Is this possible ?

I am using bpmn version v0.20.6 (just updated)

Thank you !


Can I prevent the moving of viewport with scrolling?
#2

Hi,

you can simply override the modules that implement these features with empty modules:

var modeler = new BpmnModeler({
  // ...
  additionalModules: [
    {
      moveCanvas: [ 'value', '' ],
      zoomScroll: [ 'value', '' ]
    }
  ]
});

Cheers


#3

That’s a great idea,

Thank you !