trace-avatar-render 0.1.5 → 0.1.6
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/CHANGELOG.md +7 -1
- package/README.md +6 -0
- package/dist/{chunk-OYFQTEVA.js → chunk-ZNHFXKD3.js} +77 -10
- package/dist/chunk-ZNHFXKD3.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +184 -162
- package/dist/index.js +5 -1
- package/package.json +1 -1
- package/dist/chunk-OYFQTEVA.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,166 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Browser, Page } from 'playwright';
|
|
2
2
|
import { Ai, preview, Suggestion, Candidate, TextCandidate, applyRaw } from 'trace-avatar/assist';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* The guide's own timeline, and the edit list made from it. PURE: plain numbers in, plain numbers out.
|
|
6
|
-
*
|
|
7
|
-
* Times are wall-clock milliseconds (the page logs Date.now(), the screencast stamps frames in epoch
|
|
8
|
-
* seconds), so events and frames from every page load share one clock.
|
|
9
|
-
*/
|
|
10
|
-
type Phase = 'idle' | 'playing' | 'paused' | 'waiting' | 'ended';
|
|
11
|
-
interface TimelineEvent {
|
|
12
|
-
t: number;
|
|
13
|
-
type: 'ready' | 'play' | 'state' | 'step' | 'stalled' | 'handoff' | 'page' | 'end' | 'error' | 'blocked' | 'unload';
|
|
14
|
-
phase?: Phase;
|
|
15
|
-
index?: number;
|
|
16
|
-
stepType?: string;
|
|
17
|
-
reason?: string;
|
|
18
|
-
message?: string;
|
|
19
|
-
url?: string;
|
|
20
|
-
/** step: where its element was (viewport CSS px). */
|
|
21
|
-
rect?: {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
w: number;
|
|
25
|
-
h: number;
|
|
26
|
-
};
|
|
27
|
-
/** step: its words. */
|
|
28
|
-
say?: string;
|
|
29
|
-
}
|
|
30
|
-
interface Span {
|
|
31
|
-
from: number;
|
|
32
|
-
to: number;
|
|
33
|
-
phase: Phase;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* A kept stretch of the capture, in source time. A hold (from === to, `hold` ms) shows the frame at `from`
|
|
37
|
-
* for that long: the video waits, for instance while a narrated line finishes.
|
|
38
|
-
*/
|
|
39
|
-
interface Segment {
|
|
40
|
-
from: number;
|
|
41
|
-
to: number;
|
|
42
|
-
hold?: number;
|
|
43
|
-
}
|
|
44
|
-
interface EditOptions {
|
|
45
|
-
/** Where the output starts and ends (source time). */
|
|
46
|
-
start: number;
|
|
47
|
-
end: number;
|
|
48
|
-
/** A wait longer than this keeps its first and last half of it; the middle is cut. Default 800. 0 keeps every wait. */
|
|
49
|
-
maxWaitMs?: number;
|
|
50
|
-
}
|
|
51
|
-
declare const DEFAULT_MAX_WAIT_MS = 800;
|
|
52
|
-
/**
|
|
53
|
-
* The player's phase over [start, end]. A page unloading counts as waiting until the next page's player
|
|
54
|
-
* reports a phase again.
|
|
55
|
-
*/
|
|
56
|
-
declare function spansOf(events: readonly TimelineEvent[], start: number, end: number): Span[];
|
|
57
|
-
/** The stretches of the capture to keep: everything, except the middle of each long wait. */
|
|
58
|
-
declare function editList(events: readonly TimelineEvent[], o: EditOptions): Segment[];
|
|
59
|
-
declare const durationOf: (segs: readonly Segment[]) => number;
|
|
60
|
-
/** The source time shown at output time `t` (clamped to the ends). */
|
|
61
|
-
declare function sourceAt(segs: readonly Segment[], t: number): number;
|
|
62
|
-
/** The output time where source time `src` lands, or null when it was cut. */
|
|
63
|
-
declare function outputAt(segs: readonly Segment[], src: number): number | null;
|
|
64
|
-
/**
|
|
65
|
-
* Insert holds: each `{ at, ms }` (at = output time on `segs`) freezes the frame there for `ms`. Later output
|
|
66
|
-
* times move by the holds before them.
|
|
67
|
-
*/
|
|
68
|
-
declare function withHolds(segs: readonly Segment[], holds: ReadonlyArray<{
|
|
69
|
-
at: number;
|
|
70
|
-
ms: number;
|
|
71
|
-
}>): Segment[];
|
|
72
|
-
/** The source time of every output frame at `fps`. */
|
|
73
|
-
declare function frameTimes(segs: readonly Segment[], fps: number): number[];
|
|
74
|
-
/** For each wanted time, the last captured frame at or before it (the first frame before any). */
|
|
75
|
-
declare function pickFrames(captured: readonly number[], want: readonly number[]): number[];
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Play a trace on the real app in headless Chromium and capture it.
|
|
79
|
-
*
|
|
80
|
-
* The player (trace-perform.min.js) and a small bootstrap are injected into every page of the context,
|
|
81
|
-
* so a guide that crosses a full page load carries on (the player's resumeKey) and keeps logging its
|
|
82
|
-
* events. Frames come from Chromium's screencast, stamped on the same wall clock as the events.
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
interface CaptureOptions {
|
|
86
|
-
/** The trace object. */
|
|
87
|
-
trace: unknown;
|
|
88
|
-
url: string;
|
|
89
|
-
mode: 'overlay' | 'perform';
|
|
90
|
-
viewport: {
|
|
91
|
-
w: number;
|
|
92
|
-
h: number;
|
|
93
|
-
};
|
|
94
|
-
/** Device pixel ratio. Default 1. */
|
|
95
|
-
scale?: number;
|
|
96
|
-
/** A signed-in session (Playwright storageState file). */
|
|
97
|
-
storageState?: string;
|
|
98
|
-
/** The player build (trace-perform.min.js). */
|
|
99
|
-
playerFile: string;
|
|
100
|
-
/** Selectors hidden before capture (e.g. your own dev toolbars). */
|
|
101
|
-
hide?: string[];
|
|
102
|
-
/** Selectors blurred before capture, as well as [data-trace-blur]. */
|
|
103
|
-
blur?: string[];
|
|
104
|
-
rate?: number;
|
|
105
|
-
/** When a step is on another page, load that page (as an app's router would) instead of waiting for it. */
|
|
106
|
-
navigate?: boolean;
|
|
107
|
-
/** Perform mode: what the guide leaves to the viewer (trace-avatar's `security`). */
|
|
108
|
-
security?: boolean | string[];
|
|
109
|
-
/** Perform mode: values to type, by name or field label (trace-avatar's `values`). */
|
|
110
|
-
values?: Record<string, string>;
|
|
111
|
-
/** The player's own captions: 'none' when the renderer burns them in itself. Default: the player's. */
|
|
112
|
-
captions?: 'bubble' | 'bar' | 'none';
|
|
113
|
-
/** A guide's own pause (or a hand-off) is held this long, then it plays on. Default 1200. */
|
|
114
|
-
pauseHoldMs?: number;
|
|
115
|
-
/** Keep capturing this long after the end. Default 1500. */
|
|
116
|
-
holdEndMs?: number;
|
|
117
|
-
/** Still frames before the guide starts. Default 500. */
|
|
118
|
-
leadMs?: number;
|
|
119
|
-
/** Render a stalled guide anyway (it shows "Looking for …") instead of failing. */
|
|
120
|
-
allowStall?: boolean;
|
|
121
|
-
/** Called on a stall with the live page, before anything else happens; what it returns rides on the RenderError. */
|
|
122
|
-
onStall?: (page: Page, stall: {
|
|
123
|
-
index: number;
|
|
124
|
-
reason: string;
|
|
125
|
-
}) => Promise<unknown>;
|
|
126
|
-
/** Give up after this long. Default 120 000. */
|
|
127
|
-
timeoutMs?: number;
|
|
128
|
-
headless?: boolean;
|
|
129
|
-
}
|
|
130
|
-
interface CapturedFrame {
|
|
131
|
-
t: number;
|
|
132
|
-
png: Buffer;
|
|
133
|
-
}
|
|
134
|
-
interface Capture {
|
|
135
|
-
frames: CapturedFrame[];
|
|
136
|
-
/** The viewport in CSS px and the device pixel ratio (frames are viewport × scale). */
|
|
137
|
-
viewport?: {
|
|
138
|
-
w: number;
|
|
139
|
-
h: number;
|
|
140
|
-
scale: number;
|
|
141
|
-
};
|
|
142
|
-
/** Each page's title, by path. */
|
|
143
|
-
titles?: Record<string, string>;
|
|
144
|
-
events: TimelineEvent[];
|
|
145
|
-
/** When the guide started and when capture stopped (wall ms). */
|
|
146
|
-
playAt: number;
|
|
147
|
-
stopAt: number;
|
|
148
|
-
endAt: number | null;
|
|
149
|
-
}
|
|
150
|
-
declare class RenderError extends Error {
|
|
151
|
-
readonly screenshot?: Buffer | undefined;
|
|
152
|
-
/** A stall: which step, why, and what onStall found on the page. */
|
|
153
|
-
stall?: {
|
|
154
|
-
index: number;
|
|
155
|
-
reason: string;
|
|
156
|
-
data?: unknown;
|
|
157
|
-
};
|
|
158
|
-
constructor(message: string, screenshot?: Buffer | undefined);
|
|
159
|
-
}
|
|
160
|
-
declare function capture(o: CaptureOptions): Promise<Capture>;
|
|
161
|
-
/** Where the player build is: an explicit file, TRACE_AVATAR_PLAYER, or the installed trace-avatar. */
|
|
162
|
-
declare function findPlayer(explicit?: string, env?: NodeJS.ProcessEnv): Promise<string>;
|
|
163
|
-
|
|
164
4
|
/** RGBA pixel helpers. PURE. */
|
|
165
5
|
interface Image {
|
|
166
6
|
width: number;
|
|
@@ -342,6 +182,188 @@ interface Layers {
|
|
|
342
182
|
declare const DEFAULT_BACKGROUND = "linear-gradient(135deg, #dfe7fb 0%, #eef0f6 50%, #f6e9f1 100%)";
|
|
343
183
|
declare function createLayers(browser: Browser): Promise<Layers>;
|
|
344
184
|
|
|
185
|
+
/**
|
|
186
|
+
* The guide's own timeline, and the edit list made from it. PURE: plain numbers in, plain numbers out.
|
|
187
|
+
*
|
|
188
|
+
* Times are wall-clock milliseconds (the page logs Date.now(), the screencast stamps frames in epoch
|
|
189
|
+
* seconds), so events and frames from every page load share one clock.
|
|
190
|
+
*/
|
|
191
|
+
type Phase = 'idle' | 'playing' | 'paused' | 'waiting' | 'ended';
|
|
192
|
+
interface TimelineEvent {
|
|
193
|
+
t: number;
|
|
194
|
+
type: 'ready' | 'play' | 'state' | 'step' | 'stalled' | 'handoff' | 'page' | 'end' | 'error' | 'blocked' | 'unload';
|
|
195
|
+
phase?: Phase;
|
|
196
|
+
index?: number;
|
|
197
|
+
stepType?: string;
|
|
198
|
+
reason?: string;
|
|
199
|
+
message?: string;
|
|
200
|
+
url?: string;
|
|
201
|
+
/** step: where its element was (viewport CSS px). */
|
|
202
|
+
rect?: {
|
|
203
|
+
x: number;
|
|
204
|
+
y: number;
|
|
205
|
+
w: number;
|
|
206
|
+
h: number;
|
|
207
|
+
};
|
|
208
|
+
/** step: its words. */
|
|
209
|
+
say?: string;
|
|
210
|
+
}
|
|
211
|
+
interface Span {
|
|
212
|
+
from: number;
|
|
213
|
+
to: number;
|
|
214
|
+
phase: Phase;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* A kept stretch of the capture, in source time. A hold (from === to, `hold` ms) shows the frame at `from`
|
|
218
|
+
* for that long: the video waits, for instance while a narrated line finishes.
|
|
219
|
+
*/
|
|
220
|
+
/** A stretch of the source (from–to), or a frozen moment (`hold` ms at `from`); `card` shows a capture's card instead. */
|
|
221
|
+
interface Segment {
|
|
222
|
+
from: number;
|
|
223
|
+
to: number;
|
|
224
|
+
hold?: number;
|
|
225
|
+
card?: number;
|
|
226
|
+
}
|
|
227
|
+
interface EditOptions {
|
|
228
|
+
/** Where the output starts and ends (source time). */
|
|
229
|
+
start: number;
|
|
230
|
+
end: number;
|
|
231
|
+
/** A wait longer than this keeps its first and last half of it; the middle is cut. Default 800. 0 keeps every wait. */
|
|
232
|
+
maxWaitMs?: number;
|
|
233
|
+
}
|
|
234
|
+
declare const DEFAULT_MAX_WAIT_MS = 800;
|
|
235
|
+
/**
|
|
236
|
+
* The player's phase over [start, end]. A page unloading counts as waiting until the next page's player
|
|
237
|
+
* reports a phase again.
|
|
238
|
+
*/
|
|
239
|
+
declare function spansOf(events: readonly TimelineEvent[], start: number, end: number): Span[];
|
|
240
|
+
/** The stretches of the capture to keep: everything, except the middle of each long wait. */
|
|
241
|
+
declare function editList(events: readonly TimelineEvent[], o: EditOptions): Segment[];
|
|
242
|
+
declare const durationOf: (segs: readonly Segment[]) => number;
|
|
243
|
+
/** The source time shown at output time `t` (clamped to the ends). */
|
|
244
|
+
declare function sourceAt(segs: readonly Segment[], t: number): number;
|
|
245
|
+
/** The output time where source time `src` lands, or null when it was cut. */
|
|
246
|
+
declare function outputAt(segs: readonly Segment[], src: number): number | null;
|
|
247
|
+
/**
|
|
248
|
+
* Insert holds: each `{ at, ms }` (at = output time on `segs`) freezes the frame there for `ms`. Later output
|
|
249
|
+
* times move by the holds before them.
|
|
250
|
+
*/
|
|
251
|
+
declare function withHolds(segs: readonly Segment[], holds: ReadonlyArray<{
|
|
252
|
+
at: number;
|
|
253
|
+
ms: number;
|
|
254
|
+
}>): Segment[];
|
|
255
|
+
/**
|
|
256
|
+
* Insert cards (a director's `d.card`): each `{ t, ms }` (t = source time) is shown for `ms` at that moment, as a
|
|
257
|
+
* held segment marked with its index in `cards`. A card at a cut-out moment goes where the next kept stretch starts.
|
|
258
|
+
*/
|
|
259
|
+
declare function withCards(segs: readonly Segment[], cards: ReadonlyArray<{
|
|
260
|
+
t: number;
|
|
261
|
+
ms: number;
|
|
262
|
+
}>): Segment[];
|
|
263
|
+
/** For every output frame at `fps`, the card it shows (its index), or undefined for the app. */
|
|
264
|
+
declare function cardFrames(segs: readonly Segment[], fps: number): Array<number | undefined>;
|
|
265
|
+
/** The source time of every output frame at `fps`. */
|
|
266
|
+
declare function frameTimes(segs: readonly Segment[], fps: number): number[];
|
|
267
|
+
/** For each wanted time, the last captured frame at or before it (the first frame before any). */
|
|
268
|
+
declare function pickFrames(captured: readonly number[], want: readonly number[]): number[];
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Play a trace on the real app in headless Chromium and capture it.
|
|
272
|
+
*
|
|
273
|
+
* The player (trace-perform.min.js) and a small bootstrap are injected into every page of the context,
|
|
274
|
+
* so a guide that crosses a full page load carries on (the player's resumeKey) and keeps logging its
|
|
275
|
+
* events. Frames come from Chromium's screencast, stamped on the same wall clock as the events.
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
interface CaptureOptions {
|
|
279
|
+
/** The trace object. */
|
|
280
|
+
trace: unknown;
|
|
281
|
+
url: string;
|
|
282
|
+
mode: 'overlay' | 'perform';
|
|
283
|
+
viewport: {
|
|
284
|
+
w: number;
|
|
285
|
+
h: number;
|
|
286
|
+
};
|
|
287
|
+
/** Device pixel ratio. Default 1. */
|
|
288
|
+
scale?: number;
|
|
289
|
+
/** A signed-in session (Playwright storageState file). */
|
|
290
|
+
storageState?: string;
|
|
291
|
+
/** The player build (trace-perform.min.js). */
|
|
292
|
+
playerFile: string;
|
|
293
|
+
/** Selectors hidden before capture (e.g. your own dev toolbars). */
|
|
294
|
+
hide?: string[];
|
|
295
|
+
/** Selectors blurred before capture, as well as [data-trace-blur]. */
|
|
296
|
+
blur?: string[];
|
|
297
|
+
rate?: number;
|
|
298
|
+
/** When a step is on another page, load that page (as an app's router would) instead of waiting for it. */
|
|
299
|
+
navigate?: boolean;
|
|
300
|
+
/** Perform mode: what the guide leaves to the viewer (trace-avatar's `security`). */
|
|
301
|
+
security?: boolean | string[];
|
|
302
|
+
/** Perform mode: values to type, by name or field label (trace-avatar's `values`). */
|
|
303
|
+
values?: Record<string, string>;
|
|
304
|
+
/** The player's own captions: 'none' when the renderer burns them in itself. Default: the player's. */
|
|
305
|
+
captions?: 'bubble' | 'bar' | 'none';
|
|
306
|
+
/** A guide's own pause (or a hand-off) is held this long, then it plays on. Default 1200. */
|
|
307
|
+
pauseHoldMs?: number;
|
|
308
|
+
/** Keep capturing this long after the end. Default 1500. */
|
|
309
|
+
holdEndMs?: number;
|
|
310
|
+
/** Still frames before the guide starts. Default 500. */
|
|
311
|
+
leadMs?: number;
|
|
312
|
+
/** Render a stalled guide anyway (it shows "Looking for …") instead of failing. */
|
|
313
|
+
allowStall?: boolean;
|
|
314
|
+
/** Called on a stall with the live page, before anything else happens; what it returns rides on the RenderError. */
|
|
315
|
+
onStall?: (page: Page, stall: {
|
|
316
|
+
index: number;
|
|
317
|
+
reason: string;
|
|
318
|
+
}) => Promise<unknown>;
|
|
319
|
+
/** Give up after this long. Default 120 000. */
|
|
320
|
+
timeoutMs?: number;
|
|
321
|
+
headless?: boolean;
|
|
322
|
+
}
|
|
323
|
+
interface CapturedFrame {
|
|
324
|
+
t: number;
|
|
325
|
+
png: Buffer;
|
|
326
|
+
}
|
|
327
|
+
interface Capture {
|
|
328
|
+
frames: CapturedFrame[];
|
|
329
|
+
/** The viewport in CSS px and the device pixel ratio (frames are viewport × scale). */
|
|
330
|
+
viewport?: {
|
|
331
|
+
w: number;
|
|
332
|
+
h: number;
|
|
333
|
+
scale: number;
|
|
334
|
+
};
|
|
335
|
+
/** Each page's title, by path. */
|
|
336
|
+
titles?: Record<string, string>;
|
|
337
|
+
events: TimelineEvent[];
|
|
338
|
+
/** When the guide started and when capture stopped (wall ms). */
|
|
339
|
+
playAt: number;
|
|
340
|
+
stopAt: number;
|
|
341
|
+
endAt: number | null;
|
|
342
|
+
/**
|
|
343
|
+
* Cards between scenes (a director clip's `d.card`): each shown for `ms` at source time `t`. A narrated card's
|
|
344
|
+
* step sits just after `t` (t + 1), so its line is spoken over the card, and the card lasts as long as its line.
|
|
345
|
+
*/
|
|
346
|
+
cards?: Array<{
|
|
347
|
+
t: number;
|
|
348
|
+
ms: number;
|
|
349
|
+
card: CardOptions;
|
|
350
|
+
step?: number;
|
|
351
|
+
}>;
|
|
352
|
+
}
|
|
353
|
+
declare class RenderError extends Error {
|
|
354
|
+
readonly screenshot?: Buffer | undefined;
|
|
355
|
+
/** A stall: which step, why, and what onStall found on the page. */
|
|
356
|
+
stall?: {
|
|
357
|
+
index: number;
|
|
358
|
+
reason: string;
|
|
359
|
+
data?: unknown;
|
|
360
|
+
};
|
|
361
|
+
constructor(message: string, screenshot?: Buffer | undefined);
|
|
362
|
+
}
|
|
363
|
+
declare function capture(o: CaptureOptions): Promise<Capture>;
|
|
364
|
+
/** Where the player build is: an explicit file, TRACE_AVATAR_PLAYER, or the installed trace-avatar. */
|
|
365
|
+
declare function findPlayer(explicit?: string, env?: NodeJS.ProcessEnv): Promise<string>;
|
|
366
|
+
|
|
345
367
|
/**
|
|
346
368
|
* Mono 16-bit PCM: read and write WAV, resample, trim silence, and lay lines on one track. PURE.
|
|
347
369
|
*/
|
|
@@ -933,4 +955,4 @@ declare function repairGuide(o: {
|
|
|
933
955
|
first?: RenderError;
|
|
934
956
|
}): Promise<RepairOutcome>;
|
|
935
957
|
|
|
936
|
-
export { type Action, type Brand, CANVASES, CORNERS, type CameraOptions, type Canvas, type CanvasSpec, type Capture, type CaptureOptions, type CapturedFrame, type CardOptions, type Corner, type Cue, DEFAULT_BACKGROUND, DEFAULT_MAX_WAIT_MS, type EditOptions, type FinishOptions, type FrameStyle, GEMINI_TTS, type GifOptions, type GifResult, type GifWriter, type Image, type Layers, type Layout, type NarrationPlan, type OutFormat, type OutSpec, type Pcm, type Phase, type PlanOptions, type PlannedLine, type Rect, RenderError, type RenderOptions, type RenderOutput, type RenderResult, type RepairOutcome, type RepairSuggestion, type Script, type Segment, type Span, TRACK_RATE, type TimelineEvent, type Unresolved, type Voice, type Watermark, ZOOM_KINDS, actionsOf, badgeAt, blank, brandFile, brandOf, cached, cameraKeys, cameraPath, canvasOf, captionCues, capture, cardOf, chapterCues, createGifWriter, createLayers, crop, crossfade, cueAt, dataUri, drawRegion, durationOf, editList, encodeGif, encodeMp4, findFfmpeg, findPlayer, finish, fitWidth, formatOf, frameTimes, fromS16le, fromWav, geminiVoice, layoutOf, linesOf, mix, mp4Args, msOf, narrationText, openAiVoice, outputAt, overlay, pageAt, paletteOf, parseScript, pickFrames, pixel, planNarration, providerOf, render, repairGuide, repairScriptOf, resample, resize, runQa, sayVoice, sourceAt, spansOf, stallInspector, stepCues, suggestScript, toVtt, toWav, trimSilence, voiceOf, watermarkOf, withHolds };
|
|
958
|
+
export { type Action, type Brand, CANVASES, CORNERS, type CameraOptions, type Canvas, type CanvasSpec, type Capture, type CaptureOptions, type CapturedFrame, type CardOptions, type Corner, type Cue, DEFAULT_BACKGROUND, DEFAULT_MAX_WAIT_MS, type EditOptions, type FinishOptions, type FrameStyle, GEMINI_TTS, type GifOptions, type GifResult, type GifWriter, type Image, type Layers, type Layout, type NarrationPlan, type OutFormat, type OutSpec, type Pcm, type Phase, type PlanOptions, type PlannedLine, type Rect, RenderError, type RenderOptions, type RenderOutput, type RenderResult, type RepairOutcome, type RepairSuggestion, type Script, type Segment, type Span, TRACK_RATE, type TimelineEvent, type Unresolved, type Voice, type Watermark, ZOOM_KINDS, actionsOf, badgeAt, blank, brandFile, brandOf, cached, cameraKeys, cameraPath, canvasOf, captionCues, capture, cardFrames, cardOf, chapterCues, createGifWriter, createLayers, crop, crossfade, cueAt, dataUri, drawRegion, durationOf, editList, encodeGif, encodeMp4, findFfmpeg, findPlayer, finish, fitWidth, formatOf, frameTimes, fromS16le, fromWav, geminiVoice, layoutOf, linesOf, mix, mp4Args, msOf, narrationText, openAiVoice, outputAt, overlay, pageAt, paletteOf, parseScript, pickFrames, pixel, planNarration, providerOf, render, repairGuide, repairScriptOf, resample, resize, runQa, sayVoice, sourceAt, spansOf, stallInspector, stepCues, suggestScript, toVtt, toWav, trimSilence, voiceOf, watermarkOf, withCards, withHolds };
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
canvasOf,
|
|
19
19
|
captionCues,
|
|
20
20
|
capture,
|
|
21
|
+
cardFrames,
|
|
21
22
|
cardOf,
|
|
22
23
|
chapterCues,
|
|
23
24
|
createGifWriter,
|
|
@@ -73,8 +74,9 @@ import {
|
|
|
73
74
|
trimSilence,
|
|
74
75
|
voiceOf,
|
|
75
76
|
watermarkOf,
|
|
77
|
+
withCards,
|
|
76
78
|
withHolds
|
|
77
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-ZNHFXKD3.js";
|
|
78
80
|
export {
|
|
79
81
|
CANVASES,
|
|
80
82
|
CORNERS,
|
|
@@ -95,6 +97,7 @@ export {
|
|
|
95
97
|
canvasOf,
|
|
96
98
|
captionCues,
|
|
97
99
|
capture,
|
|
100
|
+
cardFrames,
|
|
98
101
|
cardOf,
|
|
99
102
|
chapterCues,
|
|
100
103
|
createGifWriter,
|
|
@@ -150,6 +153,7 @@ export {
|
|
|
150
153
|
trimSilence,
|
|
151
154
|
voiceOf,
|
|
152
155
|
watermarkOf,
|
|
156
|
+
withCards,
|
|
153
157
|
withHolds
|
|
154
158
|
};
|
|
155
159
|
//# sourceMappingURL=index.js.map
|