Files
hyperframes/packages
Miguel Angel Simon Sierra 39f33bd3a3 fix(studio): draw the crop UI in the element's rotated frame
Selecting a rotated (cropped) element appeared to straighten it: the crop
dim and dashed window were drawn on the axis-aligned bounding box, so the
bright window was a straight rectangle and the element's rotated corners
were masked to near-black — while the DOM transform was untouched.

clip-path applies in the element's LOCAL frame, before its transform, so
the crop visualization now renders inside a container rotated with the
element: readElementCropFrame decomposes the computed 2D matrix into
angle + per-axis scale (element scale finally factored into the px
mapping too) and 3D/unparseable transforms keep the axis-aligned
presentation. Pointer deltas rotate into the element frame before the
inset resolvers, so edge/pan drags track the rotated handles correctly.
2026-07-11 15:34:41 -04:00
..
2026-07-10 18:48:40 -04:00
2026-07-10 18:48:40 -04:00
2026-07-10 18:48:40 -04:00
2026-07-10 18:48:40 -04:00
2026-07-10 18:48:40 -04:00
2026-07-10 18:48:40 -04:00
2026-07-10 18:48:40 -04:00
2026-07-10 18:48:40 -04:00
2026-07-10 18:48:40 -04:00