@kitsra/kavio-builder 0.1.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 +94 -0
- package/dist/index.d.ts +863 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1670 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,863 @@
|
|
|
1
|
+
import { type CompositionTiming, type KavioDocument, type ValidationResult } from "@kitsra/kavio-schema";
|
|
2
|
+
export type { KavioError, ValidationResult } from "@kitsra/kavio-schema";
|
|
3
|
+
export type JsonPrimitive = string | number | boolean | null;
|
|
4
|
+
export type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
5
|
+
[key: string]: JsonValue;
|
|
6
|
+
};
|
|
7
|
+
export type AuthorValue = JsonValue | PropReference | AssetReference | TimingDefinition | TransitionDefinition | AuthorValue[] | {
|
|
8
|
+
[key: string]: AuthorValue | undefined;
|
|
9
|
+
} | undefined;
|
|
10
|
+
export type AssetType = "video" | "image" | "audio" | "font";
|
|
11
|
+
export type LayerType = "video" | "image" | "text" | "shape" | "caption";
|
|
12
|
+
export type Fit = "cover" | "contain" | "fill" | "none";
|
|
13
|
+
export type Anchor = "top-left" | "top" | "top-right" | "left" | "center" | "right" | "bottom-left" | "bottom" | "bottom-right" | {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
export type EasingName = "linear" | "inQuad" | "outQuad" | "inOutQuad" | "inCubic" | "outCubic" | "inOutCubic" | "inCirc" | "outCirc" | "inOutCirc" | "inExpo" | "outExpo" | "inOutExpo" | "anticipate" | "back" | "inBack" | "outBack" | "inOutBack" | "inElastic" | "outElastic" | "inOutElastic" | "inBounce" | "outBounce" | "inOutBounce" | `cubic-bezier(${number},${number},${number},${number})`;
|
|
18
|
+
export type AnimatableProperty = "opacity" | "x" | "y" | "scale" | "rotation";
|
|
19
|
+
export type TransitionType = "fade" | "slide" | "wipe" | "crossfade" | "zoom" | "push" | "spin" | "rotate" | "flip" | "blurDissolve" | "colorDissolve" | "dip" | "iris" | "stretch" | "squeeze" | "clockWipe" | "barWipe" | "gridWipe" | "tileReveal" | "radialBlur" | "zoomBlur" | "bookFlip" | "pageCurlLite" | "skewSlide" | "expandMask" | "letterboxReveal" | "filmFlash" | "cameraWhip";
|
|
20
|
+
export type TransitionDirection = "up" | "down" | "left" | "right";
|
|
21
|
+
export type TransitionAxis = "x" | "y";
|
|
22
|
+
export type TransitionShape = "circle" | "diamond";
|
|
23
|
+
export type CameraMotionDirection = "up" | "down" | "left" | "right" | "center";
|
|
24
|
+
export type TextMotionType = "typeOn" | "cascade" | "scramble" | "highlightSweep" | "trackingIn";
|
|
25
|
+
export type TextMotionSplitMode = "none" | "word" | "char" | "line";
|
|
26
|
+
export type TextMotionOrigin = "start" | "center" | "end";
|
|
27
|
+
export type CameraSafeArea = number | {
|
|
28
|
+
top?: number;
|
|
29
|
+
right?: number;
|
|
30
|
+
bottom?: number;
|
|
31
|
+
left?: number;
|
|
32
|
+
};
|
|
33
|
+
export type PropType = "string" | "number" | "boolean" | "color" | "url" | "enum" | "asset";
|
|
34
|
+
export type ExportFormat = "mp4" | "webm" | "mov" | "gif" | "png-sequence";
|
|
35
|
+
export type VideoCropMode = "center" | "subject";
|
|
36
|
+
export interface PropMetadata {
|
|
37
|
+
type: PropType;
|
|
38
|
+
required?: boolean;
|
|
39
|
+
default?: JsonValue;
|
|
40
|
+
maxLength?: number;
|
|
41
|
+
options?: JsonPrimitive[];
|
|
42
|
+
description?: string;
|
|
43
|
+
[key: string]: AuthorValue;
|
|
44
|
+
}
|
|
45
|
+
export interface AssetOptions {
|
|
46
|
+
trimStartFrames?: number;
|
|
47
|
+
trimEndFrames?: number | null;
|
|
48
|
+
loop?: boolean;
|
|
49
|
+
checksum?: string;
|
|
50
|
+
family?: string;
|
|
51
|
+
weight?: number;
|
|
52
|
+
style?: string;
|
|
53
|
+
[key: string]: AuthorValue;
|
|
54
|
+
}
|
|
55
|
+
export interface CommonLayerOptions {
|
|
56
|
+
startFrame: number;
|
|
57
|
+
durationFrames: number;
|
|
58
|
+
x?: AuthorValue;
|
|
59
|
+
y?: AuthorValue;
|
|
60
|
+
width?: AuthorValue;
|
|
61
|
+
height?: AuthorValue;
|
|
62
|
+
position?: AuthorValue;
|
|
63
|
+
anchor?: AuthorValue;
|
|
64
|
+
size?: AuthorValue;
|
|
65
|
+
opacity?: AuthorValue;
|
|
66
|
+
rotation?: AuthorValue;
|
|
67
|
+
scale?: AuthorValue;
|
|
68
|
+
z?: AuthorValue;
|
|
69
|
+
track?: AuthorValue;
|
|
70
|
+
keyframes?: AuthorValue;
|
|
71
|
+
effects?: AuthorValue;
|
|
72
|
+
transitionIn?: TransitionDefinition | AuthorValue;
|
|
73
|
+
transitionOut?: TransitionDefinition | AuthorValue;
|
|
74
|
+
[key: string]: AuthorValue;
|
|
75
|
+
}
|
|
76
|
+
export interface VideoLayerOptions extends CommonLayerOptions {
|
|
77
|
+
asset: AssetReference | string;
|
|
78
|
+
fit?: Fit;
|
|
79
|
+
crop?: AuthorValue;
|
|
80
|
+
muted?: boolean;
|
|
81
|
+
volume?: number;
|
|
82
|
+
playbackRate?: number;
|
|
83
|
+
}
|
|
84
|
+
export interface ImageLayerOptions extends CommonLayerOptions {
|
|
85
|
+
asset: AssetReference | string;
|
|
86
|
+
fit?: Fit;
|
|
87
|
+
}
|
|
88
|
+
export interface TextLayerOptions extends CommonLayerOptions {
|
|
89
|
+
text: AuthorValue;
|
|
90
|
+
style?: AuthorValue;
|
|
91
|
+
textMotion?: AuthorValue;
|
|
92
|
+
}
|
|
93
|
+
export interface ShapeLayerOptions extends CommonLayerOptions {
|
|
94
|
+
shape?: "rect";
|
|
95
|
+
fill?: AuthorValue;
|
|
96
|
+
stroke?: AuthorValue;
|
|
97
|
+
radius?: AuthorValue;
|
|
98
|
+
}
|
|
99
|
+
export interface CaptionLayerOptions extends CommonLayerOptions {
|
|
100
|
+
source: AuthorValue;
|
|
101
|
+
style?: AuthorValue;
|
|
102
|
+
safeArea?: AuthorValue;
|
|
103
|
+
}
|
|
104
|
+
export interface AudioOptions {
|
|
105
|
+
id?: string;
|
|
106
|
+
asset: AssetReference | string;
|
|
107
|
+
role?: "music" | "voiceover" | "sfx" | "source";
|
|
108
|
+
startFrame?: number;
|
|
109
|
+
durationFrames?: number;
|
|
110
|
+
volume?: number;
|
|
111
|
+
fadeInFrames?: number;
|
|
112
|
+
fadeOutFrames?: number;
|
|
113
|
+
[key: string]: AuthorValue;
|
|
114
|
+
}
|
|
115
|
+
export interface ExportOptions {
|
|
116
|
+
name?: string;
|
|
117
|
+
format?: ExportFormat;
|
|
118
|
+
codec?: string;
|
|
119
|
+
width?: number;
|
|
120
|
+
height?: number;
|
|
121
|
+
fps?: number;
|
|
122
|
+
bitrate?: string;
|
|
123
|
+
crf?: number;
|
|
124
|
+
audioCodec?: string;
|
|
125
|
+
audioBitrate?: string;
|
|
126
|
+
loudnessLufs?: number;
|
|
127
|
+
background?: string | null;
|
|
128
|
+
layerOverrides?: AuthorValue;
|
|
129
|
+
[key: string]: AuthorValue;
|
|
130
|
+
}
|
|
131
|
+
export interface CustomExportOptions extends ExportOptions {
|
|
132
|
+
name: string;
|
|
133
|
+
width: number;
|
|
134
|
+
height: number;
|
|
135
|
+
}
|
|
136
|
+
export interface SocialExportOptions {
|
|
137
|
+
instagramReels?: ExportOptions | false;
|
|
138
|
+
tiktok?: ExportOptions | false;
|
|
139
|
+
youtubeShorts?: ExportOptions | false;
|
|
140
|
+
facebookReels?: ExportOptions | false;
|
|
141
|
+
reels?: ExportOptions | false;
|
|
142
|
+
square?: ExportOptions | false;
|
|
143
|
+
portrait?: ExportOptions | false;
|
|
144
|
+
landscape?: ExportOptions | false;
|
|
145
|
+
}
|
|
146
|
+
export interface SocialMediaPresetDefinition {
|
|
147
|
+
id: string;
|
|
148
|
+
label: string;
|
|
149
|
+
platform: string;
|
|
150
|
+
aspectRatio: string;
|
|
151
|
+
width: number;
|
|
152
|
+
height: number;
|
|
153
|
+
fps?: number;
|
|
154
|
+
defaultName: string;
|
|
155
|
+
preset: ExportOptions;
|
|
156
|
+
}
|
|
157
|
+
export interface SubjectCropKeyframe {
|
|
158
|
+
frame: number;
|
|
159
|
+
x: number;
|
|
160
|
+
y: number;
|
|
161
|
+
easing?: EasingName;
|
|
162
|
+
}
|
|
163
|
+
export interface SubjectCropOptions {
|
|
164
|
+
x?: number;
|
|
165
|
+
y?: number;
|
|
166
|
+
keyframes?: readonly SubjectCropKeyframe[];
|
|
167
|
+
smoothingFrames?: number;
|
|
168
|
+
source?: string;
|
|
169
|
+
}
|
|
170
|
+
export interface Keyframe {
|
|
171
|
+
frame: number;
|
|
172
|
+
value: AuthorValue;
|
|
173
|
+
easing?: EasingName;
|
|
174
|
+
timing?: TimingDefinition;
|
|
175
|
+
}
|
|
176
|
+
export interface TransitionDefinition {
|
|
177
|
+
type: TransitionType;
|
|
178
|
+
durationFrames?: number | undefined;
|
|
179
|
+
direction?: TransitionDirection | undefined;
|
|
180
|
+
axis?: TransitionAxis | undefined;
|
|
181
|
+
shape?: TransitionShape | undefined;
|
|
182
|
+
color?: string | undefined;
|
|
183
|
+
amount?: number | undefined;
|
|
184
|
+
intensity?: number | undefined;
|
|
185
|
+
rows?: number | undefined;
|
|
186
|
+
columns?: number | undefined;
|
|
187
|
+
easing?: EasingName | undefined;
|
|
188
|
+
timing?: TimingDefinition | undefined;
|
|
189
|
+
[key: string]: AuthorValue;
|
|
190
|
+
}
|
|
191
|
+
export type TransitionOptions = Omit<TransitionDefinition, "type">;
|
|
192
|
+
export interface TweenTimingDefinition {
|
|
193
|
+
type: "tween";
|
|
194
|
+
durationFrames?: number;
|
|
195
|
+
easing?: EasingName;
|
|
196
|
+
}
|
|
197
|
+
export interface SpringTimingDefinition {
|
|
198
|
+
type: "spring";
|
|
199
|
+
durationFrames?: number;
|
|
200
|
+
stiffness?: number;
|
|
201
|
+
damping?: number;
|
|
202
|
+
mass?: number;
|
|
203
|
+
restSpeed?: number;
|
|
204
|
+
bounce?: number;
|
|
205
|
+
}
|
|
206
|
+
export interface StepsTimingDefinition {
|
|
207
|
+
type: "steps";
|
|
208
|
+
durationFrames?: number;
|
|
209
|
+
steps: number;
|
|
210
|
+
direction?: "start" | "end";
|
|
211
|
+
}
|
|
212
|
+
export interface SequenceTimingSegment {
|
|
213
|
+
durationFrames: number;
|
|
214
|
+
timing?: TimingDefinition;
|
|
215
|
+
from?: number;
|
|
216
|
+
to?: number;
|
|
217
|
+
}
|
|
218
|
+
export interface SequenceTimingDefinition {
|
|
219
|
+
type: "sequence";
|
|
220
|
+
segments: SequenceTimingSegment[];
|
|
221
|
+
}
|
|
222
|
+
export interface StaggerTimingDefinition {
|
|
223
|
+
type: "stagger";
|
|
224
|
+
timing: TimingDefinition;
|
|
225
|
+
childCount: number;
|
|
226
|
+
eachFrames: number;
|
|
227
|
+
childIndex?: number;
|
|
228
|
+
from?: "start" | "center" | "end";
|
|
229
|
+
}
|
|
230
|
+
export type TimingDefinition = TweenTimingDefinition | SpringTimingDefinition | StepsTimingDefinition | SequenceTimingDefinition | StaggerTimingDefinition;
|
|
231
|
+
export interface TransitionSeriesDefinition {
|
|
232
|
+
presentation: {
|
|
233
|
+
type: TransitionType;
|
|
234
|
+
direction?: TransitionDirection;
|
|
235
|
+
axis?: TransitionAxis;
|
|
236
|
+
shape?: TransitionShape;
|
|
237
|
+
color?: string;
|
|
238
|
+
amount?: number;
|
|
239
|
+
intensity?: number;
|
|
240
|
+
rows?: number;
|
|
241
|
+
columns?: number;
|
|
242
|
+
};
|
|
243
|
+
timing: {
|
|
244
|
+
type: "tween";
|
|
245
|
+
durationFrames: number;
|
|
246
|
+
easing?: EasingName;
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
export interface TrackClipOptions {
|
|
250
|
+
layerId: string | LayerBuilder;
|
|
251
|
+
startFrame: number;
|
|
252
|
+
durationFrames: number;
|
|
253
|
+
transitionFromPrevious?: TransitionSeriesDefinition | TransitionDefinition;
|
|
254
|
+
}
|
|
255
|
+
export interface TrackClipDefinition {
|
|
256
|
+
id: string;
|
|
257
|
+
layerId: string;
|
|
258
|
+
startFrame: number;
|
|
259
|
+
durationFrames: number;
|
|
260
|
+
transitionFromPrevious?: TransitionSeriesDefinition;
|
|
261
|
+
}
|
|
262
|
+
export interface TrackDefinition {
|
|
263
|
+
id: string;
|
|
264
|
+
clips: TrackClipDefinition[];
|
|
265
|
+
}
|
|
266
|
+
export interface CameraMotionOptions {
|
|
267
|
+
durationFrames: number;
|
|
268
|
+
easing?: EasingName;
|
|
269
|
+
intensity?: number;
|
|
270
|
+
safeArea?: CameraSafeArea;
|
|
271
|
+
subjectAnchor?: Anchor;
|
|
272
|
+
}
|
|
273
|
+
export interface CameraZoomOptions extends CameraMotionOptions {
|
|
274
|
+
fromScale?: number;
|
|
275
|
+
toScale?: number;
|
|
276
|
+
}
|
|
277
|
+
export interface CameraKenBurnsOptions extends CameraZoomOptions {
|
|
278
|
+
direction?: CameraMotionDirection;
|
|
279
|
+
amount?: number;
|
|
280
|
+
restingX?: number;
|
|
281
|
+
restingY?: number;
|
|
282
|
+
}
|
|
283
|
+
export interface CameraPanOptions extends CameraMotionOptions {
|
|
284
|
+
direction?: "left" | "right";
|
|
285
|
+
amount?: number;
|
|
286
|
+
restingX?: number;
|
|
287
|
+
fromX?: number;
|
|
288
|
+
toX?: number;
|
|
289
|
+
scale?: number;
|
|
290
|
+
}
|
|
291
|
+
export interface CameraTiltOptions extends CameraMotionOptions {
|
|
292
|
+
direction?: "up" | "down";
|
|
293
|
+
amount?: number;
|
|
294
|
+
restingY?: number;
|
|
295
|
+
fromY?: number;
|
|
296
|
+
toY?: number;
|
|
297
|
+
scale?: number;
|
|
298
|
+
}
|
|
299
|
+
export interface CameraParallaxOptions extends CameraMotionOptions {
|
|
300
|
+
direction?: CameraMotionDirection;
|
|
301
|
+
amount?: number;
|
|
302
|
+
restingX?: number;
|
|
303
|
+
restingY?: number;
|
|
304
|
+
fromX?: number;
|
|
305
|
+
toX?: number;
|
|
306
|
+
fromY?: number;
|
|
307
|
+
toY?: number;
|
|
308
|
+
fromScale?: number;
|
|
309
|
+
toScale?: number;
|
|
310
|
+
}
|
|
311
|
+
export interface CameraOrbitLiteOptions extends CameraMotionOptions {
|
|
312
|
+
direction?: "left" | "right";
|
|
313
|
+
amount?: number;
|
|
314
|
+
verticalAmount?: number;
|
|
315
|
+
rotationAmount?: number;
|
|
316
|
+
restingX?: number;
|
|
317
|
+
restingY?: number;
|
|
318
|
+
restingRotation?: number;
|
|
319
|
+
fromScale?: number;
|
|
320
|
+
toScale?: number;
|
|
321
|
+
}
|
|
322
|
+
export interface CameraHandheldOptions extends CameraMotionOptions {
|
|
323
|
+
seed?: number;
|
|
324
|
+
amount?: number;
|
|
325
|
+
rotationAmount?: number;
|
|
326
|
+
restingX?: number;
|
|
327
|
+
restingY?: number;
|
|
328
|
+
restingRotation?: number;
|
|
329
|
+
intervalFrames?: number;
|
|
330
|
+
scale?: number;
|
|
331
|
+
}
|
|
332
|
+
export interface CameraCrashZoomOptions extends CameraMotionOptions {
|
|
333
|
+
direction?: "in" | "out";
|
|
334
|
+
fromScale?: number;
|
|
335
|
+
toScale?: number;
|
|
336
|
+
overshootScale?: number;
|
|
337
|
+
impactFrame?: number;
|
|
338
|
+
}
|
|
339
|
+
export interface CameraDollyZoomLiteOptions extends CameraMotionOptions {
|
|
340
|
+
direction?: "in" | "out";
|
|
341
|
+
fromScale?: number;
|
|
342
|
+
toScale?: number;
|
|
343
|
+
amount?: number;
|
|
344
|
+
restingX?: number;
|
|
345
|
+
restingY?: number;
|
|
346
|
+
fromX?: number;
|
|
347
|
+
toX?: number;
|
|
348
|
+
fromY?: number;
|
|
349
|
+
toY?: number;
|
|
350
|
+
}
|
|
351
|
+
export interface CinematicPresetOptions {
|
|
352
|
+
durationFrames?: number;
|
|
353
|
+
easing?: EasingName;
|
|
354
|
+
intensity?: number;
|
|
355
|
+
}
|
|
356
|
+
export interface CinematicDirectionalPresetOptions extends CinematicPresetOptions {
|
|
357
|
+
direction?: TransitionDirection;
|
|
358
|
+
}
|
|
359
|
+
export interface CinematicColorPresetOptions extends CinematicPresetOptions {
|
|
360
|
+
color?: string;
|
|
361
|
+
}
|
|
362
|
+
export interface CinematicIrisPresetOptions extends CinematicPresetOptions {
|
|
363
|
+
shape?: TransitionShape;
|
|
364
|
+
}
|
|
365
|
+
export interface CinematicFlipPresetOptions extends CinematicDirectionalPresetOptions {
|
|
366
|
+
axis?: TransitionAxis;
|
|
367
|
+
}
|
|
368
|
+
export interface CinematicGlitchCutOptions extends CinematicDirectionalPresetOptions {
|
|
369
|
+
seed?: number;
|
|
370
|
+
}
|
|
371
|
+
export interface CinematicKenBurnsOptions {
|
|
372
|
+
durationFrames?: number;
|
|
373
|
+
fromScale?: number;
|
|
374
|
+
toScale?: number;
|
|
375
|
+
fromX?: number;
|
|
376
|
+
toX?: number;
|
|
377
|
+
fromY?: number;
|
|
378
|
+
toY?: number;
|
|
379
|
+
easing?: EasingName;
|
|
380
|
+
subject?: {
|
|
381
|
+
fromX: number;
|
|
382
|
+
fromY: number;
|
|
383
|
+
toX: number;
|
|
384
|
+
toY: number;
|
|
385
|
+
smoothingFrames?: number;
|
|
386
|
+
source?: string;
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
export interface CinematicLogoStingOptions extends CinematicPresetOptions {
|
|
390
|
+
direction?: TransitionDirection;
|
|
391
|
+
}
|
|
392
|
+
export interface CinematicProductRevealOptions extends CinematicPresetOptions {
|
|
393
|
+
direction?: TransitionDirection;
|
|
394
|
+
}
|
|
395
|
+
export interface CinematicSocialHookOptions extends CinematicDirectionalPresetOptions {
|
|
396
|
+
color?: string;
|
|
397
|
+
}
|
|
398
|
+
export interface CinematicTitleSequenceOptions extends CinematicDirectionalPresetOptions {
|
|
399
|
+
exitDirection?: TransitionDirection;
|
|
400
|
+
}
|
|
401
|
+
export interface CinematicEndCardOptions extends CinematicColorPresetOptions {
|
|
402
|
+
direction?: TransitionDirection;
|
|
403
|
+
}
|
|
404
|
+
export interface CinematicLayerPreset {
|
|
405
|
+
transitionIn?: TransitionDefinition;
|
|
406
|
+
transitionOut?: TransitionDefinition;
|
|
407
|
+
keyframes?: AuthorValue;
|
|
408
|
+
crop?: AuthorValue;
|
|
409
|
+
}
|
|
410
|
+
export interface TextMotionDefinition {
|
|
411
|
+
transitionIn?: TransitionDefinition;
|
|
412
|
+
keyframes?: KeyframeMap;
|
|
413
|
+
textMotion?: TextMotionPresetDefinition;
|
|
414
|
+
}
|
|
415
|
+
export interface TextMotionOptions {
|
|
416
|
+
durationFrames?: number;
|
|
417
|
+
easing?: EasingName;
|
|
418
|
+
}
|
|
419
|
+
export interface TextMotionPresetDefinition {
|
|
420
|
+
type: TextMotionType;
|
|
421
|
+
split?: TextMotionSplitMode;
|
|
422
|
+
durationFrames?: number;
|
|
423
|
+
easing?: EasingName;
|
|
424
|
+
staggerFrames?: number;
|
|
425
|
+
origin?: TextMotionOrigin;
|
|
426
|
+
seed?: number;
|
|
427
|
+
preserveLayout?: boolean;
|
|
428
|
+
restingBox?: {
|
|
429
|
+
width?: number;
|
|
430
|
+
height?: number;
|
|
431
|
+
};
|
|
432
|
+
direction?: Extract<TransitionDirection, "up" | "down" | "left" | "right">;
|
|
433
|
+
amount?: number;
|
|
434
|
+
intensity?: number;
|
|
435
|
+
color?: string;
|
|
436
|
+
}
|
|
437
|
+
export interface TextMotionSplitOptions extends TextMotionOptions {
|
|
438
|
+
split?: TextMotionSplitMode;
|
|
439
|
+
staggerFrames?: number;
|
|
440
|
+
origin?: TextMotionOrigin;
|
|
441
|
+
seed?: number;
|
|
442
|
+
preserveLayout?: boolean;
|
|
443
|
+
restingBox?: {
|
|
444
|
+
width?: number;
|
|
445
|
+
height?: number;
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
export interface TextMotionRiseOptions extends TextMotionOptions {
|
|
449
|
+
direction?: Extract<TransitionDirection, "up" | "down">;
|
|
450
|
+
}
|
|
451
|
+
export interface TextMotionBlurInOptions extends TextMotionOptions {
|
|
452
|
+
amount?: number;
|
|
453
|
+
intensity?: number;
|
|
454
|
+
}
|
|
455
|
+
export interface TextMotionCascadeOptions extends TextMotionSplitOptions {
|
|
456
|
+
direction?: Extract<TransitionDirection, "up" | "down" | "left" | "right">;
|
|
457
|
+
amount?: number;
|
|
458
|
+
intensity?: number;
|
|
459
|
+
}
|
|
460
|
+
export interface TextMotionScrambleOptions extends TextMotionSplitOptions {
|
|
461
|
+
}
|
|
462
|
+
export interface TextMotionHighlightSweepOptions extends TextMotionSplitOptions {
|
|
463
|
+
color?: string;
|
|
464
|
+
intensity?: number;
|
|
465
|
+
}
|
|
466
|
+
export interface TextMotionTrackingInOptions extends TextMotionSplitOptions {
|
|
467
|
+
amount?: number;
|
|
468
|
+
intensity?: number;
|
|
469
|
+
}
|
|
470
|
+
export type KeyframeTuple = readonly [frame: number, value: AuthorValue, easing?: EasingName];
|
|
471
|
+
export type KeyframeInput = Keyframe | KeyframeTuple;
|
|
472
|
+
export type KeyframeMap = Partial<Record<AnimatableProperty, readonly Keyframe[]>>;
|
|
473
|
+
export declare class PropReference {
|
|
474
|
+
readonly name: string;
|
|
475
|
+
readonly metadata?: PropMetadata;
|
|
476
|
+
constructor(name: string, metadata?: PropMetadata);
|
|
477
|
+
toString(): string;
|
|
478
|
+
toJSON(): string;
|
|
479
|
+
}
|
|
480
|
+
export declare class AssetReference {
|
|
481
|
+
readonly id: string;
|
|
482
|
+
readonly type: AssetType;
|
|
483
|
+
private readonly definition;
|
|
484
|
+
constructor(id: string, type: AssetType, src: AuthorValue, options?: AssetOptions);
|
|
485
|
+
toDefinition(): Record<string, AuthorValue>;
|
|
486
|
+
toString(): string;
|
|
487
|
+
toJSON(): string;
|
|
488
|
+
}
|
|
489
|
+
export declare class LayerBuilder {
|
|
490
|
+
private readonly layer;
|
|
491
|
+
constructor(layer: Record<string, AuthorValue>);
|
|
492
|
+
animate(property: AnimatableProperty, frames: readonly Keyframe[]): this;
|
|
493
|
+
motion(frames: KeyframeMap): this;
|
|
494
|
+
transitionIn(definition: TransitionDefinition): this;
|
|
495
|
+
transitionOut(definition: TransitionDefinition): this;
|
|
496
|
+
enter(definition: TransitionDefinition): this;
|
|
497
|
+
exit(definition: TransitionDefinition): this;
|
|
498
|
+
toInput(): Record<string, AuthorValue>;
|
|
499
|
+
toJSON(): Record<string, unknown>;
|
|
500
|
+
get id(): string;
|
|
501
|
+
}
|
|
502
|
+
export declare class TrackBuilder {
|
|
503
|
+
private readonly definition;
|
|
504
|
+
constructor(id: string, clips?: readonly TrackClipDefinition[]);
|
|
505
|
+
clip(id: string, options: TrackClipOptions): this;
|
|
506
|
+
toInput(): TrackDefinition;
|
|
507
|
+
toJSON(): Record<string, unknown>;
|
|
508
|
+
}
|
|
509
|
+
export declare class VideoBuilder {
|
|
510
|
+
private readonly composition;
|
|
511
|
+
private readonly metadata?;
|
|
512
|
+
private readonly propDefinitions;
|
|
513
|
+
private readonly assetDefinitions;
|
|
514
|
+
private readonly layers;
|
|
515
|
+
private readonly trackDefinitions;
|
|
516
|
+
private readonly audioTracks;
|
|
517
|
+
private readonly exportDefinitions;
|
|
518
|
+
constructor(composition: CompositionTiming, options?: {
|
|
519
|
+
metadata?: Record<string, AuthorValue>;
|
|
520
|
+
});
|
|
521
|
+
prop(reference: PropReference): this;
|
|
522
|
+
props(...references: readonly PropReference[]): this;
|
|
523
|
+
asset(reference: AssetReference): this;
|
|
524
|
+
assets(...references: readonly AssetReference[]): this;
|
|
525
|
+
add(...layers: readonly LayerBuilder[]): this;
|
|
526
|
+
addTrack(...tracks: readonly (TrackBuilder | TrackDefinition)[]): this;
|
|
527
|
+
tracks(...tracks: readonly (TrackBuilder | TrackDefinition)[]): this;
|
|
528
|
+
audio(options: AudioOptions): this;
|
|
529
|
+
addExport(definition: ExportOptions): this;
|
|
530
|
+
exports(...definitions: readonly ExportOptions[]): this;
|
|
531
|
+
toJSON(): KavioDocument;
|
|
532
|
+
validate(): ValidationResult;
|
|
533
|
+
private registerAsset;
|
|
534
|
+
private registerProp;
|
|
535
|
+
private normalizeProps;
|
|
536
|
+
private normalizeAssets;
|
|
537
|
+
private normalize;
|
|
538
|
+
}
|
|
539
|
+
export declare function video(composition: CompositionTiming, options?: {
|
|
540
|
+
metadata?: Record<string, AuthorValue>;
|
|
541
|
+
}): VideoBuilder;
|
|
542
|
+
export declare function prop(name: string, metadata?: PropMetadata): PropReference;
|
|
543
|
+
export declare function validate(input: VideoBuilder | KavioDocument): ValidationResult;
|
|
544
|
+
export declare function validate(input: unknown): ValidationResult;
|
|
545
|
+
export declare const asset: {
|
|
546
|
+
readonly video: (id: string, src: AuthorValue, options?: AssetOptions) => AssetReference;
|
|
547
|
+
readonly image: (id: string, src: AuthorValue, options?: AssetOptions) => AssetReference;
|
|
548
|
+
readonly audio: (id: string, src: AuthorValue, options?: AssetOptions) => AssetReference;
|
|
549
|
+
readonly font: (id: string, src: AuthorValue, options: AssetOptions & {
|
|
550
|
+
family: string;
|
|
551
|
+
}) => AssetReference;
|
|
552
|
+
};
|
|
553
|
+
export declare function clip(id: string, options: VideoLayerOptions): LayerBuilder;
|
|
554
|
+
export declare function videoLayer(id: string, options: VideoLayerOptions): LayerBuilder;
|
|
555
|
+
export declare function image(id: string, options: ImageLayerOptions): LayerBuilder;
|
|
556
|
+
export declare function text(id: string, options: TextLayerOptions): LayerBuilder;
|
|
557
|
+
export declare function shape(id: string, options: ShapeLayerOptions): LayerBuilder;
|
|
558
|
+
export declare function caption(id: string, options: CaptionLayerOptions): LayerBuilder;
|
|
559
|
+
export declare function trackClip(id: string, options: TrackClipOptions): TrackClipDefinition;
|
|
560
|
+
export declare function track(id: string, clips?: readonly TrackClipDefinition[]): TrackBuilder;
|
|
561
|
+
export declare const layers: {
|
|
562
|
+
readonly video: typeof videoLayer;
|
|
563
|
+
readonly clip: typeof clip;
|
|
564
|
+
readonly image: typeof image;
|
|
565
|
+
readonly text: typeof text;
|
|
566
|
+
readonly shape: typeof shape;
|
|
567
|
+
readonly caption: typeof caption;
|
|
568
|
+
};
|
|
569
|
+
export declare const transition: {
|
|
570
|
+
readonly fade: (options: TransitionOptions) => TransitionDefinition;
|
|
571
|
+
readonly slide: (options: TransitionOptions & {
|
|
572
|
+
direction: TransitionDirection;
|
|
573
|
+
}) => TransitionDefinition;
|
|
574
|
+
readonly wipe: (options: TransitionOptions & {
|
|
575
|
+
direction: TransitionDirection;
|
|
576
|
+
}) => TransitionDefinition;
|
|
577
|
+
readonly crossfade: (options: TransitionOptions) => TransitionDefinition;
|
|
578
|
+
readonly zoom: (options?: TransitionOptions) => TransitionDefinition;
|
|
579
|
+
readonly push: (options: TransitionOptions & {
|
|
580
|
+
direction: TransitionDirection;
|
|
581
|
+
}) => TransitionDefinition;
|
|
582
|
+
readonly spin: (options?: TransitionOptions) => TransitionDefinition;
|
|
583
|
+
readonly rotate: (options?: TransitionOptions) => TransitionDefinition;
|
|
584
|
+
readonly flip: (options?: TransitionOptions) => TransitionDefinition;
|
|
585
|
+
readonly blurDissolve: (options?: TransitionOptions) => TransitionDefinition;
|
|
586
|
+
readonly colorDissolve: (options?: TransitionOptions) => TransitionDefinition;
|
|
587
|
+
readonly dip: (options?: TransitionOptions) => TransitionDefinition;
|
|
588
|
+
readonly iris: (options?: TransitionOptions) => TransitionDefinition;
|
|
589
|
+
readonly stretch: (options?: TransitionOptions) => TransitionDefinition;
|
|
590
|
+
readonly squeeze: (options?: TransitionOptions) => TransitionDefinition;
|
|
591
|
+
readonly clockWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
592
|
+
readonly barWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
593
|
+
readonly gridWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
594
|
+
readonly tileReveal: (options?: TransitionOptions) => TransitionDefinition;
|
|
595
|
+
readonly radialBlur: (options?: TransitionOptions) => TransitionDefinition;
|
|
596
|
+
readonly zoomBlur: (options?: TransitionOptions) => TransitionDefinition;
|
|
597
|
+
readonly bookFlip: (options?: TransitionOptions) => TransitionDefinition;
|
|
598
|
+
readonly pageCurlLite: (options?: TransitionOptions) => TransitionDefinition;
|
|
599
|
+
readonly skewSlide: (options?: TransitionOptions) => TransitionDefinition;
|
|
600
|
+
readonly expandMask: (options?: TransitionOptions) => TransitionDefinition;
|
|
601
|
+
readonly letterboxReveal: (options?: TransitionOptions) => TransitionDefinition;
|
|
602
|
+
readonly filmFlash: (options?: TransitionOptions) => TransitionDefinition;
|
|
603
|
+
readonly cameraWhip: (options?: TransitionOptions) => TransitionDefinition;
|
|
604
|
+
};
|
|
605
|
+
export declare const transitions: {
|
|
606
|
+
readonly fade: (options: TransitionOptions) => TransitionDefinition;
|
|
607
|
+
readonly slide: (options: TransitionOptions & {
|
|
608
|
+
direction: TransitionDirection;
|
|
609
|
+
}) => TransitionDefinition;
|
|
610
|
+
readonly wipe: (options: TransitionOptions & {
|
|
611
|
+
direction: TransitionDirection;
|
|
612
|
+
}) => TransitionDefinition;
|
|
613
|
+
readonly crossfade: (options: TransitionOptions) => TransitionDefinition;
|
|
614
|
+
readonly zoom: (options?: TransitionOptions) => TransitionDefinition;
|
|
615
|
+
readonly push: (options: TransitionOptions & {
|
|
616
|
+
direction: TransitionDirection;
|
|
617
|
+
}) => TransitionDefinition;
|
|
618
|
+
readonly spin: (options?: TransitionOptions) => TransitionDefinition;
|
|
619
|
+
readonly rotate: (options?: TransitionOptions) => TransitionDefinition;
|
|
620
|
+
readonly flip: (options?: TransitionOptions) => TransitionDefinition;
|
|
621
|
+
readonly blurDissolve: (options?: TransitionOptions) => TransitionDefinition;
|
|
622
|
+
readonly colorDissolve: (options?: TransitionOptions) => TransitionDefinition;
|
|
623
|
+
readonly dip: (options?: TransitionOptions) => TransitionDefinition;
|
|
624
|
+
readonly iris: (options?: TransitionOptions) => TransitionDefinition;
|
|
625
|
+
readonly stretch: (options?: TransitionOptions) => TransitionDefinition;
|
|
626
|
+
readonly squeeze: (options?: TransitionOptions) => TransitionDefinition;
|
|
627
|
+
readonly clockWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
628
|
+
readonly barWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
629
|
+
readonly gridWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
630
|
+
readonly tileReveal: (options?: TransitionOptions) => TransitionDefinition;
|
|
631
|
+
readonly radialBlur: (options?: TransitionOptions) => TransitionDefinition;
|
|
632
|
+
readonly zoomBlur: (options?: TransitionOptions) => TransitionDefinition;
|
|
633
|
+
readonly bookFlip: (options?: TransitionOptions) => TransitionDefinition;
|
|
634
|
+
readonly pageCurlLite: (options?: TransitionOptions) => TransitionDefinition;
|
|
635
|
+
readonly skewSlide: (options?: TransitionOptions) => TransitionDefinition;
|
|
636
|
+
readonly expandMask: (options?: TransitionOptions) => TransitionDefinition;
|
|
637
|
+
readonly letterboxReveal: (options?: TransitionOptions) => TransitionDefinition;
|
|
638
|
+
readonly filmFlash: (options?: TransitionOptions) => TransitionDefinition;
|
|
639
|
+
readonly cameraWhip: (options?: TransitionOptions) => TransitionDefinition;
|
|
640
|
+
};
|
|
641
|
+
export declare const transitionSeries: {
|
|
642
|
+
readonly fromPrevious: (definition: TransitionDefinition | TransitionSeriesDefinition) => TransitionSeriesDefinition;
|
|
643
|
+
};
|
|
644
|
+
export declare const camera: {
|
|
645
|
+
readonly kenBurns: (options: CameraKenBurnsOptions) => KeyframeMap;
|
|
646
|
+
readonly pushIn: (options: CameraZoomOptions) => KeyframeMap;
|
|
647
|
+
readonly pullBack: (options: CameraZoomOptions) => KeyframeMap;
|
|
648
|
+
readonly pan: (options: CameraPanOptions) => KeyframeMap;
|
|
649
|
+
readonly tilt: (options: CameraTiltOptions) => KeyframeMap;
|
|
650
|
+
readonly parallax: (options: CameraParallaxOptions) => KeyframeMap;
|
|
651
|
+
readonly orbitLite: (options: CameraOrbitLiteOptions) => KeyframeMap;
|
|
652
|
+
readonly handheld: (options: CameraHandheldOptions) => KeyframeMap;
|
|
653
|
+
readonly crashZoom: (options: CameraCrashZoomOptions) => KeyframeMap;
|
|
654
|
+
readonly dollyZoomLite: (options: CameraDollyZoomLiteOptions) => KeyframeMap;
|
|
655
|
+
};
|
|
656
|
+
export declare const cinematic: {
|
|
657
|
+
readonly zoomPush: (options?: CinematicDirectionalPresetOptions) => CinematicLayerPreset;
|
|
658
|
+
readonly whipPan: (options?: CinematicDirectionalPresetOptions) => CinematicLayerPreset;
|
|
659
|
+
readonly filmFlash: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
660
|
+
readonly dreamyBlur: (options?: CinematicPresetOptions) => CinematicLayerPreset;
|
|
661
|
+
readonly broadcastDip: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
662
|
+
readonly irisOpen: (options?: CinematicIrisPresetOptions) => CinematicLayerPreset;
|
|
663
|
+
readonly flipCard: (options?: CinematicFlipPresetOptions) => CinematicLayerPreset;
|
|
664
|
+
readonly glitchCut: (options?: CinematicGlitchCutOptions) => CinematicLayerPreset;
|
|
665
|
+
readonly lightLeak: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
666
|
+
readonly kenBurns: (options?: CinematicKenBurnsOptions) => CinematicLayerPreset;
|
|
667
|
+
readonly logoSting: (options?: CinematicLogoStingOptions) => CinematicLayerPreset;
|
|
668
|
+
readonly productReveal: (options?: CinematicProductRevealOptions) => CinematicLayerPreset;
|
|
669
|
+
readonly socialHook: (options?: CinematicSocialHookOptions) => CinematicLayerPreset;
|
|
670
|
+
readonly titleSequence: (options?: CinematicTitleSequenceOptions) => CinematicLayerPreset;
|
|
671
|
+
readonly endCard: (options?: CinematicEndCardOptions) => CinematicLayerPreset;
|
|
672
|
+
};
|
|
673
|
+
export declare const cinematicPresets: {
|
|
674
|
+
readonly zoomPush: (options?: CinematicDirectionalPresetOptions) => CinematicLayerPreset;
|
|
675
|
+
readonly whipPan: (options?: CinematicDirectionalPresetOptions) => CinematicLayerPreset;
|
|
676
|
+
readonly filmFlash: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
677
|
+
readonly dreamyBlur: (options?: CinematicPresetOptions) => CinematicLayerPreset;
|
|
678
|
+
readonly broadcastDip: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
679
|
+
readonly irisOpen: (options?: CinematicIrisPresetOptions) => CinematicLayerPreset;
|
|
680
|
+
readonly flipCard: (options?: CinematicFlipPresetOptions) => CinematicLayerPreset;
|
|
681
|
+
readonly glitchCut: (options?: CinematicGlitchCutOptions) => CinematicLayerPreset;
|
|
682
|
+
readonly lightLeak: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
683
|
+
readonly kenBurns: (options?: CinematicKenBurnsOptions) => CinematicLayerPreset;
|
|
684
|
+
readonly logoSting: (options?: CinematicLogoStingOptions) => CinematicLayerPreset;
|
|
685
|
+
readonly productReveal: (options?: CinematicProductRevealOptions) => CinematicLayerPreset;
|
|
686
|
+
readonly socialHook: (options?: CinematicSocialHookOptions) => CinematicLayerPreset;
|
|
687
|
+
readonly titleSequence: (options?: CinematicTitleSequenceOptions) => CinematicLayerPreset;
|
|
688
|
+
readonly endCard: (options?: CinematicEndCardOptions) => CinematicLayerPreset;
|
|
689
|
+
};
|
|
690
|
+
export declare const textMotion: {
|
|
691
|
+
readonly rise: (options?: TextMotionRiseOptions) => TextMotionDefinition;
|
|
692
|
+
readonly blurIn: (options?: TextMotionBlurInOptions) => TextMotionDefinition;
|
|
693
|
+
readonly typeOn: (options?: TextMotionSplitOptions) => TextMotionDefinition;
|
|
694
|
+
readonly cascade: (options?: TextMotionCascadeOptions) => TextMotionDefinition;
|
|
695
|
+
readonly scramble: (options?: TextMotionScrambleOptions) => TextMotionDefinition;
|
|
696
|
+
readonly highlightSweep: (options?: TextMotionHighlightSweepOptions) => TextMotionDefinition;
|
|
697
|
+
readonly trackingIn: (options?: TextMotionTrackingInOptions) => TextMotionDefinition;
|
|
698
|
+
};
|
|
699
|
+
export declare const textMotions: {
|
|
700
|
+
readonly rise: (options?: TextMotionRiseOptions) => TextMotionDefinition;
|
|
701
|
+
readonly blurIn: (options?: TextMotionBlurInOptions) => TextMotionDefinition;
|
|
702
|
+
readonly typeOn: (options?: TextMotionSplitOptions) => TextMotionDefinition;
|
|
703
|
+
readonly cascade: (options?: TextMotionCascadeOptions) => TextMotionDefinition;
|
|
704
|
+
readonly scramble: (options?: TextMotionScrambleOptions) => TextMotionDefinition;
|
|
705
|
+
readonly highlightSweep: (options?: TextMotionHighlightSweepOptions) => TextMotionDefinition;
|
|
706
|
+
readonly trackingIn: (options?: TextMotionTrackingInOptions) => TextMotionDefinition;
|
|
707
|
+
};
|
|
708
|
+
export declare const effect: {};
|
|
709
|
+
export declare const presetNamespaces: {
|
|
710
|
+
readonly transition: {
|
|
711
|
+
readonly fade: (options: TransitionOptions) => TransitionDefinition;
|
|
712
|
+
readonly slide: (options: TransitionOptions & {
|
|
713
|
+
direction: TransitionDirection;
|
|
714
|
+
}) => TransitionDefinition;
|
|
715
|
+
readonly wipe: (options: TransitionOptions & {
|
|
716
|
+
direction: TransitionDirection;
|
|
717
|
+
}) => TransitionDefinition;
|
|
718
|
+
readonly crossfade: (options: TransitionOptions) => TransitionDefinition;
|
|
719
|
+
readonly zoom: (options?: TransitionOptions) => TransitionDefinition;
|
|
720
|
+
readonly push: (options: TransitionOptions & {
|
|
721
|
+
direction: TransitionDirection;
|
|
722
|
+
}) => TransitionDefinition;
|
|
723
|
+
readonly spin: (options?: TransitionOptions) => TransitionDefinition;
|
|
724
|
+
readonly rotate: (options?: TransitionOptions) => TransitionDefinition;
|
|
725
|
+
readonly flip: (options?: TransitionOptions) => TransitionDefinition;
|
|
726
|
+
readonly blurDissolve: (options?: TransitionOptions) => TransitionDefinition;
|
|
727
|
+
readonly colorDissolve: (options?: TransitionOptions) => TransitionDefinition;
|
|
728
|
+
readonly dip: (options?: TransitionOptions) => TransitionDefinition;
|
|
729
|
+
readonly iris: (options?: TransitionOptions) => TransitionDefinition;
|
|
730
|
+
readonly stretch: (options?: TransitionOptions) => TransitionDefinition;
|
|
731
|
+
readonly squeeze: (options?: TransitionOptions) => TransitionDefinition;
|
|
732
|
+
readonly clockWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
733
|
+
readonly barWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
734
|
+
readonly gridWipe: (options?: TransitionOptions) => TransitionDefinition;
|
|
735
|
+
readonly tileReveal: (options?: TransitionOptions) => TransitionDefinition;
|
|
736
|
+
readonly radialBlur: (options?: TransitionOptions) => TransitionDefinition;
|
|
737
|
+
readonly zoomBlur: (options?: TransitionOptions) => TransitionDefinition;
|
|
738
|
+
readonly bookFlip: (options?: TransitionOptions) => TransitionDefinition;
|
|
739
|
+
readonly pageCurlLite: (options?: TransitionOptions) => TransitionDefinition;
|
|
740
|
+
readonly skewSlide: (options?: TransitionOptions) => TransitionDefinition;
|
|
741
|
+
readonly expandMask: (options?: TransitionOptions) => TransitionDefinition;
|
|
742
|
+
readonly letterboxReveal: (options?: TransitionOptions) => TransitionDefinition;
|
|
743
|
+
readonly filmFlash: (options?: TransitionOptions) => TransitionDefinition;
|
|
744
|
+
readonly cameraWhip: (options?: TransitionOptions) => TransitionDefinition;
|
|
745
|
+
};
|
|
746
|
+
readonly cinematic: {
|
|
747
|
+
readonly zoomPush: (options?: CinematicDirectionalPresetOptions) => CinematicLayerPreset;
|
|
748
|
+
readonly whipPan: (options?: CinematicDirectionalPresetOptions) => CinematicLayerPreset;
|
|
749
|
+
readonly filmFlash: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
750
|
+
readonly dreamyBlur: (options?: CinematicPresetOptions) => CinematicLayerPreset;
|
|
751
|
+
readonly broadcastDip: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
752
|
+
readonly irisOpen: (options?: CinematicIrisPresetOptions) => CinematicLayerPreset;
|
|
753
|
+
readonly flipCard: (options?: CinematicFlipPresetOptions) => CinematicLayerPreset;
|
|
754
|
+
readonly glitchCut: (options?: CinematicGlitchCutOptions) => CinematicLayerPreset;
|
|
755
|
+
readonly lightLeak: (options?: CinematicColorPresetOptions) => CinematicLayerPreset;
|
|
756
|
+
readonly kenBurns: (options?: CinematicKenBurnsOptions) => CinematicLayerPreset;
|
|
757
|
+
readonly logoSting: (options?: CinematicLogoStingOptions) => CinematicLayerPreset;
|
|
758
|
+
readonly productReveal: (options?: CinematicProductRevealOptions) => CinematicLayerPreset;
|
|
759
|
+
readonly socialHook: (options?: CinematicSocialHookOptions) => CinematicLayerPreset;
|
|
760
|
+
readonly titleSequence: (options?: CinematicTitleSequenceOptions) => CinematicLayerPreset;
|
|
761
|
+
readonly endCard: (options?: CinematicEndCardOptions) => CinematicLayerPreset;
|
|
762
|
+
};
|
|
763
|
+
readonly textMotion: {
|
|
764
|
+
readonly rise: (options?: TextMotionRiseOptions) => TextMotionDefinition;
|
|
765
|
+
readonly blurIn: (options?: TextMotionBlurInOptions) => TextMotionDefinition;
|
|
766
|
+
readonly typeOn: (options?: TextMotionSplitOptions) => TextMotionDefinition;
|
|
767
|
+
readonly cascade: (options?: TextMotionCascadeOptions) => TextMotionDefinition;
|
|
768
|
+
readonly scramble: (options?: TextMotionScrambleOptions) => TextMotionDefinition;
|
|
769
|
+
readonly highlightSweep: (options?: TextMotionHighlightSweepOptions) => TextMotionDefinition;
|
|
770
|
+
readonly trackingIn: (options?: TextMotionTrackingInOptions) => TextMotionDefinition;
|
|
771
|
+
};
|
|
772
|
+
readonly camera: {
|
|
773
|
+
readonly kenBurns: (options: CameraKenBurnsOptions) => KeyframeMap;
|
|
774
|
+
readonly pushIn: (options: CameraZoomOptions) => KeyframeMap;
|
|
775
|
+
readonly pullBack: (options: CameraZoomOptions) => KeyframeMap;
|
|
776
|
+
readonly pan: (options: CameraPanOptions) => KeyframeMap;
|
|
777
|
+
readonly tilt: (options: CameraTiltOptions) => KeyframeMap;
|
|
778
|
+
readonly parallax: (options: CameraParallaxOptions) => KeyframeMap;
|
|
779
|
+
readonly orbitLite: (options: CameraOrbitLiteOptions) => KeyframeMap;
|
|
780
|
+
readonly handheld: (options: CameraHandheldOptions) => KeyframeMap;
|
|
781
|
+
readonly crashZoom: (options: CameraCrashZoomOptions) => KeyframeMap;
|
|
782
|
+
readonly dollyZoomLite: (options: CameraDollyZoomLiteOptions) => KeyframeMap;
|
|
783
|
+
};
|
|
784
|
+
readonly effect: {};
|
|
785
|
+
};
|
|
786
|
+
export declare function keyframes(frames: readonly KeyframeInput[]): Keyframe[];
|
|
787
|
+
export declare const easing: {
|
|
788
|
+
readonly linear: "linear";
|
|
789
|
+
readonly inQuad: "inQuad";
|
|
790
|
+
readonly outQuad: "outQuad";
|
|
791
|
+
readonly inOutQuad: "inOutQuad";
|
|
792
|
+
readonly inCubic: "inCubic";
|
|
793
|
+
readonly outCubic: "outCubic";
|
|
794
|
+
readonly inOutCubic: "inOutCubic";
|
|
795
|
+
readonly inCirc: "inCirc";
|
|
796
|
+
readonly outCirc: "outCirc";
|
|
797
|
+
readonly inOutCirc: "inOutCirc";
|
|
798
|
+
readonly inExpo: "inExpo";
|
|
799
|
+
readonly outExpo: "outExpo";
|
|
800
|
+
readonly inOutExpo: "inOutExpo";
|
|
801
|
+
readonly anticipate: "anticipate";
|
|
802
|
+
readonly back: "back";
|
|
803
|
+
readonly inBack: "inBack";
|
|
804
|
+
readonly outBack: "outBack";
|
|
805
|
+
readonly inOutBack: "inOutBack";
|
|
806
|
+
readonly inElastic: "inElastic";
|
|
807
|
+
readonly outElastic: "outElastic";
|
|
808
|
+
readonly inOutElastic: "inOutElastic";
|
|
809
|
+
readonly inBounce: "inBounce";
|
|
810
|
+
readonly outBounce: "outBounce";
|
|
811
|
+
readonly inOutBounce: "inOutBounce";
|
|
812
|
+
readonly cubicBezier: (x1: number, y1: number, x2: number, y2: number) => EasingName;
|
|
813
|
+
};
|
|
814
|
+
export declare const timing: {
|
|
815
|
+
readonly tween: (options?: Omit<TweenTimingDefinition, "type">) => TweenTimingDefinition;
|
|
816
|
+
readonly spring: (options?: Omit<SpringTimingDefinition, "type">) => SpringTimingDefinition;
|
|
817
|
+
readonly steps: (options: Omit<StepsTimingDefinition, "type">) => StepsTimingDefinition;
|
|
818
|
+
readonly sequence: (segments: readonly SequenceTimingSegment[]) => SequenceTimingDefinition;
|
|
819
|
+
readonly stagger: (options: Omit<StaggerTimingDefinition, "type">) => StaggerTimingDefinition;
|
|
820
|
+
};
|
|
821
|
+
export declare const exportPreset: {
|
|
822
|
+
readonly vertical: (options?: ExportOptions) => ExportOptions;
|
|
823
|
+
readonly reels: (options?: ExportOptions) => ExportOptions;
|
|
824
|
+
readonly instagramReels: (options?: ExportOptions) => ExportOptions;
|
|
825
|
+
readonly tiktok: (options?: ExportOptions) => ExportOptions;
|
|
826
|
+
readonly youtubeShorts: (options?: ExportOptions) => ExportOptions;
|
|
827
|
+
readonly facebookReels: (options?: ExportOptions) => ExportOptions;
|
|
828
|
+
readonly square: (options?: ExportOptions) => ExportOptions;
|
|
829
|
+
readonly portrait: (options?: ExportOptions) => ExportOptions;
|
|
830
|
+
readonly landscape: (options?: ExportOptions) => ExportOptions;
|
|
831
|
+
readonly social: (options?: SocialExportOptions) => ExportOptions[];
|
|
832
|
+
readonly custom: (options: CustomExportOptions) => ExportOptions;
|
|
833
|
+
};
|
|
834
|
+
export declare const exportPresets: {
|
|
835
|
+
readonly vertical: (options?: ExportOptions) => ExportOptions;
|
|
836
|
+
readonly reels: (options?: ExportOptions) => ExportOptions;
|
|
837
|
+
readonly instagramReels: (options?: ExportOptions) => ExportOptions;
|
|
838
|
+
readonly tiktok: (options?: ExportOptions) => ExportOptions;
|
|
839
|
+
readonly youtubeShorts: (options?: ExportOptions) => ExportOptions;
|
|
840
|
+
readonly facebookReels: (options?: ExportOptions) => ExportOptions;
|
|
841
|
+
readonly square: (options?: ExportOptions) => ExportOptions;
|
|
842
|
+
readonly portrait: (options?: ExportOptions) => ExportOptions;
|
|
843
|
+
readonly landscape: (options?: ExportOptions) => ExportOptions;
|
|
844
|
+
readonly social: (options?: SocialExportOptions) => ExportOptions[];
|
|
845
|
+
readonly custom: (options: CustomExportOptions) => ExportOptions;
|
|
846
|
+
};
|
|
847
|
+
export declare const vertical: (options?: ExportOptions) => ExportOptions;
|
|
848
|
+
export declare const reels: (options?: ExportOptions) => ExportOptions;
|
|
849
|
+
export declare const instagramReels: (options?: ExportOptions) => ExportOptions;
|
|
850
|
+
export declare const tiktok: (options?: ExportOptions) => ExportOptions;
|
|
851
|
+
export declare const youtubeShorts: (options?: ExportOptions) => ExportOptions;
|
|
852
|
+
export declare const facebookReels: (options?: ExportOptions) => ExportOptions;
|
|
853
|
+
export declare const square: (options?: ExportOptions) => ExportOptions;
|
|
854
|
+
export declare const portrait: (options?: ExportOptions) => ExportOptions;
|
|
855
|
+
export declare const landscape: (options?: ExportOptions) => ExportOptions;
|
|
856
|
+
export declare const social: (options?: SocialExportOptions) => ExportOptions[];
|
|
857
|
+
export declare const customExport: (options: CustomExportOptions) => ExportOptions;
|
|
858
|
+
export declare const socialMediaPresets: readonly [SocialMediaPresetDefinition, SocialMediaPresetDefinition, SocialMediaPresetDefinition, SocialMediaPresetDefinition, SocialMediaPresetDefinition, SocialMediaPresetDefinition, SocialMediaPresetDefinition];
|
|
859
|
+
export declare const crop: {
|
|
860
|
+
readonly center: () => AuthorValue;
|
|
861
|
+
readonly subject: (options: SubjectCropOptions) => AuthorValue;
|
|
862
|
+
};
|
|
863
|
+
//# sourceMappingURL=index.d.ts.map
|