mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2026-03-13 10:30:34 +08:00
When a sequence flow originates from a boundary event attached to an activity corner and the target element is placed strictly on the same vertical or horizontal axis (i.e. getOrientation returns a pure cardinal direction with no diagonal component), the layouter previously fell through to the isHorizontal counter-axis comparison, producing an incorrect target docking side and an invalid extra waypoint. Fix this by adding two strict-axis early returns in getBoundaryEventTargetLayout: if the target orientation has only a vertical component, return 'v'; if only horizontal, return 'h'. This ensures a clean straight-line connection in axis-aligned cases. Closes #2270