Habr
1
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
however, after update to bpmn js 4.0.0 ad up, they look like that
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
Habr
5
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!