Set the diagram container to a specific width and height

Hello,

I would like to set the diagram container to a specific width and height so I can restrict the moving area of bpmn js elements inside viewport boundaries.

For example, in below workflow, the elements should not overlap with the top green line:

Any help please,

thanks and regrads.

Not easily possible.

The diagram will always take the size of the outer container (the parent you pass to the BpmnJS constructor as the container property.