@aarsteinmedia/dotlottie-player 2.4.4 → 2.5.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.
- package/dist/cjs/index.js +100 -33
- package/dist/custom-elements.json +46 -2
- package/dist/esm/index.js +100 -33
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -139,6 +139,7 @@ declare enum PlayerEvents {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
declare class DotLottiePlayer extends LitElement {
|
|
142
|
+
animateOnScroll?: boolean;
|
|
142
143
|
autoplay?: Autoplay;
|
|
143
144
|
background?: string;
|
|
144
145
|
controls?: Controls;
|
|
@@ -173,6 +174,7 @@ declare class DotLottiePlayer extends LitElement {
|
|
|
173
174
|
private _animations;
|
|
174
175
|
private _playerState;
|
|
175
176
|
private _getOptions;
|
|
177
|
+
private _addIntersectionObserver;
|
|
176
178
|
load(src: string | LottieJSON): Promise<void>;
|
|
177
179
|
getManifest(): LottieManifest;
|
|
178
180
|
private _addEventListeners;
|
|
@@ -183,9 +185,11 @@ declare class DotLottiePlayer extends LitElement {
|
|
|
183
185
|
private _DOMLoaded;
|
|
184
186
|
private _dataReady;
|
|
185
187
|
private _dataFailed;
|
|
188
|
+
private _handleWindowBlur;
|
|
186
189
|
private _mouseEnter;
|
|
187
190
|
private _mouseLeave;
|
|
188
191
|
private _onVisibilityChange;
|
|
192
|
+
private _handleScroll;
|
|
189
193
|
private _handleSeekChange;
|
|
190
194
|
private _isLottie;
|
|
191
195
|
addAnimation(configs: AnimationConfig[], fileName?: string, shouldDownload?: boolean): Promise<void | ArrayBuffer>;
|