@rendley/sdk 1.1.0 → 1.2.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.
@@ -64,6 +64,9 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
64
64
  private clipId;
65
65
  private mediaDataId;
66
66
  protected mask: PIXI.Graphics | null;
67
+ protected animationPositionOffset: [number, number];
68
+ protected animationScaleMultiplier: [number, number];
69
+ protected animationRotationOffset: number;
67
70
  constructor(options: ClipStyleOptions);
68
71
  private positionToCenter;
69
72
  private scaleDownToFit;
@@ -71,6 +74,8 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
71
74
  getCornerRadius(): number[];
72
75
  setScale(scaleX: number, scaleY: number): void;
73
76
  getScale(): [number, number];
77
+ setAnimationScaleMultiplier(multiplierX: number, multiplierY: number): void;
78
+ getAnimationScaleMultiplier(): [number, number];
74
79
  getWidth(): number;
75
80
  getHeight(): number;
76
81
  getRawWidth(): number;
@@ -79,14 +84,19 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
79
84
  getAlpha(): number;
80
85
  setRotation(rotation: number): void;
81
86
  getRotation(): number;
87
+ setAnimationRotationOffset(rotation: number): void;
88
+ getAnimationRotationOffset(): number;
82
89
  setPosition(x: number, y: number): void;
83
90
  getPosition(): [number, number];
91
+ setAnimationPositionOffset(x: number, y: number): void;
92
+ getAnimationPositionOffset(): [number, number];
84
93
  setZIndex(zIndex: number): void;
85
94
  getZIndex(): number;
86
95
  load(sprite: T): void;
87
96
  update(sprite: T): void;
88
97
  private setCornerRadiusOnSprite;
89
98
  protected emitUpdateEvent(property: string, value: unknown): boolean;
99
+ destroy(): void;
90
100
  serialize(): {
91
101
  clipId: string;
92
102
  alpha: number;
@@ -29,7 +29,6 @@ export declare class AudioClip extends Clip {
29
29
  private seek;
30
30
  onPlay(currentTime: number): Promise<void>;
31
31
  onPause(currentTime: number): Promise<void>;
32
- destroy(): void;
33
32
  update(currentTime: number): void;
34
33
  mute(): void;
35
34
  unMute(): void;
@@ -29,6 +29,71 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
29
29
  subtitlesId?: string | undefined;
30
30
  style?: unknown;
31
31
  text?: string | undefined;
32
+ animationController?: {
33
+ animationDataIn?: {
34
+ name: string;
35
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
36
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
37
+ propertyAnimations: {
38
+ property: string;
39
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
40
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
41
+ keyframes: {
42
+ time: number;
43
+ value: string | number;
44
+ easing: import("../../../../utils/animation/animation").EasingEnum;
45
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
46
+ relativeProperty?: string | undefined;
47
+ }[];
48
+ }[];
49
+ speed?: number | undefined;
50
+ offset?: number | undefined;
51
+ amplification?: number | undefined;
52
+ } | undefined;
53
+ animationDataOut?: {
54
+ name: string;
55
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
56
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
57
+ propertyAnimations: {
58
+ property: string;
59
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
60
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
61
+ keyframes: {
62
+ time: number;
63
+ value: string | number;
64
+ easing: import("../../../../utils/animation/animation").EasingEnum;
65
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
66
+ relativeProperty?: string | undefined;
67
+ }[];
68
+ }[];
69
+ speed?: number | undefined;
70
+ offset?: number | undefined;
71
+ amplification?: number | undefined;
72
+ } | undefined;
73
+ animationDataLoop?: {
74
+ name: string;
75
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
76
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
77
+ propertyAnimations: {
78
+ property: string;
79
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
80
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
81
+ keyframes: {
82
+ time: number;
83
+ value: string | number;
84
+ easing: import("../../../../utils/animation/animation").EasingEnum;
85
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
86
+ relativeProperty?: string | undefined;
87
+ }[];
88
+ }[];
89
+ speed?: number | undefined;
90
+ offset?: number | undefined;
91
+ amplification?: number | undefined;
92
+ } | undefined;
93
+ animationInDuration?: number | undefined;
94
+ animationOutDuration?: number | undefined;
95
+ animationLoopCount?: number | undefined;
96
+ } | undefined;
32
97
  };
33
98
  static deserialize(payload: object): CustomClip;
34
99
  }
@@ -1,16 +1,63 @@
1
1
  import * as PIXI from "pixi.js";
2
+ import zod from "zod";
2
3
  import { Clip, ClipOptions } from "../../Clip";
3
4
  import { ClipStyle } from "../../ClipStyle";
5
+ export declare enum PropertyTypeEnum {
6
+ TEXT = "text"
7
+ }
8
+ export declare const PropertySchema: zod.ZodObject<{
9
+ type: zod.ZodDefault<zod.ZodNativeEnum<typeof PropertyTypeEnum>>;
10
+ label: zod.ZodString;
11
+ name: zod.ZodString;
12
+ }, "strip", zod.ZodTypeAny, {
13
+ name: string;
14
+ type: PropertyTypeEnum;
15
+ label: string;
16
+ }, {
17
+ name: string;
18
+ label: string;
19
+ type?: PropertyTypeEnum.TEXT | undefined;
20
+ }>;
21
+ export declare const PropertiesSchema: zod.ZodArray<zod.ZodObject<{
22
+ type: zod.ZodDefault<zod.ZodNativeEnum<typeof PropertyTypeEnum>>;
23
+ label: zod.ZodString;
24
+ name: zod.ZodString;
25
+ }, "strip", zod.ZodTypeAny, {
26
+ name: string;
27
+ type: PropertyTypeEnum;
28
+ label: string;
29
+ }, {
30
+ name: string;
31
+ label: string;
32
+ type?: PropertyTypeEnum.TEXT | undefined;
33
+ }>, "many">;
34
+ export type Property = zod.infer<typeof PropertySchema>;
4
35
  export interface LottieClipOptions extends ClipOptions<ClipStyle> {
5
36
  dataUrl: string;
6
37
  assetsUrl?: string;
38
+ propertiesUrl?: string;
7
39
  }
8
40
  export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>> {
9
41
  private dataUrl;
10
42
  private assetsUrl;
11
43
  private animation?;
44
+ private propertiesUrl?;
45
+ protected properties: Record<string, Property>;
12
46
  constructor(options: LottieClipOptions);
13
47
  init(layerId: string): Promise<void>;
48
+ private initProperties;
49
+ setProperty(property: string, value: unknown): void;
50
+ getProperties(): Record<string, {
51
+ name: string;
52
+ type: PropertyTypeEnum;
53
+ label: string;
54
+ }>;
55
+ getProperty(property: string): {
56
+ name: string;
57
+ type: PropertyTypeEnum;
58
+ label: string;
59
+ };
60
+ getPropertyValue(property: string): any;
14
61
  preload(currentTime: number): void;
15
62
  updateVisibility(currentTime: number): void;
16
63
  private getGlobalTimeToClipTime;
@@ -18,6 +65,7 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
18
65
  offload(): void;
19
66
  clone(): LottieClip;
20
67
  destroy(): void;
68
+ private getElementFromPath;
21
69
  replaceText(layerId: string | number, text: string): void;
22
70
  private updateShapesFillCachedData;
23
71
  replaceFillColor(layerId: string | number, color: Array<number>): void;
@@ -44,7 +92,73 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
44
92
  mediaDataId?: string | undefined;
45
93
  subtitlesId?: string | undefined;
46
94
  style?: unknown;
95
+ animationController?: {
96
+ animationDataIn?: {
97
+ name: string;
98
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
99
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
100
+ propertyAnimations: {
101
+ property: string;
102
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
103
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
104
+ keyframes: {
105
+ time: number;
106
+ value: string | number;
107
+ easing: import("../../../../utils/animation/animation").EasingEnum;
108
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
109
+ relativeProperty?: string | undefined;
110
+ }[];
111
+ }[];
112
+ speed?: number | undefined;
113
+ offset?: number | undefined;
114
+ amplification?: number | undefined;
115
+ } | undefined;
116
+ animationDataOut?: {
117
+ name: string;
118
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
119
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
120
+ propertyAnimations: {
121
+ property: string;
122
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
123
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
124
+ keyframes: {
125
+ time: number;
126
+ value: string | number;
127
+ easing: import("../../../../utils/animation/animation").EasingEnum;
128
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
129
+ relativeProperty?: string | undefined;
130
+ }[];
131
+ }[];
132
+ speed?: number | undefined;
133
+ offset?: number | undefined;
134
+ amplification?: number | undefined;
135
+ } | undefined;
136
+ animationDataLoop?: {
137
+ name: string;
138
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
139
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
140
+ propertyAnimations: {
141
+ property: string;
142
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
143
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
144
+ keyframes: {
145
+ time: number;
146
+ value: string | number;
147
+ easing: import("../../../../utils/animation/animation").EasingEnum;
148
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
149
+ relativeProperty?: string | undefined;
150
+ }[];
151
+ }[];
152
+ speed?: number | undefined;
153
+ offset?: number | undefined;
154
+ amplification?: number | undefined;
155
+ } | undefined;
156
+ animationInDuration?: number | undefined;
157
+ animationOutDuration?: number | undefined;
158
+ animationLoopCount?: number | undefined;
159
+ } | undefined;
47
160
  assetsUrl?: string | undefined;
161
+ propertiesUrl?: string | undefined;
48
162
  };
49
163
  static deserialize(payload: object): LottieClip;
50
164
  }
@@ -36,6 +36,71 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
36
36
  mediaDataId?: string | undefined;
37
37
  subtitlesId?: string | undefined;
38
38
  style?: unknown;
39
+ animationController?: {
40
+ animationDataIn?: {
41
+ name: string;
42
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
43
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
44
+ propertyAnimations: {
45
+ property: string;
46
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
47
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
48
+ keyframes: {
49
+ time: number;
50
+ value: string | number;
51
+ easing: import("../../../../utils/animation/animation").EasingEnum;
52
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
53
+ relativeProperty?: string | undefined;
54
+ }[];
55
+ }[];
56
+ speed?: number | undefined;
57
+ offset?: number | undefined;
58
+ amplification?: number | undefined;
59
+ } | undefined;
60
+ animationDataOut?: {
61
+ name: string;
62
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
63
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
64
+ propertyAnimations: {
65
+ property: string;
66
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
67
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
68
+ keyframes: {
69
+ time: number;
70
+ value: string | number;
71
+ easing: import("../../../../utils/animation/animation").EasingEnum;
72
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
73
+ relativeProperty?: string | undefined;
74
+ }[];
75
+ }[];
76
+ speed?: number | undefined;
77
+ offset?: number | undefined;
78
+ amplification?: number | undefined;
79
+ } | undefined;
80
+ animationDataLoop?: {
81
+ name: string;
82
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
83
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
84
+ propertyAnimations: {
85
+ property: string;
86
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
87
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
88
+ keyframes: {
89
+ time: number;
90
+ value: string | number;
91
+ easing: import("../../../../utils/animation/animation").EasingEnum;
92
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
93
+ relativeProperty?: string | undefined;
94
+ }[];
95
+ }[];
96
+ speed?: number | undefined;
97
+ offset?: number | undefined;
98
+ amplification?: number | undefined;
99
+ } | undefined;
100
+ animationInDuration?: number | undefined;
101
+ animationOutDuration?: number | undefined;
102
+ animationLoopCount?: number | undefined;
103
+ } | undefined;
39
104
  };
40
105
  static deserialize(payload: object): ShapeClip;
41
106
  }
@@ -14,6 +14,7 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
14
14
  update(currentTime: number): void;
15
15
  offload(): void;
16
16
  clone(): TextClip;
17
+ destroy(): void;
17
18
  serialize(): {
18
19
  text: string;
19
20
  type: string;
@@ -35,6 +36,71 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
35
36
  mediaDataId?: string | undefined;
36
37
  subtitlesId?: string | undefined;
37
38
  style?: unknown;
39
+ animationController?: {
40
+ animationDataIn?: {
41
+ name: string;
42
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
43
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
44
+ propertyAnimations: {
45
+ property: string;
46
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
47
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
48
+ keyframes: {
49
+ time: number;
50
+ value: string | number;
51
+ easing: import("../../../../utils/animation/animation").EasingEnum;
52
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
53
+ relativeProperty?: string | undefined;
54
+ }[];
55
+ }[];
56
+ speed?: number | undefined;
57
+ offset?: number | undefined;
58
+ amplification?: number | undefined;
59
+ } | undefined;
60
+ animationDataOut?: {
61
+ name: string;
62
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
63
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
64
+ propertyAnimations: {
65
+ property: string;
66
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
67
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
68
+ keyframes: {
69
+ time: number;
70
+ value: string | number;
71
+ easing: import("../../../../utils/animation/animation").EasingEnum;
72
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
73
+ relativeProperty?: string | undefined;
74
+ }[];
75
+ }[];
76
+ speed?: number | undefined;
77
+ offset?: number | undefined;
78
+ amplification?: number | undefined;
79
+ } | undefined;
80
+ animationDataLoop?: {
81
+ name: string;
82
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
83
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
84
+ propertyAnimations: {
85
+ property: string;
86
+ inOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
87
+ outOutOfRange: import("../../../../utils/animation/animation").OutOfRangeEnum;
88
+ keyframes: {
89
+ time: number;
90
+ value: string | number;
91
+ easing: import("../../../../utils/animation/animation").EasingEnum;
92
+ space: import("../../../../utils/animation/animation").AnimationSpaceEnum;
93
+ relativeProperty?: string | undefined;
94
+ }[];
95
+ }[];
96
+ speed?: number | undefined;
97
+ offset?: number | undefined;
98
+ amplification?: number | undefined;
99
+ } | undefined;
100
+ animationInDuration?: number | undefined;
101
+ animationOutDuration?: number | undefined;
102
+ animationLoopCount?: number | undefined;
103
+ } | undefined;
38
104
  };
39
105
  static deserialize(payload: object): TextClip;
40
106
  }
@@ -46,6 +46,6 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
46
46
  mute(): void;
47
47
  unMute(): void;
48
48
  extractMonoAudioData(startTime: number, endTime: number): Promise<Float32Array | null>;
49
- offload(): void;
49
+ destroy(): void;
50
50
  clone(): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
51
51
  }
@@ -0,0 +1,255 @@
1
+ import { z } from "zod";
2
+ export declare enum AnimationSpaceEnum {
3
+ ABSOLUTE = 0,
4
+ RELATIVE_ADDITIVE = 1,
5
+ RELATIVE_MULTIPLICATIVE = 2,
6
+ PERCENTAGE = 3
7
+ }
8
+ export declare enum OutOfRangeEnum {
9
+ NONE = "none",
10
+ EXTEND = "extend",
11
+ LOOP = "loop"
12
+ }
13
+ export declare enum EasingEnum {
14
+ LinearIn = "linearIn",
15
+ LinearOut = "linearOut",
16
+ LinearInOut = "linearInOut",
17
+ QuadraticIn = "quadraticIn",
18
+ QuadraticOut = "quadraticOut",
19
+ QuadraticInOut = "quadraticInOut",
20
+ CubicIn = "cubicIn",
21
+ CubicOut = "cubicOut",
22
+ CubicInOut = "cubicInOut",
23
+ QuarticIn = "quarticIn",
24
+ QuarticOut = "quarticOut",
25
+ QuarticInOut = "quarticInOut",
26
+ QuinticIn = "quinticIn",
27
+ QuinticOut = "quinticOut",
28
+ QuinticInOut = "quinticInOut",
29
+ SinusoidalIn = "sinusoidalIn",
30
+ SinusoidalOut = "sinusoidalOut",
31
+ SinusoidalInOut = "sinusoidalInOut",
32
+ ExponentialIn = "exponentialIn",
33
+ ExponentialOut = "exponentialOut",
34
+ ExponentialInOut = "exponentialInOut",
35
+ CircularIn = "circularIn",
36
+ CircularOut = "circularOut",
37
+ CircularInOut = "circularInOut",
38
+ ElasticIn = "elasticIn",
39
+ ElasticOut = "elasticOut",
40
+ ElasticInOut = "elasticInOut",
41
+ BackIn = "backIn",
42
+ BackOut = "backOut",
43
+ BackInOut = "backInOut",
44
+ BounceIn = "bounceIn",
45
+ BounceOut = "bounceOut",
46
+ BounceInOut = "bounceInOut"
47
+ }
48
+ export interface Keyframe {
49
+ time: number;
50
+ value: number | string;
51
+ easing?: EasingEnum;
52
+ space?: AnimationSpaceEnum;
53
+ relativeProperty?: string;
54
+ }
55
+ export interface PropertyAnimation {
56
+ property: string;
57
+ inOutOfRange?: OutOfRangeEnum;
58
+ outOutOfRange?: OutOfRangeEnum;
59
+ keyframes: Keyframe[];
60
+ }
61
+ export interface AnimationData {
62
+ name: string;
63
+ speed?: number;
64
+ offset?: number;
65
+ amplification?: number;
66
+ inOutOfRange?: OutOfRangeEnum;
67
+ outOutOfRange?: OutOfRangeEnum;
68
+ propertyAnimations: PropertyAnimation[];
69
+ }
70
+ export declare const KeyframeSchema: z.ZodObject<{
71
+ time: z.ZodNumber;
72
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
73
+ easing: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof EasingEnum>>>;
74
+ space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
75
+ relativeProperty: z.ZodOptional<z.ZodString>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ time: number;
78
+ value: string | number;
79
+ easing: EasingEnum;
80
+ space: AnimationSpaceEnum;
81
+ relativeProperty?: string | undefined;
82
+ }, {
83
+ time: number;
84
+ value: string | number;
85
+ easing?: EasingEnum | undefined;
86
+ space?: AnimationSpaceEnum | undefined;
87
+ relativeProperty?: string | undefined;
88
+ }>;
89
+ export declare const PropertyAnimationSchema: z.ZodObject<{
90
+ property: z.ZodString;
91
+ inOutOfRange: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof OutOfRangeEnum>>>;
92
+ outOutOfRange: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof OutOfRangeEnum>>>;
93
+ keyframes: z.ZodArray<z.ZodObject<{
94
+ time: z.ZodNumber;
95
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
96
+ easing: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof EasingEnum>>>;
97
+ space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
98
+ relativeProperty: z.ZodOptional<z.ZodString>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ time: number;
101
+ value: string | number;
102
+ easing: EasingEnum;
103
+ space: AnimationSpaceEnum;
104
+ relativeProperty?: string | undefined;
105
+ }, {
106
+ time: number;
107
+ value: string | number;
108
+ easing?: EasingEnum | undefined;
109
+ space?: AnimationSpaceEnum | undefined;
110
+ relativeProperty?: string | undefined;
111
+ }>, "many">;
112
+ }, "strip", z.ZodTypeAny, {
113
+ property: string;
114
+ inOutOfRange: OutOfRangeEnum;
115
+ outOutOfRange: OutOfRangeEnum;
116
+ keyframes: {
117
+ time: number;
118
+ value: string | number;
119
+ easing: EasingEnum;
120
+ space: AnimationSpaceEnum;
121
+ relativeProperty?: string | undefined;
122
+ }[];
123
+ }, {
124
+ property: string;
125
+ keyframes: {
126
+ time: number;
127
+ value: string | number;
128
+ easing?: EasingEnum | undefined;
129
+ space?: AnimationSpaceEnum | undefined;
130
+ relativeProperty?: string | undefined;
131
+ }[];
132
+ inOutOfRange?: OutOfRangeEnum | undefined;
133
+ outOutOfRange?: OutOfRangeEnum | undefined;
134
+ }>;
135
+ export declare const AnimationDataSchema: z.ZodObject<{
136
+ name: z.ZodString;
137
+ speed: z.ZodOptional<z.ZodNumber>;
138
+ offset: z.ZodOptional<z.ZodNumber>;
139
+ amplification: z.ZodOptional<z.ZodNumber>;
140
+ inOutOfRange: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof OutOfRangeEnum>>>;
141
+ outOutOfRange: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof OutOfRangeEnum>>>;
142
+ propertyAnimations: z.ZodArray<z.ZodObject<{
143
+ property: z.ZodString;
144
+ inOutOfRange: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof OutOfRangeEnum>>>;
145
+ outOutOfRange: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof OutOfRangeEnum>>>;
146
+ keyframes: z.ZodArray<z.ZodObject<{
147
+ time: z.ZodNumber;
148
+ value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
149
+ easing: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof EasingEnum>>>;
150
+ space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
151
+ relativeProperty: z.ZodOptional<z.ZodString>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ time: number;
154
+ value: string | number;
155
+ easing: EasingEnum;
156
+ space: AnimationSpaceEnum;
157
+ relativeProperty?: string | undefined;
158
+ }, {
159
+ time: number;
160
+ value: string | number;
161
+ easing?: EasingEnum | undefined;
162
+ space?: AnimationSpaceEnum | undefined;
163
+ relativeProperty?: string | undefined;
164
+ }>, "many">;
165
+ }, "strip", z.ZodTypeAny, {
166
+ property: string;
167
+ inOutOfRange: OutOfRangeEnum;
168
+ outOutOfRange: OutOfRangeEnum;
169
+ keyframes: {
170
+ time: number;
171
+ value: string | number;
172
+ easing: EasingEnum;
173
+ space: AnimationSpaceEnum;
174
+ relativeProperty?: string | undefined;
175
+ }[];
176
+ }, {
177
+ property: string;
178
+ keyframes: {
179
+ time: number;
180
+ value: string | number;
181
+ easing?: EasingEnum | undefined;
182
+ space?: AnimationSpaceEnum | undefined;
183
+ relativeProperty?: string | undefined;
184
+ }[];
185
+ inOutOfRange?: OutOfRangeEnum | undefined;
186
+ outOutOfRange?: OutOfRangeEnum | undefined;
187
+ }>, "many">;
188
+ }, "strip", z.ZodTypeAny, {
189
+ name: string;
190
+ inOutOfRange: OutOfRangeEnum;
191
+ outOutOfRange: OutOfRangeEnum;
192
+ propertyAnimations: {
193
+ property: string;
194
+ inOutOfRange: OutOfRangeEnum;
195
+ outOutOfRange: OutOfRangeEnum;
196
+ keyframes: {
197
+ time: number;
198
+ value: string | number;
199
+ easing: EasingEnum;
200
+ space: AnimationSpaceEnum;
201
+ relativeProperty?: string | undefined;
202
+ }[];
203
+ }[];
204
+ speed?: number | undefined;
205
+ offset?: number | undefined;
206
+ amplification?: number | undefined;
207
+ }, {
208
+ name: string;
209
+ propertyAnimations: {
210
+ property: string;
211
+ keyframes: {
212
+ time: number;
213
+ value: string | number;
214
+ easing?: EasingEnum | undefined;
215
+ space?: AnimationSpaceEnum | undefined;
216
+ relativeProperty?: string | undefined;
217
+ }[];
218
+ inOutOfRange?: OutOfRangeEnum | undefined;
219
+ outOutOfRange?: OutOfRangeEnum | undefined;
220
+ }[];
221
+ speed?: number | undefined;
222
+ offset?: number | undefined;
223
+ amplification?: number | undefined;
224
+ inOutOfRange?: OutOfRangeEnum | undefined;
225
+ outOutOfRange?: OutOfRangeEnum | undefined;
226
+ }>;
227
+ type SetCallbackType = (property: string, value: number | string) => void;
228
+ type GetCallbackType = (property: string) => number | string;
229
+ export declare class AnimationController {
230
+ private animationData;
231
+ private setCallback;
232
+ private getCallback;
233
+ private initialized;
234
+ private startTime;
235
+ private endTime;
236
+ private duration;
237
+ constructor(setCallback: SetCallbackType, getCallback: GetCallbackType);
238
+ loadFromUrl(url: string): Promise<this>;
239
+ loadFromAnimationData(data: AnimationData): this;
240
+ private initialize;
241
+ isLoaded(): boolean;
242
+ getAnimationData(): AnimationData;
243
+ setSpeed(speed: number): this;
244
+ getSpeed(): number | undefined;
245
+ setOffset(offset: number): this;
246
+ getOffset(): number | undefined;
247
+ setAmplification(amplification: number): this;
248
+ getAmplification(): number | undefined;
249
+ getStart(): number | undefined;
250
+ getEnd(): number | undefined;
251
+ getDuration(): number | undefined;
252
+ private resolvePropertyValue;
253
+ seek(time: number): this | undefined;
254
+ }
255
+ export {};