@lottiefiles/dotlottie-web
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -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 }; |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
990484
579
203
11
65
75
15
1