@aarsteinmedia/dotlottie-player 6.5.6 → 6.6.0

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 CHANGED
@@ -7,7 +7,7 @@ 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.5.6] - 06-10-2026
10
+ ## [6.5.7] - 07-10-2026
11
11
 
12
12
  - Minor performance improvements to animation engine.
13
13
 
@@ -414,6 +414,7 @@ Changelog was only added since [3.2.3], so it's not exhaustive. [Please report a
414
414
  - Removed dependencies
415
415
  - `@lit`
416
416
 
417
+ [6.5.7]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.7
417
418
  [6.5.6]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.6
418
419
  [6.5.5]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.5
419
420
  [6.5.2]: https://www.npmjs.com/package/@aarsteinmedia/dotlottie-player/v/6.5.2
@@ -46,57 +46,25 @@
46
46
  "name": "{ container, hasAutoplay, hasLoop, initialSegment, preserveAspectRatio, rendererType }"
47
47
  }
48
48
  ]
49
+ },
50
+ {
51
+ "kind": "field",
52
+ "name": "canConvert",
53
+ "type": {
54
+ "text": "boolean"
55
+ },
56
+ "default": "true"
49
57
  }
50
58
  ],
51
59
  "superclass": {
52
60
  "name": "DotLottiePlayerBase",
53
- "module": "/dist/chunks/DotLottiePlayerBase-z6EhEWjH.js"
61
+ "module": "/dist/chunks/DotLottiePlayerBase-BDutF_6O.js"
54
62
  },
55
63
  "tagName": "tagName",
56
64
  "customElement": true
57
65
  }
58
66
  ],
59
67
  "exports": [
60
- {
61
- "kind": "js",
62
- "name": "PlayMode",
63
- "declaration": {
64
- "name": "PlayMode",
65
- "package": "@aarsteinmedia/lottie-web/utils"
66
- }
67
- },
68
- {
69
- "kind": "js",
70
- "name": "PlayerEvent",
71
- "declaration": {
72
- "name": "PlayerEvent",
73
- "package": "@aarsteinmedia/lottie-web/utils"
74
- }
75
- },
76
- {
77
- "kind": "js",
78
- "name": "RendererType",
79
- "declaration": {
80
- "name": "RendererType",
81
- "package": "@aarsteinmedia/lottie-web/utils"
82
- }
83
- },
84
- {
85
- "kind": "js",
86
- "name": "MouseOut",
87
- "declaration": {
88
- "name": "M",
89
- "module": "./chunks/DotLottiePlayerBase-z6EhEWjH.js"
90
- }
91
- },
92
- {
93
- "kind": "js",
94
- "name": "PlayerState",
95
- "declaration": {
96
- "name": "P",
97
- "module": "./chunks/DotLottiePlayerBase-z6EhEWjH.js"
98
- }
99
- },
100
68
  {
101
69
  "kind": "custom-element-definition",
102
70
  "name": "tagName",
@@ -120,14 +88,6 @@
120
88
  "name": "DotLottiePlayer",
121
89
  "module": "dist/full.js"
122
90
  }
123
- },
124
- {
125
- "kind": "js",
126
- "name": "tagName",
127
- "declaration": {
128
- "name": "tagName",
129
- "module": "dist/full.js"
130
- }
131
91
  }
132
92
  ]
133
93
  }
package/dist/canvas.d.ts CHANGED
@@ -1,22 +1,9 @@
1
- import { RendererType, PreserveAspectRatio } from '@aarsteinmedia/lottie-web/utils';
2
- export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
- import * as _aarsteinmedia_lottie_web from '@aarsteinmedia/lottie-web';
4
- import { AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
5
- import { D as DotLottiePlayerBase } from './chunks/constants.d-t4RBAbwL.js';
6
- export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/constants.d-t4RBAbwL.js';
1
+ import { D as DotLottiePlayerCanvas } from './chunks/DotLottiePlayerCanvas.d-CBwsqsPc.js';
2
+ export { a as DotLottiePlayerBase } from './chunks/DotLottiePlayerCanvas.d-CBwsqsPc.js';
3
+ import '@aarsteinmedia/lottie-web';
4
+ import '@aarsteinmedia/lottie-web/utils';
5
+ import './chunks/utilities.d-BCeerq0j.js';
7
6
 
8
- declare class DotLottiePlayerCanvas extends DotLottiePlayerBase {
9
- get renderer(): RendererType;
10
- constructor();
11
- loadAnimation(config: AnimationConfiguration): _aarsteinmedia_lottie_web.AnimationItem;
12
- protected setOptions({ container, hasAutoplay, hasLoop, initialSegment, preserveAspectRatio, }: {
13
- container?: HTMLElement;
14
- rendererType: RendererType;
15
- initialSegment?: Vector2;
16
- hasAutoplay: boolean;
17
- hasLoop: boolean;
18
- preserveAspectRatio: PreserveAspectRatio;
19
- }): AnimationConfiguration<RendererType.Canvas>;
20
- }
21
7
 
22
- export { DotLottiePlayerBase, DotLottiePlayerCanvas as default };
8
+
9
+ export { DotLottiePlayerCanvas as default };
package/dist/canvas.js CHANGED
@@ -1,19 +1,14 @@
1
1
  import { RendererType, isServer } from '@aarsteinmedia/lottie-web/utils';
2
- export { PlayMode, PlayerEvent, RendererType } from '@aarsteinmedia/lottie-web/utils';
3
2
  import { loadAnimation } from '@aarsteinmedia/lottie-web/canvas';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-z6EhEWjH.js';
3
+ import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase-BDutF_6O.js';
4
+ import { t as tagName } from './chunks/utilities-CC4oA5Yh.js';
6
5
  import '@aarsteinmedia/lottie-web/dotlottie';
7
6
 
8
7
  /**
9
8
  * DotLottie Player Web Component.
10
9
  */ class DotLottiePlayerCanvas extends DotLottiePlayerBase {
11
10
  get renderer() {
12
- return RendererType.SVG;
13
- }
14
- constructor(){
15
- super();
16
- this.isLight = true;
11
+ return RendererType.Canvas;
17
12
  }
18
13
  loadAnimation(config) {
19
14
  return loadAnimation(config);
@@ -41,8 +36,8 @@ import '@aarsteinmedia/lottie-web/dotlottie';
41
36
  /**
42
37
  * Expose DotLottiePlayer class as global variable.
43
38
  */ globalThis.dotLottiePlayer = ()=>new DotLottiePlayerCanvas();
44
- if (!isServer) {
39
+ if (!isServer && !customElements.get(tagName)) {
45
40
  customElements.define(tagName, DotLottiePlayerCanvas);
46
41
  }
47
42
 
48
- export { DotLottiePlayerBase, DotLottiePlayerCanvas as default, tagName };
43
+ export { DotLottiePlayerBase, DotLottiePlayerCanvas as default };