mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
Since F570 a flip moves a shape's radius tokens with the corners they apply to. The composable model kept the tokens of a copy's authored radius on the corners they named before the flip, so a flipped copy that had set one corner by hand failed I9. After each step and each settle, the model's authored radius takes the tokens in the orientation the shape ends with (`shadow/radius-orientation`). The token property passes at 300 programs. Test: generated `a-flip-moves-the-radius-tokens-a-copy-authored`. Harness only; the benchmark is not run. Also in this commit: - Block a shape the model moves into a blocked board. A move relocates a shape as a nest does, and a shape relocated into a blocked parent is blocked, an override on a copy. The composable model applied that to nests only, so moving a copy into a board blocked by hand failed I2. - Predict a mask's move through the group it moves. The composable model predicts where a transformed shape lands. The mask of a masked group passes its change to the group, so the prediction applied the change to the mask alone and skipped the modifier tree. A flex that places the group puts it back after the move, so moving the mask of such a group left it where it was, and the prediction failed I9. - Compare a pasted copy with the main its file accepted. The composable model expects a copy pasted on the page to author the geometry it shows when that differs from its main's. It read the main as loaded, so in a stale library world, after the library resized a main the file had not accepted, a pasted copy showing the accepted size was expected to author it, and the property failed I3. AI-assisted-by: claude-opus-5-5