@aarsteinmedia/dotlottie-player 2.4.4 → 2.5.1

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.
package/dist/index.d.ts CHANGED
@@ -83,6 +83,7 @@ interface LottieManifest {
83
83
  keywords?: string;
84
84
  version?: string;
85
85
  }
86
+ type AnimateOnScroll = boolean | '' | null;
86
87
  type Autoplay = boolean | '' | 'autoplay' | null;
87
88
  type Controls = boolean | '' | 'controls' | null;
88
89
  type Loop = boolean | '' | 'loop' | null;
@@ -139,6 +140,7 @@ declare enum PlayerEvents {
139
140
  }
140
141
 
141
142
  declare class DotLottiePlayer extends LitElement {
143
+ animateOnScroll?: AnimateOnScroll;
142
144
  autoplay?: Autoplay;
143
145
  background?: string;
144
146
  controls?: Controls;
@@ -173,6 +175,7 @@ declare class DotLottiePlayer extends LitElement {
173
175
  private _animations;
174
176
  private _playerState;
175
177
  private _getOptions;
178
+ private _addIntersectionObserver;
176
179
  load(src: string | LottieJSON): Promise<void>;
177
180
  getManifest(): LottieManifest;
178
181
  private _addEventListeners;
@@ -183,9 +186,11 @@ declare class DotLottiePlayer extends LitElement {
183
186
  private _DOMLoaded;
184
187
  private _dataReady;
185
188
  private _dataFailed;
189
+ private _handleWindowBlur;
186
190
  private _mouseEnter;
187
191
  private _mouseLeave;
188
192
  private _onVisibilityChange;
193
+ private _handleScroll;
189
194
  private _handleSeekChange;
190
195
  private _isLottie;
191
196
  addAnimation(configs: AnimationConfig[], fileName?: string, shouldDownload?: boolean): Promise<void | ArrayBuffer>;