How to remove dots on connection lines that cause them to be bent?

disable-connection-layouting-direct-lines
how-to-create-direct-lines-of-sequenceflow-by-default-when-connecting-elements-bpmn-diagram
These are the links of the two answers I have mentioned in my question. I appreciate your assistance.