Skip to content

Refactor: replace orientation-specific branches with general-purpose axis mapping#22

Closed
mass2527 wants to merge 1 commit intomainfrom
claude/general-purpose-class-design-ghxy4
Closed

Refactor: replace orientation-specific branches with general-purpose axis mapping#22
mass2527 wants to merge 1 commit intomainfrom
claude/general-purpose-class-design-ghxy4

Conversation

@mass2527
Copy link
Copy Markdown
Owner

Introduce getAxes() utility that maps orientation to primary/cross axis
property keys, eliminating duplicated horizontal/vertical branching in
calculateLayoutRects, calculateMinSize, getSurroundingRect, and
calculateResizeRatio. Each function now uses a single code path that
works for both orientations.

https://claude.ai/code/session_016Q7JGGCYmDSC89FKb5xhPH

…axis mapping

Introduce getAxes() utility that maps orientation to primary/cross axis
property keys, eliminating duplicated horizontal/vertical branching in
calculateLayoutRects, calculateMinSize, getSurroundingRect, and
calculateResizeRatio. Each function now uses a single code path that
works for both orientations.

https://claude.ai/code/session_016Q7JGGCYmDSC89FKb5xhPH
@mass2527 mass2527 closed this Mar 28, 2026
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.

2 participants