mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
Wrap selected elements in a <div data-hf-group> in the composition source, with coordinate rebasing so the members' on-screen positions are unchanged. Supports create (Cmd+G) / ungroup (Cmd+Shift+G or an inspector button), select-as-unit, canvas + layer-tree drill-in with a back breadcrumb, move/scale by reusing the single-element drag/resize intercepts, grouping inside sub-compositions, and member-union bounds shared across the selection, hover, and off-canvas overlays. Core: wrapElementsInHtml / unwrapElementsFromHtml mirror splitElementInHtml (round-trip identity, handles left/top declared in a CSS rule), plus wrap-elements / unwrap-elements file-mutation routes with finite-number coordinate validation. Also polishes the 3D transform widget (tangential to groups): depth via scroll-over-cube instead of a redundant perspective slider, a depth-scaled cube for realistic Z feedback, and a screen-Y-down orientation fix so the gizmo mirrors the element's rotation.