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 ]
  }
]

Thank you very much, it works!

1 Like