Connections bendpoints move

Please, is there a way how to disable the yellow markers on connections so they can’t be manually reshaped, but still can be selected?

Hi, can you please give a bit more context about your project? Are you talking about bpmn-js? Did you create a custom modeler? Maybe you can provide some code how you instantiate the modeler. That makes it easier for us to help :slight_smile:

Hi, thank you for response. My initialization of bpmn modeler looks like:

this.modeler = new BpmnModeler({
    container: '#main-svg-container',
    propertiesPanel: {
        parent: '#js-properties-panel'
    },
    additionalModules: [
        propertiesPanelModule,
        propertiesProviderModule,
        {
            propertiesProvider: [ 'type', require('./bpmnProviders/ColorPropertiesProvider') ],
            layouter: [ 'type', require('./bpmnLayout/SplineLayouter') ]
        }
    ]
});

where the SplineLayouter computes the shape of connections - cubic splines with lots of waypoints. And I don´t want a user to be able to hover, drag and drop these points (yellow bendpoints) so the shape of connections remains on SplineLayouter when connected tasks are moved.

Thanks,

if you just want to disable the entrie bendpoints feature you could override it when specifying your additional modules like that:

additionalModules: [
  ...
  {
    { bendpoints: [ 'type', function() {} ] }
    ...
  }
]

Does that help? :slight_smile:

Yes, this is exactly what I needed! Thank you very much for saving my day. Great.:slight_smile:

1 Like