@lottiefiles/lottie-player 1.4.3 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -1
- package/dist/lottie-player.d.ts +5 -0
- package/dist/lottie-player.d.ts.map +1 -1
- package/dist/lottie-player.esm.js +2 -10
- package/dist/lottie-player.esm.js.map +1 -1
- package/dist/lottie-player.js +2 -10
- package/dist/lottie-player.js.map +1 -1
- package/dist/lottie-player.styles.d.ts.map +1 -1
- package/dist/tgs-player.esm.js +11 -19
- package/dist/tgs-player.esm.js.map +1 -1
- package/dist/tgs-player.js +11 -19
- package/dist/tgs-player.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
@@ -10,7 +10,6 @@ This is a Web Component for easily embedding and playing Lottie animations and t
|
|
10
10
|
![screencast](https://i.imgur.com/miLzIkJ.gif)
|
11
11
|
|
12
12
|
- [Basic usage examples](https://codesandbox.io/s/y2nxyvomyj)
|
13
|
-
- [Scrolling effects demo](https://ypxk7zvpq1.codesandbox.io/)
|
14
13
|
|
15
14
|
## Documentation
|
16
15
|
|
package/dist/lottie-player.d.ts
CHANGED
@@ -102,6 +102,10 @@ export declare class LottiePlayer extends LitElement {
|
|
102
102
|
* Bodymovin JSON data or URL to JSON.
|
103
103
|
*/
|
104
104
|
src?: string;
|
105
|
+
/**
|
106
|
+
* Enable web workers
|
107
|
+
*/
|
108
|
+
webworkers?: boolean;
|
105
109
|
/**
|
106
110
|
* Animation container.
|
107
111
|
*/
|
@@ -110,6 +114,7 @@ export declare class LottiePlayer extends LitElement {
|
|
110
114
|
private _lottie?;
|
111
115
|
private _prevState?;
|
112
116
|
private _counter;
|
117
|
+
private readonly workerString;
|
113
118
|
/**
|
114
119
|
* Configure and initialize lottie-web player instance.
|
115
120
|
*/
|
@@ -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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