Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lottiefiles/dotlottie-web

Package Overview
Dependencies
Maintainers
4
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lottiefiles/dotlottie-web - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

dist/chunk-2ELNS7EO.js

5

dist/dotlottie.d.ts

@@ -169,4 +169,9 @@ import { EventType, EventListener } from './event-manager.js';

static setWasmUrl(url: string): void;
/**
* Destroys the DotLottie instance.
*
*/
destroy(): void;
}
export { DotLottie, Options };

4

dist/dotlottie.js

@@ -1,3 +0,3 @@

export { b as DotLottie } from './chunk-IPGUQKUM.js';
import './chunk-VRCJABVO.js';
export { b as DotLottie } from './chunk-LVR6J6SH.js';
import './chunk-2ELNS7EO.js';
import './chunk-6PRCY2FC.js';

@@ -4,0 +4,0 @@ import './chunk-7Q3PPTBP.js';

@@ -87,4 +87,5 @@ /**

dispatch<T extends EventType>(event: EventByType<T>): void;
removeAllEventListeners(): void;
}
export { BaseEvent, CompleteEvent, Event, EventListener, EventManager, EventType, FrameEvent, LoadErrorEvent, LoadEvent, LoopEvent, PauseEvent, PlayEvent, StopEvent };

@@ -1,4 +0,4 @@

export { a as EventManager } from './chunk-VRCJABVO.js';
export { a as EventManager } from './chunk-2ELNS7EO.js';
import './chunk-7Q3PPTBP.js';
//# sourceMappingURL=out.js.map
//# sourceMappingURL=event-manager.js.map

@@ -1,3 +0,3 @@

export { b as DotLottie, a as WasmLoader } from './chunk-IPGUQKUM.js';
export { a as EventManager } from './chunk-VRCJABVO.js';
export { b as DotLottie, a as WasmLoader } from './chunk-LVR6J6SH.js';
export { a as EventManager } from './chunk-2ELNS7EO.js';
export { a as getAnimationJSONFromDotLottie, b as loadAnimationJSONFromURL } from './chunk-6PRCY2FC.js';

@@ -4,0 +4,0 @@ import './chunk-7Q3PPTBP.js';

{
"name": "@lottiefiles/dotlottie-web",
"version": "0.4.1",
"version": "0.5.0",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Lottie and DotLottie player for the web",

@@ -135,12 +135,13 @@ # @lottiefiles/dotlottie-web

| Method | Description |
| --------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| `play()` | Begins playback from the current animation position. |
| `pause()` | Pauses the animation without resetting its position. |
| `stop()` | Halts playback and returns the animation to its initial frame. |
| `setSpeed(speed: number)` | Sets the playback speed with the given multiplier. |
| `setLoop(loop: boolean)` | Configures whether the animation should loop continuously. |
| `setFrame(frame: number)` | Directly navigates the animation to a specified frame. |
| `addEventListener(event: string, listener: Function)` | Registers a function to respond to a specific animation event. |
| `removeEventListener(event: string, listener?: Function)` | Removes a previously registered function from responding to a specific animation event. |
| Method | Description |
| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `play()` | Begins playback from the current animation position. |
| `pause()` | Pauses the animation without resetting its position. |
| `stop()` | Halts playback and returns the animation to its initial frame. |
| `setSpeed(speed: number)` | Sets the playback speed with the given multiplier. |
| `setLoop(loop: boolean)` | Configures whether the animation should loop continuously. |
| `setFrame(frame: number)` | Directly navigates the animation to a specified frame. |
| `addEventListener(event: string, listener: Function)` | Registers a function to respond to a specific animation event. |
| `removeEventListener(event: string, listener?: Function)` | Removes a previously registered function from responding to a specific animation event. |
| `destroy()` | Destroys the renderer instance and unregisters all event listeners. This method should be called when the canvas is removed from the DOM to prevent memory leaks. |

@@ -147,0 +148,0 @@ ### Static Methods

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc