@aarsteinmedia/dotlottie-player 6.4.8 → 6.4.9

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.
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "superclass": {
52
52
  "name": "DotLottiePlayerBase",
53
- "module": "/dist/chunks/DotLottiePlayerBase-BN2nJqCU.js"
53
+ "module": "/dist/chunks/DotLottiePlayerBase-DdpA5NST.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-BN2nJqCU.js"
89
+ "module": "./chunks/DotLottiePlayerBase-DdpA5NST.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-BN2nJqCU.js"
97
+ "module": "./chunks/DotLottiePlayerBase-DdpA5NST.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/DotLottiePlayerBase.d-YAjpQG-l.js';
6
- export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-YAjpQG-l.js';
5
+ import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
6
+ export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.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
3
  import Lottie from '@aarsteinmedia/lottie-web/canvas';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-BN2nJqCU.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BN2nJqCU.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**
@@ -271,7 +271,7 @@ const tagName = 'dotlottie-player';
271
271
  }
272
272
  const snapshot = this.shadow.querySelector('.snapshot');
273
273
  if (snapshot instanceof HTMLButtonElement) {
274
- snapshot.onclick = ()=>void this.snapshot(true);
274
+ snapshot.onclick = ()=>this.snapshot(true);
275
275
  }
276
276
  const toggleSettings = this.shadow.querySelector('.toggleSettings');
277
277
  if (toggleSettings instanceof HTMLButtonElement) {
@@ -1229,14 +1229,11 @@ const notImplemented = 'Method is not implemented', getStyles = async ()=>{
1229
1229
  }
1230
1230
  /**
1231
1231
  * Snapshot and download the current frame as SVG.
1232
- */ async snapshot(shouldDownload = true, name = 'AM Lottie', src) {
1232
+ */ snapshot(shouldDownload = true, name = 'AM Lottie') {
1233
1233
  try {
1234
1234
  if (!this.shadowRoot) {
1235
1235
  throw new Error('Unknown error');
1236
1236
  }
1237
- if (src) {
1238
- await this.load(src);
1239
- }
1240
1237
  // Get SVG element and serialize markup
1241
1238
  const svgElement = this.shadowRoot.querySelector('.animation svg');
1242
1239
  if (!svgElement) {
@@ -144,7 +144,7 @@ declare abstract class DotLottiePlayerBase extends PropertyCallbackElement {
144
144
  setSegment(segment: Vector2): void;
145
145
  setSpeed(value?: number): void;
146
146
  setSubframe(value: boolean): void;
147
- snapshot(shouldDownload?: boolean, name?: string, src?: string): Promise<string | null>;
147
+ snapshot(shouldDownload?: boolean, name?: string): string | null;
148
148
  stop(): void;
149
149
  toggleBoomerang(): void;
150
150
  toggleLoop(): void;
package/dist/full.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 { AddAnimationParams, ConvertParams, AnimationConfiguration, Vector2 } from '@aarsteinmedia/lottie-web';
5
- import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-YAjpQG-l.js';
6
- export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-YAjpQG-l.js';
5
+ import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
6
+ export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
7
7
 
8
8
  declare class DotLottiePlayer extends DotLottiePlayerBase {
9
9
  addAnimation(params: AddAnimationParams): Promise<_aarsteinmedia_lottie_web.Result>;
package/dist/full.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
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web';
4
- import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-BN2nJqCU.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BN2nJqCU.js';
4
+ import { D as DotLottiePlayerBase, l as loadDotLottieTools, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**
package/dist/light.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/DotLottiePlayerBase.d-YAjpQG-l.js';
6
- export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-YAjpQG-l.js';
5
+ import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
6
+ export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
7
7
 
8
8
  declare class DotLottiePlayerLight extends DotLottiePlayerBase {
9
9
  get renderer(): RendererType;
package/dist/light.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
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web/light';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-BN2nJqCU.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BN2nJqCU.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**
package/dist/svg.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/DotLottiePlayerBase.d-YAjpQG-l.js';
6
- export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-YAjpQG-l.js';
5
+ import { D as DotLottiePlayerBase } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
6
+ export { M as MouseOut, P as PlayerState, t as tagName } from './chunks/DotLottiePlayerBase.d-BKD2RSo9.js';
7
7
 
8
8
  declare class DotLottiePlayerSVG extends DotLottiePlayerBase {
9
9
  get renderer(): RendererType;
package/dist/svg.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
3
  import { loadAnimation } from '@aarsteinmedia/lottie-web/svg';
4
- import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-BN2nJqCU.js';
5
- export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-BN2nJqCU.js';
4
+ import { D as DotLottiePlayerBase, t as tagName } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
5
+ export { M as MouseOut, P as PlayerState } from './chunks/DotLottiePlayerBase-DdpA5NST.js';
6
6
  import '@aarsteinmedia/lottie-web/dotlottie';
7
7
 
8
8
  /**