Skip to content

🧰🎨: add support for reverse ordering in layouts - #1697

Draft
merryman wants to merge 5 commits into
mainfrom
feature/tiling-layout-order
Draft

merryman wants to merge 5 commits into
mainfrom
feature/tiling-layout-order

Conversation

@merryman

@merryman merryman commented Jan 30, 2025 •

Copy link
Copy Markdown
Member

Add reverseOrder to TilingLayout and expose it through a Reverse Order checkbox in the sidebar. Reversal changes visual index order without mutating the owner's submorph array.

orderByIndex retains its existing meaning. Reversal applies only in index-order mode; positional ordering disables the checkbox, retains the stored flag and shows the effective direction. Row and column layouts keep Yoga positions and CSS ordering consistent.

Copying, specs and equality preserve both flags, including detached layouts. Specs omit the default orderByIndex: true and retain explicit false, allowing equivalent layouts to be reused during component styling.

Tests cover both layout engines, row/column directions, repeated relayout, Boolean normalization, spec/copy round trips and the actual sidebar checkbox and preview.

Closes #1878.

@merryman
merryman force-pushed the feature/tiling-layout-order branch 2 times, most recently from f78e2a2 to 64aace3 Compare October 13, 2026 13:16
@merryman
merryman force-pushed the feature/tiling-layout-order branch from 64aace3 to dcf7bc0 Compare October 14, 2026 11:39
@merryman merryman changed the title 🎨: add support for reverse ordering in layouts 🧰🎨: add support for reverse ordering in layouts Oct 21, 2026

This branch has not been deployed

No deployments
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.

Support reverse index ordering in TilingLayout and its controls

1 participant