@aarsteinmedia/dotlottie-player 6.3.4 → 6.3.6
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 +7 -0
- package/custom-elements.json +115 -1
- package/dist/canvas.d.ts +4 -3
- package/dist/canvas.js +2 -2
- package/dist/chunks/{DotLottiePlayerBase-B6CMicGB.js → DotLottiePlayerBase-BBHa6yP8.js} +30 -2
- package/dist/chunks/{DotLottiePlayerBase.d-COx4pY8X.d.ts → DotLottiePlayerBase.d-BSagzEPB.d.ts} +4 -23
- package/dist/full.d.ts +4 -3
- package/dist/full.js +3 -5
- package/dist/light.d.ts +4 -3
- package/dist/light.js +2 -2
- package/dist/svg.d.ts +4 -3
- package/dist/svg.js +2 -2
- package/dist/unpkg-canvas.js +18 -18
- package/dist/unpkg-full.js +18 -18
- package/dist/unpkg-light.js +8 -8
- package/dist/unpkg-svg.js +18 -18
- package/package.json +12 -20
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Changelog was only added since [3.2.3], so it's not exhaustive. [Please report any missing noteable changes to us](https://github.com/aarsteinmedia/dotlottie-player/issues), and we'll add them promptly.
|
|
9
9
|
|
|
10
|
+
## [6.3.6] - 09-06-2026
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Added support for seedRandom expression.
|
|
15
|
+
- Various backend optimizations.
|
|
16
|
+
|
|
10
17
|
## [6.3.0] - 22-02-2026
|
|
11
18
|
|
|
12
19
|
### Changed
|
package/custom-elements.json
CHANGED
|
@@ -1,5 +1,119 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
|
-
"modules": [
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "dist/full.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "DotLottie Player Web Component.",
|
|
12
|
+
"name": "DotLottiePlayer",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "method",
|
|
16
|
+
"name": "loadAnimation",
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"name": "config"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"kind": "method",
|
|
25
|
+
"name": "setOptions",
|
|
26
|
+
"parameters": [
|
|
27
|
+
{
|
|
28
|
+
"name": "{ container, hasAutoplay, hasLoop, initialSegment, preserveAspectRatio, rendererType }"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"kind": "field",
|
|
34
|
+
"name": "addAnimation",
|
|
35
|
+
"default": "addAnimation"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"kind": "field",
|
|
39
|
+
"name": "convert",
|
|
40
|
+
"default": "convert"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"superclass": {
|
|
44
|
+
"name": "DotLottiePlayerBase",
|
|
45
|
+
"module": "/dist/chunks/DotLottiePlayerBase-BBHa6yP8.js"
|
|
46
|
+
},
|
|
47
|
+
"tagName": "tagName",
|
|
48
|
+
"customElement": true
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"exports": [
|
|
52
|
+
{
|
|
53
|
+
"kind": "js",
|
|
54
|
+
"name": "PlayMode",
|
|
55
|
+
"declaration": {
|
|
56
|
+
"name": "PlayMode",
|
|
57
|
+
"package": "@aarsteinmedia/lottie-web/utils"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"kind": "js",
|
|
62
|
+
"name": "PlayerEvents",
|
|
63
|
+
"declaration": {
|
|
64
|
+
"name": "PlayerEvents",
|
|
65
|
+
"package": "@aarsteinmedia/lottie-web/utils"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"kind": "js",
|
|
70
|
+
"name": "RendererType",
|
|
71
|
+
"declaration": {
|
|
72
|
+
"name": "RendererType",
|
|
73
|
+
"package": "@aarsteinmedia/lottie-web/utils"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"kind": "js",
|
|
78
|
+
"name": "MouseOut",
|
|
79
|
+
"declaration": {
|
|
80
|
+
"name": "M",
|
|
81
|
+
"module": "./chunks/DotLottiePlayerBase-BBHa6yP8.js"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"kind": "js",
|
|
86
|
+
"name": "PlayerState",
|
|
87
|
+
"declaration": {
|
|
88
|
+
"name": "P",
|
|
89
|
+
"module": "./chunks/DotLottiePlayerBase-BBHa6yP8.js"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"kind": "custom-element-definition",
|
|
94
|
+
"name": "tagName",
|
|
95
|
+
"declaration": {
|
|
96
|
+
"name": "DotLottiePlayer",
|
|
97
|
+
"module": "dist/full.js"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "js",
|
|
102
|
+
"name": "default",
|
|
103
|
+
"declaration": {
|
|
104
|
+
"name": "DotLottiePlayer",
|
|
105
|
+
"module": "dist/full.js"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"kind": "js",
|
|
110
|
+
"name": "tagName",
|
|
111
|
+
"declaration": {
|
|
112
|
+
"name": "tagName",
|
|
113
|
+
"module": "dist/full.js"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
5
119
|
}
|
package/dist/canvas.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
export { PlayMode, PlayerEvents, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
|
-
import
|
|
4
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-COx4pY8X.js';
|
|
3
|
+
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
5
4
|
import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BSagzEPB.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BSagzEPB.js';
|
|
6
7
|
|
|
7
8
|
declare class DotLottiePlayerCanvas extends DotLottiePlayerBase {
|
|
8
9
|
get renderer(): RendererType;
|
|
9
10
|
constructor();
|
|
10
|
-
loadAnimation(config: AnimationConfiguration):
|
|
11
|
+
loadAnimation(config: AnimationConfiguration): _aarsteinmedia_lottie_web.AnimationItem;
|
|
11
12
|
protected setOptions({ container, hasAutoplay, hasLoop, initialSegment, preserveAspectRatio, }: {
|
|
12
13
|
container?: HTMLElement;
|
|
13
14
|
rendererType: RendererType;
|
package/dist/canvas.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
export { PlayMode, PlayerEvents, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import Lottie from '@aarsteinmedia/lottie-web/canvas';
|
|
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-BBHa6yP8.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BBHa6yP8.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -299,6 +299,13 @@ const pauseIcon = /* HTML */ `
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
return res;
|
|
302
|
+
}, isEnum = (val, _enum)=>{
|
|
303
|
+
if (val === undefined || val === null) {
|
|
304
|
+
return false;
|
|
305
|
+
}
|
|
306
|
+
// Numeric enums have reverse-mapping keys like "0", "1", etc.
|
|
307
|
+
const enumKeys = Object.keys(_enum).filter((k)=>Number.isNaN(Number(k)));
|
|
308
|
+
return enumKeys.some((k)=>_enum[k] === val);
|
|
302
309
|
}, isLottie = (json)=>{
|
|
303
310
|
const mandatory = [
|
|
304
311
|
'v',
|
|
@@ -317,6 +324,24 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
|
|
|
317
324
|
await styleSheet.replace(css_248z);
|
|
318
325
|
return styleSheet;
|
|
319
326
|
};
|
|
327
|
+
// export interface DotLottieAnimationInstance {
|
|
328
|
+
// addEventListener: (name: string, callback: (...args: any[]) => void) => void
|
|
329
|
+
// autoplay?: boolean
|
|
330
|
+
// currentFrame: number
|
|
331
|
+
// destroy: () => void
|
|
332
|
+
// goToAndPlay: (value: number, isFrame?: boolean) => void
|
|
333
|
+
// goToAndStop: (value: number, isFrame?: boolean) => void
|
|
334
|
+
// pause: () => void
|
|
335
|
+
// play: () => void
|
|
336
|
+
// playDirection: number
|
|
337
|
+
// removeEventListener: (name: string, callback: (...args: any[]) => void) => void
|
|
338
|
+
// setDirection: (direction: AnimationDirection) => void
|
|
339
|
+
// setLoop: (loop: boolean) => void
|
|
340
|
+
// setSpeed: (speed: number) => void
|
|
341
|
+
// setSubframe: (useSubframe: boolean) => void
|
|
342
|
+
// stop: () => void
|
|
343
|
+
// totalFrames: number
|
|
344
|
+
// }
|
|
320
345
|
/**
|
|
321
346
|
* DotLottie Player Web Component.
|
|
322
347
|
*/ class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
@@ -521,7 +546,7 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
|
|
|
521
546
|
}
|
|
522
547
|
get objectfit() {
|
|
523
548
|
const val = this.getAttribute('objectfit');
|
|
524
|
-
if (val
|
|
549
|
+
if (isEnum(val, ObjectFit)) {
|
|
525
550
|
return val;
|
|
526
551
|
}
|
|
527
552
|
return ObjectFit.Contain;
|
|
@@ -561,7 +586,7 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
|
|
|
561
586
|
}
|
|
562
587
|
get preserveAspectRatio() {
|
|
563
588
|
const val = this.getAttribute('preserveAspectRatio');
|
|
564
|
-
if (val
|
|
589
|
+
if (isEnum(val, PreserveAspectRatio)) {
|
|
565
590
|
return val;
|
|
566
591
|
}
|
|
567
592
|
return null;
|
|
@@ -756,6 +781,9 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
|
|
|
756
781
|
case 'mode':
|
|
757
782
|
{
|
|
758
783
|
const toggleBoomerang = this.shadow.querySelector('.toggleBoomerang');
|
|
784
|
+
if (!isEnum(value, PlayMode)) {
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
759
787
|
if (toggleBoomerang instanceof HTMLButtonElement) {
|
|
760
788
|
toggleBoomerang.dataset.active = (value === PlayMode.Bounce).toString();
|
|
761
789
|
}
|
package/dist/chunks/{DotLottiePlayerBase.d-COx4pY8X.d.ts → DotLottiePlayerBase.d-BSagzEPB.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLBooleanAttribute, AnimationData, AnimationDirection, AddAnimationParams, Result, ConvertParams, LottieManifest, AnimationSettings, Vector2, AnimationConfiguration } from '@aarsteinmedia/lottie-web';
|
|
1
|
+
import { HTMLBooleanAttribute, AnimationData, AnimationDirection, AddAnimationParams, Result, ConvertParams, AnimationItem, LottieManifest, AnimationSettings, Vector2, AnimationConfiguration } from '@aarsteinmedia/lottie-web';
|
|
2
2
|
import { PlayMode, PreserveAspectRatio, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
|
|
4
4
|
declare abstract class PropertyCallbackElement extends HTMLElement {
|
|
@@ -29,27 +29,9 @@ declare enum PlayerState {
|
|
|
29
29
|
}
|
|
30
30
|
declare const tagName = "dotlottie-player";
|
|
31
31
|
|
|
32
|
-
interface DotLottieAnimationInstance {
|
|
33
|
-
addEventListener: (name: string, callback: (...args: any[]) => void) => void;
|
|
34
|
-
autoplay?: boolean;
|
|
35
|
-
currentFrame: number;
|
|
36
|
-
destroy: () => void;
|
|
37
|
-
goToAndPlay: (value: number, isFrame?: boolean) => void;
|
|
38
|
-
goToAndStop: (value: number, isFrame?: boolean) => void;
|
|
39
|
-
pause: () => void;
|
|
40
|
-
play: () => void;
|
|
41
|
-
playDirection: number;
|
|
42
|
-
removeEventListener: (name: string, callback: (...args: any[]) => void) => void;
|
|
43
|
-
setDirection: (direction: AnimationDirection) => void;
|
|
44
|
-
setLoop: (loop: boolean) => void;
|
|
45
|
-
setSpeed: (speed: number) => void;
|
|
46
|
-
setSubframe: (useSubframe: boolean) => void;
|
|
47
|
-
stop: () => void;
|
|
48
|
-
totalFrames: number;
|
|
49
|
-
}
|
|
50
32
|
declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
51
33
|
static get observedAttributes(): readonly ["animateOnScroll", "autoplay", "controls", "direction", "hover", "loop", "mode", "playOnClick", "playOnVisible", "selector", "speed", "src", "subframe"];
|
|
52
|
-
static get observedProperties():
|
|
34
|
+
static get observedProperties(): readonly ["playerState", "_isSettingsOpen", "_seeker", "_currentAnimation", "_animations"];
|
|
53
35
|
static get styles(): () => Promise<CSSStyleSheet>;
|
|
54
36
|
isLight: boolean;
|
|
55
37
|
playerState: PlayerState;
|
|
@@ -141,12 +123,12 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
|
141
123
|
convert(_params: ConvertParams): Promise<Result>;
|
|
142
124
|
destroy(): void;
|
|
143
125
|
disconnectedCallback(): void;
|
|
144
|
-
getLottie():
|
|
126
|
+
getLottie(): AnimationItem | null;
|
|
145
127
|
getManifest(): LottieManifest | undefined;
|
|
146
128
|
getMultiAnimationSettings(): AnimationSettings[];
|
|
147
129
|
getSegment(): Vector2 | undefined;
|
|
148
130
|
load(src: string | null): Promise<void>;
|
|
149
|
-
loadAnimation(_config: AnimationConfiguration):
|
|
131
|
+
loadAnimation(_config: AnimationConfiguration): AnimationItem;
|
|
150
132
|
next(): void;
|
|
151
133
|
pause(): void;
|
|
152
134
|
play(): void;
|
|
@@ -201,4 +183,3 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
|
|
|
201
183
|
}
|
|
202
184
|
|
|
203
185
|
export { DotLottiePlayerBase as D, MouseOut as M, PlayerState as P, tagName as t };
|
|
204
|
-
export type { DotLottieAnimationInstance as a };
|
package/dist/full.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
export { PlayMode, PlayerEvents, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
|
-
import
|
|
4
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-COx4pY8X.js';
|
|
3
|
+
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
5
4
|
import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
6
5
|
import { addAnimation, convert } from '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BSagzEPB.js';
|
|
7
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BSagzEPB.js';
|
|
7
8
|
|
|
8
9
|
declare class DotLottiePlayer extends DotLottiePlayerBase {
|
|
9
10
|
addAnimation: typeof addAnimation;
|
|
10
11
|
convert: typeof convert;
|
|
11
|
-
loadAnimation(config: AnimationConfiguration):
|
|
12
|
+
loadAnimation(config: AnimationConfiguration): _aarsteinmedia_lottie_web.AnimationItem;
|
|
12
13
|
protected setOptions({ container, hasAutoplay, hasLoop, initialSegment, preserveAspectRatio, rendererType }: {
|
|
13
14
|
container?: undefined | HTMLElement;
|
|
14
15
|
rendererType: RendererType;
|
package/dist/full.js
CHANGED
|
@@ -2,8 +2,8 @@ import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
|
2
2
|
export { PlayMode, PlayerEvents, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import Lottie from '@aarsteinmedia/lottie-web';
|
|
4
4
|
import { addAnimation, convert } from '@aarsteinmedia/lottie-web/dotlottie';
|
|
5
|
-
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-
|
|
6
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
5
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-BBHa6yP8.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BBHa6yP8.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* DotLottie Player Web Component.
|
|
@@ -38,9 +38,7 @@ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-B6
|
|
|
38
38
|
{
|
|
39
39
|
options.rendererSettings = {
|
|
40
40
|
...options.rendererSettings,
|
|
41
|
-
//
|
|
42
|
-
// renderer union, so we have to narrow/cast in this branch.
|
|
43
|
-
clearCanvas: true,
|
|
41
|
+
// clearCanvas: true,
|
|
44
42
|
preserveAspectRatio,
|
|
45
43
|
progressiveLoad: true
|
|
46
44
|
};
|
package/dist/light.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
export { PlayMode, PlayerEvents, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
|
-
import
|
|
4
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-COx4pY8X.js';
|
|
3
|
+
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
5
4
|
import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BSagzEPB.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BSagzEPB.js';
|
|
6
7
|
|
|
7
8
|
declare class DotLottiePlayerLight extends DotLottiePlayerBase {
|
|
8
9
|
get renderer(): RendererType;
|
|
9
10
|
constructor();
|
|
10
|
-
loadAnimation(config: AnimationConfiguration):
|
|
11
|
+
loadAnimation(config: AnimationConfiguration): _aarsteinmedia_lottie_web.AnimationItem;
|
|
11
12
|
protected setOptions({ container, hasAutoplay, hasLoop, initialSegment, preserveAspectRatio, }: {
|
|
12
13
|
container?: HTMLElement;
|
|
13
14
|
rendererType: RendererType;
|
package/dist/light.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
export { PlayMode, PlayerEvents, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import Lottie 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-BBHa6yP8.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BBHa6yP8.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/svg.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
export { PlayMode, PlayerEvents, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
|
-
import
|
|
4
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-COx4pY8X.js';
|
|
3
|
+
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
5
4
|
import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BSagzEPB.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BSagzEPB.js';
|
|
6
7
|
|
|
7
8
|
declare class DotLottiePlayerSVG extends DotLottiePlayerBase {
|
|
8
9
|
get renderer(): RendererType;
|
|
9
10
|
constructor();
|
|
10
|
-
loadAnimation(config: AnimationConfiguration):
|
|
11
|
+
loadAnimation(config: AnimationConfiguration): _aarsteinmedia_lottie_web.AnimationItem;
|
|
11
12
|
protected setOptions({ container, hasAutoplay, hasLoop, initialSegment, preserveAspectRatio, }: {
|
|
12
13
|
container?: undefined | HTMLElement;
|
|
13
14
|
rendererType: RendererType;
|
package/dist/svg.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
export { PlayMode, PlayerEvents, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import Lottie 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-BBHa6yP8.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BBHa6yP8.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|