@lottiefiles/lottie-player
Advanced tools
Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "@lottiefiles/lottie-player", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Lottie animation and Telegram Sticker player web components.", | ||
@@ -23,3 +23,4 @@ "main": "dist/lottie-player.js", | ||
"lottie-web": "^5.6.6", | ||
"pako": "^1.0.11" | ||
"pako": "^1.0.11", | ||
"resize-observer-polyfill": "^1.5.1" | ||
}, | ||
@@ -26,0 +27,0 @@ "devDependencies": { |
@@ -28,3 +28,3 @@ ## lottie-player Web Component | ||
```html | ||
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.2.0/dist/lottie-player.js"></script> | ||
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.4.0/dist/lottie-player.js"></script> | ||
``` | ||
@@ -43,3 +43,3 @@ | ||
```html | ||
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.2.0/dist/tgs-player.js"></script> | ||
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.4.0/dist/tgs-player.js"></script> | ||
``` | ||
@@ -123,3 +123,3 @@ | ||
| `mode` | `mode` | Play mode. | `PlayMode.Bounce \| PlayMode.Normal` | `PlayMode.Normal` | | ||
| `renderer` | `renderer` | Renderer to use. | `"svg"` | `'svg'` | | ||
| `renderer` | `renderer` | Renderer to use. | `"svg" | "canvas"` | `'svg'` | | ||
| `speed` | `speed` | Animation speed. | `number` | `1` | | ||
@@ -251,2 +251,10 @@ | `src` _(required)_ | `src` | Bodymovin JSON data or URL to JSON. | `string` | `undefined` | | ||
### `resize() => void` | ||
Resize animation stage and elements in response to changes in component. | ||
#### Returns | ||
Type: `void` | ||
## Events | ||
@@ -253,0 +261,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3222837
6258
288
5
6
+ Addedresize-observer-polyfill@1.5.1(transitive)