@lottiefiles/lottie-player 1.4.0 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), enforced with [semantic-release](https://github.com/semantic-release/semantic-release).
4
4
 
5
5
 
6
+ ## [1.2.1](https://github.com/LottieFiles/lottie-player/compare/v1.2.0...v1.2.1) (2021-09-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **safari fix:** safari height width inherit to container, eslint error fixes ([8c96be5](https://github.com/LottieFiles/lottie-player/commit/8c96be586d3128833d264f2c75511b4d03e95289))
12
+
6
13
  # [1.2.0](https://github.com/LottieFiles/lottie-player/compare/v1.1.4...v1.2.0) (2021-09-21)
7
14
 
8
15
 
@@ -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
  */
@@ -62,6 +54,14 @@ export declare class LottiePlayer extends LitElement {
62
54
  * Number of times to loop animation.
63
55
  */
64
56
  count?: number;
57
+ /**
58
+ * Player state.
59
+ */
60
+ currentState: PlayerState;
61
+ /**
62
+ * Animation speed.
63
+ */
64
+ description: string;
65
65
  /**
66
66
  * Direction of animation.
67
67
  */
@@ -70,10 +70,18 @@ export declare class LottiePlayer extends LitElement {
70
70
  * Whether to play on mouse hover
71
71
  */
72
72
  hover: boolean;
73
+ /**
74
+ * Intermission
75
+ */
76
+ intermission: number;
73
77
  /**
74
78
  * Whether to loop animation.
75
79
  */
76
80
  loop: boolean;
81
+ /**
82
+ * Play mode.
83
+ */
84
+ mode: PlayMode;
77
85
  /**
78
86
  * Aspect ratio to pass to lottie-web.
79
87
  */
@@ -82,6 +90,10 @@ export declare class LottiePlayer extends LitElement {
82
90
  * Renderer to use.
83
91
  */
84
92
  renderer: "svg";
93
+ /**
94
+ * seeker
95
+ */
96
+ seeker: any;
85
97
  /**
86
98
  * Animation speed.
87
99
  */
@@ -91,28 +103,13 @@ export declare class LottiePlayer extends LitElement {
91
103
  */
92
104
  src?: string;
93
105
  /**
94
- * Player state.
95
- */
96
- currentState: PlayerState;
97
- seeker: any;
98
- intermission: number;
99
- /**
100
- * Animation speed.
106
+ * Animation container.
101
107
  */
102
- description: string;
108
+ protected container: HTMLElement;
103
109
  private _io;
104
110
  private _lottie?;
105
111
  private _prevState?;
106
112
  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
113
  /**
117
114
  * Configure and initialize lottie-web player instance.
118
115
  */
@@ -147,12 +144,6 @@ export declare class LottiePlayer extends LitElement {
147
144
  * If 'download' argument is boolean true, then a download is triggered in browser.
148
145
  */
149
146
  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
147
  /**
157
148
  * Sets animation play speed.
158
149
  *
@@ -187,15 +178,30 @@ export declare class LottiePlayer extends LitElement {
187
178
  * Returns the styles for the component.
188
179
  */
189
180
  static get styles(): import("lit-element").CSSResult;
181
+ /**
182
+ * Cleanup on component destroy.
183
+ */
184
+ disconnectedCallback(): void;
185
+ render(): TemplateResult | void;
190
186
  /**
191
187
  * Initialize everything on component first render.
192
188
  */
193
189
  protected firstUpdated(): void;
190
+ protected renderControls(): TemplateResult;
194
191
  /**
195
- * Cleanup on component destroy.
192
+ * Handle visibility change events.
196
193
  */
197
- disconnectedCallback(): void;
198
- protected renderControls(): TemplateResult;
199
- render(): TemplateResult | void;
194
+ private _onVisibilityChange;
195
+ /**
196
+ * Handles click and drag actions on the progress track.
197
+ */
198
+ private _handleSeekChange;
199
+ private _attachEventListeners;
200
+ /**
201
+ * Freeze animation play.
202
+ * This internal state pauses animation and is used to differentiate between
203
+ * user requested pauses and component instigated pauses.
204
+ */
205
+ private freeze;
200
206
  }
201
207
  //# 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;IAEH,SAAS,CAAC,SAAS,EAAG,WAAW,CAAC;IAElC;;OAEG;IAEI,IAAI,EAAE,QAAQ,CAAmB;IAExC;;OAEG;IAEI,QAAQ,UAAS;IAExB;;OAEG;IAEI,UAAU,CAAC,EAAE,MAAM,CAAiB;IAE3C;;OAEG;IAEI,QAAQ,UAAS;IAExB;;OAEG;IAEI,KAAK,CAAC,EA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