feat(studio): non-destructive crop + cross-project asset view

This commit is contained in:
Miguel Angel Simon Sierra
2026-07-06 23:40:32 -04:00
parent 8c3590a90e
commit 676f461f6a
39 changed files with 1646 additions and 208 deletions
@@ -1,9 +1,8 @@
// fallow-ignore-file unused-file
// fallow-ignore-file code-duplication
import type { DomEditSelection } from "./domEditing";
import {
isElementVisibleForOverlay,
toOverlayRect,
toVisibleOverlayRect,
type OverlayRect,
} from "./domEditOverlayGeometry";
import {
@@ -106,7 +105,7 @@ export function collectSnapContext(input: {
id: string;
}> = [];
for (let i = 0; i < elements.length; i++) {
const rect = toOverlayRect(input.overlayEl, input.iframe, elements[i]);
const rect = toVisibleOverlayRect(input.overlayEl, input.iframe, elements[i]);
if (rect) entries.push({ rect, id: `snap-target-${i}` });
}