@aarsteinmedia/dotlottie-player 6.4.10 → 6.5.1
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 +12 -6
- package/README.md +1 -1
- package/custom-elements.json +3 -3
- package/dist/canvas.d.ts +2 -2
- package/dist/canvas.js +4 -4
- package/dist/chunks/{DotLottiePlayerBase-DdpA5NST.js → DotLottiePlayerBase-BfEbTiu6.js} +239 -278
- package/dist/chunks/{DotLottiePlayerBase.d-BKD2RSo9.d.ts → constants.d-D4NjmiZl.d.ts} +15 -7
- package/dist/full.d.ts +2 -2
- package/dist/full.js +2 -2
- package/dist/light.d.ts +2 -2
- package/dist/light.js +2 -2
- package/dist/svg.d.ts +2 -2
- package/dist/svg.js +2 -2
- package/dist/unpkg-canvas.js +3 -71
- package/dist/unpkg-full.js +3 -71
- package/dist/unpkg-light.js +2 -70
- package/dist/unpkg-svg.js +3 -71
- package/package.json +26 -12
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
Changelog was only added since [3.2.3], so it's not exhaustive. [Please report any missing
|
|
8
|
+
Changelog was only added since [3.2.3], so it's not exhaustive. [Please report any missing notable changes to us](https://github.com/aarsteinmedia/dotlottie-player/issues), and we'll add them promptly.
|
|
9
|
+
|
|
10
|
+
## [6.5.1] - 17-09-2026
|
|
11
|
+
|
|
12
|
+
- Change to how Animate On Scroll is handled. From being relative to viewport size and scroll position, progress is now entirely determined by position in viewport. This is to improve useability, and gives a significant performance boost. Listener is moved from `scroll` to `IntersectionObserver`, and for browsers that support this the callback is moved to `ViewTimeline` rather than relying on viewport math.
|
|
13
|
+
- Added accessibility check for `prefers-reduced-motion: reduce`. This overrides and disables `autoplay`, `animateOnScroll`, `playOnVisible`, and `mouseOver`/`mouseLeave`.
|
|
9
14
|
|
|
10
15
|
## [6.4.6] - 28-08-2026
|
|
11
16
|
|
|
@@ -37,7 +42,7 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
|
|
|
37
42
|
### Changed
|
|
38
43
|
|
|
39
44
|
- Fixed error causing beziers to be dropped from keyframes.
|
|
40
|
-
- Minor
|
|
45
|
+
- Minor bugfixes.
|
|
41
46
|
|
|
42
47
|
## [6.3.11] - 20-07-2026
|
|
43
48
|
|
|
@@ -78,7 +83,7 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
|
|
|
78
83
|
### Changed
|
|
79
84
|
|
|
80
85
|
- Added attributes:
|
|
81
|
-
- `delay` – Delay playback on playOnVisible, in
|
|
86
|
+
- `delay` – Delay playback on playOnVisible, in milliseconds
|
|
82
87
|
- `mouseout` – Action on mouseout
|
|
83
88
|
- `once` – Whether, if playOnVisible is true, to play once or anytime animation is in view
|
|
84
89
|
- `playOnClick` – Whether to toggle play on click
|
|
@@ -124,7 +129,7 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
|
|
|
124
129
|
### Changed
|
|
125
130
|
|
|
126
131
|
- Optimization to animation engine:
|
|
127
|
-
- Prevented needless function calls to check for rendering context, when only one is
|
|
132
|
+
- Prevented needless function calls to check for rendering context, when only one is sufficient.
|
|
128
133
|
- Swapped deprecated attributes like xml:href and xml:space for modern equivalents.
|
|
129
134
|
|
|
130
135
|
## [5.2.1] - 08-06-2025
|
|
@@ -134,7 +139,7 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
|
|
|
134
139
|
### Changed
|
|
135
140
|
|
|
136
141
|
- Fixed several issues with Canvas renderer.
|
|
137
|
-
- Removed Hybrid
|
|
142
|
+
- Removed Hybrid renderer
|
|
138
143
|
|
|
139
144
|
## [5.2.0] - 07-06-2025
|
|
140
145
|
|
|
@@ -262,7 +267,7 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
|
|
|
262
267
|
|
|
263
268
|
- Made download optional for snapshot
|
|
264
269
|
|
|
265
|
-
- Made snapshot work for
|
|
270
|
+
- Made snapshot work for programmatically set instances
|
|
266
271
|
|
|
267
272
|
- Changed CSS to respect hidden-attribute
|
|
268
273
|
|
|
@@ -401,6 +406,7 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
|
|
|
401
406
|
- Removed dependencies
|
|
402
407
|
- `@lit`
|
|
403
408
|
|
|
409
|
+
[6.5.1]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.1
|
|
404
410
|
[6.3.0]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.3.0
|
|
405
411
|
[6.0.1]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.0.1
|
|
406
412
|
[5.3.2]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/5.3.2
|
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ Here is [a demo](https://www.aarstein.media/en/dotlottie-player), running on Nex
|
|
|
61
61
|
|
|
62
62
|
Because this is a Web Component, you're adding it to the global scope of your web app. Unlike modular components, it should only be imported once – preferably early in your app lifecycle.
|
|
63
63
|
|
|
64
|
-
If you're using TypeScript and want to import the component type, do it
|
|
64
|
+
If you're using TypeScript and want to import the component type, do it modular in addition to the global import:
|
|
65
65
|
|
|
66
66
|
```ts
|
|
67
67
|
import '@aarsteinmedia/dotlottie-player' // Do this once globally.
|
package/custom-elements.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"superclass": {
|
|
52
52
|
"name": "DotLottiePlayerBase",
|
|
53
|
-
"module": "/dist/chunks/DotLottiePlayerBase-
|
|
53
|
+
"module": "/dist/chunks/DotLottiePlayerBase-BfEbTiu6.js"
|
|
54
54
|
},
|
|
55
55
|
"tagName": "tagName",
|
|
56
56
|
"customElement": true
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"name": "MouseOut",
|
|
87
87
|
"declaration": {
|
|
88
88
|
"name": "M",
|
|
89
|
-
"module": "./chunks/DotLottiePlayerBase-
|
|
89
|
+
"module": "./chunks/DotLottiePlayerBase-BfEbTiu6.js"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
{
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"name": "PlayerState",
|
|
95
95
|
"declaration": {
|
|
96
96
|
"name": "P",
|
|
97
|
-
"module": "./chunks/DotLottiePlayerBase-
|
|
97
|
+
"module": "./chunks/DotLottiePlayerBase-BfEbTiu6.js"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
{
|
package/dist/canvas.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/uti
|
|
|
2
2
|
export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
3
|
import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
|
|
4
4
|
import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
|
|
5
|
-
import { D as DotLottiePlayerBase } from './chunks/
|
|
6
|
-
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/
|
|
5
|
+
import { D as DotLottiePlayerBase } from './chunks/constants.d-D4NjmiZl.js';
|
|
6
|
+
export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-D4NjmiZl.js';
|
|
7
7
|
|
|
8
8
|
declare class DotLottiePlayerCanvas extends DotLottiePlayerBase {
|
|
9
9
|
get renderer(): RendererType;
|
package/dist/canvas.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
|
|
3
|
-
import
|
|
4
|
-
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-
|
|
5
|
-
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { loadAnimation } from '@aarsteinmedia/lottie-web/canvas';
|
|
4
|
+
import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-BfEbTiu6.js';
|
|
5
|
+
export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BfEbTiu6.js';
|
|
6
6
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -16,7 +16,7 @@ import '@aarsteinmedia/lottie-web/dotlottie';
|
|
|
16
16
|
this.isLight = true;
|
|
17
17
|
}
|
|
18
18
|
loadAnimation(config) {
|
|
19
|
-
return
|
|
19
|
+
return loadAnimation(config);
|
|
20
20
|
}
|
|
21
21
|
setOptions({ container, hasAutoplay, hasLoop, initialSegment, preserveAspectRatio }) {
|
|
22
22
|
const options = {
|