How to disable a feature?

How can I disable or turn off a feature, for example grid-snapping? We have special layouter for connections, so they should look like this
obrazek
however, after update to bpmn js 4.0.0 ad up, they look like that
obrazek
due to modeling.updateWaypoints(connection, self.snapMiddleSegments(waypoints)); in LayoutConnectionBehavior.js

Thank you in advance!

This question has already been answered. Please search for existing topics before opening a new one.

Sorry, you need to disable all the features that depend on grid snapping, too:

additionalModules: [
 {
    gridSnapping: [ 'value', null ],
    gridSnappingAutoPlaceBehavior: [ 'value', null ],
    gridSnappingCreateParticipantBehavior: [ 'value', null ],
    gridSnappingLayoutConnectionBehavior: [ 'value', null ],
    gridSnappingResizeBehavior: [ 'value', null ],
    gridSnappingSpaceToolBehavior: [ 'value', null ]
  }
]
1 Like

Thank you very much, it works!

1 Like

Does this solution also work for bpmn-js 6.x.x and newer?
I’ve tried it but snapping is still active.
Thanks!

Please do not necrobump old topics. Instead link to this thread from new topic.