@lottiefiles/dotlottie-web 0.30.2 → 0.30.3
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/README.md +3 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,6 +113,7 @@ const dotLottie = new DotLottie({
|
|
|
113
113
|
* <a href="https://codepen.io/lottiefiles/pen/LYvZveR" target="_blank">Advanced Animation Layout</a>
|
|
114
114
|
* <a href="https://codepen.io/lottiefiles/pen/RwOROKp" target="_blank">Named Markers</a>
|
|
115
115
|
* <a href="https://codepen.io/lottiefiles/pen/BaEzEeq" target="_blank">dotLottie theming</a>
|
|
116
|
+
* <a href="https://codepen.io/lottiefiles/pen/VwJvdRN" target="_blank">dotLottie Interactivity</a>
|
|
116
117
|
|
|
117
118
|
## APIs
|
|
118
119
|
|
|
@@ -142,8 +143,8 @@ The `layout` object accepts the following properties:
|
|
|
142
143
|
|
|
143
144
|
| Property name | Type | Required | Default | Description |
|
|
144
145
|
| ------------- | ----------------- | :------: | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
145
|
-
| `fit` | string |
|
|
146
|
-
| `align` | \[number, number] |
|
|
146
|
+
| `fit` | string | ✔️ | "contain" | The fit mode of the animation. Accepts "contain", "cover", "fill", "fit-width", "fit-height" and "none". |
|
|
147
|
+
| `align` | \[number, number] | ✔️ | \[0.5, 0.5] | The alignment of the animation in the canvas. Origin is at the top-left corner where \[0, 0] is the top-left corner and \[1, 1] is the bottom-right corner. |
|
|
147
148
|
|
|
148
149
|
#### RenderConfig
|
|
149
150
|
|