mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A turned board that fills its flex parent is skewed, and so is a grid board it holds. The grid took a child's coordinates along the frame's axes as dot products with the unit axes and rebuilt points as h * hv + v * vv, which only holds for perpendicular axes: in a skewed frame the child landed hundreds of pixels outside the grid, further the further the frame sat from the page origin. frame_coords solves p = hv * h + vv * v for any pair of axes. cargo test --bin render_wasm: 358 tests pass. The component benchmark covers common sync code, not render-wasm, and is not run. AI-assisted-by: claude-opus-5-5