fix(observation): preserve snapshot unit normalization after document extraction

This commit is contained in:
drakezhang
2026-09-09 15:58:28 +08:00
parent 1d275f047c
commit eefbe03258
8 changed files with 172 additions and 41 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ import { isOverlayHostNode } from "@/lib/overlay-bridge";
import { createCaptureCheckpoint } from "./capture-abort";
import type { CapturedNode } from "./capture-types";
/** Bounds retain their snapshot document CSS units until normalization. */
/** Bounds retain their raw snapshot document layout units until normalization. */
export interface SnapshotLayout {
readonly boundsSpace: "snapshot-document-css";
readonly boundsSpace: "snapshot-document-layout";
bounds?: number[];
styles: Readonly<Record<string, string>>;
}