mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 11:29:54 +00:00
Crop mode now behaves like an NLE crop tool: - Canvas toolbar gets a Crop button (shown whenever a croppable element is selected); crop mode lives in the player store so the toolbar, the Clip panel, and the overlay share one switch. - Double-click a selected element to enter crop mode (timestamp-based: selection re-keys the box on every click, so native dblclick never fires); Escape exits. - While cropping, the element's clip is lifted so the full content stays visible; the cropped-out region is dimmed and a crop frame with edge handles sits ON the crop lines (handles track the insets as you drag). - Drag end commits through the normal style path (one undo step per drag); leaving crop mode re-applies the committed crop. - Outside crop mode the selection box hugs the visible cropped region instead of the full element bounds.