@mizchi/vlmkit-core 0.24.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a11y-semantic.d.mts +1 -3
- package/dist/a11y-semantic.mjs +1 -2
- package/dist/animated-image.d.mts +1 -3
- package/dist/animated-image.mjs +1 -2
- package/dist/apng.d.mts +1 -3
- package/dist/apng.mjs +1 -2
- package/dist/arg-reader.d.mts +1 -3
- package/dist/arg-reader.mjs +1 -2
- package/dist/auth-state.d.mts +1 -3
- package/dist/auth-state.mjs +1 -2
- package/dist/authored-style-capture.d.mts +1 -3
- package/dist/authored-style-capture.mjs +1 -2
- package/dist/authored-style-diff.d.mts +2 -4
- package/dist/authored-style-diff.mjs +1 -2
- package/dist/bitmap-font.d.mts +1 -3
- package/dist/bitmap-font.mjs +1 -2
- package/dist/browser-launch.d.mts +1 -3
- package/dist/browser-launch.mjs +1 -2
- package/dist/cli-args.d.mts +1 -3
- package/dist/cli-args.mjs +1 -2
- package/dist/cli-error.d.mts +0 -2
- package/dist/cli-error.mjs +1 -2
- package/dist/computed-style-capture.d.mts +1 -3
- package/dist/computed-style-capture.mjs +1 -2
- package/dist/computed-style-diff.d.mts +0 -2
- package/dist/computed-style-diff.mjs +1 -2
- package/dist/diff-regions.d.mts +1 -3
- package/dist/diff-regions.mjs +1 -2
- package/dist/dom-equivalence.d.mts +1 -3
- package/dist/dom-equivalence.mjs +1 -2
- package/dist/dom-position-styles.d.mts +1 -3
- package/dist/dom-position-styles.mjs +1 -2
- package/dist/element-compare.d.mts +1 -3
- package/dist/element-compare.mjs +2 -3
- package/dist/filmstrip.d.mts +1 -3
- package/dist/filmstrip.mjs +1 -2
- package/dist/gate-config.d.mts +1 -3
- package/dist/gate-config.mjs +8 -4
- package/dist/gate-exit.d.mts +1 -3
- package/dist/gate-exit.mjs +1 -2
- package/dist/gif.d.mts +1 -3
- package/dist/gif.mjs +1 -2
- package/dist/heatmap-regions.d.mts +1 -3
- package/dist/heatmap-regions.mjs +1 -2
- package/dist/heatmap.d.mts +1 -3
- package/dist/heatmap.mjs +12 -8
- package/dist/image-resize.d.mts +1 -3
- package/dist/image-resize.mjs +1 -2
- package/dist/image-timing.d.mts +1 -3
- package/dist/image-timing.mjs +1 -2
- package/dist/index.d.mts +12 -12
- package/dist/index.mjs +11 -11
- package/dist/mask.d.mts +1 -3
- package/dist/mask.mjs +1 -2
- package/dist/motion-spec.d.mts +97 -0
- package/dist/motion-spec.mjs +145 -0
- package/dist/navigation-redirect.d.mts +1 -3
- package/dist/navigation-redirect.mjs +1 -2
- package/dist/page-load.d.mts +28 -3
- package/dist/page-load.mjs +34 -5
- package/dist/page-open.d.mts +5 -3
- package/dist/page-open.mjs +4 -3
- package/dist/plugin/args.d.mts +1 -3
- package/dist/plugin/args.mjs +3 -3
- package/dist/plugin/browser.d.mts +3 -3
- package/dist/plugin/browser.mjs +2 -2
- package/dist/plugin/cli-entry.d.mts +1 -3
- package/dist/plugin/cli-entry.mjs +1 -2
- package/dist/plugin/contract.d.mts +1 -3
- package/dist/plugin/contract.mjs +1 -2
- package/dist/plugin/index.d.mts +4 -6
- package/dist/plugin/index.mjs +7 -8
- package/dist/plugin/load.d.mts +1 -3
- package/dist/plugin/load.mjs +1 -2
- package/dist/plugin/registry.d.mts +1 -3
- package/dist/plugin/registry.mjs +1 -2
- package/dist/plugin/rule-prose.d.mts +1 -3
- package/dist/plugin/rule-prose.mjs +1 -2
- package/dist/plugin/rule-tier.d.mts +1 -3
- package/dist/plugin/rule-tier.mjs +1 -2
- package/dist/plugin/rules.d.mts +1 -3
- package/dist/plugin/rules.mjs +1 -2
- package/dist/plugin/runner.d.mts +1 -3
- package/dist/plugin/runner.mjs +14 -6
- package/dist/png-decode.d.mts +1 -3
- package/dist/png-decode.mjs +1 -2
- package/dist/png-utils.d.mts +1 -3
- package/dist/png-utils.mjs +1 -2
- package/dist/project-config.d.mts +1 -3
- package/dist/project-config.mjs +1 -2
- package/dist/rect-overlap.d.mts +1 -3
- package/dist/rect-overlap.mjs +1 -2
- package/dist/region-shift.d.mts +1 -2
- package/dist/region-shift.mjs +1 -2
- package/dist/run-ledger.d.mts +1 -3
- package/dist/run-ledger.mjs +1 -2
- package/dist/stable-selector.d.mts +1 -3
- package/dist/stable-selector.mjs +1 -2
- package/dist/terminal-colors.d.mts +1 -3
- package/dist/terminal-colors.mjs +1 -2
- package/dist/text-rows.d.mts +1 -3
- package/dist/text-rows.mjs +1 -2
- package/dist/types.d.mts +1 -3
- package/dist/version.d.mts +1 -3
- package/dist/version.mjs +2 -3
- package/dist/video-decode.d.mts +1 -3
- package/dist/video-decode.mjs +35 -32
- package/dist/video-frames.d.mts +11 -7
- package/dist/video-frames.mjs +23 -12
- package/dist/webp.d.mts +1 -3
- package/dist/webp.mjs +1 -2
- package/package.json +5 -5
package/dist/a11y-semantic.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { A11yDiff, A11yNode, A11ySnapshot } from "./types.mjs";
|
|
2
|
-
//#region src/a11y-semantic.d.ts
|
|
3
2
|
export declare const LANDMARK_ROLES: Set<string>;
|
|
4
3
|
export declare const INTERACTIVE_ROLES: Set<string>;
|
|
5
4
|
/**
|
|
@@ -23,5 +22,4 @@ export interface A11yIssue {
|
|
|
23
22
|
/**
|
|
24
23
|
* Convert Playwright page.accessibility.snapshot() output to A11ySnapshot.
|
|
25
24
|
*/
|
|
26
|
-
export declare function parsePlaywrightA11ySnapshot(testId: string, testTitle: string, raw: Record<string, unknown>): A11ySnapshot;
|
|
27
|
-
//#endregion
|
|
25
|
+
export declare function parsePlaywrightA11ySnapshot(testId: string, testTitle: string, raw: Record<string, unknown>): A11ySnapshot;
|
package/dist/a11y-semantic.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/a11y-semantic.ts
|
|
2
2
|
const LANDMARK_ROLES = /* @__PURE__ */ new Set([
|
|
3
3
|
"banner",
|
|
4
4
|
"complementary",
|
|
@@ -252,5 +252,4 @@ function normalizeA11yNode(raw) {
|
|
|
252
252
|
...raw.children ? { children: raw.children.map(normalizeA11yNode) } : {}
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
//#endregion
|
|
256
255
|
export { INTERACTIVE_ROLES, LANDMARK_ROLES, diffA11yTrees, parsePlaywrightA11ySnapshot, verifyA11yTree };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/animated-image.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Whether an image file animates, from its bytes: a GIF with more than one image, a PNG whose
|
|
4
3
|
* `acTL` (before its first `IDAT`) declares two or more frames and that holds two `fcTL` frame
|
|
@@ -25,5 +24,4 @@ export interface ImageAnimation {
|
|
|
25
24
|
format: ImageFormat;
|
|
26
25
|
animated: boolean;
|
|
27
26
|
}
|
|
28
|
-
export declare function sniffImageAnimation(bytes: Uint8Array): ImageAnimation;
|
|
29
|
-
//#endregion
|
|
27
|
+
export declare function sniffImageAnimation(bytes: Uint8Array): ImageAnimation;
|
package/dist/animated-image.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/animated-image.ts
|
|
2
2
|
const ascii = (bytes, at, length) => String.fromCharCode(...bytes.subarray(at, at + length));
|
|
3
3
|
const u32 = (bytes, at) => (bytes[at] << 24 | bytes[at + 1] << 16 | bytes[at + 2] << 8 | bytes[at + 3]) >>> 0;
|
|
4
4
|
/** RIFF sizes are little-endian. */
|
|
@@ -109,5 +109,4 @@ function sniffImageAnimation(bytes) {
|
|
|
109
109
|
animated: false
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
//#endregion
|
|
113
112
|
export { sniffImageAnimation };
|
package/dist/apng.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PngData } from "./png-utils.mjs";
|
|
2
|
-
//#region src/apng.d.ts
|
|
3
2
|
export interface ApngOptions {
|
|
4
3
|
/** Per-frame delay in milliseconds. Default 200. */
|
|
5
4
|
delayMs?: number;
|
|
@@ -36,5 +35,4 @@ export interface ApngChunk {
|
|
|
36
35
|
* browser, and this file's whole risk is byte-level: a wrong CRC, a wrong chunk order or a broken
|
|
37
36
|
* sequence produces a file that looks fine in a hex dump and is rejected on load.
|
|
38
37
|
*/
|
|
39
|
-
export declare function readApngChunks(bytes: Uint8Array): ApngChunk[];
|
|
40
|
-
//#endregion
|
|
38
|
+
export declare function readApngChunks(bytes: Uint8Array): ApngChunk[];
|
package/dist/apng.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { deflateSync } from "node:zlib";
|
|
2
|
-
|
|
2
|
+
// src/apng.ts
|
|
3
3
|
/**
|
|
4
4
|
* Animated PNG, for the "one file that actually plays" output.
|
|
5
5
|
*
|
|
@@ -195,5 +195,4 @@ function readApngChunks(bytes) {
|
|
|
195
195
|
}
|
|
196
196
|
return chunks;
|
|
197
197
|
}
|
|
198
|
-
//#endregion
|
|
199
198
|
export { ApngFrameMismatchError, encodeApng, readApngChunks };
|
package/dist/arg-reader.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/arg-reader.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Argv readers that take the array explicitly, and refuse to guess.
|
|
4
3
|
*
|
|
@@ -49,5 +48,4 @@ export declare function readPositionals(argv: readonly string[], valueFlags?: re
|
|
|
49
48
|
* whitespace would hand the gate `kit.txt` and `.promo"` as separate
|
|
50
49
|
* arguments, which fails in a way that looks like the gate's fault.
|
|
51
50
|
*/
|
|
52
|
-
export declare function tokenizeCommand(command: string): string[];
|
|
53
|
-
//#endregion
|
|
51
|
+
export declare function tokenizeCommand(command: string): string[];
|
package/dist/arg-reader.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UsageError } from "./cli-error.mjs";
|
|
2
|
-
|
|
2
|
+
// src/arg-reader.ts
|
|
3
3
|
/**
|
|
4
4
|
* Argv readers that take the array explicitly, and refuse to guess.
|
|
5
5
|
*
|
|
@@ -132,5 +132,4 @@ function tokenizeCommand(command) {
|
|
|
132
132
|
if (started) out.push(current);
|
|
133
133
|
return out;
|
|
134
134
|
}
|
|
135
|
-
//#endregion
|
|
136
135
|
export { hasFlag, readAll, readChoice, readFlag, readInt, readNumber, readPositionals, tokenizeCommand };
|
package/dist/auth-state.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/auth-state.d.ts
|
|
2
1
|
export declare const STORAGE_STATE_ENV = "VLMKIT_STORAGE_STATE";
|
|
3
2
|
/**
|
|
4
3
|
* Explicit flag beats env; returns undefined when neither is set. A blank
|
|
@@ -36,5 +35,4 @@ export declare function resetAuthStateNotice(): void;
|
|
|
36
35
|
* from "the login wall it redirected to". Reported from what was applied rather than
|
|
37
36
|
* from what was configured, so a gate that ignores auth never claims to have used it.
|
|
38
37
|
*/
|
|
39
|
-
export declare function authStateNotice(): string | null;
|
|
40
|
-
//#endregion
|
|
38
|
+
export declare function authStateNotice(): string | null;
|
package/dist/auth-state.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
|
-
|
|
3
|
+
// src/auth-state.ts
|
|
4
4
|
/**
|
|
5
5
|
* Authenticated-page support for the gates.
|
|
6
6
|
*
|
|
@@ -102,5 +102,4 @@ function resetAuthStateNotice() {
|
|
|
102
102
|
function authStateNotice() {
|
|
103
103
|
return appliedPath ? `auth: storage state from ${appliedPath}` : null;
|
|
104
104
|
}
|
|
105
|
-
//#endregion
|
|
106
105
|
export { STORAGE_STATE_ENV, authStateNotice, readStorageState, resetAuthStateNotice, storageStatePath, withAuthState };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/authored-style-capture.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Authored CSS capture for properties whose computed form lies about the
|
|
4
3
|
* authored shape.
|
|
@@ -37,5 +36,4 @@ export declare function captureAuthoredStyleSnapshotInDom(props: string[]): Auth
|
|
|
37
36
|
export declare function buildAuthoredStyleCaptureExpression(props?: string[]): string;
|
|
38
37
|
export declare function buildAuthoredStyleCaptureJsonExpression(props?: string[]): string;
|
|
39
38
|
export declare function parseAuthoredStyleSnapshot(value: unknown): AuthoredStyleSnapshot;
|
|
40
|
-
export declare function hasMeaningfulAuthoredStyleSnapshot(snapshot: AuthoredStyleSnapshot): boolean;
|
|
41
|
-
//#endregion
|
|
39
|
+
export declare function hasMeaningfulAuthoredStyleSnapshot(snapshot: AuthoredStyleSnapshot): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/authored-style-capture.ts
|
|
2
2
|
/**
|
|
3
3
|
* Properties tracked by default. These are the ones whose computed
|
|
4
4
|
* representation differs structurally from the authored source — anything
|
|
@@ -113,5 +113,4 @@ function safeJsonParse(value) {
|
|
|
113
113
|
function isRecord(value) {
|
|
114
114
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
115
115
|
}
|
|
116
|
-
//#endregion
|
|
117
116
|
export { AUTHORED_PROPERTIES, buildAuthoredStyleCaptureExpression, buildAuthoredStyleCaptureJsonExpression, captureAuthoredStyleSnapshotInDom, hasMeaningfulAuthoredStyleSnapshot, parseAuthoredStyleSnapshot };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { AuthoredStyleSnapshot } from "./authored-style-capture.mjs";
|
|
2
1
|
import { CsdEntry, CsdPerViewportEntry, CsdPerViewportResult, CsdResult } from "./computed-style-diff.mjs";
|
|
3
|
-
|
|
2
|
+
import { AuthoredStyleSnapshot } from "./authored-style-capture.mjs";
|
|
4
3
|
export type AuthoredStyleEntry = CsdEntry;
|
|
5
4
|
export type AuthoredStyleDiffResult = CsdResult;
|
|
6
5
|
export type AuthoredStylePerViewportEntry = CsdPerViewportEntry;
|
|
@@ -9,5 +8,4 @@ export declare function diffAuthoredStyles(baseline: AuthoredStyleSnapshot, vari
|
|
|
9
8
|
export declare function aggregateAuthoredStyleByViewport(perViewport: ReadonlyArray<{
|
|
10
9
|
viewport: string;
|
|
11
10
|
result: AuthoredStyleDiffResult;
|
|
12
|
-
}>): AuthoredStylePerViewportResult;
|
|
13
|
-
//#endregion
|
|
11
|
+
}>): AuthoredStylePerViewportResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { aggregateCsdByViewport, diffComputedStyles } from "./computed-style-diff.mjs";
|
|
2
|
-
|
|
2
|
+
// src/authored-style-diff.ts
|
|
3
3
|
/**
|
|
4
4
|
* Authored-style diff. Same shape as `computed-style-diff` (a snapshot is
|
|
5
5
|
* `Record<scopedSelector, Record<property, value>>` in both cases), so the
|
|
@@ -12,5 +12,4 @@ function diffAuthoredStyles(baseline, variant) {
|
|
|
12
12
|
function aggregateAuthoredStyleByViewport(perViewport) {
|
|
13
13
|
return aggregateCsdByViewport(perViewport);
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { aggregateAuthoredStyleByViewport, diffAuthoredStyles };
|
package/dist/bitmap-font.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/bitmap-font.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A 5x7 bitmap font, drawn here rather than taken from the system.
|
|
4
3
|
*
|
|
@@ -43,5 +42,4 @@ export declare function fitText(text: string, maxWidth: number, scale?: number):
|
|
|
43
42
|
* Draw `text` into an RGBA buffer with its top-left at (x, y). Writes fully opaque
|
|
44
43
|
* ink; pixels outside the buffer are skipped rather than wrapped.
|
|
45
44
|
*/
|
|
46
|
-
export declare function drawText(target: RgbaTarget, text: string, x: number, y: number, rgb: readonly [number, number, number], scale?: number): void;
|
|
47
|
-
//#endregion
|
|
45
|
+
export declare function drawText(target: RgbaTarget, text: string, x: number, y: number, rgb: readonly [number, number, number], scale?: number): void;
|
package/dist/bitmap-font.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/bitmap-font.ts
|
|
2
2
|
/**
|
|
3
3
|
* A 5x7 bitmap font, drawn here rather than taken from the system.
|
|
4
4
|
*
|
|
@@ -941,5 +941,4 @@ function drawText(target, text, x, y, rgb, scale = 1) {
|
|
|
941
941
|
cursor += ADVANCE * scale;
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
//#endregion
|
|
945
944
|
export { GLYPH_HEIGHT, GLYPH_WIDTH, drawText, fitText, measureText, textHeight };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Browser, BrowserType, LaunchOptions } from "playwright";
|
|
2
|
-
//#region src/browser-launch.d.ts
|
|
3
2
|
export type BrowserEngine = "chromium" | "firefox" | "webkit";
|
|
4
3
|
/**
|
|
5
4
|
* Engine name → Playwright browser type.
|
|
@@ -59,5 +58,4 @@ export declare function launchBrowser(options?: LaunchBrowserOptions): Promise<B
|
|
|
59
58
|
* failure masking a body failure is pre-existing behaviour, not something this
|
|
60
59
|
* refactor gets to change.
|
|
61
60
|
*/
|
|
62
|
-
export declare function withBrowser<T>(fn: (browser: Browser) => Promise<T>, options?: LaunchBrowserOptions): Promise<T>;
|
|
63
|
-
//#endregion
|
|
61
|
+
export declare function withBrowser<T>(fn: (browser: Browser) => Promise<T>, options?: LaunchBrowserOptions): Promise<T>;
|
package/dist/browser-launch.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formatMissingPlaywrightBrowserError } from "./cli-error.mjs";
|
|
2
2
|
import { chromium, firefox, webkit } from "playwright";
|
|
3
|
-
|
|
3
|
+
// src/browser-launch.ts
|
|
4
4
|
/**
|
|
5
5
|
* The one place a browser is launched.
|
|
6
6
|
*
|
|
@@ -190,5 +190,4 @@ async function withBrowser(fn, options = {}) {
|
|
|
190
190
|
await browser.close();
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
//#endregion
|
|
194
193
|
export { ALL_BROWSER_ENGINES, BROWSER_ENGINES, BrowserLaunchError, launchBrowser, withBrowser };
|
package/dist/cli-args.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cli-args.d.ts
|
|
2
1
|
export declare function getArg(name: string, fallback: string): string;
|
|
3
2
|
export declare function getArg(name: string): string | undefined;
|
|
4
3
|
/**
|
|
@@ -25,5 +24,4 @@ export declare function getArgValues(name: string): string[];
|
|
|
25
24
|
*/
|
|
26
25
|
export declare function getPositionalArgs(valueFlags?: readonly string[]): string[];
|
|
27
26
|
/** Raw argv tail, for callers doing their own scanning. */
|
|
28
|
-
export declare function getRawArgs(): string[];
|
|
29
|
-
//#endregion
|
|
27
|
+
export declare function getRawArgs(): string[];
|
package/dist/cli-args.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hasFlag as hasFlag$1, readAll, readFlag, readNumber, readPositionals } from "./arg-reader.mjs";
|
|
2
|
-
|
|
2
|
+
// src/cli-args.ts
|
|
3
3
|
/**
|
|
4
4
|
* Shared CLI argument helpers, kept as the ergonomic `process.argv`-bound
|
|
5
5
|
* facade over `arg-reader.ts`.
|
|
@@ -54,5 +54,4 @@ function getPositionalArgs(valueFlags = []) {
|
|
|
54
54
|
function getRawArgs() {
|
|
55
55
|
return argv();
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { getArg, getArgValues, getFloatArg, getIntArg, getPositionalArgs, getRawArgs, hasFlag };
|
package/dist/cli-error.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UsageError } from "@mizchi/vlmkit-judge/errors.ts";
|
|
2
|
-
//#region src/cli-error.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The `playwright` peer range. Duplicated from this package's own
|
|
5
4
|
* `peerDependencies` because the shipped bundle has no reliable path back to
|
|
@@ -79,5 +78,4 @@ export declare function resolvedPlaywrightHasCli(): boolean;
|
|
|
79
78
|
*/
|
|
80
79
|
export declare function formatCliError(e: unknown): string | null;
|
|
81
80
|
export declare function handleCliError(e: unknown): never;
|
|
82
|
-
//#endregion
|
|
83
81
|
export { UsageError, resolvePlaywrightInstallTarget };
|
package/dist/cli-error.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { existsSync, readFileSync, statSync } from "node:fs";
|
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { UsageError } from "@mizchi/vlmkit-judge/errors.ts";
|
|
6
|
-
|
|
6
|
+
// src/cli-error.ts
|
|
7
7
|
/**
|
|
8
8
|
* Shared CLI error-prettifier. Recognizes common error shapes that
|
|
9
9
|
* make `vlmkit` look user-hostile (ENOENT stack traces, Playwright
|
|
@@ -228,5 +228,4 @@ function findDirectoryArg() {
|
|
|
228
228
|
} catch {}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
//#endregion
|
|
232
231
|
export { PLAYWRIGHT_PEER_RANGE, UsageError, formatCliError, formatMissingPlaywrightBrowserError, formatMissingPlaywrightModuleError, handleCliError, playwrightEngineFromLaunchError, playwrightInstallCommand, resolvePlaywrightInstallTarget, resolvedPlaywrightHasCli };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/computed-style-capture.d.ts
|
|
2
1
|
export type ComputedStyleSnapshot = Record<string, Record<string, string>>;
|
|
3
2
|
export type InteractionType = "hover" | "focus" | "active";
|
|
4
3
|
/** Pseudo-class state names that CDP `CSS.forcePseudoState` accepts. */
|
|
@@ -36,5 +35,4 @@ export declare const ESBUILD_NAME_POLYFILL = "var __name = typeof __name !== 'un
|
|
|
36
35
|
export declare function buildComputedStyleCaptureExpression(props?: string[]): string;
|
|
37
36
|
export declare function buildComputedStyleCaptureJsonExpression(props?: string[]): string;
|
|
38
37
|
export declare function parseComputedStyleSnapshot(value: unknown): ComputedStyleSnapshot;
|
|
39
|
-
export declare function hasMeaningfulComputedStyleSnapshot(snapshot: ComputedStyleSnapshot): boolean;
|
|
40
|
-
//#endregion
|
|
38
|
+
export declare function hasMeaningfulComputedStyleSnapshot(snapshot: ComputedStyleSnapshot): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/computed-style-capture.ts
|
|
2
2
|
const FORCED_PSEUDO_REGEX = /:(focus-visible|focus-within|focus|hover|active)\b/g;
|
|
3
3
|
function extractForcedStates(selector) {
|
|
4
4
|
const states = [];
|
|
@@ -585,5 +585,4 @@ function safeJsonParse(value) {
|
|
|
585
585
|
function isRecord(value) {
|
|
586
586
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
587
587
|
}
|
|
588
|
-
//#endregion
|
|
589
588
|
export { ESBUILD_NAME_POLYFILL, TRACKED_PROPERTIES, buildComputedStyleCaptureExpression, buildComputedStyleCaptureJsonExpression, buildInteractionTargetPlans, captureComputedStyleSnapshotForTargetSelectorsInDom, captureComputedStyleSnapshotInDom, captureEmulatedInteractionStyleSnapshotInDom, collectInteractionTargetPlansInDom, computedStyleSnapshotToMap, hasMeaningfulComputedStyleSnapshot, mergeComputedStyleSnapshots, normalizeInteractionSelector, parseComputedStyleSnapshot, selectInteractionFallbackPlans, waitForInteractionStylesInDom };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComputedStyleSnapshot } from "./computed-style-capture.mjs";
|
|
2
|
-
//#region src/computed-style-diff.d.ts
|
|
3
2
|
export interface CsdEntry {
|
|
4
3
|
selector: string;
|
|
5
4
|
property: string;
|
|
@@ -78,5 +77,4 @@ export declare function aggregateCsdByViewport(perViewport: ReadonlyArray<{
|
|
|
78
77
|
* `captureComputedStyleSnapshotInDom`.
|
|
79
78
|
*/
|
|
80
79
|
export declare function diffComputedStyles(baseline: ComputedStyleSnapshot, variant: ComputedStyleSnapshot): CsdResult;
|
|
81
|
-
//#endregion
|
|
82
80
|
export type { ComputedStyleSnapshot };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/computed-style-diff.ts
|
|
2
2
|
/**
|
|
3
3
|
* Roll up N per-viewport CSD results into a single per-viewport report,
|
|
4
4
|
* surfacing which pairs apply universally vs. which are breakpoint-gated.
|
|
@@ -119,5 +119,4 @@ function diffComputedStyles(baseline, variant) {
|
|
|
119
119
|
selectorsOnlyInVariant
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
//#endregion
|
|
123
122
|
export { aggregateCsdByViewport, diffComputedStyles };
|
package/dist/diff-regions.d.mts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { DiffRegion, VrtDiff } from "./types.mjs";
|
|
2
|
-
//#region src/diff-regions.d.ts
|
|
3
2
|
export declare function normalizeVrtDiffRegions(diff: VrtDiff): DiffRegion[];
|
|
4
3
|
export declare function normalizeVrtDiffRegionPixels(diff: VrtDiff): number[];
|
|
5
|
-
export declare function createScopedVrtDiff(diff: VrtDiff, region: DiffRegion): VrtDiff;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function createScopedVrtDiff(diff: VrtDiff, region: DiffRegion): VrtDiff;
|
package/dist/diff-regions.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/diff-regions.ts
|
|
2
2
|
function normalizeVrtDiffRegions(diff) {
|
|
3
3
|
const normalizedPixels = normalizeVrtDiffRegionPixels(diff);
|
|
4
4
|
return diff.regions.map((region, index) => ({
|
|
@@ -48,5 +48,4 @@ function distributeEvenly(total, count) {
|
|
|
48
48
|
return base;
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { createScopedVrtDiff, normalizeVrtDiffRegionPixels, normalizeVrtDiffRegions };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/dom-equivalence.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* DOM equivalence preflight for `migration-compare`.
|
|
4
3
|
*
|
|
@@ -41,5 +40,4 @@ export declare function verifyDomEquivalence(baseline: DomFingerprint, variant:
|
|
|
41
40
|
* Browser-side capture script. Designed to be passed verbatim to
|
|
42
41
|
* `page.evaluate()`; produces a {@link DomFingerprint}.
|
|
43
42
|
*/
|
|
44
|
-
export declare const DOM_FINGERPRINT_BROWSER_SCRIPT = "(() => {\n const norm = (s) => (s || \"\").replace(/\\s+/g, \" \").trim();\n const headingTexts = Array.from(document.querySelectorAll(\"h1, h2, h3, h4, h5, h6\")).map((el) => norm(el.textContent));\n const buttonTexts = Array.from(document.querySelectorAll(\"button\")).map((el) => norm(el.textContent));\n const inputValues = Array.from(document.querySelectorAll(\"input, textarea, select\")).map((el) => {\n const v = el.value != null ? el.value : el.getAttribute(\"value\") || \"\";\n return norm(v);\n });\n const elementCount = document.querySelectorAll(\"*\").length;\n return { headingTexts, buttonTexts, inputValues, elementCount };\n})()";
|
|
45
|
-
//#endregion
|
|
43
|
+
export declare const DOM_FINGERPRINT_BROWSER_SCRIPT = "(() => {\n const norm = (s) => (s || \"\").replace(/\\s+/g, \" \").trim();\n const headingTexts = Array.from(document.querySelectorAll(\"h1, h2, h3, h4, h5, h6\")).map((el) => norm(el.textContent));\n const buttonTexts = Array.from(document.querySelectorAll(\"button\")).map((el) => norm(el.textContent));\n const inputValues = Array.from(document.querySelectorAll(\"input, textarea, select\")).map((el) => {\n const v = el.value != null ? el.value : el.getAttribute(\"value\") || \"\";\n return norm(v);\n });\n const elementCount = document.querySelectorAll(\"*\").length;\n return { headingTexts, buttonTexts, inputValues, elementCount };\n})()";
|
package/dist/dom-equivalence.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/dom-equivalence.ts
|
|
2
2
|
function normalize(s) {
|
|
3
3
|
return s.replace(/\s+/g, " ").trim();
|
|
4
4
|
}
|
|
@@ -82,5 +82,4 @@ const DOM_FINGERPRINT_BROWSER_SCRIPT = `(() => {
|
|
|
82
82
|
const elementCount = document.querySelectorAll("*").length;
|
|
83
83
|
return { headingTexts, buttonTexts, inputValues, elementCount };
|
|
84
84
|
})()`;
|
|
85
|
-
//#endregion
|
|
86
85
|
export { DOM_FINGERPRINT_BROWSER_SCRIPT, verifyDomEquivalence };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/dom-position-styles.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* DOM-position-based selector alignment for migration diffs.
|
|
4
3
|
*
|
|
@@ -163,5 +162,4 @@ export interface DpPerViewportResult {
|
|
|
163
162
|
* "this delta appears at every viewport" vs "this delta only appears at
|
|
164
163
|
* mobile" (the latter usually means a missing or wrong media query).
|
|
165
164
|
*/
|
|
166
|
-
export declare function diffPositionStylesAcrossViewports(baselineByVp: Map<string, PositionedElement[]> | Record<string, PositionedElement[]>, variantByVp: Map<string, PositionedElement[]> | Record<string, PositionedElement[]>): DpPerViewportResult;
|
|
167
|
-
//#endregion
|
|
165
|
+
export declare function diffPositionStylesAcrossViewports(baselineByVp: Map<string, PositionedElement[]> | Record<string, PositionedElement[]>, variantByVp: Map<string, PositionedElement[]> | Record<string, PositionedElement[]>): DpPerViewportResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TRACKED_PROPERTIES } from "./computed-style-capture.mjs";
|
|
2
|
-
|
|
2
|
+
// src/dom-position-styles.ts
|
|
3
3
|
/**
|
|
4
4
|
* DOM-position-based selector alignment for migration diffs.
|
|
5
5
|
*
|
|
@@ -292,5 +292,4 @@ function diffPositionStylesAcrossViewports(baselineByVp, variantByVp) {
|
|
|
292
292
|
})).sort((a, b) => b.count - a.count || a.path.localeCompare(b.path))
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
//#endregion
|
|
296
295
|
export { DOM_POSITION_STYLES_BROWSER_SCRIPT, diffDomPositionStyles, diffPositionStylesAcrossViewports, parseDomPositionStyles };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/element-compare.d.ts
|
|
2
1
|
export interface ElementCompareOptions {
|
|
3
2
|
/** CSS selectors for elements to compare */
|
|
4
3
|
selectors: string[];
|
|
@@ -68,5 +67,4 @@ export interface ElementCompareReport {
|
|
|
68
67
|
elementDiffRatio: number;
|
|
69
68
|
};
|
|
70
69
|
}
|
|
71
|
-
export declare function runElementCompare(options: ElementCompareOptions): Promise<ElementCompareReport>;
|
|
72
|
-
//#endregion
|
|
70
|
+
export declare function runElementCompare(options: ElementCompareOptions): Promise<ElementCompareReport>;
|
package/dist/element-compare.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { UsageError, handleCliError } from "./cli-error.mjs";
|
|
3
|
-
import { withBrowser } from "./browser-launch.mjs";
|
|
4
3
|
import { isCliEntry } from "./plugin/cli-entry.mjs";
|
|
5
4
|
import { compareScreenshots } from "./heatmap.mjs";
|
|
6
5
|
import { applyMask, parseMaskSelectors } from "./mask.mjs";
|
|
7
6
|
import { BOLD, CYAN, DIM, GREEN, RED, RESET, YELLOW, hr } from "./terminal-colors.mjs";
|
|
7
|
+
import { withBrowser } from "./browser-launch.mjs";
|
|
8
8
|
import { join, resolve } from "node:path";
|
|
9
9
|
import "playwright";
|
|
10
10
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
11
|
-
|
|
11
|
+
// src/element-compare.ts
|
|
12
12
|
/**
|
|
13
13
|
* Element-level VRT comparison
|
|
14
14
|
*
|
|
@@ -263,5 +263,4 @@ async function main() {
|
|
|
263
263
|
console.log();
|
|
264
264
|
}
|
|
265
265
|
if (isCliEntry(import.meta.url, "element-compare")) main().catch(handleCliError);
|
|
266
|
-
//#endregion
|
|
267
266
|
export { runElementCompare };
|
package/dist/filmstrip.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PngData } from "./png-utils.mjs";
|
|
2
|
-
//#region src/filmstrip.d.ts
|
|
3
2
|
export interface FilmstripOptions {
|
|
4
3
|
/**
|
|
5
4
|
* Cells per row. Omit for a single row (a filmstrip); set it to wrap into a
|
|
@@ -170,5 +169,4 @@ export declare function strokeOutside(target: {
|
|
|
170
169
|
y: number;
|
|
171
170
|
width: number;
|
|
172
171
|
height: number;
|
|
173
|
-
}): void;
|
|
174
|
-
//#endregion
|
|
172
|
+
}): void;
|
package/dist/filmstrip.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { drawText, fitText, textHeight } from "./bitmap-font.mjs";
|
|
2
|
-
|
|
2
|
+
// src/filmstrip.ts
|
|
3
3
|
const DEFAULT_BACKGROUND = [
|
|
4
4
|
96,
|
|
5
5
|
96,
|
|
@@ -249,5 +249,4 @@ function strokeOutside(target, box, rgb, thickness, clip) {
|
|
|
249
249
|
target.data[i + 3] = 255;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
//#endregion
|
|
253
252
|
export { boxOnSheet, composeFilmstrip, filmstripLayout, scalePngData, sourceIndex, strokeOutside };
|
package/dist/gate-config.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RuleSettingEntry, RuleSettings } from "./plugin/rules.mjs";
|
|
2
|
-
//#region src/gate-config.d.ts
|
|
3
2
|
export interface GateSuppression {
|
|
4
3
|
/**
|
|
5
4
|
* Gate this applies to, as a prefix of the gate command: `check copy`
|
|
@@ -195,5 +194,4 @@ export interface SuppressionSummary {
|
|
|
195
194
|
/** Active entries expiring within `soonDays`. */
|
|
196
195
|
expiringSoon: number;
|
|
197
196
|
}
|
|
198
|
-
export declare function summarizeSuppressions(suppressions: ResolvedSuppression[], soonDays?: number): SuppressionSummary;
|
|
199
|
-
//#endregion
|
|
197
|
+
export declare function summarizeSuppressions(suppressions: ResolvedSuppression[], soonDays?: number): SuppressionSummary;
|
package/dist/gate-config.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UsageError } from "./cli-error.mjs";
|
|
2
|
+
import { motionSpecCommand } from "./motion-spec.mjs";
|
|
2
3
|
import { parseAnnotatedRuleSettings } from "./plugin/rules.mjs";
|
|
3
|
-
|
|
4
|
+
// src/gate-config.ts
|
|
4
5
|
/**
|
|
5
6
|
* `vlmkit.gates.json` — one reviewed file that says which gates run on which
|
|
6
7
|
* pages, and holds every suppression with a reason attached.
|
|
@@ -48,10 +49,14 @@ function parseSuppression(raw, path) {
|
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
function parseGateList(raw, path) {
|
|
51
|
-
if (!Array.isArray(raw)) fail(path, "must be an array of gate command strings");
|
|
52
|
+
if (!Array.isArray(raw)) fail(path, "must be an array of gate command strings (or { \"motion\": {...} } entries)");
|
|
52
53
|
if (raw.length === 0) fail(path, "is empty — remove the key or list at least one gate");
|
|
53
54
|
return raw.map((g, i) => {
|
|
54
|
-
if (typeof g
|
|
55
|
+
if (typeof g === "object" && g !== null && !Array.isArray(g) && "motion" in g) {
|
|
56
|
+
if (Object.keys(g).length !== 1) fail(`${path}[${i}]`, "a { \"motion\": {...} } entry has no other keys");
|
|
57
|
+
return motionSpecCommand(g.motion, `${path}[${i}].motion`, fail);
|
|
58
|
+
}
|
|
59
|
+
if (typeof g !== "string" || !g.trim()) fail(`${path}[${i}]`, "must be a non-empty string (a gate command), or { \"motion\": {...} }");
|
|
55
60
|
return g.trim();
|
|
56
61
|
});
|
|
57
62
|
}
|
|
@@ -294,5 +299,4 @@ function summarizeSuppressions(suppressions, soonDays = 30) {
|
|
|
294
299
|
expiringSoon: rows.filter((s) => s.status === "active" && (s.daysLeft ?? Infinity) <= soonDays).length
|
|
295
300
|
};
|
|
296
301
|
}
|
|
297
|
-
//#endregion
|
|
298
302
|
export { GATE_CONFIG_FILENAMES, gateMatches, parseGateConfig, resolveGatePlan, resolveRuleSetting, resolveSuppression, ruleFlags, shouldReuseExistingServer, summarizeSuppressions };
|
package/dist/gate-exit.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/gate-exit.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* One exit-code contract for every gate.
|
|
4
3
|
*
|
|
@@ -40,5 +39,4 @@ export declare const GATE_EXIT_HELP = " --advisory Print findings
|
|
|
40
39
|
* Apply the contract. Sets `process.exitCode` rather than calling
|
|
41
40
|
* `process.exit` so buffered stdout is not truncated.
|
|
42
41
|
*/
|
|
43
|
-
export declare function applyGateExit(hasSuspect: boolean, flags: GateExitFlags): void;
|
|
44
|
-
//#endregion
|
|
42
|
+
export declare function applyGateExit(hasSuspect: boolean, flags: GateExitFlags): void;
|
package/dist/gate-exit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/gate-exit.ts
|
|
2
2
|
/** Parse the shared exit-code flags out of an argv array. */
|
|
3
3
|
function parseGateExitFlags(argv) {
|
|
4
4
|
return { advisory: argv.includes("--advisory") };
|
|
@@ -21,5 +21,4 @@ function applyGateExit(hasSuspect, flags) {
|
|
|
21
21
|
const code = gateExitCode(hasSuspect, flags);
|
|
22
22
|
if (code !== 0) process.exitCode = code;
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { GATE_EXIT_HELP, applyGateExit, gateExitCode, parseGateExitFlags };
|
package/dist/gif.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/gif.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A minimal GIF writer: a global palette, an optional loop block, and frames each with its own
|
|
4
3
|
* place on the logical screen and its graphic control extension (delay, disposal, transparent
|
|
@@ -39,5 +38,4 @@ export interface GifOptions {
|
|
|
39
38
|
localTables?: boolean;
|
|
40
39
|
frames: readonly GifFrame[];
|
|
41
40
|
}
|
|
42
|
-
export declare function encodeGif(options: GifOptions): Uint8Array;
|
|
43
|
-
//#endregion
|
|
41
|
+
export declare function encodeGif(options: GifOptions): Uint8Array;
|
package/dist/gif.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/gif.ts
|
|
2
2
|
function lzw(indices, minCodeSize) {
|
|
3
3
|
const clear = 1 << minCodeSize;
|
|
4
4
|
const end = clear + 1;
|
|
@@ -70,5 +70,4 @@ function encodeGif(options) {
|
|
|
70
70
|
out.push(59);
|
|
71
71
|
return Uint8Array.from(out);
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
export { encodeGif };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/heatmap-regions.d.ts
|
|
2
1
|
export interface HeatmapRegion {
|
|
3
2
|
top: number;
|
|
4
3
|
left: number;
|
|
@@ -52,5 +51,4 @@ export interface FindHeatmapRegionsOptions {
|
|
|
52
51
|
maxRegionFraction?: number;
|
|
53
52
|
}
|
|
54
53
|
export declare function findHeatmapRegionsFromRgba(data: Uint8Array, width: number, height: number, options?: FindHeatmapRegionsOptions): HeatmapRegion[];
|
|
55
|
-
export declare function findHeatmapRegionsFromFile(path: string, options?: FindHeatmapRegionsOptions, sourceImagePath?: string): Promise<HeatmapRegion[]>;
|
|
56
|
-
//#endregion
|
|
54
|
+
export declare function findHeatmapRegionsFromFile(path: string, options?: FindHeatmapRegionsOptions, sourceImagePath?: string): Promise<HeatmapRegion[]>;
|
package/dist/heatmap-regions.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import { PNG } from "pngjs";
|
|
3
|
-
|
|
3
|
+
// src/heatmap-regions.ts
|
|
4
4
|
/**
|
|
5
5
|
* Heatmap region clustering.
|
|
6
6
|
*
|
|
@@ -154,5 +154,4 @@ async function findHeatmapRegionsFromFile(path, options = {}, sourceImagePath) {
|
|
|
154
154
|
} catch {}
|
|
155
155
|
return regions;
|
|
156
156
|
}
|
|
157
|
-
//#endregion
|
|
158
157
|
export { findHeatmapRegionsFromFile, findHeatmapRegionsFromRgba };
|
package/dist/heatmap.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DiffIgnoreRegion, DiffRegion, DiffRegionColorSample, DiffReport, ShiftRegion, VrtDiff, VrtSnapshot } from "./types.mjs";
|
|
2
2
|
import { PngData } from "./png-utils.mjs";
|
|
3
|
-
//#region src/heatmap.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Parse `"<x>,<y>,<w>x<h>"` (e.g. `"0,300,640x60"`) into an ignore rect.
|
|
6
5
|
*
|
|
@@ -132,5 +131,4 @@ export declare function detectEmptyContent(data: PngData, opts?: {
|
|
|
132
131
|
}): {
|
|
133
132
|
isEmpty: boolean;
|
|
134
133
|
uniqueColors: number;
|
|
135
|
-
};
|
|
136
|
-
//#endregion
|
|
134
|
+
};
|