@lottiefiles/lottie-player 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lottie-player.d.ts +27 -27
- package/dist/lottie-player.d.ts.map +1 -1
- package/dist/lottie-player.esm.js +1 -1
- package/dist/lottie-player.esm.js.map +1 -1
- package/dist/lottie-player.js +1 -1
- package/dist/lottie-player.js.map +1 -1
- package/dist/tgs-player.esm.js +1 -1
- package/dist/tgs-player.esm.js.map +1 -1
- package/dist/tgs-player.js +1 -1
- package/dist/tgs-player.js.map +1 -1
- package/package.json +1 -1
package/dist/lottie-player.d.ts
CHANGED
@@ -38,14 +38,6 @@ export declare function parseSrc(src: string | object): string | object;
|
|
38
38
|
* @extends {LitElement}
|
39
39
|
*/
|
40
40
|
export declare class LottiePlayer extends LitElement {
|
41
|
-
/**
|
42
|
-
* Animation container.
|
43
|
-
*/
|
44
|
-
protected container: HTMLElement;
|
45
|
-
/**
|
46
|
-
* Play mode.
|
47
|
-
*/
|
48
|
-
mode: PlayMode;
|
49
41
|
/**
|
50
42
|
* Autoplay animation on load.
|
51
43
|
*/
|
@@ -74,6 +66,10 @@ export declare class LottiePlayer extends LitElement {
|
|
74
66
|
* Whether to loop animation.
|
75
67
|
*/
|
76
68
|
loop: boolean;
|
69
|
+
/**
|
70
|
+
* Play mode.
|
71
|
+
*/
|
72
|
+
mode: PlayMode;
|
77
73
|
/**
|
78
74
|
* Aspect ratio to pass to lottie-web.
|
79
75
|
*/
|
@@ -100,19 +96,14 @@ export declare class LottiePlayer extends LitElement {
|
|
100
96
|
* Animation speed.
|
101
97
|
*/
|
102
98
|
description: string;
|
99
|
+
/**
|
100
|
+
* Animation container.
|
101
|
+
*/
|
102
|
+
protected container: HTMLElement;
|
103
103
|
private _io;
|
104
104
|
private _lottie?;
|
105
105
|
private _prevState?;
|
106
106
|
private _counter;
|
107
|
-
/**
|
108
|
-
* Handle visibility change events.
|
109
|
-
*/
|
110
|
-
private _onVisibilityChange;
|
111
|
-
/**
|
112
|
-
* Handles click and drag actions on the progress track.
|
113
|
-
*/
|
114
|
-
private _handleSeekChange;
|
115
|
-
private _attachEventListeners;
|
116
107
|
/**
|
117
108
|
* Configure and initialize lottie-web player instance.
|
118
109
|
*/
|
@@ -147,12 +138,6 @@ export declare class LottiePlayer extends LitElement {
|
|
147
138
|
* If 'download' argument is boolean true, then a download is triggered in browser.
|
148
139
|
*/
|
149
140
|
snapshot(download?: boolean): string | void;
|
150
|
-
/**
|
151
|
-
* Freeze animation play.
|
152
|
-
* This internal state pauses animation and is used to differentiate between
|
153
|
-
* user requested pauses and component instigated pauses.
|
154
|
-
*/
|
155
|
-
private freeze;
|
156
141
|
/**
|
157
142
|
* Sets animation play speed.
|
158
143
|
*
|
@@ -187,15 +172,30 @@ export declare class LottiePlayer extends LitElement {
|
|
187
172
|
* Returns the styles for the component.
|
188
173
|
*/
|
189
174
|
static get styles(): import("lit-element").CSSResult;
|
175
|
+
/**
|
176
|
+
* Cleanup on component destroy.
|
177
|
+
*/
|
178
|
+
disconnectedCallback(): void;
|
179
|
+
render(): TemplateResult | void;
|
190
180
|
/**
|
191
181
|
* Initialize everything on component first render.
|
192
182
|
*/
|
193
183
|
protected firstUpdated(): void;
|
184
|
+
protected renderControls(): TemplateResult;
|
194
185
|
/**
|
195
|
-
*
|
186
|
+
* Handle visibility change events.
|
196
187
|
*/
|
197
|
-
|
198
|
-
|
199
|
-
|
188
|
+
private _onVisibilityChange;
|
189
|
+
/**
|
190
|
+
* Handles click and drag actions on the progress track.
|
191
|
+
*/
|
192
|
+
private _handleSeekChange;
|
193
|
+
private _attachEventListeners;
|
194
|
+
/**
|
195
|
+
* Freeze animation play.
|
196
|
+
* This internal state pauses animation and is used to differentiate between
|
197
|
+
* user requested pauses and component instigated pauses.
|
198
|
+
*/
|
199
|
+
private freeze;
|
200
200
|
}
|
201
201
|
//# sourceMappingURL=lottie-player.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lottie-player.d.ts","sourceRoot":"","sources":["src/lottie-player.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EAIV,cAAc,EACf,MAAM,aAAa,CAAC;AAOrB,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAGD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAa9D;AAiCD;;;;;;GAMG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C;;OAEG;
|
1
|
+
{"version":3,"file":"lottie-player.d.ts","sourceRoot":"","sources":["src/lottie-player.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EAIV,cAAc,EACf,MAAM,aAAa,CAAC;AAOrB,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAGD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK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