remotion 4.0.477 → 4.0.479
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/cjs/CompositionManager.d.ts +5 -2
- package/dist/cjs/HtmlInCanvas.d.ts +4 -3
- package/dist/cjs/HtmlInCanvas.js +7 -10
- package/dist/cjs/Img.d.ts +6 -4
- package/dist/cjs/Img.js +10 -13
- package/dist/cjs/Interactive.d.ts +187 -2
- package/dist/cjs/Interactive.js +12 -10
- package/dist/cjs/Sequence.d.ts +4 -3
- package/dist/cjs/Sequence.js +35 -9
- package/dist/cjs/animated-image/AnimatedImage.d.ts +2 -3
- package/dist/cjs/animated-image/AnimatedImage.js +7 -10
- package/dist/cjs/animated-image/props.d.ts +2 -3
- package/dist/cjs/canvas-image/CanvasImage.d.ts +5 -3
- package/dist/cjs/canvas-image/CanvasImage.js +86 -42
- package/dist/cjs/canvas-image/props.d.ts +5 -4
- package/dist/cjs/effects/Solid.d.ts +2 -2
- package/dist/cjs/effects/Solid.js +7 -10
- package/dist/cjs/effects/create-effect.d.ts +2 -2
- package/dist/cjs/effects/effect-types.d.ts +2 -2
- package/dist/cjs/effects/index.d.ts +2 -1
- package/dist/cjs/effects/index.js +3 -0
- package/dist/cjs/find-props-to-delete.d.ts +2 -2
- package/dist/cjs/flatten-schema.d.ts +3 -3
- package/dist/cjs/index.d.ts +4 -4
- package/dist/cjs/index.js +16 -14
- package/dist/cjs/interactivity-schema.d.ts +524 -0
- package/dist/cjs/interactivity-schema.js +143 -0
- package/dist/cjs/internals.d.ts +95 -21
- package/dist/cjs/internals.js +12 -11
- package/dist/cjs/interpolate-keyframed-status.js +14 -3
- package/dist/cjs/no-react.d.ts +11 -12
- package/dist/cjs/no-react.js +2 -2
- package/dist/cjs/series/index.js +4 -4
- package/dist/cjs/use-media-in-timeline.js +2 -0
- package/dist/cjs/use-schema.d.ts +21 -3
- package/dist/cjs/use-schema.js +5 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/with-interactivity-schema.d.ts +20 -0
- package/dist/cjs/with-interactivity-schema.js +203 -0
- package/dist/cjs/wrap-in-schema.d.ts +3 -3
- package/dist/cjs/wrap-in-schema.js +2 -2
- package/dist/esm/index.mjs +242 -171
- package/dist/esm/no-react.mjs +133 -131
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/dist/cjs/interpolate-translate.d.ts +0 -8
- package/dist/cjs/interpolate-translate.js +0 -70
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
export type HiddenFieldSchema = {
|
|
2
|
+
type: 'hidden';
|
|
3
|
+
keyframable?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type NumberFieldSchema = {
|
|
6
|
+
type: 'number';
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
step?: number;
|
|
10
|
+
default: number | null | undefined;
|
|
11
|
+
description?: string;
|
|
12
|
+
hiddenFromList: boolean;
|
|
13
|
+
keyframable?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type BooleanFieldSchema = {
|
|
16
|
+
type: 'boolean';
|
|
17
|
+
default: boolean;
|
|
18
|
+
description?: string;
|
|
19
|
+
keyframable?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type RotationCssFieldSchema = {
|
|
22
|
+
type: 'rotation-css';
|
|
23
|
+
step?: number;
|
|
24
|
+
default: string | undefined;
|
|
25
|
+
description?: string;
|
|
26
|
+
keyframable?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export type RotationDegreesFieldSchema = {
|
|
29
|
+
type: 'rotation-degrees';
|
|
30
|
+
min?: number;
|
|
31
|
+
max?: number;
|
|
32
|
+
step?: number;
|
|
33
|
+
default: number | undefined;
|
|
34
|
+
description?: string;
|
|
35
|
+
keyframable?: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type TranslateFieldSchema = {
|
|
38
|
+
type: 'translate';
|
|
39
|
+
step?: number;
|
|
40
|
+
default: string | undefined;
|
|
41
|
+
description?: string;
|
|
42
|
+
keyframable?: boolean;
|
|
43
|
+
};
|
|
44
|
+
export type TransformOriginFieldSchema = {
|
|
45
|
+
type: 'transform-origin';
|
|
46
|
+
step?: number;
|
|
47
|
+
default: string | undefined;
|
|
48
|
+
description?: string;
|
|
49
|
+
keyframable?: boolean;
|
|
50
|
+
};
|
|
51
|
+
export type ScaleFieldSchema = {
|
|
52
|
+
type: 'scale';
|
|
53
|
+
min?: number;
|
|
54
|
+
max?: number;
|
|
55
|
+
step?: number;
|
|
56
|
+
default: number | string | undefined;
|
|
57
|
+
description?: string;
|
|
58
|
+
keyframable?: boolean;
|
|
59
|
+
};
|
|
60
|
+
export type UvCoordinateFieldSchema = {
|
|
61
|
+
type: 'uv-coordinate';
|
|
62
|
+
min?: number;
|
|
63
|
+
max?: number;
|
|
64
|
+
step?: number;
|
|
65
|
+
lineTo?: string;
|
|
66
|
+
default: readonly [number, number] | undefined;
|
|
67
|
+
description?: string;
|
|
68
|
+
keyframable?: boolean;
|
|
69
|
+
};
|
|
70
|
+
export type ColorFieldSchema = {
|
|
71
|
+
type: 'color';
|
|
72
|
+
default: string | undefined;
|
|
73
|
+
description?: string;
|
|
74
|
+
keyframable?: boolean;
|
|
75
|
+
};
|
|
76
|
+
export type EnumFieldSchema = {
|
|
77
|
+
type: 'enum';
|
|
78
|
+
default: string;
|
|
79
|
+
description?: string;
|
|
80
|
+
variants: Record<string, InteractivitySchema>;
|
|
81
|
+
keyframable?: boolean;
|
|
82
|
+
};
|
|
83
|
+
export type NumberArrayItemSchema = Omit<NumberFieldSchema, 'default' | 'description' | 'hiddenFromList' | 'keyframable'>;
|
|
84
|
+
export type BooleanArrayItemSchema = Omit<BooleanFieldSchema, 'default' | 'description' | 'keyframable'>;
|
|
85
|
+
export type RotationCssArrayItemSchema = Omit<RotationCssFieldSchema, 'default' | 'description' | 'keyframable'>;
|
|
86
|
+
export type RotationDegreesArrayItemSchema = Omit<RotationDegreesFieldSchema, 'default' | 'description' | 'keyframable'>;
|
|
87
|
+
export type TranslateArrayItemSchema = Omit<TranslateFieldSchema, 'default' | 'description' | 'keyframable'>;
|
|
88
|
+
export type UvCoordinateArrayItemSchema = Omit<UvCoordinateFieldSchema, 'default' | 'description' | 'keyframable'>;
|
|
89
|
+
export type ColorArrayItemSchema = Omit<ColorFieldSchema, 'default' | 'description' | 'keyframable'>;
|
|
90
|
+
export type EnumArrayItemSchema = {
|
|
91
|
+
type: 'enum';
|
|
92
|
+
variants: readonly string[];
|
|
93
|
+
};
|
|
94
|
+
export type ArrayItemFieldSchema = NumberArrayItemSchema | BooleanArrayItemSchema | RotationCssArrayItemSchema | RotationDegreesArrayItemSchema | TranslateArrayItemSchema | UvCoordinateArrayItemSchema | ColorArrayItemSchema | EnumArrayItemSchema;
|
|
95
|
+
export type ArrayFieldSchema = {
|
|
96
|
+
type: 'array';
|
|
97
|
+
item: ArrayItemFieldSchema;
|
|
98
|
+
default: readonly unknown[] | undefined;
|
|
99
|
+
minLength?: number;
|
|
100
|
+
maxLength?: number;
|
|
101
|
+
newItemDefault: unknown;
|
|
102
|
+
description?: string;
|
|
103
|
+
keyframable?: false;
|
|
104
|
+
};
|
|
105
|
+
export type VisibleFieldSchema = NumberFieldSchema | BooleanFieldSchema | RotationCssFieldSchema | RotationDegreesFieldSchema | TranslateFieldSchema | TransformOriginFieldSchema | ScaleFieldSchema | UvCoordinateFieldSchema | ColorFieldSchema | ArrayFieldSchema | EnumFieldSchema;
|
|
106
|
+
export type InteractivitySchemaField = VisibleFieldSchema | HiddenFieldSchema;
|
|
107
|
+
export type InteractivitySchema = {
|
|
108
|
+
[key: string]: InteractivitySchemaField;
|
|
109
|
+
};
|
|
110
|
+
export type InteractivitySchemaKeysRecord<S extends InteractivitySchema> = Record<keyof S, unknown>;
|
|
111
|
+
export declare const transformSchema: {
|
|
112
|
+
readonly 'style.transformOrigin': {
|
|
113
|
+
readonly type: "transform-origin";
|
|
114
|
+
readonly step: 1;
|
|
115
|
+
readonly default: "50% 50%";
|
|
116
|
+
readonly description: "Transform origin";
|
|
117
|
+
};
|
|
118
|
+
readonly 'style.translate': {
|
|
119
|
+
readonly type: "translate";
|
|
120
|
+
readonly step: 1;
|
|
121
|
+
readonly default: "0px 0px";
|
|
122
|
+
readonly description: "Offset";
|
|
123
|
+
};
|
|
124
|
+
readonly 'style.scale': {
|
|
125
|
+
readonly type: "scale";
|
|
126
|
+
readonly max: 100;
|
|
127
|
+
readonly step: 0.01;
|
|
128
|
+
readonly default: 1;
|
|
129
|
+
readonly description: "Scale";
|
|
130
|
+
};
|
|
131
|
+
readonly 'style.rotate': {
|
|
132
|
+
readonly type: "rotation-css";
|
|
133
|
+
readonly step: 1;
|
|
134
|
+
readonly default: "0deg";
|
|
135
|
+
readonly description: "Rotation";
|
|
136
|
+
};
|
|
137
|
+
readonly 'style.opacity': {
|
|
138
|
+
readonly type: "number";
|
|
139
|
+
readonly min: 0;
|
|
140
|
+
readonly max: 1;
|
|
141
|
+
readonly step: 0.01;
|
|
142
|
+
readonly default: 1;
|
|
143
|
+
readonly description: "Opacity";
|
|
144
|
+
readonly hiddenFromList: false;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export declare const sequenceVisualStyleSchema: {
|
|
148
|
+
readonly 'style.transformOrigin': {
|
|
149
|
+
readonly type: "transform-origin";
|
|
150
|
+
readonly step: 1;
|
|
151
|
+
readonly default: "50% 50%";
|
|
152
|
+
readonly description: "Transform origin";
|
|
153
|
+
};
|
|
154
|
+
readonly 'style.translate': {
|
|
155
|
+
readonly type: "translate";
|
|
156
|
+
readonly step: 1;
|
|
157
|
+
readonly default: "0px 0px";
|
|
158
|
+
readonly description: "Offset";
|
|
159
|
+
};
|
|
160
|
+
readonly 'style.scale': {
|
|
161
|
+
readonly type: "scale";
|
|
162
|
+
readonly max: 100;
|
|
163
|
+
readonly step: 0.01;
|
|
164
|
+
readonly default: 1;
|
|
165
|
+
readonly description: "Scale";
|
|
166
|
+
};
|
|
167
|
+
readonly 'style.rotate': {
|
|
168
|
+
readonly type: "rotation-css";
|
|
169
|
+
readonly step: 1;
|
|
170
|
+
readonly default: "0deg";
|
|
171
|
+
readonly description: "Rotation";
|
|
172
|
+
};
|
|
173
|
+
readonly 'style.opacity': {
|
|
174
|
+
readonly type: "number";
|
|
175
|
+
readonly min: 0;
|
|
176
|
+
readonly max: 1;
|
|
177
|
+
readonly step: 0.01;
|
|
178
|
+
readonly default: 1;
|
|
179
|
+
readonly description: "Opacity";
|
|
180
|
+
readonly hiddenFromList: false;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export declare const premountSchema: {
|
|
184
|
+
readonly premountFor: {
|
|
185
|
+
readonly type: "number";
|
|
186
|
+
readonly default: 0;
|
|
187
|
+
readonly description: "Premount For";
|
|
188
|
+
readonly min: 0;
|
|
189
|
+
readonly step: 1;
|
|
190
|
+
readonly hiddenFromList: false;
|
|
191
|
+
};
|
|
192
|
+
readonly postmountFor: {
|
|
193
|
+
readonly type: "number";
|
|
194
|
+
readonly default: 0;
|
|
195
|
+
readonly min: 0;
|
|
196
|
+
readonly step: 1;
|
|
197
|
+
readonly hiddenFromList: true;
|
|
198
|
+
};
|
|
199
|
+
readonly styleWhilePremounted: {
|
|
200
|
+
readonly type: "hidden";
|
|
201
|
+
};
|
|
202
|
+
readonly styleWhilePostmounted: {
|
|
203
|
+
readonly type: "hidden";
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
export declare const sequencePremountSchema: {
|
|
207
|
+
readonly premountFor: {
|
|
208
|
+
readonly type: "number";
|
|
209
|
+
readonly default: 0;
|
|
210
|
+
readonly description: "Premount For";
|
|
211
|
+
readonly min: 0;
|
|
212
|
+
readonly step: 1;
|
|
213
|
+
readonly hiddenFromList: false;
|
|
214
|
+
};
|
|
215
|
+
readonly postmountFor: {
|
|
216
|
+
readonly type: "number";
|
|
217
|
+
readonly default: 0;
|
|
218
|
+
readonly min: 0;
|
|
219
|
+
readonly step: 1;
|
|
220
|
+
readonly hiddenFromList: true;
|
|
221
|
+
};
|
|
222
|
+
readonly styleWhilePremounted: {
|
|
223
|
+
readonly type: "hidden";
|
|
224
|
+
};
|
|
225
|
+
readonly styleWhilePostmounted: {
|
|
226
|
+
readonly type: "hidden";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
export declare const sequenceStyleSchema: {
|
|
230
|
+
readonly 'style.transformOrigin': {
|
|
231
|
+
readonly type: "transform-origin";
|
|
232
|
+
readonly step: 1;
|
|
233
|
+
readonly default: "50% 50%";
|
|
234
|
+
readonly description: "Transform origin";
|
|
235
|
+
};
|
|
236
|
+
readonly 'style.translate': {
|
|
237
|
+
readonly type: "translate";
|
|
238
|
+
readonly step: 1;
|
|
239
|
+
readonly default: "0px 0px";
|
|
240
|
+
readonly description: "Offset";
|
|
241
|
+
};
|
|
242
|
+
readonly 'style.scale': {
|
|
243
|
+
readonly type: "scale";
|
|
244
|
+
readonly max: 100;
|
|
245
|
+
readonly step: 0.01;
|
|
246
|
+
readonly default: 1;
|
|
247
|
+
readonly description: "Scale";
|
|
248
|
+
};
|
|
249
|
+
readonly 'style.rotate': {
|
|
250
|
+
readonly type: "rotation-css";
|
|
251
|
+
readonly step: 1;
|
|
252
|
+
readonly default: "0deg";
|
|
253
|
+
readonly description: "Rotation";
|
|
254
|
+
};
|
|
255
|
+
readonly 'style.opacity': {
|
|
256
|
+
readonly type: "number";
|
|
257
|
+
readonly min: 0;
|
|
258
|
+
readonly max: 1;
|
|
259
|
+
readonly step: 0.01;
|
|
260
|
+
readonly default: 1;
|
|
261
|
+
readonly description: "Opacity";
|
|
262
|
+
readonly hiddenFromList: false;
|
|
263
|
+
};
|
|
264
|
+
readonly premountFor: {
|
|
265
|
+
readonly type: "number";
|
|
266
|
+
readonly default: 0;
|
|
267
|
+
readonly description: "Premount For";
|
|
268
|
+
readonly min: 0;
|
|
269
|
+
readonly step: 1;
|
|
270
|
+
readonly hiddenFromList: false;
|
|
271
|
+
};
|
|
272
|
+
readonly postmountFor: {
|
|
273
|
+
readonly type: "number";
|
|
274
|
+
readonly default: 0;
|
|
275
|
+
readonly min: 0;
|
|
276
|
+
readonly step: 1;
|
|
277
|
+
readonly hiddenFromList: true;
|
|
278
|
+
};
|
|
279
|
+
readonly styleWhilePremounted: {
|
|
280
|
+
readonly type: "hidden";
|
|
281
|
+
};
|
|
282
|
+
readonly styleWhilePostmounted: {
|
|
283
|
+
readonly type: "hidden";
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
export declare const hiddenField: InteractivitySchemaField;
|
|
287
|
+
export declare const sequenceNameField: InteractivitySchemaField;
|
|
288
|
+
export declare const extendSchemaWithSequenceName: <S extends InteractivitySchema>(schema: S) => S & {
|
|
289
|
+
name: InteractivitySchemaField;
|
|
290
|
+
};
|
|
291
|
+
export declare const durationInFramesField: {
|
|
292
|
+
readonly type: "number";
|
|
293
|
+
readonly default: undefined;
|
|
294
|
+
readonly min: 1;
|
|
295
|
+
readonly step: 1;
|
|
296
|
+
readonly hiddenFromList: true;
|
|
297
|
+
};
|
|
298
|
+
export declare const fromField: {
|
|
299
|
+
readonly type: "number";
|
|
300
|
+
readonly default: 0;
|
|
301
|
+
readonly step: 1;
|
|
302
|
+
readonly hiddenFromList: true;
|
|
303
|
+
};
|
|
304
|
+
export declare const freezeField: {
|
|
305
|
+
readonly type: "number";
|
|
306
|
+
readonly default: null;
|
|
307
|
+
readonly step: 1;
|
|
308
|
+
readonly hiddenFromList: true;
|
|
309
|
+
};
|
|
310
|
+
export declare const baseSchema: {
|
|
311
|
+
readonly durationInFrames: {
|
|
312
|
+
readonly type: "number";
|
|
313
|
+
readonly default: undefined;
|
|
314
|
+
readonly min: 1;
|
|
315
|
+
readonly step: 1;
|
|
316
|
+
readonly hiddenFromList: true;
|
|
317
|
+
};
|
|
318
|
+
readonly from: {
|
|
319
|
+
readonly type: "number";
|
|
320
|
+
readonly default: 0;
|
|
321
|
+
readonly step: 1;
|
|
322
|
+
readonly hiddenFromList: true;
|
|
323
|
+
};
|
|
324
|
+
readonly freeze: {
|
|
325
|
+
readonly type: "number";
|
|
326
|
+
readonly default: null;
|
|
327
|
+
readonly step: 1;
|
|
328
|
+
readonly hiddenFromList: true;
|
|
329
|
+
};
|
|
330
|
+
readonly hidden: BooleanFieldSchema;
|
|
331
|
+
readonly name: HiddenFieldSchema;
|
|
332
|
+
readonly showInTimeline: HiddenFieldSchema;
|
|
333
|
+
};
|
|
334
|
+
export declare const sequenceSchema: {
|
|
335
|
+
readonly durationInFrames: {
|
|
336
|
+
readonly type: "number";
|
|
337
|
+
readonly default: undefined;
|
|
338
|
+
readonly min: 1;
|
|
339
|
+
readonly step: 1;
|
|
340
|
+
readonly hiddenFromList: true;
|
|
341
|
+
};
|
|
342
|
+
readonly from: {
|
|
343
|
+
readonly type: "number";
|
|
344
|
+
readonly default: 0;
|
|
345
|
+
readonly step: 1;
|
|
346
|
+
readonly hiddenFromList: true;
|
|
347
|
+
};
|
|
348
|
+
readonly freeze: {
|
|
349
|
+
readonly type: "number";
|
|
350
|
+
readonly default: null;
|
|
351
|
+
readonly step: 1;
|
|
352
|
+
readonly hiddenFromList: true;
|
|
353
|
+
};
|
|
354
|
+
readonly hidden: BooleanFieldSchema;
|
|
355
|
+
readonly name: HiddenFieldSchema;
|
|
356
|
+
readonly showInTimeline: HiddenFieldSchema;
|
|
357
|
+
readonly layout: {
|
|
358
|
+
readonly type: "enum";
|
|
359
|
+
readonly default: "absolute-fill";
|
|
360
|
+
readonly description: "Layout";
|
|
361
|
+
readonly variants: {
|
|
362
|
+
readonly 'absolute-fill': {
|
|
363
|
+
readonly 'style.transformOrigin': {
|
|
364
|
+
readonly type: "transform-origin";
|
|
365
|
+
readonly step: 1;
|
|
366
|
+
readonly default: "50% 50%";
|
|
367
|
+
readonly description: "Transform origin";
|
|
368
|
+
};
|
|
369
|
+
readonly 'style.translate': {
|
|
370
|
+
readonly type: "translate";
|
|
371
|
+
readonly step: 1;
|
|
372
|
+
readonly default: "0px 0px";
|
|
373
|
+
readonly description: "Offset";
|
|
374
|
+
};
|
|
375
|
+
readonly 'style.scale': {
|
|
376
|
+
readonly type: "scale";
|
|
377
|
+
readonly max: 100;
|
|
378
|
+
readonly step: 0.01;
|
|
379
|
+
readonly default: 1;
|
|
380
|
+
readonly description: "Scale";
|
|
381
|
+
};
|
|
382
|
+
readonly 'style.rotate': {
|
|
383
|
+
readonly type: "rotation-css";
|
|
384
|
+
readonly step: 1;
|
|
385
|
+
readonly default: "0deg";
|
|
386
|
+
readonly description: "Rotation";
|
|
387
|
+
};
|
|
388
|
+
readonly 'style.opacity': {
|
|
389
|
+
readonly type: "number";
|
|
390
|
+
readonly min: 0;
|
|
391
|
+
readonly max: 1;
|
|
392
|
+
readonly step: 0.01;
|
|
393
|
+
readonly default: 1;
|
|
394
|
+
readonly description: "Opacity";
|
|
395
|
+
readonly hiddenFromList: false;
|
|
396
|
+
};
|
|
397
|
+
readonly premountFor: {
|
|
398
|
+
readonly type: "number";
|
|
399
|
+
readonly default: 0;
|
|
400
|
+
readonly description: "Premount For";
|
|
401
|
+
readonly min: 0;
|
|
402
|
+
readonly step: 1;
|
|
403
|
+
readonly hiddenFromList: false;
|
|
404
|
+
};
|
|
405
|
+
readonly postmountFor: {
|
|
406
|
+
readonly type: "number";
|
|
407
|
+
readonly default: 0;
|
|
408
|
+
readonly min: 0;
|
|
409
|
+
readonly step: 1;
|
|
410
|
+
readonly hiddenFromList: true;
|
|
411
|
+
};
|
|
412
|
+
readonly styleWhilePremounted: {
|
|
413
|
+
readonly type: "hidden";
|
|
414
|
+
};
|
|
415
|
+
readonly styleWhilePostmounted: {
|
|
416
|
+
readonly type: "hidden";
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
readonly none: {};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
export declare const baseSchemaWithoutFrom: {
|
|
424
|
+
readonly durationInFrames: {
|
|
425
|
+
readonly type: "number";
|
|
426
|
+
readonly default: undefined;
|
|
427
|
+
readonly min: 1;
|
|
428
|
+
readonly step: 1;
|
|
429
|
+
readonly hiddenFromList: true;
|
|
430
|
+
};
|
|
431
|
+
readonly freeze: {
|
|
432
|
+
readonly type: "number";
|
|
433
|
+
readonly default: null;
|
|
434
|
+
readonly step: 1;
|
|
435
|
+
readonly hiddenFromList: true;
|
|
436
|
+
};
|
|
437
|
+
readonly hidden: BooleanFieldSchema;
|
|
438
|
+
readonly name: HiddenFieldSchema;
|
|
439
|
+
readonly showInTimeline: HiddenFieldSchema;
|
|
440
|
+
};
|
|
441
|
+
export declare const sequenceSchemaWithoutFrom: {
|
|
442
|
+
readonly durationInFrames: {
|
|
443
|
+
readonly type: "number";
|
|
444
|
+
readonly default: undefined;
|
|
445
|
+
readonly min: 1;
|
|
446
|
+
readonly step: 1;
|
|
447
|
+
readonly hiddenFromList: true;
|
|
448
|
+
};
|
|
449
|
+
readonly freeze: {
|
|
450
|
+
readonly type: "number";
|
|
451
|
+
readonly default: null;
|
|
452
|
+
readonly step: 1;
|
|
453
|
+
readonly hiddenFromList: true;
|
|
454
|
+
};
|
|
455
|
+
readonly hidden: BooleanFieldSchema;
|
|
456
|
+
readonly name: HiddenFieldSchema;
|
|
457
|
+
readonly showInTimeline: HiddenFieldSchema;
|
|
458
|
+
readonly layout: {
|
|
459
|
+
readonly type: "enum";
|
|
460
|
+
readonly default: "absolute-fill";
|
|
461
|
+
readonly description: "Layout";
|
|
462
|
+
readonly variants: {
|
|
463
|
+
readonly 'absolute-fill': {
|
|
464
|
+
readonly 'style.transformOrigin': {
|
|
465
|
+
readonly type: "transform-origin";
|
|
466
|
+
readonly step: 1;
|
|
467
|
+
readonly default: "50% 50%";
|
|
468
|
+
readonly description: "Transform origin";
|
|
469
|
+
};
|
|
470
|
+
readonly 'style.translate': {
|
|
471
|
+
readonly type: "translate";
|
|
472
|
+
readonly step: 1;
|
|
473
|
+
readonly default: "0px 0px";
|
|
474
|
+
readonly description: "Offset";
|
|
475
|
+
};
|
|
476
|
+
readonly 'style.scale': {
|
|
477
|
+
readonly type: "scale";
|
|
478
|
+
readonly max: 100;
|
|
479
|
+
readonly step: 0.01;
|
|
480
|
+
readonly default: 1;
|
|
481
|
+
readonly description: "Scale";
|
|
482
|
+
};
|
|
483
|
+
readonly 'style.rotate': {
|
|
484
|
+
readonly type: "rotation-css";
|
|
485
|
+
readonly step: 1;
|
|
486
|
+
readonly default: "0deg";
|
|
487
|
+
readonly description: "Rotation";
|
|
488
|
+
};
|
|
489
|
+
readonly 'style.opacity': {
|
|
490
|
+
readonly type: "number";
|
|
491
|
+
readonly min: 0;
|
|
492
|
+
readonly max: 1;
|
|
493
|
+
readonly step: 0.01;
|
|
494
|
+
readonly default: 1;
|
|
495
|
+
readonly description: "Opacity";
|
|
496
|
+
readonly hiddenFromList: false;
|
|
497
|
+
};
|
|
498
|
+
readonly premountFor: {
|
|
499
|
+
readonly type: "number";
|
|
500
|
+
readonly default: 0;
|
|
501
|
+
readonly description: "Premount For";
|
|
502
|
+
readonly min: 0;
|
|
503
|
+
readonly step: 1;
|
|
504
|
+
readonly hiddenFromList: false;
|
|
505
|
+
};
|
|
506
|
+
readonly postmountFor: {
|
|
507
|
+
readonly type: "number";
|
|
508
|
+
readonly default: 0;
|
|
509
|
+
readonly min: 0;
|
|
510
|
+
readonly step: 1;
|
|
511
|
+
readonly hiddenFromList: true;
|
|
512
|
+
};
|
|
513
|
+
readonly styleWhilePremounted: {
|
|
514
|
+
readonly type: "hidden";
|
|
515
|
+
};
|
|
516
|
+
readonly styleWhilePostmounted: {
|
|
517
|
+
readonly type: "hidden";
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
readonly none: {};
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
export declare const sequenceSchemaDefaultLayoutNone: InteractivitySchema;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.baseSchemaWithoutFrom = exports.sequenceSchema = exports.baseSchema = exports.freezeField = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.premountSchema = exports.sequenceVisualStyleSchema = exports.transformSchema = void 0;
|
|
4
|
+
exports.transformSchema = {
|
|
5
|
+
'style.transformOrigin': {
|
|
6
|
+
type: 'transform-origin',
|
|
7
|
+
step: 1,
|
|
8
|
+
default: '50% 50%',
|
|
9
|
+
description: 'Transform origin',
|
|
10
|
+
},
|
|
11
|
+
'style.translate': {
|
|
12
|
+
type: 'translate',
|
|
13
|
+
step: 1,
|
|
14
|
+
default: '0px 0px',
|
|
15
|
+
description: 'Offset',
|
|
16
|
+
},
|
|
17
|
+
'style.scale': {
|
|
18
|
+
type: 'scale',
|
|
19
|
+
max: 100,
|
|
20
|
+
step: 0.01,
|
|
21
|
+
default: 1,
|
|
22
|
+
description: 'Scale',
|
|
23
|
+
},
|
|
24
|
+
'style.rotate': {
|
|
25
|
+
type: 'rotation-css',
|
|
26
|
+
step: 1,
|
|
27
|
+
default: '0deg',
|
|
28
|
+
description: 'Rotation',
|
|
29
|
+
},
|
|
30
|
+
'style.opacity': {
|
|
31
|
+
type: 'number',
|
|
32
|
+
min: 0,
|
|
33
|
+
max: 1,
|
|
34
|
+
step: 0.01,
|
|
35
|
+
default: 1,
|
|
36
|
+
description: 'Opacity',
|
|
37
|
+
hiddenFromList: false,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
exports.sequenceVisualStyleSchema = exports.transformSchema;
|
|
41
|
+
exports.premountSchema = {
|
|
42
|
+
premountFor: {
|
|
43
|
+
type: 'number',
|
|
44
|
+
default: 0,
|
|
45
|
+
description: 'Premount For',
|
|
46
|
+
min: 0,
|
|
47
|
+
step: 1,
|
|
48
|
+
hiddenFromList: false,
|
|
49
|
+
},
|
|
50
|
+
postmountFor: {
|
|
51
|
+
type: 'number',
|
|
52
|
+
default: 0,
|
|
53
|
+
min: 0,
|
|
54
|
+
step: 1,
|
|
55
|
+
hiddenFromList: true,
|
|
56
|
+
},
|
|
57
|
+
styleWhilePremounted: {
|
|
58
|
+
type: 'hidden',
|
|
59
|
+
},
|
|
60
|
+
styleWhilePostmounted: {
|
|
61
|
+
type: 'hidden',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
exports.sequencePremountSchema = exports.premountSchema;
|
|
65
|
+
exports.sequenceStyleSchema = {
|
|
66
|
+
...exports.transformSchema,
|
|
67
|
+
...exports.premountSchema,
|
|
68
|
+
};
|
|
69
|
+
exports.hiddenField = {
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
default: false,
|
|
72
|
+
description: 'Hidden',
|
|
73
|
+
};
|
|
74
|
+
const showInTimelineField = {
|
|
75
|
+
type: 'hidden',
|
|
76
|
+
};
|
|
77
|
+
exports.sequenceNameField = {
|
|
78
|
+
type: 'hidden',
|
|
79
|
+
};
|
|
80
|
+
const extendSchemaWithSequenceName = (schema) => {
|
|
81
|
+
return {
|
|
82
|
+
name: exports.sequenceNameField,
|
|
83
|
+
...schema,
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
exports.extendSchemaWithSequenceName = extendSchemaWithSequenceName;
|
|
87
|
+
exports.durationInFramesField = {
|
|
88
|
+
type: 'number',
|
|
89
|
+
default: undefined,
|
|
90
|
+
min: 1,
|
|
91
|
+
step: 1,
|
|
92
|
+
hiddenFromList: true,
|
|
93
|
+
};
|
|
94
|
+
exports.fromField = {
|
|
95
|
+
type: 'number',
|
|
96
|
+
default: 0,
|
|
97
|
+
step: 1,
|
|
98
|
+
hiddenFromList: true,
|
|
99
|
+
};
|
|
100
|
+
exports.freezeField = {
|
|
101
|
+
type: 'number',
|
|
102
|
+
default: null,
|
|
103
|
+
step: 1,
|
|
104
|
+
hiddenFromList: true,
|
|
105
|
+
};
|
|
106
|
+
exports.baseSchema = {
|
|
107
|
+
durationInFrames: exports.durationInFramesField,
|
|
108
|
+
from: exports.fromField,
|
|
109
|
+
freeze: exports.freezeField,
|
|
110
|
+
hidden: exports.hiddenField,
|
|
111
|
+
name: exports.sequenceNameField,
|
|
112
|
+
showInTimeline: showInTimelineField,
|
|
113
|
+
};
|
|
114
|
+
exports.sequenceSchema = {
|
|
115
|
+
...exports.baseSchema,
|
|
116
|
+
layout: {
|
|
117
|
+
type: 'enum',
|
|
118
|
+
default: 'absolute-fill',
|
|
119
|
+
description: 'Layout',
|
|
120
|
+
variants: {
|
|
121
|
+
'absolute-fill': exports.sequenceStyleSchema,
|
|
122
|
+
none: {},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
exports.baseSchemaWithoutFrom = {
|
|
127
|
+
durationInFrames: exports.durationInFramesField,
|
|
128
|
+
freeze: exports.freezeField,
|
|
129
|
+
hidden: exports.hiddenField,
|
|
130
|
+
name: exports.sequenceNameField,
|
|
131
|
+
showInTimeline: showInTimelineField,
|
|
132
|
+
};
|
|
133
|
+
exports.sequenceSchemaWithoutFrom = {
|
|
134
|
+
...exports.baseSchemaWithoutFrom,
|
|
135
|
+
layout: exports.sequenceSchema.layout,
|
|
136
|
+
};
|
|
137
|
+
exports.sequenceSchemaDefaultLayoutNone = {
|
|
138
|
+
...exports.sequenceSchema,
|
|
139
|
+
layout: {
|
|
140
|
+
...exports.sequenceSchema.layout,
|
|
141
|
+
default: 'none',
|
|
142
|
+
},
|
|
143
|
+
};
|