fix(sgcr): straighten fork in-line child at the parity boundary#206
Merged
Conversation
…p, don't skip) A fork parent distributes its child ports around centre, so the in-line child's connector was straight only when its target port fell strictly inside the (possibly narrower / ½-grid-parity-shifted) child face. At the boundary the forced-edge straightening SKIPPED, leaving a ~9px diagonal jog even though parent and child were centre-aligned. Now snap with a 1px parity slack, clamped to the face — straight when reachable, ≤1px at the boundary — while still skipping genuinely-off-to-the-side edges (which must turn). Verified: stress fuzz 10,060 layouts zero violations; vitest 26/26; the arch demo's edge→api→svc→cache spine now renders as one straight line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A fork parent's in-line child connector was left diagonal (~9px) when the target port fell a parity-hair outside the child's narrower face — the forced-edge straightening skipped instead of snapping. Now snaps with a 1px parity slack (clamped to face); genuine off-side edges still turn. Stress fuzz 10,060 layouts ZERO violations, vitest 26/26, arch spine now one straight line.