mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-15 22:32:13 +00:00
For models with `supportsNewAspectRatio()`, the picker only stored a `CommonAspectRatio` in local state for the API request payload — it never called `onAspectRatioSelect`, so the editor's render-camera aspect and the Letterbox stayed on the previous setting. Wrap the picker callback to also map the chosen `CommonAspectRatio` to the closest `CameraAspectRatio` and forward it through `onAspectRatioSelect`. `Auto*` ratios have no fixed shape, so they leave the letterbox alone. Export `commonToCameraAspect` so PageEditor can reuse the same mapping for the cold-load sync.