@lottiefiles/lottie-player 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +82 -0
- package/dist/index.html +49 -0
- package/dist/lottie-player.d.ts +0 -1
- package/dist/lottie-player.d.ts.map +1 -1
- package/dist/lottie-player.esm.js +6751 -35
- package/dist/lottie-player.esm.js.map +1 -1
- package/dist/lottie-player.js +6764 -38
- package/dist/lottie-player.js.map +1 -1
- package/dist/sticker.tgs +0 -0
- package/package.json +1 -1
- package/dist/tgs-player.esm.js +0 -186
- package/dist/tgs-player.esm.js.map +0 -1
- package/dist/tgs-player.js +0 -186
- package/dist/tgs-player.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,88 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), enforced with [semantic-release](https://github.com/semantic-release/semantic-release).
|
4
4
|
|
5
5
|
|
6
|
+
## 1.5.1
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **web-worker:** fixed web worker prop to work correctly with proper bundling adjustments.
|
12
|
+
|
13
|
+
|
14
|
+
## 1.5.0
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* **web-worker:** added web worker prop.
|
20
|
+
|
21
|
+
|
22
|
+
## 1.4.5
|
23
|
+
|
24
|
+
|
25
|
+
### Bug Fixes
|
26
|
+
|
27
|
+
* **loop:** loop counter started at zero. changed to 1 instead.
|
28
|
+
|
29
|
+
|
30
|
+
## 1.4.4
|
31
|
+
|
32
|
+
|
33
|
+
### Bug Fixes
|
34
|
+
|
35
|
+
* **resize:** fixed width and height responsiveness issues
|
36
|
+
|
37
|
+
|
38
|
+
## 1.4.3
|
39
|
+
|
40
|
+
|
41
|
+
### Bug Fixes
|
42
|
+
|
43
|
+
* **safari:** fixed safari glitching animation issue (used flex for controls placement instead of grid system)
|
44
|
+
|
45
|
+
|
46
|
+
## 1.4.2
|
47
|
+
|
48
|
+
|
49
|
+
### Bug Fixes
|
50
|
+
|
51
|
+
* **code:** fixed typescript errors with type assertions and restructuring of code
|
52
|
+
|
53
|
+
|
54
|
+
## 1.4.1
|
55
|
+
|
56
|
+
|
57
|
+
### Bug Fixes
|
58
|
+
|
59
|
+
* **code:** fixed typescript errors with type assertions and restructuring of code
|
60
|
+
* **container:** added width and height inheritence to animation container
|
61
|
+
|
62
|
+
|
63
|
+
## 1.4.0
|
64
|
+
|
65
|
+
|
66
|
+
### Features
|
67
|
+
|
68
|
+
* **event listeners:** added event listeners before json error check
|
69
|
+
* **cleanup:** added a destroy method for cleanup of dom
|
70
|
+
|
71
|
+
|
72
|
+
## 1.3.1
|
73
|
+
|
74
|
+
|
75
|
+
### Chore
|
76
|
+
|
77
|
+
* **rollback:** rollback previous changes
|
78
|
+
|
79
|
+
|
80
|
+
## 1.3.0
|
81
|
+
|
82
|
+
|
83
|
+
### Bug Fixes
|
84
|
+
|
85
|
+
* **network call fix:** attempt to fix dual network call
|
86
|
+
|
87
|
+
|
6
88
|
## [1.2.1](https://github.com/LottieFiles/lottie-player/compare/v1.2.0...v1.2.1) (2021-09-30)
|
7
89
|
|
8
90
|
|
package/dist/index.html
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<meta
|
6
|
+
name="viewport"
|
7
|
+
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
|
8
|
+
/>
|
9
|
+
<title>lottie-player web component</title>
|
10
|
+
</head>
|
11
|
+
|
12
|
+
<body>
|
13
|
+
<div style="height: 600px; background-color: beige">
|
14
|
+
<lottie-player
|
15
|
+
id="player0"
|
16
|
+
autoplay
|
17
|
+
controls
|
18
|
+
count="2"
|
19
|
+
loop
|
20
|
+
speed="1"
|
21
|
+
mode="normal"
|
22
|
+
style="width: 100%"
|
23
|
+
webworkers="true"
|
24
|
+
src="https://assets5.lottiefiles.com/packages/lf20_tl5nafup.json"
|
25
|
+
>
|
26
|
+
</lottie-player>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<tgs-player
|
30
|
+
autoplay
|
31
|
+
controls
|
32
|
+
loop
|
33
|
+
style="width: 320px"
|
34
|
+
src="./sticker.tgs"
|
35
|
+
speed="1"
|
36
|
+
mode="normal"
|
37
|
+
>
|
38
|
+
</tgs-player>
|
39
|
+
|
40
|
+
<script src="./lottie-player.js"></script>
|
41
|
+
<script src="./tgs-player.js"></script>
|
42
|
+
<script>
|
43
|
+
var player = document.getElementById("player0");
|
44
|
+
player.addEventListener("error", function (e) {
|
45
|
+
console.log("errorrr");
|
46
|
+
});
|
47
|
+
</script>
|
48
|
+
</body>
|
49
|
+
</html>
|
package/dist/lottie-player.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lottie-player.d.ts","sourceRoot":"","sources":["src/lottie-player.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EAIV,cAAc,EACf,MAAM,aAAa,CAAC;AAOrB,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAGD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAA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