mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 17:50:38 +00:00
The structure programs now cover what their worlds lacked: - `:interact` gives a shape on a main, a copy head or a copy child its prototype interactions (open-URL actions, so no board ties them to deletions), through the prototype panel's add, edit and remove events in the frontend replay. Interactions are no sync attribute: the target must end with what was set, no other operation may change those of a shape that stays, and a swap or a switch keeps a head's. - `:paste` also takes a nested copy head a copy holds, which the clipboard advances to its component's main. The model gives the pasted shapes the overrides of the references they skip, and drops the swap of a swapped head, now a plain copy of its component. - Worlds with `:pages` hold a second page that a paste can land on, and `:library-paste` pastes library mains and copies into the consumer, where both become copies of the library's components. Off the current page or file, the node and the frontend put the pasted corner at the same free point; the frontend pastes with nothing selected and the pointer there. - A transform no longer targets a shape without area, as a union of hidden shapes, which no transform can size. Samples of 150 structure, swap and scale programs found F588, F589 and F590 (fixed) and are then clean. Harness only; the benchmark is not run. AI-assisted-by: claude-opus-5-5