@open-take/compositor 0.2.7 → 0.2.8
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/index.d.ts +173 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +255 -25
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/camera.ts +1 -1
- package/src/index.ts +1 -1
- package/src/math.ts +196 -18
- package/src/plan.ts +12 -9
- package/src/presets.ts +32 -1
- package/src/render.ts +21 -10
- package/src/scene/scene.tsx +86 -3
- package/src/types.ts +82 -7
- package/src/validate.ts +261 -1
package/dist/index.d.ts
CHANGED
|
@@ -104,7 +104,34 @@ type CapturePress = CaptureEventBase & {
|
|
|
104
104
|
/** ms the hold occupies on screen (ground-truth wall time) */
|
|
105
105
|
durationMs: number;
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
/** A file drag-and-drop (OS-level, synthesized via CDP Input.dispatchDragEvent
|
|
108
|
+
* with real file paths): the cursor carries the file(s) from the anchor
|
|
109
|
+
* (`x,y`) along `path` to `to`, where the drop lands and the page receives
|
|
110
|
+
* actual Files. The compositor draws a "file ghost card" riding the cursor
|
|
111
|
+
* for this beat — the recording itself shows only the page's reaction. */
|
|
112
|
+
type CaptureDropFiles = CaptureEventBase & {
|
|
113
|
+
kind: "dropFiles";
|
|
114
|
+
/** drop point, viewport CSS px */
|
|
115
|
+
to: {
|
|
116
|
+
x: number;
|
|
117
|
+
y: number;
|
|
118
|
+
};
|
|
119
|
+
/** full polyline incl. ends, viewport CSS px */
|
|
120
|
+
path?: {
|
|
121
|
+
x: number;
|
|
122
|
+
y: number;
|
|
123
|
+
}[];
|
|
124
|
+
/** ms the carry occupies on screen (ground-truth wall time) */
|
|
125
|
+
durationMs: number;
|
|
126
|
+
/** carry pacing baked into the dispatched dragOver march (see CaptureDrag) */
|
|
127
|
+
ease?: "linear" | "smooth";
|
|
128
|
+
/** dropped files' display metadata (basename + bytes) for the ghost card */
|
|
129
|
+
files: {
|
|
130
|
+
name: string;
|
|
131
|
+
size?: number;
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
type CaptureEvent = CaptureClick | CaptureType | CaptureDrag | CaptureScroll | CaptureHover | CapturePress | CaptureDropFiles;
|
|
108
135
|
type CaptureLog = {
|
|
109
136
|
video: {
|
|
110
137
|
width: number;
|
|
@@ -133,6 +160,26 @@ type CaptureLog = {
|
|
|
133
160
|
target?: string;
|
|
134
161
|
reason: string;
|
|
135
162
|
}[];
|
|
163
|
+
/** Beats whose editorial hold ran out before the PAGE had finished — the
|
|
164
|
+
* capture kept waiting (see runtime/src/settle.ts) and records how much
|
|
165
|
+
* longer it needed. This is the measurement that replaces guessing
|
|
166
|
+
* `settleMs`: `heldMs + waitedMs` is what that beat actually wanted, and
|
|
167
|
+
* `reason: "budget"` means even the extra wait was not enough. Absent when
|
|
168
|
+
* every hold was already long enough. */
|
|
169
|
+
settleWaits?: {
|
|
170
|
+
step: number;
|
|
171
|
+
action: string;
|
|
172
|
+
heldMs: number;
|
|
173
|
+
waitedMs: number;
|
|
174
|
+
reason: "idle" | "budget" | "unavailable";
|
|
175
|
+
}[];
|
|
176
|
+
/** Largest share of the frame a `<canvas>`/`<video>` held during the capture.
|
|
177
|
+
* It matters because the settle probe reads the page's STRUCTURE, and a
|
|
178
|
+
* paint surface never changes structurally no matter what is drawn inside
|
|
179
|
+
* it — so on a canvas-driven app "the page settled" is not evidence the
|
|
180
|
+
* beat's payoff had appeared, and `settleMs` is doing the whole job alone.
|
|
181
|
+
* Absent on an ordinary DOM app. */
|
|
182
|
+
paintedFrac?: number;
|
|
136
183
|
};
|
|
137
184
|
type ZoomDecision = {
|
|
138
185
|
/** selective: not every action zooms. Edit this to tune/remove. */
|
|
@@ -153,8 +200,17 @@ type ZoomDecision = {
|
|
|
153
200
|
/** why this decision (for the human/agent reading the composition) */
|
|
154
201
|
reason: string;
|
|
155
202
|
};
|
|
203
|
+
/** Ghost-card knobs for a dropFiles beat (editable): the macOS-style file
|
|
204
|
+
* card riding the cursor during the carry. */
|
|
205
|
+
type GhostCardConfig = {
|
|
206
|
+
enabled: boolean;
|
|
207
|
+
/** card offset from the cursor tip, video-px (default ~{x:26,y:30}) */
|
|
208
|
+
offset?: Pt;
|
|
209
|
+
/** ms of the release pop after the drop (fade + settle; default 280) */
|
|
210
|
+
releaseMs?: number;
|
|
211
|
+
};
|
|
156
212
|
type CompEvent = {
|
|
157
|
-
kind: "click" | "type" | "drag" | "scroll" | "hover" | "press";
|
|
213
|
+
kind: "click" | "type" | "drag" | "scroll" | "hover" | "press" | "dropFiles";
|
|
158
214
|
tMs: number;
|
|
159
215
|
/** anchor point (click / focus / drag start / hover) in video-px. For a
|
|
160
216
|
* scroll/press the cursor does not move; this is its resting point. */
|
|
@@ -177,6 +233,13 @@ type CompEvent = {
|
|
|
177
233
|
/** drag stroke easing baked into the ink (kind=drag): "smooth" or "linear".
|
|
178
234
|
* The cursor replays it so it stays locked to the ink. Absent ⇒ linear. */
|
|
179
235
|
ease?: "linear" | "smooth";
|
|
236
|
+
/** dropped files' display metadata (kind=dropFiles), for the ghost card */
|
|
237
|
+
files?: {
|
|
238
|
+
name: string;
|
|
239
|
+
size?: number;
|
|
240
|
+
}[];
|
|
241
|
+
/** ghost-card rendering knobs (kind=dropFiles); absent ⇒ enabled defaults */
|
|
242
|
+
ghostCard?: GhostCardConfig;
|
|
180
243
|
};
|
|
181
244
|
type FramingConfig = {
|
|
182
245
|
/** video occupies this fraction of the frame at rest (inset for the backdrop) */
|
|
@@ -204,15 +267,36 @@ type CursorConfig = {
|
|
|
204
267
|
travelMs: number;
|
|
205
268
|
/** Distance-aware travel speed, as a fraction of the source video WIDTH per
|
|
206
269
|
* second (resolution-independent). A travel leg's duration is
|
|
207
|
-
* `
|
|
208
|
-
*
|
|
270
|
+
* `distance / (widthsPerSec·videoWidth·zoomFrac)`, floored at `travelMinMs` and
|
|
271
|
+
* then capped at `travelMaxMs` (in that order — an inverted band pins short hops
|
|
272
|
+
* to the floor, not everything to the ceiling), so the cursor holds a roughly
|
|
273
|
+
* CONSTANT on-screen speed regardless of distance —
|
|
209
274
|
* the premium-recorder feel (measured ~0.30 widths/s on the reference). Set 0
|
|
210
|
-
* to fall back to the fixed `travelMs`.
|
|
275
|
+
* to fall back to the fixed `travelMs`.
|
|
276
|
+
*
|
|
277
|
+
* `zoomFrac = restScale / camera scale` — exactly 1 for a full-view take, so a
|
|
278
|
+
* zoom-less composition is unaffected. While the camera is punched in, the same
|
|
279
|
+
* video-px move covers proportionally more of the DELIVERED frame, so without
|
|
280
|
+
* this factor a 2× punch-in reads ~2× too fast precisely where the viewer is
|
|
281
|
+
* looking closest. zoomFrac is INTEGRATED across the leg, not sampled at one
|
|
282
|
+
* instant: a travel usually departs while the camera is still wide and lands
|
|
283
|
+
* after it has closed in, and pricing all of it at the landing magnification
|
|
284
|
+
* over-slows the departure by as much as a zoom-blind duration over-sped it.
|
|
285
|
+
* A leg the camera holds a frame through degenerates to that one frame's
|
|
286
|
+
* factor, which is the sampled model's only exactly-right case. */
|
|
211
287
|
travelWidthsPerSec: number;
|
|
212
|
-
/** Floor for a distance-aware travel (ms) so short hops aren't an instant snap.
|
|
288
|
+
/** Floor for a distance-aware travel (ms) so short hops aren't an instant snap.
|
|
289
|
+
* NOTE both clamps are applied AFTER the speed model and neither is part of a
|
|
290
|
+
* `pace` preset, so on the legs they bind THEY set the duration and re-pacing
|
|
291
|
+
* the take does nothing. validate.ts says so once that stops being the
|
|
292
|
+
* exception (see CLAMPED_LEGS_FRAC). */
|
|
213
293
|
travelMinMs: number;
|
|
214
294
|
/** Ceiling for a distance-aware travel (ms) so a full-width jump stays a glide,
|
|
215
|
-
* not a multi-second crawl.
|
|
295
|
+
* not a multi-second crawl. Binds on any sweep past
|
|
296
|
+
* `travelMaxMs · travelWidthsPerSec · videoWidth` — ~571px of a 1920 frame at
|
|
297
|
+
* the shipped defaults — which is deliberate (it was eye-tuned on a reference
|
|
298
|
+
* recorder's long moves), so it also bounds how much of the zoom correction
|
|
299
|
+
* above a long zoomed sweep can actually receive. */
|
|
216
300
|
travelMaxMs: number;
|
|
217
301
|
scale: number;
|
|
218
302
|
arcFrac: number;
|
|
@@ -402,11 +486,17 @@ declare const ZOOM_LEVELS: {
|
|
|
402
486
|
type ZoomLevelName = keyof typeof ZOOM_LEVELS;
|
|
403
487
|
/** Name a scale if it sits within tolerance of a preset; else null (custom). */
|
|
404
488
|
declare function zoomLevelName(scale: number, tol?: number): ZoomLevelName | null;
|
|
405
|
-
type MotionPreset = Pick<CursorConfig, "travelWidthsPerSec" | "holdMs" | "zoomInMs" | "zoomOutMs" | "pullOutDwellMs"> & {
|
|
489
|
+
type MotionPreset = Pick<CursorConfig, "travelWidthsPerSec" | "travelMinMs" | "travelMaxMs" | "holdMs" | "zoomInMs" | "zoomOutMs" | "pullOutDwellMs"> & {
|
|
406
490
|
zoomEase?: undefined;
|
|
407
491
|
};
|
|
408
492
|
declare const MOTION: Record<"calm" | "natural" | "brisk", MotionPreset>;
|
|
409
493
|
type MotionName = keyof typeof MOTION;
|
|
494
|
+
/** A clamp matches its preset — or the LEGACY value every composition carried
|
|
495
|
+
* before the clamps joined the presets. Without that second door, applying
|
|
496
|
+
* "brisk" to an old take and re-reading it would report "custom" purely
|
|
497
|
+
* because the take predates clamp-aware presets. Same escape hatch
|
|
498
|
+
* pullOutDwellMs already has. */
|
|
499
|
+
declare const CLAMP_TOL_MS = 20;
|
|
410
500
|
declare function motionName(cursor: CursorConfig): MotionName | null;
|
|
411
501
|
type LookPreset = Pick<FramingConfig, "background" | "cornerRadius" | "shadow">;
|
|
412
502
|
declare const LOOKS: Record<string, LookPreset>;
|
|
@@ -446,7 +536,7 @@ declare function planComposition(log: CaptureLog, opts?: PlanOpts): TakeComposit
|
|
|
446
536
|
//# sourceMappingURL=plan.d.ts.map
|
|
447
537
|
/** One action, already mapped into video-px, handed to the director. */
|
|
448
538
|
type Beat = {
|
|
449
|
-
kind: "click" | "type" | "drag" | "scroll" | "hover" | "press";
|
|
539
|
+
kind: "click" | "type" | "drag" | "scroll" | "hover" | "press" | "dropFiles";
|
|
450
540
|
tMs: number;
|
|
451
541
|
durationMs: number;
|
|
452
542
|
/** element bbox (for a drag: the path's bbox), video-px — or undefined for a
|
|
@@ -488,8 +578,31 @@ declare function directCamera(beats: Beat[], video: {
|
|
|
488
578
|
}, cam: CameraConfig, rest: number, endMs: number): Framing[];
|
|
489
579
|
|
|
490
580
|
//#endregion
|
|
491
|
-
//#region src/
|
|
581
|
+
//#region src/validate.d.ts
|
|
492
582
|
//# sourceMappingURL=camera.d.ts.map
|
|
583
|
+
type CompositionIssue = {
|
|
584
|
+
severity: "error" | "warn";
|
|
585
|
+
/** dotted/indexed field path, e.g. "events[3].zoom.scale" */
|
|
586
|
+
path: string;
|
|
587
|
+
message: string;
|
|
588
|
+
/** a concrete suggested correction the agent can apply */
|
|
589
|
+
fix?: string;
|
|
590
|
+
};
|
|
591
|
+
type ValidateOpts = {
|
|
592
|
+
/** soft ceiling on zoom scale — above it the pixels visibly soften (warn).
|
|
593
|
+
* Default 2.5 (the planner caps auto-zoom at 1.5; manual edits get headroom). */
|
|
594
|
+
maxScale?: number;
|
|
595
|
+
/** the ground-truth capture log. When given, action `tMs` is checked against
|
|
596
|
+
* it (capture-lock). Omit to skip that check. */
|
|
597
|
+
captureLog?: CaptureLog;
|
|
598
|
+
};
|
|
599
|
+
declare function validateComposition(comp: TakeComposition, opts?: ValidateOpts): CompositionIssue[];
|
|
600
|
+
/** Format issues for a human/agent log. Errors first. */
|
|
601
|
+
declare function formatIssues(issues: CompositionIssue[]): string;
|
|
602
|
+
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region src/render.d.ts
|
|
605
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
493
606
|
type RenderTakeOpts = {
|
|
494
607
|
/** input capture video (webm or mp4) */
|
|
495
608
|
videoPath: string;
|
|
@@ -527,39 +640,22 @@ type RenderTakeOpts = {
|
|
|
527
640
|
* copies and A/B reels are disposable — they skip the sibling. */
|
|
528
641
|
writeCompositionSibling?: boolean;
|
|
529
642
|
};
|
|
530
|
-
|
|
643
|
+
type RenderTakeResult = {
|
|
531
644
|
mp4Path: string;
|
|
532
645
|
compositionPath: string;
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
type CompositionIssue = {
|
|
539
|
-
severity: "error" | "warn";
|
|
540
|
-
/** dotted/indexed field path, e.g. "events[3].zoom.scale" */
|
|
541
|
-
path: string;
|
|
542
|
-
message: string;
|
|
543
|
-
/** a concrete suggested correction the agent can apply */
|
|
544
|
-
fix?: string;
|
|
545
|
-
};
|
|
546
|
-
type ValidateOpts = {
|
|
547
|
-
/** soft ceiling on zoom scale — above it the pixels visibly soften (warn).
|
|
548
|
-
* Default 2.5 (the planner caps auto-zoom at 1.5; manual edits get headroom). */
|
|
549
|
-
maxScale?: number;
|
|
550
|
-
/** the ground-truth capture log. When given, action `tMs` is checked against
|
|
551
|
-
* it (capture-lock). Omit to skip that check. */
|
|
552
|
-
captureLog?: CaptureLog;
|
|
646
|
+
/** non-fatal validator findings for this composition. The render went ahead,
|
|
647
|
+
* but each one is something the author has to look at — a zoom that punches
|
|
648
|
+
* into empty space, a press whose zoom departs before the keypress, a tail
|
|
649
|
+
* that delivers a frozen screen. Empty when `skipValidate` is set. */
|
|
650
|
+
warnings: CompositionIssue[];
|
|
553
651
|
};
|
|
554
|
-
declare function
|
|
555
|
-
/** Format issues for a human/agent log. Errors first. */
|
|
556
|
-
declare function formatIssues(issues: CompositionIssue[]): string;
|
|
652
|
+
declare function renderTake(opts: RenderTakeOpts): Promise<RenderTakeResult>;
|
|
557
653
|
|
|
558
654
|
//#endregion
|
|
559
655
|
//#region src/math.d.ts
|
|
560
|
-
//# sourceMappingURL=
|
|
656
|
+
//# sourceMappingURL=render.d.ts.map
|
|
561
657
|
declare namespace math_d_exports {
|
|
562
|
-
export { CamRect, StageKeyframes, bboxFitScale, buildLegs, buildStageKeyframes, cameraRampSchedule, clampCenter, cubicBezier, cursorPos, gradientEndpoints, isDragging, keyvalN, keyvalR, restStageScale, smoother, springEase, stageCamera, stageEasing };
|
|
658
|
+
export { CamRect, StageKeyframes, bboxFitScale, buildLegs, buildStageKeyframes, cameraRampSchedule, carryWindow, clampCenter, cubicBezier, cursorPos, fmtBytes, ghostCardLines, gradientEndpoints, isDragging, keyvalN, keyvalR, restStageScale, smoother, springEase, stageCamera, stageEasing };
|
|
563
659
|
}
|
|
564
660
|
declare function smoother(t: number): number;
|
|
565
661
|
declare function cubicBezier(x1: number, y1: number, x2: number, y2: number): (x: number) => number;
|
|
@@ -617,10 +713,13 @@ declare function keyvalR(t: number, kfs: KF<CamRect>[], ease: (u: number) => num
|
|
|
617
713
|
* lands. `null` for a beat the camera holds through (no anchor). Derived from
|
|
618
714
|
* the same schedule the render uses, so a dwell-delayed pull-out (which
|
|
619
715
|
* departs after the stored inAtMs and can land after its own tMs) is
|
|
620
|
-
* reflected instead of approximated from inAtMs.
|
|
716
|
+
* reflected instead of approximated from inAtMs. `pullOut` says which pace
|
|
717
|
+
* knob the window belongs to (zoomOutMs vs zoomInMs) — the same test the
|
|
718
|
+
* schedule itself makes, so a reader can't drift from it. */
|
|
621
719
|
declare function cameraRampSchedule(comp: TakeComposition): ({
|
|
622
720
|
startMs: number;
|
|
623
721
|
landMs: number;
|
|
722
|
+
pullOut: boolean;
|
|
624
723
|
} | null)[];
|
|
625
724
|
declare function buildStageKeyframes(comp: TakeComposition): StageKeyframes;
|
|
626
725
|
/** The one camera evaluator — scene.tsx (render) and the editor preview both
|
|
@@ -642,12 +741,48 @@ type Leg = {
|
|
|
642
741
|
drag?: boolean;
|
|
643
742
|
path?: Pt[];
|
|
644
743
|
ease?: "linear" | "smooth";
|
|
744
|
+
/** Diagnostics only (never read by the render): which travel clamp, if
|
|
745
|
+
* either, set this leg's duration instead of the speed law. The clamps run
|
|
746
|
+
* AFTER the speed model, so a clamped leg is one where `travelWidthsPerSec`
|
|
747
|
+
* — and therefore the whole `pace` preset — has no say. validate.ts reports
|
|
748
|
+
* it when it stops being the exception and becomes the rule. */
|
|
749
|
+
clamped?: "min" | "max";
|
|
750
|
+
/** Diagnostics only: the duration (s) the clamped speed law asked for. When
|
|
751
|
+
* the delivered `t1 - t0` is shorter, the previous beat's action ran too
|
|
752
|
+
* late to leave room and the move is being rushed — a CAPTURE-side gap no
|
|
753
|
+
* cursor knob can fix. `evIdx` is the event this leg travels to. */
|
|
754
|
+
wantSec?: number;
|
|
755
|
+
evIdx?: number;
|
|
645
756
|
};
|
|
646
757
|
declare function buildLegs(comp: TakeComposition): Leg[];
|
|
647
758
|
declare function cursorPos(t: number, legs: Leg[], comp: TakeComposition): Pt;
|
|
648
759
|
/** True while a drag is mid-stroke (button held) — for the pressed cursor. */
|
|
649
760
|
declare function isDragging(t: number, legs: Leg[]): boolean;
|
|
761
|
+
/** A dropFiles carry's on-screen window [start, end] in SECONDS — when the
|
|
762
|
+
* ghost card rides the cursor. Same dragLagMs shift as the carry leg in
|
|
763
|
+
* buildLegs, so card and cursor cannot drift apart. Shared by the Revideo
|
|
764
|
+
* scene and the editor preview (the no-drift invariant). */
|
|
765
|
+
declare function carryWindow(e: {
|
|
766
|
+
tMs: number;
|
|
767
|
+
durationMs?: number;
|
|
768
|
+
}, comp: TakeComposition): {
|
|
769
|
+
t0: number;
|
|
770
|
+
t1: number;
|
|
771
|
+
};
|
|
772
|
+
/** "1.2 MB" / "412 KB" — the ghost card's size caption (scene + preview). */
|
|
773
|
+
declare function fmtBytes(n: number): string;
|
|
774
|
+
/** The ghost card's two text lines for a dropFiles beat: the (first) filename,
|
|
775
|
+
* and a meta caption ("3 files · 1.8 MB" / "1.2 MB"). Shared scene/preview.
|
|
776
|
+
* Long filenames middle-ellipse (extension kept) so the card can't outgrow
|
|
777
|
+
* the frame — neither render surface clamps its width. */
|
|
778
|
+
declare function ghostCardLines(files: {
|
|
779
|
+
name: string;
|
|
780
|
+
size?: number;
|
|
781
|
+
}[]): {
|
|
782
|
+
title: string;
|
|
783
|
+
meta: string;
|
|
784
|
+
};
|
|
650
785
|
|
|
651
786
|
//#endregion
|
|
652
|
-
export { BBox, Beat, CameraConfig, CaptureClick, CaptureDrag, CaptureEvent, CaptureEventBase, CaptureHover, CaptureLog, CapturePress, CaptureScroll, CaptureType, CompEvent, CompositionIssue, CursorConfig, DEFAULT_CAMERA, DEFAULT_CURSOR, DEFAULT_FRAMING, DEFAULT_MOTION_BLUR, FINISH, FinishName, Framing, FramingConfig, LOOKS, LookName, LookPreset, MOTION, MotionBlurConfig, MotionName, MotionPreset, PlanOpts, Pt, RenderTakeOpts, ReviewBadge, ReviewDecor, TakeComposition, ValidateOpts, ZOOM_LEVELS, ZoomDecision, ZoomIntent, ZoomLevelName, directCamera, finishName, formatIssues, lookName, math_d_exports as math, motionBlurActive, motionName, planComposition, renderTake, resolveFfmpeg, resolveFfprobe, validateComposition, zoomLevelName };
|
|
787
|
+
export { BBox, Beat, CLAMP_TOL_MS, CameraConfig, CaptureClick, CaptureDrag, CaptureDropFiles, CaptureEvent, CaptureEventBase, CaptureHover, CaptureLog, CapturePress, CaptureScroll, CaptureType, CompEvent, CompositionIssue, CursorConfig, DEFAULT_CAMERA, DEFAULT_CURSOR, DEFAULT_FRAMING, DEFAULT_MOTION_BLUR, FINISH, FinishName, Framing, FramingConfig, GhostCardConfig, LOOKS, LookName, LookPreset, MOTION, MotionBlurConfig, MotionName, MotionPreset, PlanOpts, Pt, RenderTakeOpts, RenderTakeResult, ReviewBadge, ReviewDecor, TakeComposition, ValidateOpts, ZOOM_LEVELS, ZoomDecision, ZoomIntent, ZoomLevelName, directCamera, finishName, formatIssues, lookName, math_d_exports as math, motionBlurActive, motionName, planComposition, renderTake, resolveFfmpeg, resolveFfprobe, validateComposition, zoomLevelName };
|
|
653
788
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/presets.ts","../src/ffmpeg.ts","../src/plan.ts","../src/camera.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/presets.ts","../src/ffmpeg.ts","../src/plan.ts","../src/camera.ts","../src/validate.ts","../src/render.ts","../src/math.ts"],"sourcesContent":null,"mappings":";;;KAMY,EAAA;;;AAAZ,CAAA;AACY,KAAA,IAAA,GAAI;;EAKJ,CAAA,EAAA,MAAA;;;AAIZ,CAAA;;AAKQ,KATI,UAAA,GASJ,MAAA,GAAA,OAAA,GAAA,QAAA;;;AAeU,KApBN,gBAAA,GAoBM;;EAUN,CAAA,EAAA,MAAA;;;EAIA,GAAA,CAAA,EA7BJ,IA6BI;;;EAUA;;;EAiBA;;;EAUA,IAAA,CAAA,EAzDH,UAyDe;;;;AASxB;;cA5Dc;;;;AAyEd;AAcA;EAAwB,cAAA,CAAA,EAAA,MAAA;CAAA;;AAGpB,KAhFQ,YAAA,GAAe,gBAgFvB,GAAA;EAAW,IACX,CAAA,EAAA,OAAA;CAAa;;;AAGG,KAhFR,WAAA,GAAc,gBAgFN,GAAA;EAER,IAAA,EAAA,MAAA;EAoCA;EAAY,IAAA,EAAA,MAAA;EAAA;EAMZ,UASF,EAAA,MAAA;AAAE,CAAA;;;AAOA,KAlIA,WAAA,GAAc,gBAqIb,GAAA;EAKD,IAAA,EAAA,MAAS;EAAA;EAAA,EAAA,EAKZ;IAEA,CAAA,EAAA,MAAA;IAED,CAAA,EAAA,MAAA;EAAY,CAAA;EASX;EAEE,IAOG,CAAA,EAAA;IAAe,CAAA,EAAA,MAAA;IAGjB,CAAA,EAAA,MAAA;EAWA,CAAA,EAAA;;;;;;;;AA4GZ,CAAA;;;AAUY,KAxRA,aAAA,GAAgB,gBAwRL,GAAA;;;;;;;;AASvB;KAvRY,YAAA,GAAe;;;;;;AAsS3B;AA8BA;AAWY,KAtUA,YAAA,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