@aarsteinmedia/dotlottie-player 6.4.10 → 6.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/CHANGELOG.md +12 -6
- package/README.md +1 -1
- package/custom-elements.json +3 -3
- package/dist/canvas.d.ts +2 -2
- package/dist/canvas.js +4 -4
- package/dist/chunks/{DotLottiePlayerBase-DdpA5NST.js → DotLottiePlayerBase-BfEbTiu6.js} +239 -278
- package/dist/chunks/{DotLottiePlayerBase.d-BKD2RSo9.d.ts → constants.d-D4NjmiZl.d.ts} +15 -7
- package/dist/full.d.ts +2 -2
- package/dist/full.js +2 -2
- package/dist/light.d.ts +2 -2
- package/dist/light.js +2 -2
- package/dist/svg.d.ts +2 -2
- package/dist/svg.js +2 -2
- package/dist/unpkg-canvas.js +3 -71
- package/dist/unpkg-full.js +3 -71
- package/dist/unpkg-light.js +2 -70
- package/dist/unpkg-svg.js +3 -71
- package/package.json +26 -12
|
@@ -25,7 +25,6 @@ declare enum PlayerState {
|
|
|
25
25
|
Playing = "playing",
|
|
26
26
|
Stopped = "stopped"
|
|
27
27
|
}
|
|
28
|
-
declare const tagName = "dotlottie-player";
|
|
29
28
|
|
|
30
29
|
declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
31
30
|
static get observedAttributes(): readonly ["animateOnScroll", "autoplay", "controls", "direction", "hover", "loop", "mode", "playOnClick", "playOnVisible", "selector", "speed", "src", "subframe"];
|
|
@@ -92,7 +91,6 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
|
92
91
|
set subframe(value: HTMLBooleanAttribute);
|
|
93
92
|
get subframe(): HTMLBooleanAttribute;
|
|
94
93
|
protected _container: HTMLElement | null;
|
|
95
|
-
protected _DOMRect: DOMRect | null;
|
|
96
94
|
protected _errorMessage: string;
|
|
97
95
|
protected _identifier: string;
|
|
98
96
|
protected _isSettingsOpen: boolean;
|
|
@@ -100,9 +98,9 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
|
100
98
|
prev: PlayerState;
|
|
101
99
|
count: number;
|
|
102
100
|
loaded: boolean;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
scrollLoopId?: number | undefined;
|
|
102
|
+
frame: number;
|
|
103
|
+
playTimeout: ReturnType<typeof setTimeout> | null;
|
|
106
104
|
};
|
|
107
105
|
protected _render: typeof renderPlayer;
|
|
108
106
|
protected _seeker: number;
|
|
@@ -113,9 +111,11 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
|
113
111
|
private _intersectionObserver?;
|
|
114
112
|
private _isBounce;
|
|
115
113
|
private _isDotLottie;
|
|
114
|
+
private _isIntersecting;
|
|
116
115
|
private _lottieInstance;
|
|
117
116
|
private _manifest?;
|
|
118
117
|
private _multiAnimationSettings;
|
|
118
|
+
private _scrollProbe?;
|
|
119
119
|
private _segment?;
|
|
120
120
|
constructor();
|
|
121
121
|
addAnimation(_params: AddAnimationParams): Promise<Result>;
|
|
@@ -166,6 +166,8 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
|
166
166
|
}): AnimationConfiguration;
|
|
167
167
|
private _addEventListeners;
|
|
168
168
|
private _addIntersectionObserver;
|
|
169
|
+
private _applyScrollProgress;
|
|
170
|
+
private _cancelScrollProbe;
|
|
169
171
|
private _clearPrevious;
|
|
170
172
|
private _complete;
|
|
171
173
|
private _dataFailed;
|
|
@@ -173,18 +175,24 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
|
173
175
|
private _DOMLoaded;
|
|
174
176
|
private _enterFrame;
|
|
175
177
|
private _getOptions;
|
|
178
|
+
private _getScrollProgress;
|
|
176
179
|
private _handleError;
|
|
177
|
-
private
|
|
180
|
+
private _handleLdScript;
|
|
181
|
+
private _handleSelector;
|
|
178
182
|
private _handleWindowBlur;
|
|
179
|
-
private _intersectionObserverFallback;
|
|
180
183
|
private _loopComplete;
|
|
181
184
|
private _mouseEnter;
|
|
182
185
|
private _mouseLeave;
|
|
183
186
|
private _onVisibilityChange;
|
|
184
187
|
private _removeEventListeners;
|
|
188
|
+
private _scrollLoop;
|
|
189
|
+
private _startScrollLoop;
|
|
190
|
+
private _stopScrollLoop;
|
|
185
191
|
private _switchInstance;
|
|
186
192
|
private _toggleEventListeners;
|
|
187
193
|
private _toggleSettings;
|
|
188
194
|
}
|
|
189
195
|
|
|
196
|
+
declare const tagName = "dotlottie-player";
|
|
197
|
+
|
|
190
198
|
export { DotLottiePlayerBase as D, MouseOut as M, PlayerState as P, tagName as t };
|
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/
|
|
6
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/constants.d-D4NjmiZl.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-D4NjmiZl.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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-BfEbTiu6.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BfEbTiu6.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/
|
|
6
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/constants.d-D4NjmiZl.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-D4NjmiZl.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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-BfEbTiu6.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BfEbTiu6.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/
|
|
6
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/constants.d-D4NjmiZl.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-D4NjmiZl.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-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-BfEbTiu6.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BfEbTiu6.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|