@aarsteinmedia/dotlottie-player 6.4.10 → 6.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.
@@ -92,7 +92,6 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
92
92
  set subframe(value: HTMLBooleanAttribute);
93
93
  get subframe(): HTMLBooleanAttribute;
94
94
  protected _container: HTMLElement | null;
95
- protected _DOMRect: DOMRect | null;
96
95
  protected _errorMessage: string;
97
96
  protected _identifier: string;
98
97
  protected _isSettingsOpen: boolean;
@@ -100,9 +99,9 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
100
99
  prev: PlayerState;
101
100
  count: number;
102
101
  loaded: boolean;
103
- visible: boolean;
104
- scrollY: number;
105
- scrollTimeout: ReturnType<typeof setTimeout> | null;
102
+ scrollLoopId?: number | undefined;
103
+ frame: number;
104
+ playTimeout: ReturnType<typeof setTimeout> | null;
106
105
  };
107
106
  protected _render: typeof renderPlayer;
108
107
  protected _seeker: number;
@@ -113,9 +112,11 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
113
112
  private _intersectionObserver?;
114
113
  private _isBounce;
115
114
  private _isDotLottie;
115
+ private _isIntersecting;
116
116
  private _lottieInstance;
117
117
  private _manifest?;
118
118
  private _multiAnimationSettings;
119
+ private _scrollProbe?;
119
120
  private _segment?;
120
121
  constructor();
121
122
  addAnimation(_params: AddAnimationParams): Promise<Result>;
@@ -166,6 +167,8 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
166
167
  }): AnimationConfiguration;
167
168
  private _addEventListeners;
168
169
  private _addIntersectionObserver;
170
+ private _applyScrollProgress;
171
+ private _cancelScrollProbe;
169
172
  private _clearPrevious;
170
173
  private _complete;
171
174
  private _dataFailed;
@@ -173,15 +176,19 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
173
176
  private _DOMLoaded;
174
177
  private _enterFrame;
175
178
  private _getOptions;
179
+ private _getScrollProgress;
176
180
  private _handleError;
177
- private _handleScroll;
181
+ private _handleLdScript;
182
+ private _handleSelector;
178
183
  private _handleWindowBlur;
179
- private _intersectionObserverFallback;
180
184
  private _loopComplete;
181
185
  private _mouseEnter;
182
186
  private _mouseLeave;
183
187
  private _onVisibilityChange;
184
188
  private _removeEventListeners;
189
+ private _scrollLoop;
190
+ private _startScrollLoop;
191
+ private _stopScrollLoop;
185
192
  private _switchInstance;
186
193
  private _toggleEventListeners;
187
194
  private _toggleSettings;
package/dist/full.d.ts CHANGED
@@ -2,8 +2,8 @@ import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/uti
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
4
4
  import { AddAnimationParams, ConvertParams, AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
5
- import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
6
- export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
5
+ import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-C-GBbp4e.js';
6
+ export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-C-GBbp4e.js';
7
7
 
8
8
  declare class DotLottiePlayer extends DotLottiePlayerBase {
9
9
  addAnimation(params: AddAnimationParams): Promise<_aarsteinmedia_lottie_web.Result>;
package/dist/full.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web';
4
- import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
4
+ import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-Dq0onB9o.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-Dq0onB9o.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**
package/dist/light.d.ts CHANGED
@@ -2,8 +2,8 @@ import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/uti
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
4
4
  import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
5
- import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
6
- export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
5
+ import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-C-GBbp4e.js';
6
+ export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-C-GBbp4e.js';
7
7
 
8
8
  declare class DotLottiePlayerLight extends DotLottiePlayerBase {
9
9
  get renderer(): RendererType;
package/dist/light.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web/light';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-Dq0onB9o.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-Dq0onB9o.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**
package/dist/svg.d.ts CHANGED
@@ -2,8 +2,8 @@ import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/uti
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
4
4
  import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
5
- import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
6
- export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
5
+ import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-C-GBbp4e.js';
6
+ export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-C-GBbp4e.js';
7
7
 
8
8
  declare class DotLottiePlayerSVG extends DotLottiePlayerBase {
9
9
  get renderer(): RendererType;
package/dist/svg.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
2
2
  export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web/svg';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-Dq0onB9o.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-Dq0onB9o.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**