alpha2 0.4.5 → 0.5.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/README.md +5 -4
- package/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/abort.d.ts +12 -0
- package/dist/abort.js +48 -0
- package/dist/active-clock.d.ts +35 -0
- package/dist/active-clock.js +99 -0
- package/dist/assets.d.ts +28 -22
- package/dist/assets.js +8 -12
- package/dist/audio-layout.d.ts +52 -74
- package/dist/audio-layout.js +114 -148
- package/dist/audio-timeline.d.ts +89 -117
- package/dist/audio-timeline.js +102 -118
- package/dist/audio-worker.d.ts +12 -21
- package/dist/audio-worker.js +8 -13
- package/dist/audio-worklet-processor.js +45 -58
- package/dist/audio-worklet.d.ts +45 -76
- package/dist/audio-worklet.js +44 -79
- package/dist/audio.d.ts +15 -23
- package/dist/audio.js +9 -13
- package/dist/builder.d.ts +45 -63
- package/dist/builder.js +49 -45
- package/dist/capabilities.d.ts +99 -16
- package/dist/capabilities.js +2 -2
- package/dist/captions.d.ts +45 -22
- package/dist/captions.js +60 -15
- package/dist/chroma-siting.d.ts +24 -41
- package/dist/chroma-siting.js +38 -71
- package/dist/containers.d.ts +41 -30
- package/dist/containers.js +59 -27
- package/dist/decoder-fallback.d.ts +13 -0
- package/dist/decoder-fallback.js +38 -0
- package/dist/decoder-order.d.ts +24 -39
- package/dist/decoder-order.js +28 -42
- package/dist/edit.d.ts +77 -154
- package/dist/edit.js +98 -180
- package/dist/effects.d.ts +109 -173
- package/dist/effects.js +7 -9
- package/dist/export-destination.d.ts +25 -41
- package/dist/export-destination.js +20 -32
- package/dist/export-failure.d.ts +34 -59
- package/dist/export-failure.js +54 -48
- package/dist/export-metrics.d.ts +116 -0
- package/dist/export-metrics.js +74 -0
- package/dist/export-retry.d.ts +46 -29
- package/dist/export-retry.js +86 -51
- package/dist/exporter.d.ts +67 -116
- package/dist/exporter.js +133 -133
- package/dist/extensions.d.ts +69 -115
- package/dist/extensions.js +55 -82
- package/dist/frame-intake.d.ts +92 -0
- package/dist/frame-intake.js +114 -0
- package/dist/frame-supply.d.ts +98 -157
- package/dist/frame-supply.js +191 -162
- package/dist/generated/project-schema.d.ts +742 -464
- package/dist/generated/project-schema.js +63 -2
- package/dist/generated/project-shape.js +663 -118
- package/dist/geometry.d.ts +28 -34
- package/dist/geometry.js +18 -23
- package/dist/gpu-recovery.d.ts +92 -0
- package/dist/gpu-recovery.js +135 -0
- package/dist/hdr-frames.d.ts +88 -62
- package/dist/hdr-frames.js +123 -46
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/json-text.d.ts +13 -23
- package/dist/json-text.js +10 -20
- package/dist/layout-values.d.ts +14 -22
- package/dist/layout-values.js +18 -21
- package/dist/layout.d.ts +55 -55
- package/dist/layout.js +37 -36
- package/dist/loudness.d.ts +27 -32
- package/dist/loudness.js +19 -23
- package/dist/media.d.ts +85 -237
- package/dist/media.js +133 -287
- package/dist/mediabunny.d.ts +173 -237
- package/dist/mediabunny.js +943 -518
- package/dist/physical-frames.d.ts +5 -17
- package/dist/physical-frames.js +4 -11
- package/dist/player.d.ts +56 -47
- package/dist/player.js +155 -40
- package/dist/presented-frames.d.ts +2 -7
- package/dist/presented-frames.js +3 -8
- package/dist/project.d.ts +83 -110
- package/dist/project.js +421 -447
- package/dist/rate-control.d.ts +9 -23
- package/dist/rate-control.js +7 -18
- package/dist/renderer-choice.d.ts +41 -0
- package/dist/renderer-choice.js +82 -0
- package/dist/repacked-bytes.d.ts +0 -2
- package/dist/repacked-bytes.js +2 -5
- package/dist/robustness.d.ts +25 -37
- package/dist/robustness.js +71 -54
- package/dist/sha256.d.ts +5 -13
- package/dist/sha256.js +9 -24
- package/dist/text.d.ts +106 -63
- package/dist/text.js +44 -69
- package/dist/video-frames.d.ts +7 -25
- package/dist/video-frames.js +12 -29
- package/dist/waveform.d.ts +5 -11
- package/dist/waveform.js +4 -9
- package/dist/worker-error.d.ts +5 -20
- package/dist/worker-error.js +8 -25
- package/dist/worker.d.ts +82 -92
- package/dist/worker.js +239 -144
- package/package.json +26 -2
- package/wasm/alpha2_audio_worklet.wasm +0 -0
- package/wasm/alpha2_extensions.d.ts +26 -47
- package/wasm/alpha2_extensions.js +26 -47
- package/wasm/alpha2_extensions_bg.wasm +0 -0
- package/wasm/alpha2_wasm.d.ts +487 -543
- package/wasm/alpha2_wasm.js +669 -572
- package/wasm/alpha2_wasm_bg.wasm +0 -0
- package/wasm/alpha2_wasm_bg.wasm.d.ts +20 -8
- package/wasm/rust-crate-licenses.md +2 -2
- package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline1.js +1 -0
- package/wasm/snippets/alpha2-wasm-1313375d424845c0/inline2.js +82 -0
- package/wasm/snippets/alpha2-wasm-57b04ecc6db57e1f/inline2.js +0 -52
- /package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline0.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-57b04ecc6db57e1f → alpha2-wasm-1313375d424845c0}/inline3.js +0 -0
package/dist/project.d.ts
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The alpha2 project document (schema version 1).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Field names are the wire names, so a {@link Project} serializes directly with `JSON.stringify`.
|
|
5
|
+
* Types and limits are generated from `schema/project.v1.schema.json`; {@link validateProject}
|
|
6
|
+
* mirrors the model's invariants beyond the schema.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* (`schema/project.v1.schema.json`) into `generated/project-schema.ts`; this
|
|
10
|
-
* module adds conversion helpers and {@link validateProject}. The schema fixes
|
|
11
|
-
* the shape of a document, and `validateProject` mirrors the invariants the
|
|
12
|
-
* model checks beyond it, pinned by the shared validation corpus.
|
|
13
|
-
*
|
|
14
|
-
* Timeline values are integer ticks at {@link TICKS_PER_SECOND}. Ranges are
|
|
15
|
-
* half-open: `[start, end)`.
|
|
8
|
+
* Timeline values are integer ticks at {@link TICKS_PER_SECOND}. Ranges are half-open.
|
|
16
9
|
*/
|
|
17
|
-
import type { Animated, Easing, FrameRate, Insets, Interpolation, LayoutOffset, LayoutSize, MediaTime, Paint, Project, Rgba } from "./generated/project-schema.js";
|
|
10
|
+
import type { Animated, Easing, FrameRate, Insets, Interpolation, LayoutOffset, LayoutSize, MediaTime, Paint, Project, Rgba, TextContent, VisualProperties } from "./generated/project-schema.js";
|
|
18
11
|
import { MAX_JSON_DEPTH } from "./json-text.js";
|
|
19
12
|
export * from "./generated/project-schema.js";
|
|
20
13
|
/** The deepest nesting of arrays and objects the engine reads in a project (serde_json's limit). */
|
|
@@ -26,19 +19,13 @@ export type CubicBezier = Omit<Extract<Easing, {
|
|
|
26
19
|
readonly type: "cubic_bezier";
|
|
27
20
|
}>, "type">;
|
|
28
21
|
/**
|
|
29
|
-
* A CSS `cubic-bezier
|
|
30
|
-
*
|
|
31
|
-
* lie in `0..=1`; `y1` and `y2` may overshoot.
|
|
22
|
+
* A CSS `cubic-bezier` curve, usable as an {@link Easing} or {@link Interpolation}. `x1` and `x2`
|
|
23
|
+
* must lie in `0..=1`; `y1` and `y2` may overshoot.
|
|
32
24
|
*/
|
|
33
25
|
export declare function cubicBezier(x1: number, y1: number, x2: number, y2: number): Extract<Easing, {
|
|
34
26
|
readonly type: "cubic_bezier";
|
|
35
27
|
}>;
|
|
36
|
-
/**
|
|
37
|
-
* The CSS Easing Functions Level 1 named curves.
|
|
38
|
-
*
|
|
39
|
-
* The engine knows only `linear` and `cubic_bezier`; these are the standard values of the latter,
|
|
40
|
-
* so a curve an editor calls `ease-in-out` means what the web and motion tools mean by it.
|
|
41
|
-
*/
|
|
28
|
+
/** The CSS Easing Functions Level 1 named curves, as `cubic_bezier` values. */
|
|
42
29
|
export declare const EASING_PRESETS: {
|
|
43
30
|
readonly linear: {
|
|
44
31
|
readonly type: "linear";
|
|
@@ -74,121 +61,86 @@ export declare const EASING_PRESETS: {
|
|
|
74
61
|
};
|
|
75
62
|
/** Keeps a keyframe's value until the next keyframe. */
|
|
76
63
|
export declare const HOLD: Interpolation;
|
|
77
|
-
/** Creates a constant animated value. */
|
|
78
64
|
export declare function constant<T>(value: T): Animated<T>;
|
|
79
65
|
/**
|
|
80
|
-
* The tick nearest `seconds`,
|
|
81
|
-
*
|
|
82
|
-
* a time back its own tick: `secondsToTicks(ticksToSeconds(t)) === t`.
|
|
66
|
+
* The tick nearest `seconds`, ties away from zero, as the engine reads seconds. Rounding guarantees
|
|
67
|
+
* `secondsToTicks(ticksToSeconds(t)) === t`.
|
|
83
68
|
*/
|
|
84
69
|
export declare function secondsToTicks(seconds: number): Ticks;
|
|
85
|
-
/** Converts timeline ticks to seconds. */
|
|
86
70
|
export declare function ticksToSeconds(ticks: Ticks): number;
|
|
87
|
-
/**
|
|
88
|
-
* The tick at or before project-rate sample `samples`, negative samples included, as the engine's
|
|
89
|
-
* `sample_ticks_floor`.
|
|
90
|
-
*/
|
|
71
|
+
/** The tick at or before sample `samples`, matching the engine's `sample_ticks_floor`. */
|
|
91
72
|
export declare function samplesToTicks(samples: number, sampleRate: number): Ticks;
|
|
92
73
|
/** Converts timeline ticks to the sample index containing them. */
|
|
93
74
|
export declare function ticksToSamples(ticks: Ticks, sampleRate: number): number;
|
|
94
75
|
/**
|
|
95
|
-
* Structural problems found without opening any media
|
|
96
|
-
*
|
|
97
|
-
* This mirrors the checks the Rust model makes so an editor can reject a document before a round
|
|
98
|
-
* trip through wasm. The engine re-validates on load; this exists to give the UI a message, not to
|
|
99
|
-
* replace that check.
|
|
100
|
-
*
|
|
101
|
-
* It checks in the engine's two layers. First the document's shape against the generated project
|
|
102
|
-
* schema: JSON types, required fields, known enum and tag values, and no unknown fields. A document
|
|
103
|
-
* of the wrong shape reports only those problems, as the engine's parser stops there. Then the
|
|
104
|
-
* model's invariants: value ranges, limits, references, ordering, and transitions. A document over
|
|
105
|
-
* a count limit (tracks, clips, sources, compositions and their nodes, transitions, caption cues)
|
|
106
|
-
* reports only its counts, as the engine refuses it before reading what they count; a video track
|
|
107
|
-
* reports its first overlap no transition covers. Past the counts, the work is linear in the
|
|
108
|
-
* document.
|
|
76
|
+
* Structural problems found without opening any media, mirroring the engine's checks so an editor
|
|
77
|
+
* can reject a document before loading it. The engine still re-validates on load.
|
|
109
78
|
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
79
|
+
* Shape problems (types, required fields, enum values, unknown fields) are reported alone, as the
|
|
80
|
+
* engine's parser stops there. A document over a count limit reports only its counts. Otherwise the
|
|
81
|
+
* model's invariants are checked in time linear in the document.
|
|
113
82
|
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
83
|
+
* Never throws; returns an empty array for a valid document. JSON spelling (repeated keys, `1920.0`
|
|
84
|
+
* for an integer) is invisible to an object; use {@link validateProjectJson} for text.
|
|
116
85
|
*/
|
|
117
86
|
export declare function validateProject(project: Project): string[];
|
|
118
87
|
/**
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* engine checks in the text: `loadProject` rejects anything over
|
|
124
|
-
* {@link MAX_PROJECT_JSON_BYTES} before it parses, and its parser refuses a
|
|
125
|
-
* struct field given twice, an integer field spelled with a fraction or
|
|
126
|
-
* exponent (`1920.0`, `1.92e3`, `-0`), and nesting deeper than 127 levels.
|
|
127
|
-
* Hosts that hand the engine a string should validate the string, or a
|
|
128
|
-
* document this package accepted can still be refused by the engine.
|
|
129
|
-
*
|
|
130
|
-
* Like {@link validateProject}, this never throws; malformed JSON is reported.
|
|
88
|
+
* Like {@link validateProject}, but also reports what only the text shows: size over
|
|
89
|
+
* {@link MAX_PROJECT_JSON_BYTES}, repeated fields, integers spelled with a fraction or exponent
|
|
90
|
+
* (`1920.0`, `1.92e3`, `-0`), and nesting deeper than 127 levels. Hosts that pass the engine a
|
|
91
|
+
* string should validate the string. Never throws; malformed JSON is reported.
|
|
131
92
|
*/
|
|
132
93
|
export declare function validateProjectJson(json: string): string[];
|
|
133
94
|
/**
|
|
134
|
-
* Whether `rate`
|
|
135
|
-
*
|
|
136
|
-
* {@link TICKS_PER_SECOND} frames per second).
|
|
95
|
+
* Whether `rate` has positive 32-bit `num` and `den` and at most {@link TICKS_PER_SECOND} frames
|
|
96
|
+
* per second.
|
|
137
97
|
*/
|
|
138
98
|
export declare function validFrameRate(rate: unknown): rate is FrameRate;
|
|
139
|
-
/** A color as the engine writes it: the
|
|
99
|
+
/** A color as the engine writes it: the object form, never hex. */
|
|
140
100
|
export type RgbaObject = Exclude<Rgba, string>;
|
|
141
101
|
/** A paint as the engine writes it: tagged, its colors objects. */
|
|
142
102
|
export type CanonicalPaint = CanonicalPart<Exclude<Paint, Rgba>>;
|
|
143
|
-
/** Padding or margin
|
|
103
|
+
/** Padding or margin as the engine writes it, with all four sides. */
|
|
144
104
|
export interface CanonicalInsets {
|
|
145
105
|
readonly top: LayoutSize;
|
|
146
106
|
readonly right: LayoutSize;
|
|
147
107
|
readonly bottom: LayoutSize;
|
|
148
108
|
readonly left: LayoutSize;
|
|
149
109
|
}
|
|
150
|
-
/**
|
|
110
|
+
/** A layout node's `translate` as the engine writes it. */
|
|
151
111
|
export type CanonicalOffset = Exclude<LayoutOffset, string>;
|
|
152
112
|
type Same<A, B> = [A] extends [B] ? ([B] extends [A] ? true : false) : false;
|
|
153
113
|
/**
|
|
154
|
-
* `T
|
|
155
|
-
*
|
|
156
|
-
* {@link CanonicalInsets}, each offset a {@link CanonicalOffset}. What {@link canonicalProject}
|
|
157
|
-
* returns for a `Project`. Lengths and grid values keep the CSS spelling they were written in.
|
|
114
|
+
* `T` in the forms the engine writes, as {@link canonicalProject} returns them. Lengths and grid
|
|
115
|
+
* values keep their CSS spelling.
|
|
158
116
|
*/
|
|
159
117
|
export type Canonical<T> = CanonicalValue<Exclude<T, null | undefined>> | Extract<T, null | undefined>;
|
|
160
|
-
type CanonicalValue<T> = [T] extends [never] ? never : Same<T, Rgba> extends true ? RgbaObject : Same<T, Paint> extends true ? CanonicalPaint : Same<T, Insets> extends true ? CanonicalInsets : Same<T, LayoutOffset> extends true ? CanonicalOffset : CanonicalPart<T>;
|
|
118
|
+
type CanonicalValue<T> = [T] extends [never] ? never : Same<T, Rgba> extends true ? RgbaObject : Same<T, Paint> extends true ? CanonicalPaint : Same<T, Insets> extends true ? CanonicalInsets : Same<T, LayoutOffset> extends true ? CanonicalOffset : Same<T, VisualProperties> extends true ? CanonicalPart<Required<VisualProperties>> : CanonicalPart<T>;
|
|
161
119
|
type CanonicalPart<T> = T extends string | number | boolean | bigint ? T : {
|
|
162
120
|
readonly [K in keyof T]: Canonical<T[K]>;
|
|
163
121
|
};
|
|
164
|
-
/** A project document in the forms the engine writes ({@link Canonical}). */
|
|
165
122
|
export type CanonicalProject = Canonical<Project>;
|
|
123
|
+
/** The whole text of a caption cue or text generator, with runs joined. */
|
|
124
|
+
export declare function textOf(content: TextContent | Canonical<TextContent>): string;
|
|
166
125
|
/**
|
|
167
|
-
*
|
|
168
|
-
* component the 32-bit value the engine reads, spelled shortest.
|
|
126
|
+
* Converts a CSS hex color to the object form, with 32-bit components spelled shortest.
|
|
169
127
|
*
|
|
170
128
|
* @throws A `TypeError` for a string that is not CSS hex.
|
|
171
129
|
*/
|
|
172
130
|
export declare function canonicalRgba(color: Rgba): RgbaObject;
|
|
173
131
|
/**
|
|
174
|
-
*
|
|
175
|
-
* every color in it the components object.
|
|
132
|
+
* Converts a paint to the tagged form the engine writes; a bare color becomes a solid paint.
|
|
176
133
|
*
|
|
177
134
|
* @throws A `TypeError` for a color string that is not CSS hex.
|
|
178
135
|
*/
|
|
179
136
|
export declare function canonicalPaint(paint: Paint): CanonicalPaint;
|
|
180
137
|
/**
|
|
181
|
-
* `project` in the forms the engine writes
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* sides shorthand, a `translate` string) are gone, so code that reads the document can take the
|
|
185
|
-
* one form. A value it cannot read (a string that is not hex, say) stays as it is, for
|
|
186
|
-
* {@link validateProject} to report: give it a document that validates to get a document in
|
|
187
|
-
* canonical form.
|
|
138
|
+
* Returns `project` in the forms the engine writes ({@link Canonical}): object colors, tagged
|
|
139
|
+
* paints, four-side insets and `{ x, y }` offsets. Unreadable values are left for
|
|
140
|
+
* {@link validateProject} to report, so pass a valid document to get a fully canonical one.
|
|
188
141
|
*
|
|
189
|
-
* The input is not changed.
|
|
190
|
-
*
|
|
191
|
-
* again: run on a changed copy of a document read before, it costs the parts that changed.
|
|
142
|
+
* The input is not changed. Already-canonical parts are returned as the same objects, and frozen
|
|
143
|
+
* parts seen before are not walked again.
|
|
192
144
|
*/
|
|
193
145
|
export declare function canonicalProject(project: Project): CanonicalProject;
|
|
194
146
|
/** What a {@link LintIssue} is about. */
|
|
@@ -204,6 +156,29 @@ export type LintOwner = {
|
|
|
204
156
|
readonly type: "cue";
|
|
205
157
|
readonly track: string;
|
|
206
158
|
readonly index: number;
|
|
159
|
+
}
|
|
160
|
+
/** Keyed in composition time. */
|
|
161
|
+
| {
|
|
162
|
+
readonly type: "composition_node";
|
|
163
|
+
readonly composition: string;
|
|
164
|
+
readonly node: string;
|
|
165
|
+
}
|
|
166
|
+
/** Keyed in the generated picture's time. */
|
|
167
|
+
| {
|
|
168
|
+
readonly type: "source";
|
|
169
|
+
readonly source: string;
|
|
170
|
+
}
|
|
171
|
+
/** Animators are keyed in each cue's own time. */
|
|
172
|
+
| {
|
|
173
|
+
readonly type: "caption_track";
|
|
174
|
+
readonly track: string;
|
|
175
|
+
}
|
|
176
|
+
/** Times are from the cue's start. */
|
|
177
|
+
| {
|
|
178
|
+
readonly type: "cue_run";
|
|
179
|
+
readonly track: string;
|
|
180
|
+
readonly cue: number;
|
|
181
|
+
readonly run: number;
|
|
207
182
|
};
|
|
208
183
|
/** The shapes generator a shape {@link LintIssue} is about. */
|
|
209
184
|
export type ShapeLintOwner = {
|
|
@@ -214,16 +189,13 @@ export type ShapeLintOwner = {
|
|
|
214
189
|
readonly composition: string;
|
|
215
190
|
readonly node: string;
|
|
216
191
|
};
|
|
217
|
-
/**
|
|
218
|
-
* Something in a valid project that is probably not meant. Every check is conservative: a reported
|
|
219
|
-
* issue is certain.
|
|
220
|
-
*/
|
|
192
|
+
/** Something in a valid project that is probably a mistake. Checks are conservative. */
|
|
221
193
|
export type LintIssue =
|
|
222
194
|
/** A keyframe no time its owner is shown at depends on. */
|
|
223
195
|
{
|
|
224
196
|
readonly kind: "unreached_keyframe";
|
|
225
197
|
readonly owner: LintOwner;
|
|
226
|
-
/** Such as `visual.opacity` or `
|
|
198
|
+
/** Such as `visual.opacity`, `effect.params.radius` or `items[0].transform.opacity`. */
|
|
227
199
|
readonly property: string;
|
|
228
200
|
readonly time: number;
|
|
229
201
|
}
|
|
@@ -233,10 +205,7 @@ export type LintIssue =
|
|
|
233
205
|
readonly clip: string;
|
|
234
206
|
readonly by: string;
|
|
235
207
|
}
|
|
236
|
-
/**
|
|
237
|
-
* A transition no frame shows between its two clips: shorter than a frame, or a frame long and
|
|
238
|
-
* starting between frames.
|
|
239
|
-
*/
|
|
208
|
+
/** A transition no frame shows: shorter than a frame, or one frame long and off the grid. */
|
|
240
209
|
| {
|
|
241
210
|
readonly kind: "short_transition";
|
|
242
211
|
readonly track: string;
|
|
@@ -250,10 +219,7 @@ export type LintIssue =
|
|
|
250
219
|
readonly edge: "start" | "end";
|
|
251
220
|
readonly time: number;
|
|
252
221
|
}
|
|
253
|
-
/**
|
|
254
|
-
* A source no render reads: no clip shows it, and no `media` node of a composition a clip shows
|
|
255
|
-
* reads it.
|
|
256
|
-
*/
|
|
222
|
+
/** A source no clip or reachable `media` node reads. */
|
|
257
223
|
| {
|
|
258
224
|
readonly kind: "unused_source";
|
|
259
225
|
readonly source: string;
|
|
@@ -276,21 +242,28 @@ export type LintIssue =
|
|
|
276
242
|
readonly owner: ShapeLintOwner;
|
|
277
243
|
/** Such as `items[1].items[0]`. */
|
|
278
244
|
readonly at: string;
|
|
245
|
+
}
|
|
246
|
+
/** A caption style no cue names and no cue's speaker matches. */
|
|
247
|
+
| {
|
|
248
|
+
readonly kind: "unused_caption_style";
|
|
249
|
+
readonly track: string;
|
|
250
|
+
readonly style: string;
|
|
251
|
+
}
|
|
252
|
+
/** A text animator that sets no property, which changes nothing. */
|
|
253
|
+
| {
|
|
254
|
+
readonly kind: "empty_text_animator";
|
|
255
|
+
readonly owner: LintOwner;
|
|
256
|
+
/** Such as `style.animators[0]`, or `root.children[1].text_animators[0]` in a layout. */
|
|
257
|
+
readonly at: string;
|
|
279
258
|
};
|
|
280
|
-
/** The part of `alpha2/wasm` {@link lintProject} uses. */
|
|
281
259
|
export interface LintBinding {
|
|
282
260
|
lintProject(projectJson: string): string;
|
|
283
261
|
}
|
|
284
262
|
/**
|
|
285
|
-
* A valid project's non-fatal diagnostics
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
* clips, transitions, and cues.
|
|
289
|
-
*
|
|
290
|
-
* Diagnostics never block a load or an export; they flag what is probably a
|
|
291
|
-
* mistake in a project the engine accepts.
|
|
263
|
+
* A valid project's non-fatal diagnostics from the engine's `Project::lint`, in a fixed order:
|
|
264
|
+
* unused sources, shapes generators, HDR sources, each track's clips, transitions and cues,
|
|
265
|
+
* composition nodes, then generated sources' trees. Diagnostics never block a load or export.
|
|
292
266
|
*
|
|
293
|
-
* @throws
|
|
294
|
-
* `loadProject`.
|
|
267
|
+
* @throws The binding's error when the project does not load, as for `loadProject`.
|
|
295
268
|
*/
|
|
296
269
|
export declare function lintProject(binding: LintBinding, project: Project): LintIssue[];
|