@haiyue/animation-spec 0.1.0 → 0.2.2

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 (80) hide show
  1. package/README.md +40 -6
  2. package/SPECIFICATION.md +12 -2
  3. package/bin/hya-live2d-convert.mjs +76 -0
  4. package/bin/{hya-convert.mjs → hya-lottie-convert.mjs} +1 -1
  5. package/dist/chunks/binary-DvuTJ_hy.js +1 -0
  6. package/dist/chunks/clip-baked-Dv-wjX9d.js +1 -0
  7. package/dist/chunks/errors-Bzs3GOD9.js +1 -0
  8. package/dist/chunks/expression-D1cKtNwM.js +1 -0
  9. package/dist/chunks/extensions-DxL4AxOC.js +1 -0
  10. package/dist/conversion.d.ts +1 -0
  11. package/dist/conversion.js +1 -0
  12. package/dist/cubism.d.ts +1 -0
  13. package/dist/cubism.js +1 -0
  14. package/dist/deformable2d.d.ts +1 -0
  15. package/dist/deformable2d.js +1 -0
  16. package/dist/hya-production.d.ts +1 -0
  17. package/dist/hya-production.js +1 -0
  18. package/dist/index.d.ts +1 -10
  19. package/dist/index.js +1 -2927
  20. package/dist/live2d/clip-baked.d.ts +1 -0
  21. package/dist/live2d/clip-baked.js +1 -0
  22. package/dist/live2d.d.ts +1 -0
  23. package/dist/live2d.js +1 -0
  24. package/dist/lottie.d.ts +1 -62
  25. package/dist/lottie.js +1 -2642
  26. package/dist/native3d.d.ts +1 -2
  27. package/dist/native3d.js +1 -907
  28. package/dist/shared.d.ts +2791 -0
  29. package/package.json +93 -69
  30. package/schema/animation.schema.json +104 -12
  31. package/schema/deformable-mesh-2d-extension.schema.json +18 -0
  32. package/schema/deformable-mesh-2d.contract.json +58 -0
  33. package/schema/hya-composition.schema.json +41 -0
  34. package/schema/parameterized-rig-2d.contract.json +63 -0
  35. package/schema/parameterized-rig-2d.schema.json +57 -0
  36. package/schema/parameterized-rig-census-map.json +128 -0
  37. package/schema/responsive-layout-2d-census-map.json +49 -0
  38. package/schema/responsive-layout-2d.contract.json +58 -0
  39. package/schema/responsive-layout-2d.schema.json +34 -0
  40. package/schema/state-machine-v2-census-map.json +1 -0
  41. package/schema/state-machine-v2.contract.json +66 -0
  42. package/schema/state-machine-v2.schema.json +55 -0
  43. package/schema/vector-visual-census-map.json +120 -0
  44. package/schema/vector-visual.contract.json +47 -0
  45. package/schema/vector-visual.schema.json +72 -0
  46. package/dist/binary.d.ts +0 -7
  47. package/dist/chunks/types-l6nBVYwx.js +0 -8
  48. package/dist/chunks/types-l6nBVYwx.js.map +0 -1
  49. package/dist/errors.d.ts +0 -7
  50. package/dist/extensions.d.ts +0 -19
  51. package/dist/index.js.map +0 -1
  52. package/dist/lottie-merge-path.d.ts +0 -11
  53. package/dist/lottie.js.map +0 -1
  54. package/dist/native3d/Animation3DError.d.ts +0 -8
  55. package/dist/native3d/Animation3DParser.d.ts +0 -7
  56. package/dist/native3d/Animation3DTypes.d.ts +0 -285
  57. package/dist/native3d/index.d.ts +0 -5
  58. package/dist/native3d.js.map +0 -1
  59. package/dist/parser.d.ts +0 -2
  60. package/dist/state-machine.d.ts +0 -130
  61. package/dist/text-selector.d.ts +0 -2
  62. package/dist/types.d.ts +0 -419
  63. package/dist/validation.d.ts +0 -32
  64. package/src/binary.ts +0 -1441
  65. package/src/errors.ts +0 -18
  66. package/src/extensions.ts +0 -55
  67. package/src/index.ts +0 -90
  68. package/src/lottie-merge-path.ts +0 -204
  69. package/src/lottie.ts +0 -3073
  70. package/src/native3d/Animation3DError.ts +0 -20
  71. package/src/native3d/Animation3DParser.ts +0 -964
  72. package/src/native3d/Animation3DTypes.ts +0 -322
  73. package/src/native3d/index.ts +0 -14
  74. package/src/native3d.ts +0 -2
  75. package/src/parser.ts +0 -41
  76. package/src/state-machine.ts +0 -645
  77. package/src/text-selector.ts +0 -7
  78. package/src/types.ts +0 -483
  79. package/src/validation.ts +0 -1286
  80. package/test/fixtures/basic-lottie.json +0 -31
package/src/types.ts DELETED
@@ -1,483 +0,0 @@
1
- export const ANIMATION_FORMAT = 'haiyue-animation' as const;
2
- export const ANIMATION_VERSION = '1.0' as const;
3
- export const ANIMATION_MIME_TYPE = 'application/vnd.haiyue.animation' as const;
4
- export const ANIMATION_FILE_EXTENSION = '.hya' as const;
5
-
6
- export type AnimationCoordinateSystem = 'screen-y-down';
7
- export type AnimationEndBehavior = 'hold' | 'loop' | 'destroy';
8
- export type AnimationInterpolation = 'step' | 'linear' | 'cubic-bezier';
9
- export type AnimationTrackProperty = 'position' | 'rotation' | 'scale' | 'opacity';
10
-
11
- export interface AnimationCanvas {
12
- width: number;
13
- height: number;
14
- coordinateSystem: AnimationCoordinateSystem;
15
- }
16
-
17
- export interface AnimationTransform2D {
18
- position?: readonly [number, number];
19
- rotation?: number;
20
- scale?: readonly [number, number];
21
- anchor?: readonly [number, number];
22
- opacity?: number;
23
- }
24
-
25
- export interface AnimationShape2DComponent {
26
- type: 'shape2d';
27
- shape: 'rect' | 'ellipse';
28
- size: readonly [number, number];
29
- position?: readonly [number, number];
30
- fill: readonly [number, number, number, number];
31
- }
32
-
33
- export type AnimationPathCommand = 'M' | 'L' | 'Q' | 'C' | 'Z';
34
- export type AnimationFillRule = 'nonzero' | 'evenodd';
35
-
36
- export interface AnimationPath2DComponent {
37
- type: 'path2d';
38
- /** Packed command stream. M/L consume 2, Q consumes 4, C consumes 6, Z consumes 0 floats. */
39
- commands: string;
40
- values: readonly number[] | Float32Array;
41
- fill: readonly [number, number, number, number];
42
- fillRule?: AnimationFillRule;
43
- /** Maximum flattening error in animation canvas units. */
44
- tolerance?: number;
45
- }
46
-
47
- export interface AnimationSprite2DComponent {
48
- type: 'sprite2d';
49
- resource: string;
50
- size: readonly [number, number];
51
- position?: readonly [number, number];
52
- tint?: readonly [number, number, number, number];
53
- /** Normalized source rectangle [x, y, width, height]. */
54
- uvRect?: readonly [number, number, number, number];
55
- /** STEP-keyed normalized source rectangles for atlas/spritesheet animation. */
56
- uvRectTrack?: AnimationVectorValueTrack;
57
- }
58
-
59
- export interface AnimationText2DComponent {
60
- type: 'text2d';
61
- text: string;
62
- size: readonly [number, number];
63
- position?: readonly [number, number];
64
- fontFamily?: string;
65
- fontSize?: number;
66
- fontWeight?: string | number;
67
- fontStyle?: 'normal' | 'italic';
68
- /** Optional binary font resource loaded through FontFace before rasterization. */
69
- fontResource?: string;
70
- lineHeight?: number;
71
- /** Additional advance in animation canvas units between shaped graphemes. */
72
- tracking?: number;
73
- textAlign?: 'left' | 'center' | 'right';
74
- verticalAlign?: 'top' | 'middle' | 'bottom';
75
- color: readonly [number, number, number, number];
76
- backgroundColor?: readonly [number, number, number, number];
77
- padding?: number;
78
- resolutionScale?: number;
79
- /** Step-keyed source-neutral text documents. The first entry may start after zero. */
80
- documents?: readonly AnimationTextDocumentKeyframe[];
81
- /** Ordered per-character animators evaluated after deterministic grapheme shaping. */
82
- animators?: readonly AnimationTextAnimator[];
83
- }
84
-
85
- export interface AnimationTextDocumentKeyframe {
86
- readonly time: number;
87
- readonly text: string;
88
- readonly fontFamily?: string;
89
- readonly fontSize?: number;
90
- readonly fontWeight?: string | number;
91
- readonly fontStyle?: 'normal' | 'italic';
92
- readonly fontResource?: string;
93
- readonly lineHeight?: number;
94
- readonly tracking?: number;
95
- readonly textAlign?: 'left' | 'center' | 'right';
96
- readonly color?: readonly [number, number, number, number];
97
- }
98
-
99
- export type AnimationTextSelectorUnits = 'percent' | 'index';
100
- export type AnimationTextSelectorShape = 'square' | 'ramp-up' | 'ramp-down' | 'triangle' | 'round' | 'smooth';
101
- export type AnimationTextSelectorBasedOn = 'characters' | 'characters-excluding-spaces' | 'words' | 'lines';
102
-
103
- export interface AnimationTextRangeSelector {
104
- readonly start: number;
105
- readonly end: number;
106
- readonly offset?: number;
107
- readonly units?: AnimationTextSelectorUnits;
108
- /** Signed selector influence in the normalized [-1, 1] domain. */
109
- readonly amount?: number;
110
- readonly shape?: AnimationTextSelectorShape;
111
- /** Glyph grouping used before applying the selector range. */
112
- readonly basedOn?: AnimationTextSelectorBasedOn;
113
- /** Cubic Bézier easing applied to the selector shape weight. */
114
- readonly easing?: readonly [number, number, number, number];
115
- /** Selector edge smoothing in the normalized [0, 1] domain. */
116
- readonly smoothness?: number;
117
- /** Stable uint32 seed for deterministic permutation of selector groups. */
118
- readonly randomSeed?: number;
119
- readonly startTrack?: AnimationVectorValueTrack;
120
- readonly endTrack?: AnimationVectorValueTrack;
121
- readonly offsetTrack?: AnimationVectorValueTrack;
122
- readonly amountTrack?: AnimationVectorValueTrack;
123
- }
124
-
125
- export interface AnimationTextAnimator {
126
- readonly selector: AnimationTextRangeSelector;
127
- readonly position?: readonly [number, number];
128
- readonly scale?: readonly [number, number];
129
- readonly rotation?: number;
130
- readonly opacity?: number;
131
- readonly fillColor?: readonly [number, number, number, number];
132
- readonly tracking?: number;
133
- readonly positionTrack?: AnimationVectorValueTrack;
134
- readonly scaleTrack?: AnimationVectorValueTrack;
135
- readonly rotationTrack?: AnimationVectorValueTrack;
136
- readonly opacityTrack?: AnimationVectorValueTrack;
137
- readonly fillColorTrack?: AnimationVectorValueTrack;
138
- readonly trackingTrack?: AnimationVectorValueTrack;
139
- }
140
-
141
- export interface AnimationParticle2DComponent {
142
- type: 'particle2d';
143
- maxParticles: number;
144
- emissionRate: number;
145
- burst?: number;
146
- duration?: number;
147
- loop?: boolean;
148
- seed?: number;
149
- lifetime: readonly [number, number];
150
- speed: readonly [number, number];
151
- angle: readonly [number, number];
152
- gravity?: readonly [number, number];
153
- startSize: readonly [number, number];
154
- endSize: readonly [number, number];
155
- startColor: readonly [number, number, number, number];
156
- endColor: readonly [number, number, number, number];
157
- shape?: 'point' | 'box' | 'circle';
158
- shapeSize?: readonly [number, number];
159
- shapeRadius?: number;
160
- blendMode?: 'normal' | 'additive';
161
- resource?: string;
162
- radial?: boolean;
163
- }
164
-
165
- export interface AnimationAudioComponent {
166
- type: 'audio';
167
- resource: string;
168
- volume?: number;
169
- loop?: boolean;
170
- startOffset?: number;
171
- playbackRate?: number;
172
- }
173
-
174
- export interface AnimationExtensionComponent {
175
- /** A namespaced component id such as `org.example.particle@1`. */
176
- type: string;
177
- [key: string]: unknown;
178
- }
179
-
180
- export const ANIMATION_VECTOR_SHAPE_EXTENSION_ID = 'org.haiyue.vector-shape@1' as const;
181
-
182
- export interface AnimationVectorValueTrack {
183
- readonly times: readonly number[] | Float32Array;
184
- readonly values: readonly number[] | Float32Array;
185
- readonly valueSize: number;
186
- readonly interpolation: AnimationInterpolation;
187
- readonly easings?: readonly number[] | Float32Array;
188
- }
189
-
190
- export interface AnimationVectorSolidPaint {
191
- readonly kind: 'solid';
192
- readonly color: readonly [number, number, number, number];
193
- readonly opacity?: number;
194
- readonly colorTrack?: AnimationVectorValueTrack;
195
- readonly opacityTrack?: AnimationVectorValueTrack;
196
- }
197
-
198
- export interface AnimationVectorGradientPaint {
199
- readonly kind: 'linear-gradient' | 'radial-gradient';
200
- readonly start: readonly [number, number];
201
- readonly end: readonly [number, number];
202
- /** Repeating offset,r,g,b,a tuples. Runtime support is intentionally bounded to eight stops. */
203
- readonly stops: readonly number[] | Float32Array;
204
- readonly opacity?: number;
205
- readonly startTrack?: AnimationVectorValueTrack;
206
- readonly endTrack?: AnimationVectorValueTrack;
207
- readonly stopsTrack?: AnimationVectorValueTrack;
208
- readonly opacityTrack?: AnimationVectorValueTrack;
209
- }
210
-
211
- export interface AnimationVectorStrokePaint {
212
- readonly color: readonly [number, number, number, number];
213
- readonly gradient?: AnimationVectorGradientPaint;
214
- readonly width: number;
215
- readonly opacity?: number;
216
- readonly lineCap: 'butt' | 'round' | 'square';
217
- readonly lineJoin: 'miter' | 'round' | 'bevel';
218
- readonly miterLimit: number;
219
- readonly dash?: readonly number[] | Float32Array;
220
- readonly dashOffset?: number;
221
- readonly colorTrack?: AnimationVectorValueTrack;
222
- readonly opacityTrack?: AnimationVectorValueTrack;
223
- readonly widthTrack?: AnimationVectorValueTrack;
224
- readonly dashOffsetTrack?: AnimationVectorValueTrack;
225
- }
226
-
227
- export interface AnimationVectorTrimPathModifier {
228
- readonly kind: 'trim-path';
229
- /** Normalized path fractions. Values outside [0, 1] are wrapped by the runtime. */
230
- readonly start: number;
231
- readonly end: number;
232
- /** Rotation in turns, matching start/end's normalized domain. */
233
- readonly offset: number;
234
- readonly mode: 'simultaneous' | 'individual';
235
- readonly startTrack?: AnimationVectorValueTrack;
236
- readonly endTrack?: AnimationVectorValueTrack;
237
- readonly offsetTrack?: AnimationVectorValueTrack;
238
- }
239
-
240
- export interface AnimationVectorRoundCornersModifier {
241
- readonly kind: 'round-corners';
242
- readonly radius: number;
243
- readonly radiusTrack?: AnimationVectorValueTrack;
244
- }
245
-
246
- export type AnimationVectorPathModifier =
247
- | AnimationVectorTrimPathModifier
248
- | AnimationVectorRoundCornersModifier;
249
-
250
- export interface AnimationVectorShapeComponent {
251
- readonly type: typeof ANIMATION_VECTOR_SHAPE_EXTENSION_ID;
252
- readonly commands: string;
253
- readonly values: readonly number[] | Float32Array;
254
- readonly morph?: AnimationVectorValueTrack;
255
- /** When true, morph samples are added component-wise to `values`. */
256
- readonly morphRelative?: boolean;
257
- readonly fill?: AnimationVectorSolidPaint | AnimationVectorGradientPaint;
258
- readonly stroke?: AnimationVectorStrokePaint;
259
- /** Ordered, source-neutral path modifiers. Runtime execution follows array order. */
260
- readonly modifiers?: readonly AnimationVectorPathModifier[];
261
- readonly fillRule?: AnimationFillRule;
262
- readonly tolerance?: number;
263
- }
264
-
265
- export interface AnimationTintEffect {
266
- readonly kind: 'tint';
267
- readonly black: readonly [number, number, number];
268
- readonly white: readonly [number, number, number];
269
- readonly amount: number;
270
- readonly blackTrack?: AnimationVectorValueTrack;
271
- readonly whiteTrack?: AnimationVectorValueTrack;
272
- readonly amountTrack?: AnimationVectorValueTrack;
273
- }
274
-
275
- export interface AnimationFillEffect {
276
- readonly kind: 'fill';
277
- readonly color: readonly [number, number, number, number];
278
- readonly opacity?: number;
279
- readonly colorTrack?: AnimationVectorValueTrack;
280
- readonly opacityTrack?: AnimationVectorValueTrack;
281
- }
282
-
283
- export interface AnimationOpacityEffect {
284
- readonly kind: 'opacity';
285
- readonly opacity: number;
286
- readonly opacityTrack?: AnimationVectorValueTrack;
287
- }
288
-
289
- export interface AnimationColorMatrixEffect {
290
- readonly kind: 'color-matrix';
291
- /** Four rows of five values operating on unpremultiplied RGBA. */
292
- readonly matrix: readonly number[] | Float32Array;
293
- readonly matrixTrack?: AnimationVectorValueTrack;
294
- }
295
-
296
- export interface AnimationBlurEffect {
297
- readonly kind: 'blur';
298
- /** Horizontal and vertical radius in output pixels. */
299
- readonly radius: readonly [number, number];
300
- readonly radiusTrack?: AnimationVectorValueTrack;
301
- }
302
-
303
- export interface AnimationDropShadowEffect {
304
- readonly kind: 'drop-shadow';
305
- readonly color: readonly [number, number, number, number];
306
- readonly opacity: number;
307
- /** Shadow displacement in output pixels. */
308
- readonly offset: readonly [number, number];
309
- readonly blur: number;
310
- readonly colorTrack?: AnimationVectorValueTrack;
311
- readonly opacityTrack?: AnimationVectorValueTrack;
312
- readonly offsetTrack?: AnimationVectorValueTrack;
313
- readonly blurTrack?: AnimationVectorValueTrack;
314
- }
315
-
316
- export type AnimationLayerEffect =
317
- | AnimationTintEffect
318
- | AnimationFillEffect
319
- | AnimationOpacityEffect
320
- | AnimationColorMatrixEffect
321
- | AnimationBlurEffect
322
- | AnimationDropShadowEffect;
323
-
324
- export type AnimationComponent =
325
- | AnimationShape2DComponent
326
- | AnimationPath2DComponent
327
- | AnimationSprite2DComponent
328
- | AnimationText2DComponent
329
- | AnimationParticle2DComponent
330
- | AnimationAudioComponent
331
- | AnimationVectorShapeComponent
332
- | AnimationExtensionComponent;
333
-
334
- export type AnimationCompositeKind = 'mask' | 'matte';
335
- export type AnimationCompositeMode = 'alpha' | 'alpha-inverted' | 'luma' | 'luma-inverted';
336
- export type AnimationCompositeOperation = 'add' | 'subtract' | 'intersect' | 'difference';
337
-
338
- export interface AnimationCompositeLayer {
339
- kind: AnimationCompositeKind;
340
- source: string;
341
- mode: AnimationCompositeMode;
342
- /** Ordered mask/matte composition. The first layer is evaluated against transparent coverage. */
343
- operation?: AnimationCompositeOperation;
344
- /** Screen-space feather radii in animation canvas units. */
345
- feather?: readonly [number, number];
346
- /** Positive values expand coverage; negative values contract it. */
347
- expansion?: number;
348
- /** Optional time-varying expansion sampled in composition seconds. */
349
- expansionTrack?: AnimationVectorValueTrack;
350
- }
351
-
352
- export interface AnimationCompositeStack {
353
- readonly layers: readonly AnimationCompositeLayer[];
354
- }
355
-
356
- /** A single layer remains accepted as the compact authoring form. Parsers canonicalize neither form away. */
357
- export type AnimationComposite = AnimationCompositeLayer | AnimationCompositeStack;
358
-
359
- export interface AnimationNode {
360
- id: string;
361
- name?: string;
362
- parent?: string;
363
- start?: number;
364
- duration?: number;
365
- transform?: AnimationTransform2D;
366
- composite?: AnimationComposite;
367
- /** Ordered source-neutral visual effects applied to this node's visual subtree. */
368
- effects?: readonly AnimationLayerEffect[];
369
- components?: readonly AnimationComponent[];
370
- extensions?: Readonly<Record<string, unknown>>;
371
- }
372
-
373
- export interface AnimationTrack {
374
- node: string;
375
- property: AnimationTrackProperty;
376
- interpolation: AnimationInterpolation;
377
- /** Strictly increasing seconds relative to the composition start. */
378
- times: readonly number[] | Float32Array;
379
- /** Keyframe values, tightly packed by property component count. */
380
- values: readonly number[] | Float32Array;
381
- /** Per-segment cubic-bezier x1,y1,x2,y2 tuples. */
382
- easings?: readonly number[] | Float32Array;
383
- /**
384
- * Optional per-segment spatial cubic controls for 2D position tracks.
385
- * Each tuple is outgoingX,outgoingY,incomingX,incomingY relative to the
386
- * segment start/end values. Temporal easing still owns curve progress.
387
- */
388
- spatialTangents?: readonly number[] | Float32Array;
389
- }
390
-
391
- export interface AnimationImageResource {
392
- id: string;
393
- type: 'image';
394
- uri: string;
395
- width?: number;
396
- height?: number;
397
- mimeType?: string;
398
- integrity?: string;
399
- /** Sampling color space; ordinary authored images default to sRGB. */
400
- colorSpace?: 'srgb' | 'linear';
401
- }
402
-
403
- export interface AnimationBinaryResource {
404
- id: string;
405
- type: 'binary';
406
- uri: string;
407
- mimeType?: string;
408
- integrity?: string;
409
- }
410
-
411
- export interface AnimationAudioResource {
412
- id: string;
413
- type: 'audio';
414
- uri: string;
415
- mimeType?: string;
416
- integrity?: string;
417
- }
418
-
419
- export type AnimationResource = AnimationImageResource | AnimationAudioResource | AnimationBinaryResource;
420
-
421
- export interface AnimationDocument {
422
- format: typeof ANIMATION_FORMAT;
423
- version: typeof ANIMATION_VERSION;
424
- name?: string;
425
- canvas: AnimationCanvas;
426
- duration: number;
427
- frameRate?: number;
428
- endBehavior?: AnimationEndBehavior;
429
- resources?: readonly AnimationResource[];
430
- nodes: readonly AnimationNode[];
431
- tracks?: readonly AnimationTrack[];
432
- extensionsUsed?: readonly string[];
433
- extensionsRequired?: readonly string[];
434
- extensions?: Readonly<Record<string, unknown>>;
435
- }
436
-
437
- export interface ParsedAnimationTrack extends Omit<AnimationTrack, 'times' | 'values' | 'easings' | 'spatialTangents'> {
438
- readonly times: Float32Array;
439
- readonly values: Float32Array;
440
- readonly easings?: Float32Array;
441
- readonly spatialTangents?: Float32Array;
442
- readonly valueSize: 1 | 2;
443
- }
444
-
445
- export interface ParsedAnimation {
446
- readonly format: typeof ANIMATION_FORMAT;
447
- readonly version: typeof ANIMATION_VERSION;
448
- readonly name?: string;
449
- readonly canvas: Readonly<AnimationCanvas>;
450
- readonly duration: number;
451
- readonly frameRate?: number;
452
- readonly endBehavior: AnimationEndBehavior;
453
- readonly resources: readonly Readonly<AnimationResource>[];
454
- readonly nodes: readonly Readonly<AnimationNode>[];
455
- readonly tracks: readonly ParsedAnimationTrack[];
456
- readonly extensionsUsed: readonly string[];
457
- readonly extensionsRequired: readonly string[];
458
- readonly extensions: Readonly<Record<string, unknown>>;
459
- readonly source: 'json' | 'binary';
460
- /** Keeps zero-copy binary track views alive. */
461
- readonly backingBuffer?: ArrayBuffer;
462
- }
463
-
464
- export interface AnimationParseLimits {
465
- maxInputBytes?: number;
466
- maxMetadataBytes?: number;
467
- maxNodes?: number;
468
- maxComponents?: number;
469
- maxTracks?: number;
470
- maxKeyframes?: number;
471
- maxResources?: number;
472
- maxPathValues?: number;
473
- maxTextCharacters?: number;
474
- maxParticleCapacity?: number;
475
- }
476
-
477
- export interface AnimationParseOptions extends AnimationParseLimits {
478
- extensions?: import('./extensions').AnimationExtensionRegistry;
479
- /** Copies binary track/path Float32 views instead of retaining the source buffer. */
480
- copyFloatData?: boolean;
481
- }
482
-
483
- export type AnimationSource = AnimationDocument | string | ArrayBuffer;