Skip to main content

Interface: DiffOptions

Defined in: packages/uimatch-core/src/core/diff/builder.ts:18

Properties

ignore?

optional ignore: string[];

Defined in: packages/uimatch-core/src/core/diff/builder.ts:61


meta?

optional meta: Record<string, {
class?: string;
cssSelector?: string;
elementKind?: "text" | "interactive" | "container";
height?: number;
id?: string;
tag: string;
testid?: string;
}>;

Defined in: packages/uimatch-core/src/core/diff/builder.ts:68


stage?

optional stage: "all" | "self" | "parent" | "children";

Defined in: packages/uimatch-core/src/core/diff/builder.ts:84

Checking stage for progressive validation (parent → self → children)

Default

'all'

thresholds?

optional thresholds: object;

Defined in: packages/uimatch-core/src/core/diff/builder.ts:19

borderWidth?

optional borderWidth: number;

Tolerance ratio for border-width.

Default
0.3 (30%)

deltaE?

optional deltaE: number;

Maximum acceptable color Delta E (CIEDE2000).

Default
3.0

dimension?

optional dimension: number;

Tolerance ratio for dimension properties (width, height).

Default
0.05 (5%)

layoutGap?

optional layoutGap: number;

Tolerance ratio for gap properties (gap, column-gap, row-gap).

Default
0.1 (10%)

radius?

optional radius: number;

Tolerance ratio for border-radius.

Default
0.12 (12%)

shadowBlur?

optional shadowBlur: number;

Tolerance ratio for box-shadow blur.

Default
0.15 (15%)

shadowColorExtraDE?

optional shadowColorExtraDE: number;

Extra Delta E tolerance for box-shadow color comparison.

Default
1.0

spacing?

optional spacing: number;

Tolerance ratio for spacing properties (padding, margin).

Default
0.15 (15%)

tokens?

optional tokens: object;

Defined in: packages/uimatch-core/src/core/diff/builder.ts:65

color?

optional color: Record<string, string>;

weights?

optional weights: Partial<Record<"color" | "border" | "spacing" | "radius" | "shadow" | "typography", number>>;

Defined in: packages/uimatch-core/src/core/diff/builder.ts:62