Skip to main content

Interface: CaptureResult

Defined in: packages/uimatch-core/src/types/adapters.ts:114

Result of capturing a web page element.

Properties

box

box: object;

Defined in: packages/uimatch-core/src/types/adapters.ts:129

Bounding box of the captured element.

height

height: number;

width

width: number;

x

x: number;

y

y: number;

childBox?

optional childBox: object;

Defined in: packages/uimatch-core/src/types/adapters.ts:135

Bounding box of childSelector relative to page (same coordinate space as box). Used for Figma child-node auto-selection.

height

height: number;

width

width: number;

x

x: number;

y

y: number;

implPng

implPng: Buffer;

Defined in: packages/uimatch-core/src/types/adapters.ts:118

Screenshot as PNG buffer.


meta?

optional meta: Record<string, ElementMeta>;

Defined in: packages/uimatch-core/src/types/adapters.ts:141

DOM element metadata keyed by selector. Provides additional context for generating precise CSS selectors and code examples.


styles

styles: Record<string, Record<string, string>>;

Defined in: packages/uimatch-core/src/types/adapters.ts:124

Computed CSS styles keyed by selector. Keys: __self__, [data-testid="..."], or :nth-child(n).