@aarsteinmedia/dotlottie-player 6.6.4 → 6.6.6
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 +15 -0
- package/custom-elements.json +1 -1
- package/dist/canvas.js +4 -1
- package/dist/chunks/{DotLottiePlayerBase-CREYTonO.js → DotLottiePlayerBase-BBzPUDWE.js} +2 -3
- package/dist/chunks/{errorScreen-Bq5V84Fj.js → errorScreen-DuYhD9Ek.js} +1 -1
- package/dist/full.js +1 -1
- package/dist/light.js +4 -1
- package/dist/svg.js +4 -1
- package/dist/unpkg-canvas.js +3 -3
- package/dist/unpkg-full.js +3 -3
- package/dist/unpkg-light.js +2 -2
- package/dist/unpkg-svg.js +3 -3
- package/package.json +21 -17
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
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
9
|
|
|
10
|
+
## [6.6.6] - 24-10-2026
|
|
11
|
+
|
|
12
|
+
- Slightly better garbage collection.
|
|
13
|
+
|
|
14
|
+
## [6.6.5] - 09-10-2026
|
|
15
|
+
|
|
16
|
+
- Fixed bug with observedProperties, causing some attributes to be less dynamic than intended.
|
|
17
|
+
- Registered side-effects, for better tree-shaking.
|
|
18
|
+
- More efficient caching.
|
|
19
|
+
- More economic handling of ViewTimeline.
|
|
20
|
+
- `snapshot` is now async, and can capture png images in Canvas Renderer.
|
|
21
|
+
- Added vitest.
|
|
22
|
+
|
|
10
23
|
## [6.5.7] - 07-10-2026
|
|
11
24
|
|
|
12
25
|
- Minor performance improvements to animation engine.
|
|
@@ -414,6 +427,8 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
|
|
|
414
427
|
- Removed dependencies
|
|
415
428
|
- `@lit`
|
|
416
429
|
|
|
430
|
+
[6.6.6]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.6.6
|
|
431
|
+
[6.6.5]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.6.5
|
|
417
432
|
[6.5.7]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.7
|
|
418
433
|
[6.5.6]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.6
|
|
419
434
|
[6.5.5]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.5
|
package/custom-elements.json
CHANGED
package/dist/canvas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
import { loadAnimation } from '@aarsteinmedia/lottie-web/canvas';
|
|
3
|
-
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-BBzPUDWE.js';
|
|
4
4
|
import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
|
|
5
5
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
6
|
|
|
@@ -8,6 +8,9 @@ import '@aarsteinmedia/lottie-web/dotlottie';
|
|
|
8
8
|
* DotLottie Player Web Component.
|
|
9
9
|
*/ class DotLottiePlayerCanvas extends DotLottiePlayerBase {
|
|
10
10
|
get renderer() {
|
|
11
|
+
if (super.renderer !== RendererType.Canvas) {
|
|
12
|
+
this.devLog(`[dotlottie-player] renderer "${super.renderer}" is not available in ` + '@aarsteinmedia/dotlottie-player/canvas, falling back to "canvas". Import from ' + '@aarsteinmedia/dotlottie-player to use other renderers.', 'warn');
|
|
13
|
+
}
|
|
11
14
|
return RendererType.Canvas;
|
|
12
15
|
}
|
|
13
16
|
loadAnimation(config) {
|
|
@@ -10,7 +10,7 @@ function loadControlsModule() {
|
|
|
10
10
|
|
|
11
11
|
let modulePromise = null;
|
|
12
12
|
function loadErrorModule() {
|
|
13
|
-
modulePromise = modulePromise ?? import('./errorScreen-
|
|
13
|
+
modulePromise = modulePromise ?? import('./errorScreen-DuYhD9Ek.js');
|
|
14
14
|
return modulePromise;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -29,8 +29,7 @@ function loadErrorModule() {
|
|
|
29
29
|
constructor(){
|
|
30
30
|
super();
|
|
31
31
|
const { observedProperties } = this.constructor;
|
|
32
|
-
|
|
33
|
-
for(let i = 0; i < length; i++){
|
|
32
|
+
for(let i = 0; i < observedProperties.length; i++){
|
|
34
33
|
const initialValue = this[observedProperties[i]], cachedValue = Symbol(observedProperties[i]);
|
|
35
34
|
this[cachedValue] = initialValue;
|
|
36
35
|
Object.defineProperty(this, observedProperties[i] ?? '', {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PreserveAspectRatio, namespaceSVG } from '@aarsteinmedia/lottie-web/utils';
|
|
2
|
-
import { e as escapeHTML } from './DotLottiePlayerBase-
|
|
2
|
+
import { e as escapeHTML } from './DotLottiePlayerBase-BBzPUDWE.js';
|
|
3
3
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
4
4
|
import './utilities-CC4oA5Yh.js';
|
|
5
5
|
|
package/dist/full.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
import { loadAnimation } from '@aarsteinmedia/lottie-web';
|
|
3
|
-
import { D as DotLottiePlayerBase, l as loadDotLottieTools } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { D as DotLottiePlayerBase, l as loadDotLottieTools } from './chunks/DotLottiePlayerBase-BBzPUDWE.js';
|
|
4
4
|
import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
|
|
5
5
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
6
|
|
package/dist/light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
import { loadAnimation } from '@aarsteinmedia/lottie-web/light';
|
|
3
|
-
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-BBzPUDWE.js';
|
|
4
4
|
import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
|
|
5
5
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
6
|
|
|
@@ -8,6 +8,9 @@ import '@aarsteinmedia/lottie-web/dotlottie';
|
|
|
8
8
|
* DotLottie Player Web Component.
|
|
9
9
|
*/ class DotLottiePlayerLight extends DotLottiePlayerBase {
|
|
10
10
|
get renderer() {
|
|
11
|
+
if (super.renderer !== RendererType.SVG) {
|
|
12
|
+
this.devLog(`[dotlottie-player] renderer "${super.renderer}" is not available in ` + '@aarsteinmedia/dotlottie-player/light, falling back to "svg". Import from ' + '@aarsteinmedia/dotlottie-player to use other renderers.', 'warn');
|
|
13
|
+
}
|
|
11
14
|
return RendererType.SVG;
|
|
12
15
|
}
|
|
13
16
|
loadAnimation(config) {
|
package/dist/svg.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
|
|
2
2
|
import { loadAnimation } from '@aarsteinmedia/lottie-web/svg';
|
|
3
|
-
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-
|
|
3
|
+
import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-BBzPUDWE.js';
|
|
4
4
|
import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
|
|
5
5
|
import '@aarsteinmedia/lottie-web/dotlottie';
|
|
6
6
|
|
|
@@ -8,6 +8,9 @@ import '@aarsteinmedia/lottie-web/dotlottie';
|
|
|
8
8
|
* DotLottie Player Web Component.
|
|
9
9
|
*/ class DotLottiePlayerSVG extends DotLottiePlayerBase {
|
|
10
10
|
get renderer() {
|
|
11
|
+
if (super.renderer !== RendererType.SVG) {
|
|
12
|
+
this.devLog(`[dotlottie-player] renderer "${super.renderer}" is not available in ` + '@aarsteinmedia/dotlottie-player/svg, falling back to "svg". Import from ' + '@aarsteinmedia/dotlottie-player to use other renderers.', 'warn');
|
|
13
|
+
}
|
|
11
14
|
return RendererType.SVG;
|
|
12
15
|
}
|
|
13
16
|
loadAnimation(config) {
|