Disable Connection Layouting / Direct Lines


#1

How to customize line to avoid line breakers? Need only start point and end point of the line. With minimum actions.


#2

bpmn-js uses Manhattan layout. You have to modify BpmnLayouter in order to get straight lines as it is done already for associations.


#3

Philipp, thx! 1/2 problem was solved. But need to switch off line breakers totally.


#4

What do mean by line breakers?


#5

image

yellow


#6

You can disable the bendpoints feature by overriding it with an empty module.

new BpmnJS({
  additionalModules: [
    bendpoints: [ 'value', {} ],
    bendpointMove: [ 'value', {} ],
    connectionSegmentMove: [ 'value', {} ],
    bendpointSnapping: [ 'value', {} ]
  ]
});