mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A grid without a direction assigned children column-first and grew rows, while grid creation, the direction event, the WASM renderer and CSS export read it as a row grid. The library file builder decodes the direction as optional, so imported files can lack it. Picking "column" on such a grid then swapped auto-placed children. Add grid-direction, which defaults to row, and use it for cell order, track growth, track fitting and the direction event. The generated oracle predicts the same flow order. The builder regressions fail three of six assertions before the fix; the real-event component regression fails six of 293, with main and copies grown to 3x2 instead of 2x3. Both pass unchanged after the fix, including exact undo and redo. The fitting flow-order control's missing-direction case now expects row order. Full frontend passes 1798 tests / 15737 assertions; common JVM passes 2052 / 33613. Backend passes 1838 / 9293; exporter passes 16 / 40. Lint and formatting pass for common, backend and exporter; frontend lint and changed-file formatting pass. Common JavaScript fails only in two random-seed component properties. Both shrunk programs fail the same way without this change and are fixed separately. Compare lower-quantile milliseconds with the saved baseline; keep that baseline unchanged. The machine/JVM warning makes ratios rough. No world is flagged. World Baseline Now Ratio Main into 10 copies 1.790 0.961 0.54 Main into 100 copies 15.415 8.816 0.57 Main into 1000 copies 153.086 94.309 0.62 Three nesting levels 35.215 19.435 0.55 Dependency chain 68.931 37.850 0.55 Library update 83.083 45.747 0.55 Many plain shapes 4.837 2.153 0.45 Variant switch 32.052 20.254 0.63 AI-assisted-by: claude-opus-5-5