@aarsteinmedia/dotlottie-player 2.1.7 → 2.2.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 +97 -267
- package/dist/custom-elements.json +351 -347
- package/dist/esm/index.js +69 -241
- package/dist/index.d.ts +30 -28
- package/dist/index.js +3 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -3,34 +3,6 @@ import { LitElement, CSSResult } from 'lit';
|
|
|
3
3
|
import { AnimationDirection, RendererType, AnimationSegment, AnimationItem } from 'lottie-web';
|
|
4
4
|
import { RefObject, CSSProperties } from 'react';
|
|
5
5
|
|
|
6
|
-
declare enum PlayerState {
|
|
7
|
-
Completed = "completed",
|
|
8
|
-
Destroyed = "destroyed",
|
|
9
|
-
Error = "error",
|
|
10
|
-
Frozen = "frozen",
|
|
11
|
-
Loading = "loading",
|
|
12
|
-
Paused = "paused",
|
|
13
|
-
Playing = "playing",
|
|
14
|
-
Stopped = "stopped"
|
|
15
|
-
}
|
|
16
|
-
declare enum PlayMode {
|
|
17
|
-
Bounce = "bounce",
|
|
18
|
-
Normal = "normal"
|
|
19
|
-
}
|
|
20
|
-
declare enum PlayerEvents {
|
|
21
|
-
Complete = "complete",
|
|
22
|
-
Destroyed = "destroyed",
|
|
23
|
-
Error = "error",
|
|
24
|
-
Frame = "frame",
|
|
25
|
-
Freeze = "freeze",
|
|
26
|
-
Load = "load",
|
|
27
|
-
Loop = "loop",
|
|
28
|
-
Pause = "pause",
|
|
29
|
-
Play = "play",
|
|
30
|
-
Ready = "ready",
|
|
31
|
-
Rendered = "rendered",
|
|
32
|
-
Stop = "stop"
|
|
33
|
-
}
|
|
34
6
|
interface LottieAsset {
|
|
35
7
|
e: 0 | 1;
|
|
36
8
|
id: string;
|
|
@@ -98,6 +70,35 @@ declare global {
|
|
|
98
70
|
}
|
|
99
71
|
}
|
|
100
72
|
|
|
73
|
+
declare enum PlayerState {
|
|
74
|
+
Completed = "completed",
|
|
75
|
+
Destroyed = "destroyed",
|
|
76
|
+
Error = "error",
|
|
77
|
+
Frozen = "frozen",
|
|
78
|
+
Loading = "loading",
|
|
79
|
+
Paused = "paused",
|
|
80
|
+
Playing = "playing",
|
|
81
|
+
Stopped = "stopped"
|
|
82
|
+
}
|
|
83
|
+
declare enum PlayMode {
|
|
84
|
+
Bounce = "bounce",
|
|
85
|
+
Normal = "normal"
|
|
86
|
+
}
|
|
87
|
+
declare enum PlayerEvents {
|
|
88
|
+
Complete = "complete",
|
|
89
|
+
Destroyed = "destroyed",
|
|
90
|
+
Error = "error",
|
|
91
|
+
Frame = "frame",
|
|
92
|
+
Freeze = "freeze",
|
|
93
|
+
Load = "load",
|
|
94
|
+
Loop = "loop",
|
|
95
|
+
Pause = "pause",
|
|
96
|
+
Play = "play",
|
|
97
|
+
Ready = "ready",
|
|
98
|
+
Rendered = "rendered",
|
|
99
|
+
Stop = "stop"
|
|
100
|
+
}
|
|
101
|
+
|
|
101
102
|
declare class DotLottiePlayer extends LitElement {
|
|
102
103
|
autoplay?: Autoplay;
|
|
103
104
|
background?: string;
|
|
@@ -132,6 +133,7 @@ declare class DotLottiePlayer extends LitElement {
|
|
|
132
133
|
private _playerState;
|
|
133
134
|
private _getOptions;
|
|
134
135
|
load(src: string | LottieJSON): Promise<void>;
|
|
136
|
+
getManifest(): LottieManifest;
|
|
135
137
|
private _addEventListeners;
|
|
136
138
|
private _onVisibilityChange;
|
|
137
139
|
private _handleSeekChange;
|