Skip to content

feat!: add flow-orthogonal layout rule - #33

Merged
emaarco merged 1 commit into
mainfrom
emaarco/orthogonal-flow-rule
Aug 22, 2026
Merged

feat!: add flow-orthogonal layout rule#33
emaarco merged 1 commit into
mainfrom
emaarco/orthogonal-flow-rule

Conversation

@emaarco

@emaarco emaarco commented Aug 22, 2026

Copy link
Copy Markdown
Member

Adds the flow-orthogonal layout rule: reports a sequence flow drawn on a slant — a flow with a segment running diagonally instead of horizontally or vertically.

Decides purely on DI coordinates, scoped per BPMNPlane: a segment counts as slanted when its shorter-axis span exceeds a small fraction (~10°) of its longer one, so a few pixels of drift on a long segment stays orthogonal while a genuine diagonal does not.

Overlaps on purpose with flow-target-alignment (which points at the misaligned shapes behind a diagonal); the two suggest different fixes.

Ships error in plugin:@miragon/rules/all and non-blocking warn in both recommended layers → feat!.

Draft on purpose. This is the smaller / less-settled of the two rules originally landed together; it is split out of #28 so the clearer flow-zigzag rule can proceed independently while this one is finalized (e.g. naming, scope).

Closes #31

Reports a sequence flow drawn on a slant — a flow with a segment running
diagonally instead of horizontally or vertically. Decides purely on DI
coordinates, scoped per BPMNPlane: a segment counts as slanted when its
shorter-axis span exceeds a small fraction (~10 degrees) of its longer one,
so a few pixels of drift on a long segment stays orthogonal.

Overlaps on purpose with flow-target-alignment (which points at the
misaligned shapes behind a diagonal); the two suggest different fixes.

Ships error in `all` and non-blocking warn in both recommended layers.

Closes #31
@emaarco
emaarco force-pushed the emaarco/orthogonal-flow-rule branch from 099276e to 007bafe Compare August 22, 2026 09:53
@emaarco
emaarco marked this pull request as ready for review August 22, 2026 09:53
@emaarco
emaarco merged commit c15cf95 into main Aug 22, 2026
3 checks passed
@emaarco
emaarco deleted the emaarco/orthogonal-flow-rule branch August 22, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat]: Rule enforcing orthogonal (non-diagonal) sequence flow routing

1 participant