@johnoscott/isometric-engine 0.12.6 → 0.15.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.
Files changed (71) hide show
  1. package/EDITOR-GUIDE.md +9 -2
  2. package/README.md +1 -1
  3. package/assets/app.css +6 -0
  4. package/assets/marks.css +2 -0
  5. package/iso-editor.js +194 -184
  6. package/iso-render.js +157 -148
  7. package/iso-systems.js +170 -159
  8. package/js/iso-editor/make-way.js +62 -0
  9. package/js/iso-editor/ui/canvas.js +477 -216
  10. package/js/iso-editor/ui/palette-look.js +53 -0
  11. package/js/iso-editor/ui/setup.js +3 -0
  12. package/js/iso-objects/ants.js +36 -0
  13. package/js/iso-objects/index.js +47 -1
  14. package/js/iso-objects/looks.js +25 -0
  15. package/js/iso-objects/motion-builder.js +130 -0
  16. package/js/iso-objects/motion-doc.js +500 -0
  17. package/js/iso-objects/motion-entry.js +32 -0
  18. package/js/iso-objects/motion.js +635 -0
  19. package/js/iso-objects/resolve.js +238 -0
  20. package/js/iso-objects/scene.js +15 -13
  21. package/js/iso-objects/timeline.js +553 -0
  22. package/js/iso-systems/compile.js +59 -1
  23. package/js/iso-systems/index.js +4 -1
  24. package/js/iso-systems/render.js +20 -0
  25. package/js/iso-systems/schema.json +39 -0
  26. package/js/iso-viewer/page.js +2 -1
  27. package/js/iso-viewer/player.js +23 -34
  28. package/package.json +46 -1
  29. package/src/iso-editor/make-way.ts +89 -0
  30. package/src/iso-editor/ui/app.css +4 -0
  31. package/src/iso-editor/ui/canvas.ts +390 -170
  32. package/src/iso-editor/ui/marks.css +2 -0
  33. package/src/iso-editor/ui/palette-look.ts +51 -0
  34. package/src/iso-editor/ui/setup.ts +8 -0
  35. package/src/iso-objects/ants.ts +53 -0
  36. package/src/iso-objects/compile.ts +4 -1
  37. package/src/iso-objects/index.ts +14 -1
  38. package/src/iso-objects/looks.ts +21 -0
  39. package/src/iso-objects/motion-builder.ts +79 -0
  40. package/src/iso-objects/motion-doc.ts +361 -0
  41. package/src/iso-objects/motion-entry.ts +12 -0
  42. package/src/iso-objects/motion.ts +616 -0
  43. package/src/iso-objects/resolve.ts +196 -0
  44. package/src/iso-objects/scene.ts +29 -13
  45. package/src/iso-objects/timeline.ts +443 -0
  46. package/src/iso-objects/types.ts +20 -2
  47. package/src/iso-systems/compile.ts +58 -3
  48. package/src/iso-systems/index.ts +4 -1
  49. package/src/iso-systems/render.ts +41 -0
  50. package/src/iso-systems/schema.json +39 -0
  51. package/src/iso-viewer/page.ts +2 -1
  52. package/src/iso-viewer/player.ts +24 -41
  53. package/types/iso-editor/make-way.d.ts +40 -0
  54. package/types/iso-editor/ui/canvas.d.ts +33 -12
  55. package/types/iso-editor/ui/palette-look.d.ts +5 -0
  56. package/types/iso-editor/ui/setup.d.ts +5 -0
  57. package/types/iso-objects/ants.d.ts +33 -0
  58. package/types/iso-objects/compile.d.ts +3 -0
  59. package/types/iso-objects/index.d.ts +14 -1
  60. package/types/iso-objects/looks.d.ts +4 -0
  61. package/types/iso-objects/motion-builder.d.ts +105 -0
  62. package/types/iso-objects/motion-doc.d.ts +787 -0
  63. package/types/iso-objects/motion-entry.d.ts +10 -0
  64. package/types/iso-objects/motion.d.ts +200 -0
  65. package/types/iso-objects/resolve.d.ts +20 -0
  66. package/types/iso-objects/scene.d.ts +11 -0
  67. package/types/iso-objects/timeline.d.ts +46 -0
  68. package/types/iso-objects/types.d.ts +32 -0
  69. package/types/iso-systems/compile.d.ts +20 -3
  70. package/types/iso-systems/index.d.ts +4 -1
  71. package/types/iso-systems/render.d.ts +21 -0
@@ -0,0 +1,787 @@
1
+ import { type PlanOptions } from './motion.js';
2
+ /** ms, or "1.2s", "450ms", "30f" (frames, at the document's fps) */
3
+ export type MotionTime = number | string;
4
+ export declare const EASING_NAMES: readonly ['linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'settle', 'bounce'];
5
+ export type EasingName = typeof EASING_NAMES[number];
6
+ export interface SpringConfig {
7
+ mass?: number;
8
+ damping?: number;
9
+ stiffness?: number;
10
+ overshootClamping?: boolean;
11
+ }
12
+ export type MotionEase = EasingName | {
13
+ bezier: [number, number, number, number];
14
+ } | {
15
+ spring: SpringConfig;
16
+ };
17
+ export declare const EXTRAPOLATE: readonly ['extend', 'clamp', 'wrap', 'identity'];
18
+ export type Extrapolate = typeof EXTRAPOLATE[number];
19
+ /** a value over time: Remotion's interpolate, with ms for frames */
20
+ export interface Curve {
21
+ times: MotionTime[];
22
+ values: number[];
23
+ easing?: MotionEase;
24
+ extrapolateLeft?: Extrapolate;
25
+ extrapolateRight?: Extrapolate;
26
+ }
27
+ /** the commentary of a beat */
28
+ export interface Say {
29
+ chapter?: string;
30
+ title?: string;
31
+ text?: string;
32
+ code?: string;
33
+ facts?: [string, string][];
34
+ color?: string;
35
+ }
36
+ /** what a beat's focus dims: everything else, or the connectors and notes only */
37
+ export interface Focus {
38
+ lit: string[];
39
+ scope?: 'all' | 'links';
40
+ level?: number;
41
+ always?: string[];
42
+ }
43
+ /** as long as it takes to read it: base + perChar × the text's length, between min and max */
44
+ export interface ReadTime {
45
+ read: true | {
46
+ base?: number;
47
+ perChar?: number;
48
+ min?: number;
49
+ max?: number;
50
+ };
51
+ }
52
+ interface ChildTiming {
53
+ from?: MotionTime;
54
+ duration?: MotionTime;
55
+ easing?: MotionEase;
56
+ }
57
+ export interface Sequence {
58
+ name?: string;
59
+ from?: MotionTime;
60
+ duration?: MotionTime | ReadTime;
61
+ loop?: boolean | number;
62
+ playbackRate?: number;
63
+ trimBefore?: MotionTime;
64
+ /** in a series: later (or, negative, earlier) than the end of the one before; those after it move too */
65
+ offset?: MotionTime;
66
+ say?: Say;
67
+ /** cumulative: what is there is the fold of every beat to here */
68
+ show?: string[];
69
+ hide?: string[];
70
+ focus?: Focus;
71
+ /** things ringed while the beat lasts */
72
+ highlight?: string[];
73
+ /** how much of a thing or a connector is there in this beat (0 to 1), as a phase has it; with `*`, every one not named */
74
+ levels?: Record<string, number>;
75
+ /** which of its looks a thing has from this beat on (cumulative, as show is); "" is its own */
76
+ variants?: Record<string, string>;
77
+ /** the ramp from the beat before (what a CSS transition would do) */
78
+ enter?: {
79
+ fade: MotionTime;
80
+ easing?: MotionEase;
81
+ };
82
+ /** marching dashes: every connector shown, or these; a beat's own */
83
+ ants?: boolean | string[];
84
+ children?: MotionNode[];
85
+ layers?: MotionNode[];
86
+ series?: SeriesItem[];
87
+ }
88
+ export interface Transition {
89
+ presentation: 'fade' | 'none';
90
+ timing: {
91
+ linear: MotionTime;
92
+ } | {
93
+ spring: SpringConfig & {
94
+ duration?: MotionTime;
95
+ };
96
+ };
97
+ }
98
+ export type SeriesItem = {
99
+ sequence: Sequence;
100
+ } | {
101
+ transition: Transition;
102
+ };
103
+ export type MotionNode = {
104
+ sequence: Sequence;
105
+ } | {
106
+ series: SeriesItem[];
107
+ } | {
108
+ layers: MotionNode[];
109
+ } | ({
110
+ assemble: Omit<PlanOptions, 'duration'>;
111
+ } & ChildTiming) | ({
112
+ disassemble: Omit<PlanOptions, 'duration'>;
113
+ } & ChildTiming)
114
+ /** tokens along connectors: in sequence; a nested array is in parallel; "id:kind" colours one by a kind */
115
+ | ({
116
+ travel: (string | string[])[];
117
+ each?: MotionTime;
118
+ hold?: MotionTime;
119
+ loop?: boolean;
120
+ } & ChildTiming) | ({
121
+ pulse: string[];
122
+ loop?: boolean;
123
+ } & ChildTiming) | ({
124
+ ants: true | string[];
125
+ speed?: number;
126
+ dash?: [number, number];
127
+ } & ChildTiming) | ({
128
+ draw: string[];
129
+ by?: 'stroke' | 'grow';
130
+ stagger?: MotionTime;
131
+ } & ChildTiming) | ({
132
+ type: string[];
133
+ } & ChildTiming) | ({
134
+ move: string;
135
+ x?: Curve;
136
+ y?: Curve;
137
+ scale?: Curve;
138
+ opacity?: Curve;
139
+ } & {
140
+ from?: MotionTime;
141
+ })
142
+ /** `opacity`: over each thing's own time, from its own start (a slab that appears as it rises) */
143
+ | ({
144
+ lift: string[];
145
+ by: number;
146
+ stagger?: MotionTime;
147
+ to?: 'up' | 'down';
148
+ opacity?: Curve;
149
+ } & ChildTiming)
150
+ /** `fade`: how long it comes in and goes out over (250) */
151
+ | ({
152
+ focus: Focus;
153
+ fade?: MotionTime;
154
+ } & ChildTiming) | ({
155
+ highlight: string[];
156
+ fade?: MotionTime;
157
+ } & ChildTiming) | ({
158
+ camera: {
159
+ focus: string | string[] | [number, number, number, number];
160
+ zoom?: number;
161
+ margin?: number;
162
+ } | 'fit';
163
+ } & ChildTiming);
164
+ export interface MotionDoc {
165
+ isomotion: 1;
166
+ fps?: number;
167
+ seed?: number;
168
+ ambient?: 'on' | 'off';
169
+ series?: SeriesItem[];
170
+ layers?: MotionNode[];
171
+ /** named moments: ms, or "beat+1200" */
172
+ markers?: Record<string, MotionTime>;
173
+ }
174
+ export interface MotionDiag {
175
+ severity: 'error' | 'warning';
176
+ path: string;
177
+ message: string;
178
+ hint?: string;
179
+ }
180
+ /** a time in ms, or undefined when it isn't one */
181
+ export declare function msOf(t: unknown, fps?: number): number | undefined;
182
+ /** how long a beat's words take to read */
183
+ export declare function readMs(say: Say | undefined, r: ReadTime['read']): number;
184
+ export declare const bezier: (x1: number, y1: number, x2: number, y2: number) => (x: number) => number;
185
+ /** A damped spring from 0 to 1, t ms after it is let go: the closed form, no steps. */
186
+ export declare function springAt(t: number, c?: SpringConfig): number;
187
+ /** An easing as a function of the share of its time done; a spring is given the time's length too. */
188
+ export declare function easeOf(e: MotionEase | undefined, duration: number, otherwise?: EasingName): (f: number) => number;
189
+ /** Remotion's interpolate, for a checked curve: piecewise, the easing in each piece, the ends as asked (extend by default). */
190
+ export declare function curveAt(c: Curve, t: number, fps?: number): number;
191
+ export declare const MOTION_SCHEMA: {
192
+ readonly $schema: 'https://json-schema.org/draft/2020-12/schema';
193
+ readonly title: 'isomotion/1';
194
+ readonly type: 'object';
195
+ readonly required: readonly ['isomotion'];
196
+ readonly additionalProperties: false;
197
+ readonly properties: {
198
+ readonly isomotion: {
199
+ readonly const: 1;
200
+ };
201
+ readonly fps: {
202
+ readonly type: 'number';
203
+ readonly exclusiveMinimum: 0;
204
+ readonly description: 'Frames a second, for lengths written "30f".';
205
+ };
206
+ readonly seed: {
207
+ readonly type: 'integer';
208
+ };
209
+ readonly ambient: {
210
+ readonly enum: readonly ['on', 'off'];
211
+ readonly description: 'Off: the ants and the looping tokens and pulses stand still, each at its start.';
212
+ };
213
+ readonly series: {
214
+ readonly $ref: '#/$defs/series';
215
+ };
216
+ readonly layers: {
217
+ readonly $ref: '#/$defs/nodes';
218
+ };
219
+ readonly markers: {
220
+ readonly type: 'object';
221
+ readonly additionalProperties: {
222
+ readonly anyOf: readonly [{
223
+ readonly type: 'number';
224
+ }, {
225
+ readonly type: 'string';
226
+ }];
227
+ };
228
+ };
229
+ };
230
+ readonly $defs: {
231
+ readonly time: {
232
+ readonly anyOf: readonly [{
233
+ readonly type: 'number';
234
+ }, {
235
+ readonly type: 'string';
236
+ readonly pattern: '^-?\\d+(\\.\\d+)?(ms|s|f)?$';
237
+ }];
238
+ };
239
+ readonly ids: {
240
+ readonly type: 'array';
241
+ readonly items: {
242
+ readonly type: 'string';
243
+ };
244
+ };
245
+ readonly ease: {
246
+ readonly anyOf: readonly [{
247
+ readonly enum: readonly ["linear", "ease", "ease-in", "ease-out", "ease-in-out", "settle", "bounce"];
248
+ }, {
249
+ readonly type: 'object';
250
+ readonly required: readonly ['bezier'];
251
+ readonly additionalProperties: false;
252
+ readonly properties: {
253
+ readonly bezier: {
254
+ readonly type: 'array';
255
+ readonly items: {
256
+ readonly type: 'number';
257
+ };
258
+ readonly minItems: 4;
259
+ readonly maxItems: 4;
260
+ };
261
+ };
262
+ }, {
263
+ readonly type: 'object';
264
+ readonly required: readonly ['spring'];
265
+ readonly additionalProperties: false;
266
+ readonly properties: {
267
+ readonly spring: {
268
+ readonly $ref: '#/$defs/spring';
269
+ };
270
+ };
271
+ }];
272
+ };
273
+ readonly spring: {
274
+ readonly type: 'object';
275
+ readonly additionalProperties: false;
276
+ readonly properties: {
277
+ readonly mass: {
278
+ readonly type: 'number';
279
+ readonly exclusiveMinimum: 0;
280
+ };
281
+ readonly damping: {
282
+ readonly type: 'number';
283
+ readonly exclusiveMinimum: 0;
284
+ };
285
+ readonly stiffness: {
286
+ readonly type: 'number';
287
+ readonly exclusiveMinimum: 0;
288
+ };
289
+ readonly overshootClamping: {
290
+ readonly type: 'boolean';
291
+ };
292
+ };
293
+ };
294
+ readonly curve: {
295
+ readonly type: 'object';
296
+ readonly required: readonly ['times', 'values'];
297
+ readonly additionalProperties: false;
298
+ readonly properties: {
299
+ readonly times: {
300
+ readonly type: 'array';
301
+ readonly items: {
302
+ readonly $ref: '#/$defs/time';
303
+ };
304
+ readonly minItems: 1;
305
+ };
306
+ readonly values: {
307
+ readonly type: 'array';
308
+ readonly items: {
309
+ readonly type: 'number';
310
+ };
311
+ readonly minItems: 1;
312
+ };
313
+ readonly easing: {
314
+ readonly $ref: '#/$defs/ease';
315
+ };
316
+ readonly extrapolateLeft: {
317
+ readonly enum: readonly ["extend", "clamp", "wrap", "identity"];
318
+ };
319
+ readonly extrapolateRight: {
320
+ readonly enum: readonly ["extend", "clamp", "wrap", "identity"];
321
+ };
322
+ };
323
+ };
324
+ readonly say: {
325
+ readonly type: 'object';
326
+ readonly additionalProperties: false;
327
+ readonly properties: {
328
+ readonly chapter: {
329
+ readonly type: 'string';
330
+ };
331
+ readonly title: {
332
+ readonly type: 'string';
333
+ };
334
+ readonly text: {
335
+ readonly type: 'string';
336
+ };
337
+ readonly code: {
338
+ readonly type: 'string';
339
+ };
340
+ readonly color: {
341
+ readonly type: 'string';
342
+ };
343
+ readonly facts: {
344
+ readonly type: 'array';
345
+ readonly items: {
346
+ readonly type: 'array';
347
+ readonly items: {
348
+ readonly type: 'string';
349
+ };
350
+ readonly minItems: 2;
351
+ readonly maxItems: 2;
352
+ };
353
+ };
354
+ };
355
+ };
356
+ readonly focus: {
357
+ readonly type: 'object';
358
+ readonly required: readonly ['lit'];
359
+ readonly additionalProperties: false;
360
+ readonly properties: {
361
+ readonly lit: {
362
+ readonly $ref: '#/$defs/ids';
363
+ };
364
+ readonly scope: {
365
+ readonly enum: readonly ['all', 'links'];
366
+ };
367
+ readonly level: {
368
+ readonly type: 'number';
369
+ readonly minimum: 0;
370
+ readonly maximum: 1;
371
+ };
372
+ readonly always: {
373
+ readonly $ref: '#/$defs/ids';
374
+ };
375
+ };
376
+ };
377
+ readonly sequence: {
378
+ readonly type: 'object';
379
+ readonly additionalProperties: false;
380
+ readonly properties: {
381
+ readonly name: {
382
+ readonly type: 'string';
383
+ readonly pattern: '^[A-Za-z][\\w-]*$';
384
+ };
385
+ readonly from: {
386
+ readonly $ref: '#/$defs/time';
387
+ };
388
+ readonly offset: {
389
+ readonly $ref: '#/$defs/time';
390
+ };
391
+ readonly trimBefore: {
392
+ readonly $ref: '#/$defs/time';
393
+ };
394
+ readonly duration: {
395
+ readonly anyOf: readonly [{
396
+ readonly $ref: '#/$defs/time';
397
+ }, {
398
+ readonly type: 'object';
399
+ readonly required: readonly ['read'];
400
+ readonly additionalProperties: false;
401
+ readonly properties: {
402
+ readonly read: {
403
+ readonly anyOf: readonly [{
404
+ readonly const: true;
405
+ }, {
406
+ readonly type: 'object';
407
+ readonly additionalProperties: false;
408
+ readonly properties: {
409
+ readonly base: {
410
+ readonly type: 'number';
411
+ };
412
+ readonly perChar: {
413
+ readonly type: 'number';
414
+ };
415
+ readonly min: {
416
+ readonly type: 'number';
417
+ };
418
+ readonly max: {
419
+ readonly type: 'number';
420
+ };
421
+ };
422
+ }];
423
+ };
424
+ };
425
+ }];
426
+ };
427
+ readonly loop: {
428
+ readonly anyOf: readonly [{
429
+ readonly type: 'boolean';
430
+ }, {
431
+ readonly type: 'integer';
432
+ readonly minimum: 1;
433
+ }];
434
+ };
435
+ readonly playbackRate: {
436
+ readonly type: 'number';
437
+ readonly exclusiveMinimum: 0;
438
+ };
439
+ readonly say: {
440
+ readonly $ref: '#/$defs/say';
441
+ };
442
+ readonly show: {
443
+ readonly $ref: '#/$defs/ids';
444
+ };
445
+ readonly hide: {
446
+ readonly $ref: '#/$defs/ids';
447
+ };
448
+ readonly focus: {
449
+ readonly $ref: '#/$defs/focus';
450
+ };
451
+ readonly highlight: {
452
+ readonly $ref: '#/$defs/ids';
453
+ };
454
+ readonly levels: {
455
+ readonly type: 'object';
456
+ readonly additionalProperties: {
457
+ readonly type: 'number';
458
+ readonly minimum: 0;
459
+ readonly maximum: 1;
460
+ };
461
+ };
462
+ readonly variants: {
463
+ readonly type: 'object';
464
+ readonly additionalProperties: {
465
+ readonly type: 'string';
466
+ };
467
+ };
468
+ readonly enter: {
469
+ readonly type: 'object';
470
+ readonly required: readonly ['fade'];
471
+ readonly additionalProperties: false;
472
+ readonly properties: {
473
+ readonly fade: {
474
+ readonly $ref: '#/$defs/time';
475
+ };
476
+ readonly easing: {
477
+ readonly $ref: '#/$defs/ease';
478
+ };
479
+ };
480
+ };
481
+ readonly ants: {
482
+ readonly anyOf: readonly [{
483
+ readonly type: 'boolean';
484
+ }, {
485
+ readonly $ref: '#/$defs/ids';
486
+ }];
487
+ };
488
+ readonly children: {
489
+ readonly $ref: '#/$defs/nodes';
490
+ };
491
+ readonly layers: {
492
+ readonly $ref: '#/$defs/nodes';
493
+ };
494
+ readonly series: {
495
+ readonly $ref: '#/$defs/series';
496
+ };
497
+ };
498
+ };
499
+ readonly series: {
500
+ readonly type: 'array';
501
+ readonly items: {
502
+ readonly anyOf: readonly [{
503
+ readonly $ref: '#/$defs/seq';
504
+ }, {
505
+ type: string;
506
+ required: string[];
507
+ additionalProperties: boolean;
508
+ properties: {
509
+ from?: {
510
+ $ref: string;
511
+ } | undefined;
512
+ duration?: {
513
+ $ref: string;
514
+ } | undefined;
515
+ easing?: {
516
+ $ref: string;
517
+ } | undefined;
518
+ };
519
+ }];
520
+ };
521
+ };
522
+ readonly seq: {
523
+ type: string;
524
+ required: string[];
525
+ additionalProperties: boolean;
526
+ properties: {
527
+ from?: {
528
+ $ref: string;
529
+ } | undefined;
530
+ duration?: {
531
+ $ref: string;
532
+ } | undefined;
533
+ easing?: {
534
+ $ref: string;
535
+ } | undefined;
536
+ };
537
+ };
538
+ readonly plan: {
539
+ readonly type: 'object';
540
+ };
541
+ readonly nodes: {
542
+ readonly type: 'array';
543
+ readonly items: {
544
+ readonly anyOf: readonly [{
545
+ readonly $ref: '#/$defs/seq';
546
+ }, {
547
+ type: string;
548
+ required: string[];
549
+ additionalProperties: boolean;
550
+ properties: {
551
+ from?: {
552
+ $ref: string;
553
+ } | undefined;
554
+ duration?: {
555
+ $ref: string;
556
+ } | undefined;
557
+ easing?: {
558
+ $ref: string;
559
+ } | undefined;
560
+ };
561
+ }, {
562
+ type: string;
563
+ required: string[];
564
+ additionalProperties: boolean;
565
+ properties: {
566
+ from?: {
567
+ $ref: string;
568
+ } | undefined;
569
+ duration?: {
570
+ $ref: string;
571
+ } | undefined;
572
+ easing?: {
573
+ $ref: string;
574
+ } | undefined;
575
+ };
576
+ }, {
577
+ type: string;
578
+ required: string[];
579
+ additionalProperties: boolean;
580
+ properties: {
581
+ from?: {
582
+ $ref: string;
583
+ } | undefined;
584
+ duration?: {
585
+ $ref: string;
586
+ } | undefined;
587
+ easing?: {
588
+ $ref: string;
589
+ } | undefined;
590
+ };
591
+ }, {
592
+ type: string;
593
+ required: string[];
594
+ additionalProperties: boolean;
595
+ properties: {
596
+ from?: {
597
+ $ref: string;
598
+ } | undefined;
599
+ duration?: {
600
+ $ref: string;
601
+ } | undefined;
602
+ easing?: {
603
+ $ref: string;
604
+ } | undefined;
605
+ };
606
+ }, {
607
+ type: string;
608
+ required: string[];
609
+ additionalProperties: boolean;
610
+ properties: {
611
+ from?: {
612
+ $ref: string;
613
+ } | undefined;
614
+ duration?: {
615
+ $ref: string;
616
+ } | undefined;
617
+ easing?: {
618
+ $ref: string;
619
+ } | undefined;
620
+ };
621
+ }, {
622
+ type: string;
623
+ required: string[];
624
+ additionalProperties: boolean;
625
+ properties: {
626
+ from?: {
627
+ $ref: string;
628
+ } | undefined;
629
+ duration?: {
630
+ $ref: string;
631
+ } | undefined;
632
+ easing?: {
633
+ $ref: string;
634
+ } | undefined;
635
+ };
636
+ }, {
637
+ type: string;
638
+ required: string[];
639
+ additionalProperties: boolean;
640
+ properties: {
641
+ from?: {
642
+ $ref: string;
643
+ } | undefined;
644
+ duration?: {
645
+ $ref: string;
646
+ } | undefined;
647
+ easing?: {
648
+ $ref: string;
649
+ } | undefined;
650
+ };
651
+ }, {
652
+ type: string;
653
+ required: string[];
654
+ additionalProperties: boolean;
655
+ properties: {
656
+ from?: {
657
+ $ref: string;
658
+ } | undefined;
659
+ duration?: {
660
+ $ref: string;
661
+ } | undefined;
662
+ easing?: {
663
+ $ref: string;
664
+ } | undefined;
665
+ };
666
+ }, {
667
+ type: string;
668
+ required: string[];
669
+ additionalProperties: boolean;
670
+ properties: {
671
+ from?: {
672
+ $ref: string;
673
+ } | undefined;
674
+ duration?: {
675
+ $ref: string;
676
+ } | undefined;
677
+ easing?: {
678
+ $ref: string;
679
+ } | undefined;
680
+ };
681
+ }, {
682
+ readonly type: 'object';
683
+ readonly required: readonly ['move'];
684
+ readonly additionalProperties: false;
685
+ readonly properties: {
686
+ readonly move: {
687
+ readonly type: 'string';
688
+ };
689
+ readonly from: {
690
+ readonly $ref: '#/$defs/time';
691
+ };
692
+ readonly x: {
693
+ readonly $ref: '#/$defs/curve';
694
+ };
695
+ readonly y: {
696
+ readonly $ref: '#/$defs/curve';
697
+ };
698
+ readonly scale: {
699
+ readonly $ref: '#/$defs/curve';
700
+ };
701
+ readonly opacity: {
702
+ readonly $ref: '#/$defs/curve';
703
+ };
704
+ };
705
+ }, {
706
+ readonly type: 'object';
707
+ readonly required: readonly ['lift', 'by'];
708
+ readonly additionalProperties: false;
709
+ readonly properties: {
710
+ readonly from: {
711
+ $ref: string;
712
+ };
713
+ readonly duration: {
714
+ $ref: string;
715
+ };
716
+ readonly easing: {
717
+ $ref: string;
718
+ };
719
+ readonly lift: {
720
+ readonly $ref: '#/$defs/ids';
721
+ };
722
+ readonly by: {
723
+ readonly type: 'number';
724
+ };
725
+ readonly stagger: {
726
+ readonly $ref: '#/$defs/time';
727
+ };
728
+ readonly to: {
729
+ readonly enum: readonly ['up', 'down'];
730
+ };
731
+ readonly opacity: {
732
+ readonly $ref: '#/$defs/curve';
733
+ };
734
+ };
735
+ }, {
736
+ type: string;
737
+ required: string[];
738
+ additionalProperties: boolean;
739
+ properties: {
740
+ from?: {
741
+ $ref: string;
742
+ } | undefined;
743
+ duration?: {
744
+ $ref: string;
745
+ } | undefined;
746
+ easing?: {
747
+ $ref: string;
748
+ } | undefined;
749
+ };
750
+ }, {
751
+ type: string;
752
+ required: string[];
753
+ additionalProperties: boolean;
754
+ properties: {
755
+ from?: {
756
+ $ref: string;
757
+ } | undefined;
758
+ duration?: {
759
+ $ref: string;
760
+ } | undefined;
761
+ easing?: {
762
+ $ref: string;
763
+ } | undefined;
764
+ };
765
+ }, {
766
+ type: string;
767
+ required: string[];
768
+ additionalProperties: boolean;
769
+ properties: {
770
+ from?: {
771
+ $ref: string;
772
+ } | undefined;
773
+ duration?: {
774
+ $ref: string;
775
+ } | undefined;
776
+ easing?: {
777
+ $ref: string;
778
+ } | undefined;
779
+ };
780
+ }];
781
+ };
782
+ };
783
+ };
784
+ };
785
+ /** What is wrong with a document's shape, each with its place (a JSON pointer). Its ids are bindMotion's to check. */
786
+ export declare function checkMotion(doc: unknown): MotionDiag[];
787
+ export {};