framesheet 0.0.0-stage → 0.2.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/LICENSE +22 -0
- package/README.md +247 -2
- package/dist/analysis.d.ts +84 -0
- package/dist/analysis.d.ts.map +1 -0
- package/dist/analysis.js +335 -0
- package/dist/analysis.js.map +1 -0
- package/dist/checks.d.ts +44 -0
- package/dist/checks.d.ts.map +1 -0
- package/dist/checks.js +200 -0
- package/dist/checks.js.map +1 -0
- package/dist/compose.d.ts +130 -0
- package/dist/compose.d.ts.map +1 -0
- package/dist/compose.js +266 -0
- package/dist/compose.js.map +1 -0
- package/dist/driver.d.ts +56 -0
- package/dist/driver.d.ts.map +1 -0
- package/dist/driver.js +94 -0
- package/dist/driver.js.map +1 -0
- package/dist/generated/assets.d.ts +13 -0
- package/dist/generated/assets.d.ts.map +1 -0
- package/dist/generated/assets.js +15 -0
- package/dist/generated/assets.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/inspect.d.ts +163 -0
- package/dist/inspect.d.ts.map +1 -0
- package/dist/inspect.js +593 -0
- package/dist/inspect.js.map +1 -0
- package/dist/marks.d.ts +49 -0
- package/dist/marks.d.ts.map +1 -0
- package/dist/marks.js +460 -0
- package/dist/marks.js.map +1 -0
- package/dist/marks.schema.json +307 -0
- package/dist/media.d.ts +22 -0
- package/dist/media.d.ts.map +1 -0
- package/dist/media.js +306 -0
- package/dist/media.js.map +1 -0
- package/dist/models.d.ts +208 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +9 -0
- package/dist/models.js.map +1 -0
- package/dist/pixels.d.ts +52 -0
- package/dist/pixels.d.ts.map +1 -0
- package/dist/pixels.js +275 -0
- package/dist/pixels.js.map +1 -0
- package/dist/pyfmt.d.ts +16 -0
- package/dist/pyfmt.d.ts.map +1 -0
- package/dist/pyfmt.js +54 -0
- package/dist/pyfmt.js.map +1 -0
- package/dist/report.schema.json +1326 -0
- package/dist/sources.d.ts +43 -0
- package/dist/sources.d.ts.map +1 -0
- package/dist/sources.js +164 -0
- package/dist/sources.js.map +1 -0
- package/dist/test.d.ts +46 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +58 -0
- package/dist/test.js.map +1 -0
- package/dist/timing.d.ts +30 -0
- package/dist/timing.d.ts.map +1 -0
- package/dist/timing.js +128 -0
- package/dist/timing.js.map +1 -0
- package/dist/video.d.ts +65 -0
- package/dist/video.d.ts.map +1 -0
- package/dist/video.js +440 -0
- package/dist/video.js.map +1 -0
- package/package.json +79 -4
- package/src/analysis.ts +416 -0
- package/src/checks.ts +261 -0
- package/src/compose.ts +337 -0
- package/src/driver.ts +115 -0
- package/src/generated/assets.ts +20 -0
- package/src/index.ts +54 -0
- package/src/inspect.ts +722 -0
- package/src/marks.ts +481 -0
- package/src/media.ts +296 -0
- package/src/models.ts +225 -0
- package/src/pixels.ts +284 -0
- package/src/pyfmt.ts +55 -0
- package/src/sources.ts +175 -0
- package/src/test.ts +100 -0
- package/src/timing.ts +133 -0
- package/src/video.ts +513 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contact sheet and motion heatmap (port of compose.py's layout).
|
|
3
|
+
*
|
|
4
|
+
* Layout is computed here with the same constants and formulas as the Python package;
|
|
5
|
+
* pixels are drawn on a `<canvas>` in a helper page of the same browser (text with the
|
|
6
|
+
* same Aileron font Pillow bundles, image scaling by Chromium), so there are no native
|
|
7
|
+
* dependencies and the images look like the Python ones.
|
|
8
|
+
*/
|
|
9
|
+
import type { Browser, BrowserContext, Page } from "playwright-core";
|
|
10
|
+
import { type Box, type Frame } from "./pixels.js";
|
|
11
|
+
type RGB = [number, number, number];
|
|
12
|
+
export declare const SHEET_BG: RGB;
|
|
13
|
+
export declare const INK: RGB;
|
|
14
|
+
export declare const MUTED: RGB;
|
|
15
|
+
export declare const LABEL_BG: RGB;
|
|
16
|
+
export declare const LABEL_FG: RGB;
|
|
17
|
+
export declare const ACCENT_BG: RGB;
|
|
18
|
+
export declare const TILE_BORDER: RGB;
|
|
19
|
+
export declare const BOX_COLOR: RGB;
|
|
20
|
+
export declare const INDEX_FG: RGB;
|
|
21
|
+
export declare const HEADER_H = 66;
|
|
22
|
+
export declare const LABEL_H = 34;
|
|
23
|
+
export declare const GAP = 12;
|
|
24
|
+
export declare const PAD = 12;
|
|
25
|
+
export declare const LABEL_FONT = 22;
|
|
26
|
+
export declare const MARK_BAND_H = 26;
|
|
27
|
+
export declare const MARK_BAND_BG: RGB;
|
|
28
|
+
export declare const MARK_BAND_FG: RGB;
|
|
29
|
+
export declare const MARK_BAND_FONT = 16;
|
|
30
|
+
/** Vision models downscale larger images; keep the sheet at or below this width. */
|
|
31
|
+
export declare const MAX_SHEET_WIDTH = 1568;
|
|
32
|
+
export declare const MAX_TILE = 480;
|
|
33
|
+
export declare const MIN_WIDTH = 560;
|
|
34
|
+
/** Columns that give a landscape (at least ~4:3) sheet for tiles of `tileAspect` (w/h). */
|
|
35
|
+
export declare function defaultColumns(count: number, tileAspect: number): number;
|
|
36
|
+
/** Largest tile that keeps `columns` tiles within {@link MAX_SHEET_WIDTH}. */
|
|
37
|
+
export declare function autoTile(columns: number): number;
|
|
38
|
+
/** Pillow-style fit: scale to fit `maxW` x `maxH`, keeping the aspect ratio. */
|
|
39
|
+
export declare function fitSize(w: number, h: number, maxW: number, maxH: number): [number, number];
|
|
40
|
+
/** One drawing operation, in Pillow coordinates (inclusive rectangles, text anchor "la"). */
|
|
41
|
+
export type DrawOp = {
|
|
42
|
+
op: "rect";
|
|
43
|
+
box: [number, number, number, number];
|
|
44
|
+
fill: RGB;
|
|
45
|
+
} | {
|
|
46
|
+
op: "outline";
|
|
47
|
+
box: [number, number, number, number];
|
|
48
|
+
color: RGB;
|
|
49
|
+
width: number;
|
|
50
|
+
} | {
|
|
51
|
+
op: "text";
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
text: string;
|
|
55
|
+
color: RGB;
|
|
56
|
+
size: number;
|
|
57
|
+
align?: "left" | "right";
|
|
58
|
+
} | {
|
|
59
|
+
op: "image";
|
|
60
|
+
index: number;
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
w: number;
|
|
64
|
+
h: number;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* A blank helper page used for parsing (DOMParser) and drawing (canvas). It lives in its
|
|
68
|
+
* own browser context when possible, so it never shares a fake clock or routes with the
|
|
69
|
+
* page under inspection.
|
|
70
|
+
*/
|
|
71
|
+
export declare class Renderer {
|
|
72
|
+
readonly page: Page;
|
|
73
|
+
private readonly ownContext;
|
|
74
|
+
private constructor();
|
|
75
|
+
static open(from: Browser | BrowserContext): Promise<Renderer>;
|
|
76
|
+
measure(items: [string, number][]): Promise<number[]>;
|
|
77
|
+
draw(width: number, height: number, ops: DrawOp[], images: Buffer[]): Promise<Buffer>;
|
|
78
|
+
close(): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
export interface SheetOptions {
|
|
81
|
+
title: string;
|
|
82
|
+
subtitle: string;
|
|
83
|
+
/** Longest side of a tile in px (default: as large as fits 1568 px). */
|
|
84
|
+
tile?: number;
|
|
85
|
+
/** Grid columns (default: roughly 4:3 sheet). */
|
|
86
|
+
columns?: number;
|
|
87
|
+
/** Frame indices whose label gets the accent colour (first/last). */
|
|
88
|
+
highlight?: number[];
|
|
89
|
+
/** Optional second label line per frame (active marks), in an extra MARK_BAND_H band. */
|
|
90
|
+
bands?: string[] | null;
|
|
91
|
+
/** Ops drawn over each tile image (relative to its top-left), given the thumb size. */
|
|
92
|
+
overlay?: ((index: number, thumb: [number, number]) => DrawOp[]) | null;
|
|
93
|
+
/** `(sheet width) -> [height, ops]` appended below the grid (ops relative to its top). */
|
|
94
|
+
footer?: ((width: number) => [number, DrawOp[]]) | null;
|
|
95
|
+
}
|
|
96
|
+
/** Layout of a contact sheet (pure; exported for tests). */
|
|
97
|
+
export declare function sheetLayout(frameSize: [number, number], count: number, opts: {
|
|
98
|
+
tile?: number;
|
|
99
|
+
columns?: number;
|
|
100
|
+
bandH?: number;
|
|
101
|
+
}): {
|
|
102
|
+
width: number;
|
|
103
|
+
height: number;
|
|
104
|
+
cols: number;
|
|
105
|
+
rows: number;
|
|
106
|
+
tw: number;
|
|
107
|
+
th: number;
|
|
108
|
+
};
|
|
109
|
+
/** Grid of frames, each with a timestamp label band above it. */
|
|
110
|
+
export declare function contactSheet(renderer: Renderer, frames: {
|
|
111
|
+
png: Buffer;
|
|
112
|
+
width: number;
|
|
113
|
+
height: number;
|
|
114
|
+
}[], labels: string[], opts: SheetOptions): Promise<Buffer>;
|
|
115
|
+
export interface HeatmapOptions {
|
|
116
|
+
title: string;
|
|
117
|
+
subtitle: string;
|
|
118
|
+
/** Longest side of the image area (frames are downscaled to fit). */
|
|
119
|
+
maxSide?: number;
|
|
120
|
+
/** Small inputs are upscaled until their longest side reaches this. */
|
|
121
|
+
minSide?: number;
|
|
122
|
+
/** Device-px boxes to outline (e.g. the overall changed region). */
|
|
123
|
+
boxes?: Box[];
|
|
124
|
+
}
|
|
125
|
+
/** Shift layout ops by `dx, dy`. */
|
|
126
|
+
export declare function offsetOps(ops: DrawOp[], dx: number, dy: number): DrawOp[];
|
|
127
|
+
/** Coloured motion overlay on a dimmed, desaturated first frame. */
|
|
128
|
+
export declare function heatmap(renderer: Renderer, first: Frame, motion: Uint8Array, opts: HeatmapOptions): Promise<Buffer>;
|
|
129
|
+
export {};
|
|
130
|
+
//# sourceMappingURL=compose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAE,KAAK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E,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAYvF;AAED,iEAAiE;AACjE,wBAAsB,YAAY,CAChC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,EACxD,MAAM,EAAE,MAAM,EAAE,EAChB,IAAI,EAAE,YAAY,GACjB,OAAO,CAAC,MAAM,CAAC,CAuCjB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;CACf;AAED,oCAAoC;AACpC,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAMzE;AAED,oEAAoE;AACpE,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,MAAM,CAAC,CA6BjB"}
|
package/dist/compose.js
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contact sheet and motion heatmap (port of compose.py's layout).
|
|
3
|
+
*
|
|
4
|
+
* Layout is computed here with the same constants and formulas as the Python package;
|
|
5
|
+
* pixels are drawn on a `<canvas>` in a helper page of the same browser (text with the
|
|
6
|
+
* same Aileron font Pillow bundles, image scaling by Chromium), so there are no native
|
|
7
|
+
* dependencies and the images look like the Python ones.
|
|
8
|
+
*/
|
|
9
|
+
import { FONT_ASCENT_RATIO, FONT_BASE64 } from "./generated/assets.js";
|
|
10
|
+
import { encode, HEAT_LUT, heatOverlay } from "./pixels.js";
|
|
11
|
+
import { pyRound } from "./pyfmt.js";
|
|
12
|
+
export const SHEET_BG = [226, 228, 233];
|
|
13
|
+
export const INK = [17, 24, 39];
|
|
14
|
+
export const MUTED = [75, 85, 99];
|
|
15
|
+
export const LABEL_BG = [17, 24, 39];
|
|
16
|
+
export const LABEL_FG = [255, 255, 255];
|
|
17
|
+
export const ACCENT_BG = [190, 18, 60];
|
|
18
|
+
export const TILE_BORDER = [100, 116, 139];
|
|
19
|
+
export const BOX_COLOR = [34, 211, 238];
|
|
20
|
+
export const INDEX_FG = [203, 213, 225];
|
|
21
|
+
export const HEADER_H = 66;
|
|
22
|
+
export const LABEL_H = 34;
|
|
23
|
+
export const GAP = 12;
|
|
24
|
+
export const PAD = 12;
|
|
25
|
+
export const LABEL_FONT = 22;
|
|
26
|
+
export const MARK_BAND_H = 26;
|
|
27
|
+
export const MARK_BAND_BG = [51, 65, 85];
|
|
28
|
+
export const MARK_BAND_FG = [253, 230, 138];
|
|
29
|
+
export const MARK_BAND_FONT = 16;
|
|
30
|
+
/** Vision models downscale larger images; keep the sheet at or below this width. */
|
|
31
|
+
export const MAX_SHEET_WIDTH = 1568;
|
|
32
|
+
export const MAX_TILE = 480;
|
|
33
|
+
export const MIN_WIDTH = 560;
|
|
34
|
+
/** Columns that give a landscape (at least ~4:3) sheet for tiles of `tileAspect` (w/h). */
|
|
35
|
+
export function defaultColumns(count, tileAspect) {
|
|
36
|
+
const cols = Math.ceil(Math.sqrt((count * 4) / 3 / tileAspect) - 0.25);
|
|
37
|
+
return Math.max(1, Math.min(count, cols));
|
|
38
|
+
}
|
|
39
|
+
/** Largest tile that keeps `columns` tiles within {@link MAX_SHEET_WIDTH}. */
|
|
40
|
+
export function autoTile(columns) {
|
|
41
|
+
return Math.max(120, Math.min(MAX_TILE, Math.floor((MAX_SHEET_WIDTH - 24 - (columns - 1) * 12) / columns) - 2));
|
|
42
|
+
}
|
|
43
|
+
/** Pillow-style fit: scale to fit `maxW` x `maxH`, keeping the aspect ratio. */
|
|
44
|
+
export function fitSize(w, h, maxW, maxH) {
|
|
45
|
+
const factor = Math.min(maxW / w, maxH / h);
|
|
46
|
+
return [Math.max(1, pyRound(w * factor)), Math.max(1, pyRound(h * factor))];
|
|
47
|
+
}
|
|
48
|
+
const FONT_FAMILY = "framesheet-aileron";
|
|
49
|
+
/** Runs in the helper page. */
|
|
50
|
+
async function drawInPage(spec) {
|
|
51
|
+
const w = window;
|
|
52
|
+
await w.__fsFont;
|
|
53
|
+
const canvas = document.createElement("canvas");
|
|
54
|
+
canvas.width = spec.width;
|
|
55
|
+
canvas.height = spec.height;
|
|
56
|
+
const ctx = canvas.getContext("2d");
|
|
57
|
+
const css = (c) => `rgb(${c[0]}, ${c[1]}, ${c[2]})`;
|
|
58
|
+
ctx.fillStyle = css(spec.background);
|
|
59
|
+
ctx.fillRect(0, 0, spec.width, spec.height);
|
|
60
|
+
const bitmaps = await Promise.all(spec.images.map((b64) => {
|
|
61
|
+
const bin = atob(b64);
|
|
62
|
+
const bytes = new Uint8Array(bin.length);
|
|
63
|
+
for (let i = 0; i < bin.length; i++)
|
|
64
|
+
bytes[i] = bin.charCodeAt(i);
|
|
65
|
+
return createImageBitmap(new Blob([bytes], { type: "image/png" }), {
|
|
66
|
+
colorSpaceConversion: "none",
|
|
67
|
+
premultiplyAlpha: "none",
|
|
68
|
+
});
|
|
69
|
+
}));
|
|
70
|
+
ctx.imageSmoothingEnabled = true;
|
|
71
|
+
ctx.imageSmoothingQuality = "high";
|
|
72
|
+
for (const op of spec.ops) {
|
|
73
|
+
if (op.op === "rect") {
|
|
74
|
+
const [x0, y0, x1, y1] = op.box;
|
|
75
|
+
ctx.fillStyle = css(op.fill);
|
|
76
|
+
ctx.fillRect(x0, y0, x1 - x0 + 1, y1 - y0 + 1);
|
|
77
|
+
}
|
|
78
|
+
else if (op.op === "outline") {
|
|
79
|
+
const [x0, y0, x1, y1] = op.box;
|
|
80
|
+
const s = op.width;
|
|
81
|
+
ctx.fillStyle = css(op.color);
|
|
82
|
+
ctx.fillRect(x0, y0, x1 - x0 + 1, s);
|
|
83
|
+
ctx.fillRect(x0, y1 - s + 1, x1 - x0 + 1, s);
|
|
84
|
+
ctx.fillRect(x0, y0, s, y1 - y0 + 1);
|
|
85
|
+
ctx.fillRect(x1 - s + 1, y0, s, y1 - y0 + 1);
|
|
86
|
+
}
|
|
87
|
+
else if (op.op === "text") {
|
|
88
|
+
ctx.font = `${op.size}px framesheet-aileron`;
|
|
89
|
+
ctx.fillStyle = css(op.color);
|
|
90
|
+
ctx.textBaseline = "alphabetic";
|
|
91
|
+
const m = ctx.measureText(op.text);
|
|
92
|
+
// Pillow's anchor "la": y is the ascender line, ascender rounded up like FreeType.
|
|
93
|
+
const ascent = Math.ceil(op.size * spec.ascentRatio - 1e-9);
|
|
94
|
+
const x = op.align === "right" ? op.x - m.width : op.x;
|
|
95
|
+
ctx.fillText(op.text, x, op.y + ascent);
|
|
96
|
+
}
|
|
97
|
+
else if (op.op === "image") {
|
|
98
|
+
const bmp = bitmaps[op.index];
|
|
99
|
+
if (bmp.width === op.w && bmp.height === op.h)
|
|
100
|
+
ctx.drawImage(bmp, op.x, op.y);
|
|
101
|
+
else
|
|
102
|
+
ctx.drawImage(bmp, op.x, op.y, op.w, op.h);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return canvas.toDataURL("image/png").slice("data:image/png;base64,".length);
|
|
106
|
+
}
|
|
107
|
+
/** Runs in the helper page. */
|
|
108
|
+
function measureInPage(items) {
|
|
109
|
+
const ctx = document.createElement("canvas").getContext("2d");
|
|
110
|
+
return items.map(([text, size]) => {
|
|
111
|
+
ctx.font = `${size}px framesheet-aileron`;
|
|
112
|
+
return ctx.measureText(text).width;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* A blank helper page used for parsing (DOMParser) and drawing (canvas). It lives in its
|
|
117
|
+
* own browser context when possible, so it never shares a fake clock or routes with the
|
|
118
|
+
* page under inspection.
|
|
119
|
+
*/
|
|
120
|
+
export class Renderer {
|
|
121
|
+
page;
|
|
122
|
+
ownContext;
|
|
123
|
+
constructor(page, ownContext) {
|
|
124
|
+
this.page = page;
|
|
125
|
+
this.ownContext = ownContext;
|
|
126
|
+
}
|
|
127
|
+
static async open(from) {
|
|
128
|
+
const isBrowser = "newContext" in from;
|
|
129
|
+
const context = isBrowser ? await from.newContext({ deviceScaleFactor: 1 }) : null;
|
|
130
|
+
const page = context ? await context.newPage() : await from.newPage();
|
|
131
|
+
await page.setContent("<!DOCTYPE html><html><head><meta charset='utf-8'></head><body></body></html>");
|
|
132
|
+
await page.evaluate(([family, b64]) => {
|
|
133
|
+
const bin = atob(b64);
|
|
134
|
+
const bytes = new Uint8Array(bin.length);
|
|
135
|
+
for (let i = 0; i < bin.length; i++)
|
|
136
|
+
bytes[i] = bin.charCodeAt(i);
|
|
137
|
+
const face = new FontFace(family, bytes.buffer);
|
|
138
|
+
document.fonts.add(face);
|
|
139
|
+
window.__fsFont = face.load();
|
|
140
|
+
return face.load().then(() => true);
|
|
141
|
+
}, [FONT_FAMILY, FONT_BASE64]);
|
|
142
|
+
return new Renderer(page, context);
|
|
143
|
+
}
|
|
144
|
+
async measure(items) {
|
|
145
|
+
return this.page.evaluate(measureInPage, items);
|
|
146
|
+
}
|
|
147
|
+
async draw(width, height, ops, images) {
|
|
148
|
+
const spec = {
|
|
149
|
+
width,
|
|
150
|
+
height,
|
|
151
|
+
background: SHEET_BG,
|
|
152
|
+
ops,
|
|
153
|
+
images: images.map((b) => b.toString("base64")),
|
|
154
|
+
ascentRatio: FONT_ASCENT_RATIO,
|
|
155
|
+
};
|
|
156
|
+
const b64 = await this.page.evaluate(drawInPage, spec);
|
|
157
|
+
return Buffer.from(b64, "base64");
|
|
158
|
+
}
|
|
159
|
+
async close() {
|
|
160
|
+
if (this.ownContext)
|
|
161
|
+
await this.ownContext.close().catch(() => undefined);
|
|
162
|
+
else
|
|
163
|
+
await this.page.close().catch(() => undefined);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function headerOps(title, subtitle) {
|
|
167
|
+
return [
|
|
168
|
+
{ op: "text", x: PAD, y: 8, text: title, color: INK, size: 24 },
|
|
169
|
+
{ op: "text", x: PAD, y: 39, text: subtitle, color: MUTED, size: 18 },
|
|
170
|
+
];
|
|
171
|
+
}
|
|
172
|
+
/** Layout of a contact sheet (pure; exported for tests). */
|
|
173
|
+
export function sheetLayout(frameSize, count, opts) {
|
|
174
|
+
const [fw, fh] = frameSize;
|
|
175
|
+
const aspect = fw / fh;
|
|
176
|
+
const cols = opts.columns || defaultColumns(count, aspect);
|
|
177
|
+
const tile = opts.tile || autoTile(cols);
|
|
178
|
+
const [tw, th] = aspect >= 1 ? [tile, pyRound(tile / aspect)] : [pyRound(tile * aspect), tile];
|
|
179
|
+
const rows = Math.ceil(count / cols);
|
|
180
|
+
const cellW = tw + 2;
|
|
181
|
+
const cellH = th + 2 + LABEL_H + (opts.bandH ?? 0);
|
|
182
|
+
const width = Math.max(PAD * 2 + cols * cellW + (cols - 1) * GAP, MIN_WIDTH);
|
|
183
|
+
const height = HEADER_H + PAD + rows * cellH + (rows - 1) * GAP + PAD;
|
|
184
|
+
return { width, height, cols, rows, tw, th };
|
|
185
|
+
}
|
|
186
|
+
/** Grid of frames, each with a timestamp label band above it. */
|
|
187
|
+
export async function contactSheet(renderer, frames, labels, opts) {
|
|
188
|
+
const bands = opts.bands ?? null;
|
|
189
|
+
const bandH = bands !== null ? MARK_BAND_H : 0;
|
|
190
|
+
const layout = sheetLayout([frames[0].width, frames[0].height], frames.length, { ...opts, bandH });
|
|
191
|
+
const { width, cols, tw, th } = layout;
|
|
192
|
+
const cellW = tw + 2;
|
|
193
|
+
const cellH = th + 2 + LABEL_H + bandH;
|
|
194
|
+
const foot = opts.footer ? opts.footer(width) : null;
|
|
195
|
+
const gridH = layout.height;
|
|
196
|
+
const height = gridH + (foot ? foot[0] : 0);
|
|
197
|
+
const highlight = new Set(opts.highlight ?? []);
|
|
198
|
+
const ops = [...headerOps(opts.title, opts.subtitle)];
|
|
199
|
+
frames.forEach((frame, i) => {
|
|
200
|
+
const row = Math.floor(i / cols);
|
|
201
|
+
const col = i % cols;
|
|
202
|
+
const x = PAD + col * (cellW + GAP);
|
|
203
|
+
const y = HEADER_H + PAD + row * (cellH + GAP);
|
|
204
|
+
ops.push({ op: "rect", box: [x, y, x + cellW - 1, y + LABEL_H - 1], fill: highlight.has(i) ? ACCENT_BG : LABEL_BG });
|
|
205
|
+
ops.push({ op: "text", x: x + 8, y: y + 5, text: labels[i], color: LABEL_FG, size: LABEL_FONT });
|
|
206
|
+
ops.push({ op: "text", x: x + cellW - 8, y: y + 10, text: `#${i + 1}`, color: INDEX_FG, size: 16, align: "right" });
|
|
207
|
+
if (bands !== null) {
|
|
208
|
+
const bandY = y + LABEL_H;
|
|
209
|
+
ops.push({ op: "rect", box: [x, bandY, x + cellW - 1, bandY + bandH - 1], fill: MARK_BAND_BG });
|
|
210
|
+
ops.push({ op: "text", x: x + 8, y: bandY + 4, text: bands[i], color: MARK_BAND_FG, size: MARK_BAND_FONT });
|
|
211
|
+
}
|
|
212
|
+
const top = y + LABEL_H + bandH;
|
|
213
|
+
ops.push({ op: "outline", box: [x, top, x + cellW - 1, y + cellH - 1], color: TILE_BORDER, width: 1 });
|
|
214
|
+
const [w, h] = fitSize(frame.width, frame.height, tw, th);
|
|
215
|
+
const ix = x + 1 + Math.floor((tw - w) / 2);
|
|
216
|
+
ops.push({ op: "image", index: i, x: ix, y: top + 1, w, h });
|
|
217
|
+
if (opts.overlay)
|
|
218
|
+
ops.push(...offsetOps(opts.overlay(i, [w, h]), ix, top + 1));
|
|
219
|
+
});
|
|
220
|
+
if (foot)
|
|
221
|
+
ops.push(...offsetOps(foot[1], 0, gridH));
|
|
222
|
+
return renderer.draw(width, height, ops, frames.map((f) => f.png));
|
|
223
|
+
}
|
|
224
|
+
/** Shift layout ops by `dx, dy`. */
|
|
225
|
+
export function offsetOps(ops, dx, dy) {
|
|
226
|
+
return ops.map((op) => {
|
|
227
|
+
if (op.op === "text" || op.op === "image")
|
|
228
|
+
return { ...op, x: op.x + dx, y: op.y + dy };
|
|
229
|
+
const [x0, y0, x1, y1] = op.box;
|
|
230
|
+
return { ...op, box: [x0 + dx, y0 + dy, x1 + dx, y1 + dy] };
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/** Coloured motion overlay on a dimmed, desaturated first frame. */
|
|
234
|
+
export async function heatmap(renderer, first, motion, opts) {
|
|
235
|
+
const maxSide = opts.maxSide ?? 1280;
|
|
236
|
+
const minSide = opts.minSide ?? 800;
|
|
237
|
+
const overlay = heatOverlay(first, motion, opts.boxes ?? [], BOX_COLOR);
|
|
238
|
+
let [iw, ih] = [overlay.width, overlay.height];
|
|
239
|
+
if (Math.max(iw, ih) > maxSide)
|
|
240
|
+
[iw, ih] = fitSize(iw, ih, maxSide, maxSide);
|
|
241
|
+
else if (Math.max(iw, ih) < minSide)
|
|
242
|
+
[iw, ih] = fitSize(iw, ih, minSide, minSide);
|
|
243
|
+
const pad = 12;
|
|
244
|
+
const width = Math.max(iw + 2 * pad, MIN_WIDTH);
|
|
245
|
+
const legendH = 34;
|
|
246
|
+
const height = HEADER_H + ih + legendH + pad;
|
|
247
|
+
const ops = [...headerOps(opts.title, opts.subtitle)];
|
|
248
|
+
ops.push({ op: "image", index: 0, x: pad, y: HEADER_H, w: iw, h: ih });
|
|
249
|
+
const y = HEADER_H + ih + 8;
|
|
250
|
+
let x = pad;
|
|
251
|
+
const legend = [
|
|
252
|
+
[20, "subtle"],
|
|
253
|
+
[70, "medium"],
|
|
254
|
+
[255, "strong"],
|
|
255
|
+
];
|
|
256
|
+
const widths = await renderer.measure(legend.map(([, text]) => [text, 16]));
|
|
257
|
+
legend.forEach(([v, text], i) => {
|
|
258
|
+
ops.push({ op: "rect", box: [x, y + 2, x + 18, y + 20], fill: HEAT_LUT.rgb[v] });
|
|
259
|
+
ops.push({ op: "text", x: x + 24, y: y + 1, text, color: INK, size: 16 });
|
|
260
|
+
x += 34 + pyRound(widths[i]) + 12;
|
|
261
|
+
});
|
|
262
|
+
ops.push({ op: "outline", box: [x, y + 2, x + 18, y + 20], color: BOX_COLOR, width: 3 });
|
|
263
|
+
ops.push({ op: "text", x: x + 24, y: y + 1, text: "changed region", color: INK, size: 16 });
|
|
264
|
+
return renderer.draw(width, height, ops, [encode(overlay)]);
|
|
265
|
+
}
|
|
266
|
+
//# sourceMappingURL=compose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAY,MAAM,EAAc,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,MAAM,CAAC,MAAM,QAAQ,GAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAC7C,MAAM,CAAC,MAAM,GAAG,GAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,MAAM,CAAC,MAAM,KAAK,GAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,MAAM,CAAC,MAAM,QAAQ,GAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1C,MAAM,CAAC,MAAM,QAAQ,GAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAC7C,MAAM,CAAC,MAAM,SAAS,GAAQ,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC5C,MAAM,CAAC,MAAM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AAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC1E,CAAC,IAAI,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IACzF,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5F,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC"}
|
package/dist/driver.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frame-accurate time control on one page (or iframe), port of render.py's Session.
|
|
3
|
+
*
|
|
4
|
+
* Time is virtual. Three mechanisms are driven to the same target time `t`:
|
|
5
|
+
*
|
|
6
|
+
* - JavaScript clocks (`Date`, `performance.now`, timers, `requestAnimationFrame`) run on
|
|
7
|
+
* Playwright's fake clock if it was installed before navigation (`inspect()` does that;
|
|
8
|
+
* for your own pages call `prepare(page)` before `goto`). Moving to `t` calls
|
|
9
|
+
* `page.clock.runFor(delta)`, which fires every due timer and rAF callback in order.
|
|
10
|
+
* - SMIL: every outermost `<svg>` gets `pauseAnimations()` + `setCurrentTime(t)`.
|
|
11
|
+
* - CSS animations/transitions and Web Animations: `document.getAnimations()` are paused
|
|
12
|
+
* and `currentTime` is set to `t` (relative to when the animation was first seen).
|
|
13
|
+
*
|
|
14
|
+
* The last two work on any page, at any time; they live in the shared runtime.js.
|
|
15
|
+
*/
|
|
16
|
+
import type { Frame, Page } from "playwright-core";
|
|
17
|
+
import type { FrameGeometry } from "./analysis.js";
|
|
18
|
+
/** One fake animation frame, so rAF-driven content has painted at t=0. */
|
|
19
|
+
export declare const FIRST_FRAME_MS = 17;
|
|
20
|
+
export interface Clip {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
}
|
|
26
|
+
export interface Snapshot extends FrameGeometry {
|
|
27
|
+
png: Buffer;
|
|
28
|
+
}
|
|
29
|
+
export declare class Driver {
|
|
30
|
+
readonly page: Page;
|
|
31
|
+
readonly frame: Frame;
|
|
32
|
+
/** True if Playwright's fake clock is installed and paused (JS time is controlled). */
|
|
33
|
+
readonly clockControlled: boolean;
|
|
34
|
+
clip: Clip | null;
|
|
35
|
+
nowMs: number;
|
|
36
|
+
constructor(page: Page, frame: Frame,
|
|
37
|
+
/** True if Playwright's fake clock is installed and paused (JS time is controlled). */
|
|
38
|
+
clockControlled: boolean, clip?: Clip | null);
|
|
39
|
+
/** Evaluate an expression string in the inspected frame. */
|
|
40
|
+
js<T = unknown>(expression: string): Promise<T>;
|
|
41
|
+
/** (Re-)install the shared runtime: fresh caches for every inspection. */
|
|
42
|
+
inject(): Promise<void>;
|
|
43
|
+
/** Limit measuring to an element's subtree (null = whole document). */
|
|
44
|
+
scope(handle: import("playwright-core").ElementHandle<Element> | null): Promise<void>;
|
|
45
|
+
/** Wait for fonts/images, let one fake frame run, then seek to t=0. */
|
|
46
|
+
start(): Promise<void>;
|
|
47
|
+
/** Move all clocks to virtual time `t` (seconds). Time only moves forward. */
|
|
48
|
+
seek(t: number): Promise<void>;
|
|
49
|
+
/** Pixels only, at virtual time `t`. */
|
|
50
|
+
screenshot(t: number): Promise<Buffer>;
|
|
51
|
+
/** Pixels plus element geometry at virtual time `t`. */
|
|
52
|
+
snapshot(t: number, overflow: boolean): Promise<Snapshot>;
|
|
53
|
+
/** Hand the page back: unpause what seek() paused (inspectPage on a running app). */
|
|
54
|
+
resume(): Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../src/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,eAAe,CAAC;AAIlE,0EAA0E;AAC1E,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAS,SAAQ,aAAa;IAC7C,GAAG,EAAE,MAAM,CAAC;CACb;AASD,qBAAa,MAAM;IAIf,QAAQ,CAAC,IAAI,EAAE,IAAI;IACnB,QAAQ,CAAC,KAAK,EAAE,KAAK;IACrB,uFAAuF;IACvF,QAAQ,CAAC,eAAe,EAAE,OAAO;IAC1B,IAAI,EAAE,IAAI,GAAG,IAAI;IAP1B,KAAK,SAAK;IAEV,YACW,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK;IACrB,uFAAuF;IAC9E,eAAe,EAAE,OAAO,EAC1B,IAAI,GAAE,IAAI,GAAG,IAAW,EAC7B;IAEJ,4DAA4D;IAC5D,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAE9C;IAED,0EAA0E;IACpE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAG5B;IAED,uEAAuE;IACjE,KAAK,CAAC,MAAM,EAAE,OAAO,iBAAiB,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1F;IAED,uEAAuE;IACjE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAK3B;IAED,8EAA8E;IACxE,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CASnC;IAED,wCAAwC;IAClC,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAS3C;IAED,wDAAwD;IAClD,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAK9D;IAED,qFAAqF;IAC/E,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAE5B;CACF"}
|
package/dist/driver.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frame-accurate time control on one page (or iframe), port of render.py's Session.
|
|
3
|
+
*
|
|
4
|
+
* Time is virtual. Three mechanisms are driven to the same target time `t`:
|
|
5
|
+
*
|
|
6
|
+
* - JavaScript clocks (`Date`, `performance.now`, timers, `requestAnimationFrame`) run on
|
|
7
|
+
* Playwright's fake clock if it was installed before navigation (`inspect()` does that;
|
|
8
|
+
* for your own pages call `prepare(page)` before `goto`). Moving to `t` calls
|
|
9
|
+
* `page.clock.runFor(delta)`, which fires every due timer and rAF callback in order.
|
|
10
|
+
* - SMIL: every outermost `<svg>` gets `pauseAnimations()` + `setCurrentTime(t)`.
|
|
11
|
+
* - CSS animations/transitions and Web Animations: `document.getAnimations()` are paused
|
|
12
|
+
* and `currentTime` is set to `t` (relative to when the animation was first seen).
|
|
13
|
+
*
|
|
14
|
+
* The last two work on any page, at any time; they live in the shared runtime.js.
|
|
15
|
+
*/
|
|
16
|
+
import { RUNTIME_JS } from "./generated/assets.js";
|
|
17
|
+
import { pyRound } from "./pyfmt.js";
|
|
18
|
+
/** One fake animation frame, so rAF-driven content has painted at t=0. */
|
|
19
|
+
export const FIRST_FRAME_MS = 17;
|
|
20
|
+
export class Driver {
|
|
21
|
+
page;
|
|
22
|
+
frame;
|
|
23
|
+
clockControlled;
|
|
24
|
+
clip;
|
|
25
|
+
nowMs = 0;
|
|
26
|
+
constructor(page, frame,
|
|
27
|
+
/** True if Playwright's fake clock is installed and paused (JS time is controlled). */
|
|
28
|
+
clockControlled, clip = null) {
|
|
29
|
+
this.page = page;
|
|
30
|
+
this.frame = frame;
|
|
31
|
+
this.clockControlled = clockControlled;
|
|
32
|
+
this.clip = clip;
|
|
33
|
+
}
|
|
34
|
+
/** Evaluate an expression string in the inspected frame. */
|
|
35
|
+
js(expression) {
|
|
36
|
+
return this.frame.evaluate(expression);
|
|
37
|
+
}
|
|
38
|
+
/** (Re-)install the shared runtime: fresh caches for every inspection. */
|
|
39
|
+
async inject() {
|
|
40
|
+
await this.frame.evaluate("delete window.__framesheet");
|
|
41
|
+
await this.frame.evaluate(RUNTIME_JS);
|
|
42
|
+
}
|
|
43
|
+
/** Limit measuring to an element's subtree (null = whole document). */
|
|
44
|
+
async scope(handle) {
|
|
45
|
+
if (handle)
|
|
46
|
+
await handle.evaluate((el) => window.__framesheet.scope(el));
|
|
47
|
+
else
|
|
48
|
+
await this.frame.evaluate(() => window.__framesheet.scope(null));
|
|
49
|
+
}
|
|
50
|
+
/** Wait for fonts/images, let one fake frame run, then seek to t=0. */
|
|
51
|
+
async start() {
|
|
52
|
+
await this.js("window.__framesheet.ready()");
|
|
53
|
+
// JS clocks are therefore ~17 ms ahead of SMIL/CSS time (same as Python).
|
|
54
|
+
if (this.clockControlled)
|
|
55
|
+
await this.page.clock.runFor(FIRST_FRAME_MS);
|
|
56
|
+
await this.seek(0);
|
|
57
|
+
}
|
|
58
|
+
/** Move all clocks to virtual time `t` (seconds). Time only moves forward. */
|
|
59
|
+
async seek(t) {
|
|
60
|
+
const target = pyRound(t * 1000);
|
|
61
|
+
if (target < this.nowMs)
|
|
62
|
+
throw new Error(`Cannot seek backwards (${t}s < ${this.nowMs / 1000}s)`);
|
|
63
|
+
if (target > this.nowMs) {
|
|
64
|
+
if (this.clockControlled)
|
|
65
|
+
await this.page.clock.runFor(target - this.nowMs);
|
|
66
|
+
this.nowMs = target;
|
|
67
|
+
}
|
|
68
|
+
await this.frame.evaluate((time) => window.__framesheet.seek(time), t);
|
|
69
|
+
await this.js("window.__framesheet.settle()");
|
|
70
|
+
}
|
|
71
|
+
/** Pixels only, at virtual time `t`. */
|
|
72
|
+
async screenshot(t) {
|
|
73
|
+
await this.seek(t);
|
|
74
|
+
return this.page.screenshot({
|
|
75
|
+
type: "png",
|
|
76
|
+
caret: "hide",
|
|
77
|
+
animations: "allow",
|
|
78
|
+
scale: "device",
|
|
79
|
+
...(this.clip ? { clip: this.clip } : {}),
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/** Pixels plus element geometry at virtual time `t`. */
|
|
83
|
+
async snapshot(t, overflow) {
|
|
84
|
+
const png = await this.screenshot(t);
|
|
85
|
+
const geometry = await this.js("window.__framesheet.measure()");
|
|
86
|
+
const over = overflow ? await this.js("window.__framesheet.htmlOverflow()") : [];
|
|
87
|
+
return { t, png, geometry, overflow: over };
|
|
88
|
+
}
|
|
89
|
+
/** Hand the page back: unpause what seek() paused (inspectPage on a running app). */
|
|
90
|
+
async resume() {
|
|
91
|
+
await this.js("window.__framesheet && window.__framesheet.resume()").catch(() => undefined);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=driver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"driver.js","sourceRoot":"","sources":["../src/driver.ts"],"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CAAC,EAAE,CAAC;SAC1C,CAAC,CAAC;IACL,CAAC;IAED,wDAAwD;IACxD,KAAK,CAAC,QAAQ,CAAC,CAAS,EAAE,QAAiB;QACzC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACrC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,EAAE,CAAkB,+BAA+B,CAAC,CAAC;QACjF,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,EAAE,CAA6B,oCAAoC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7G,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9C,CAAC;IAED,qFAAqF;IACrF,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,EAAE,CAAC,qDAAqD,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** The in-page time-control runtime, byte-identical to the Python package's runtime.js. */
|
|
2
|
+
export declare const RUNTIME_JS: string;
|
|
3
|
+
/** sha256 of RUNTIME_JS (hex). */
|
|
4
|
+
export declare const RUNTIME_SHA256: string;
|
|
5
|
+
/** The in-page video player (wrapper page), byte-identical to the Python package's video.js. */
|
|
6
|
+
export declare const VIDEO_JS: string;
|
|
7
|
+
/** sha256 of VIDEO_JS (hex). */
|
|
8
|
+
export declare const VIDEO_SHA256: string;
|
|
9
|
+
/** Aileron Regular (CC0), the same subset Pillow bundles: sheet/heatmap labels. */
|
|
10
|
+
export declare const FONT_BASE64: string;
|
|
11
|
+
/** hhea ascender / unitsPerEm of the font (text anchor: ceil(size * ratio) above baseline). */
|
|
12
|
+
export declare const FONT_ASCENT_RATIO: number;
|
|
13
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/generated/assets.ts"],"names":[],"mappings":"AAGA,2FAA2F;AAC3F,eAAO,MAAM,UAAU,EAAE,MAAgxd,CAAC;AAE1yd,kCAAkC;AAClC,eAAO,MAAM,cAAc,EAAE,MAA2E,CAAC;AAEzG,gGAAgG;AAChG,eAAO,MAAM,QAAQ,EAAE,MAAqxN,CAAC;AAE7yN,gCAAgC;AAChC,eAAO,MAAM,YAAY,EAAE,MAA2E,CAAC;AAEvG,mFAAmF;AACnF,eAAO,MAAM,WAAW,EAAE,MAAmhhB,CAAC;AAE9ihB,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB,EAAE,MAAa,CAAC"}
|