Files
hyperframes/packages
Miguel Angel Simon Sierra bd03f205fe fix(studio): size the selection box by the transform the element actually paints under
The box around a text layer inside the playground card stopped mid-word. The
layer is 260px wide and paints 313, because its parent carries `scale(1.2)`,
and the chrome read only the element's OWN transform. The top-left looked
right, since the corners are anchored to the real bounding rect, so only the
right and bottom edges fell short, by exactly 1/1.2.

The same read decides whether to draw the box rotated at all, so an element
whose parent is rotated got an upright box over a rotated one.

The transform is now accumulated from the element up to the composition root.
Only the linear part matters: each transform's origin contributes translation,
and translation is already discarded by matching the corners to the element's
bounding rect, so composing the matrices is enough and no per-ancestor origin
has to be unpicked. The walk stops inside the composition document, because the
canvas zoom lives on the iframe in Studio's own document and is applied
separately.

The fake DOMMatrix the geometry tests use gained the `multiply` it now needs.
2026-08-09 19:10:53 -04:00
..
2026-08-09 03:14:27 -07:00
2026-08-09 03:14:27 -07:00
2026-08-09 03:14:27 -07:00
2026-08-09 03:14:27 -07:00
2026-08-09 03:14:27 -07:00
2026-08-09 03:14:27 -07:00
2026-08-09 03:14:27 -07:00