first commit
This commit is contained in:
233
node_modules/@lottiefiles/lottie-player/dist/lottie-player.d.ts
generated
vendored
Normal file
233
node_modules/@lottiefiles/lottie-player/dist/lottie-player.d.ts
generated
vendored
Normal file
@@ -0,0 +1,233 @@
|
||||
import { LitElement } from "lit";
|
||||
import { TemplateResult } from "lit/html.js";
|
||||
export declare enum PlayerState {
|
||||
Destroyed = "destroyed",
|
||||
Error = "error",
|
||||
Frozen = "frozen",
|
||||
Loading = "loading",
|
||||
Paused = "paused",
|
||||
Playing = "playing",
|
||||
Stopped = "stopped"
|
||||
}
|
||||
export declare enum PlayMode {
|
||||
Bounce = "bounce",
|
||||
Normal = "normal"
|
||||
}
|
||||
export declare enum PlayerEvents {
|
||||
Complete = "complete",
|
||||
Destroyed = "destroyed",
|
||||
Error = "error",
|
||||
Frame = "frame",
|
||||
Freeze = "freeze",
|
||||
Load = "load",
|
||||
Loop = "loop",
|
||||
Pause = "pause",
|
||||
Play = "play",
|
||||
Ready = "ready",
|
||||
Rendered = "rendered",
|
||||
Stop = "stop"
|
||||
}
|
||||
export interface Versions {
|
||||
lottiePlayerVersion: string;
|
||||
lottieWebVersion: string;
|
||||
}
|
||||
/**
|
||||
* Parse a resource into a JSON object or a URL string
|
||||
*/
|
||||
export declare function parseSrc(src: string | object): string | object;
|
||||
/**
|
||||
* LottiePlayer web component class
|
||||
*
|
||||
* @export
|
||||
* @class LottiePlayer
|
||||
* @extends {LitElement}
|
||||
*/
|
||||
export declare class LottiePlayer extends LitElement {
|
||||
/**
|
||||
* Autoplay animation on load.
|
||||
*/
|
||||
autoplay: boolean;
|
||||
/**
|
||||
* Background color.
|
||||
*/
|
||||
background?: string;
|
||||
/**
|
||||
* Show controls.
|
||||
*/
|
||||
controls: boolean;
|
||||
/**
|
||||
* Number of times to loop animation.
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* Player state.
|
||||
*/
|
||||
currentState: PlayerState;
|
||||
/**
|
||||
* Animation description for screen readers.
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* Direction of animation.
|
||||
*/
|
||||
direction: number;
|
||||
/**
|
||||
* Disable checking if the Lottie is valid before loading
|
||||
*/
|
||||
disableCheck?: boolean;
|
||||
/**
|
||||
* Disable using shadow dom as the root
|
||||
*/
|
||||
disableShadowDOM: boolean;
|
||||
/**
|
||||
* Whether to play on mouse hover
|
||||
*/
|
||||
hover: boolean;
|
||||
/**
|
||||
* Intermission
|
||||
*/
|
||||
intermission: number;
|
||||
/**
|
||||
* Whether to loop animation.
|
||||
*/
|
||||
loop: boolean;
|
||||
/**
|
||||
* Play mode.
|
||||
*/
|
||||
mode: PlayMode;
|
||||
/**
|
||||
* Aspect ratio to pass to lottie-web.
|
||||
*/
|
||||
preserveAspectRatio: string;
|
||||
/**
|
||||
* Renderer to use.
|
||||
*/
|
||||
renderer: "svg";
|
||||
/**
|
||||
* Viewbox size for renderer settings
|
||||
*/
|
||||
viewBoxSize?: string;
|
||||
/**
|
||||
* seeker
|
||||
*/
|
||||
seeker: any;
|
||||
/**
|
||||
* Animation speed.
|
||||
*/
|
||||
speed: number;
|
||||
/**
|
||||
* Bodymovin JSON data or URL to JSON.
|
||||
*/
|
||||
src?: string;
|
||||
/**
|
||||
* Enable web workers
|
||||
*/
|
||||
webworkers?: boolean;
|
||||
/**
|
||||
* Animation container.
|
||||
*/
|
||||
protected container: HTMLElement;
|
||||
private _io;
|
||||
private _lottie?;
|
||||
private _prevState?;
|
||||
private _counter;
|
||||
/**
|
||||
* Configure and initialize lottie-web player instance.
|
||||
*/
|
||||
load(src: string | object): Promise<void>;
|
||||
/**
|
||||
* Returns the lottie-web instance used in the component.
|
||||
*/
|
||||
getLottie(): any;
|
||||
/**
|
||||
* Returns the lottie-web version and this player's version
|
||||
*/
|
||||
getVersions(): Versions;
|
||||
/**
|
||||
* Start playing animation.
|
||||
*/
|
||||
play(): void;
|
||||
/**
|
||||
* Pause animation play.
|
||||
*/
|
||||
pause(): void;
|
||||
/**
|
||||
* Stops animation play.
|
||||
*/
|
||||
stop(): void;
|
||||
/**
|
||||
* Destroy animation and lottie-player element.
|
||||
*/
|
||||
destroy(): void;
|
||||
/**
|
||||
* Seek to a given frame.
|
||||
*/
|
||||
seek(value: number | string): void;
|
||||
/**
|
||||
* Snapshot the current frame as SVG.
|
||||
*
|
||||
* If 'download' argument is boolean true, then a download is triggered in browser.
|
||||
*/
|
||||
snapshot(download?: boolean): string | void;
|
||||
/**
|
||||
* Sets animation play speed.
|
||||
*
|
||||
* @param value Playback speed.
|
||||
*/
|
||||
setSpeed(value?: number): void;
|
||||
/**
|
||||
* Animation play direction.
|
||||
*
|
||||
* @param value Direction values.
|
||||
*/
|
||||
setDirection(value: number): void;
|
||||
/**
|
||||
* Sets the looping of the animation.
|
||||
*
|
||||
* @param value Whether to enable looping. Boolean true enables looping.
|
||||
*/
|
||||
setLooping(value: boolean): void;
|
||||
/**
|
||||
* Toggle playing state.
|
||||
*/
|
||||
togglePlay(): void;
|
||||
/**
|
||||
* Toggles animation looping.
|
||||
*/
|
||||
toggleLooping(): void;
|
||||
/**
|
||||
* Resize animation.
|
||||
*/
|
||||
resize(): void;
|
||||
/**
|
||||
* Returns the styles for the component.
|
||||
*/
|
||||
static get styles(): import("lit").CSSResult;
|
||||
/**
|
||||
* Cleanup on component destroy.
|
||||
*/
|
||||
disconnectedCallback(): void;
|
||||
render(): TemplateResult | void;
|
||||
protected createRenderRoot(): Element | ShadowRoot;
|
||||
/**
|
||||
* Initialize everything on component first render.
|
||||
*/
|
||||
protected firstUpdated(): void;
|
||||
protected renderControls(): TemplateResult;
|
||||
/**
|
||||
* Handle visibility change events.
|
||||
*/
|
||||
private readonly _onVisibilityChange;
|
||||
/**
|
||||
* Handles click and drag actions on the progress track.
|
||||
*/
|
||||
private _handleSeekChange;
|
||||
private _attachEventListeners;
|
||||
/**
|
||||
* Freeze animation play.
|
||||
* This internal state pauses animation and is used to differentiate between
|
||||
* user requested pauses and component instigated pauses.
|
||||
*/
|
||||
private freeze;
|
||||
}
|
||||
//# sourceMappingURL=lottie-player.d.ts.map
|
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.d.ts.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"lottie-player.d.ts","sourceRoot":"","sources":["../src/lottie-player.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAU7C,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAGD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,QAAQ;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAa9D;AAiCD;;;;;;GAMG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C;;OAEG;IAEI,QAAQ,EAAE,OAAO,CAAS;IAEjC;;OAEG;IAEI,UAAU,CAAC,EAAE,MAAM,CAAiB;IAE3C;;OAEG;IAEI,QAAQ,EAAE,OAAO,CAAS;IAEjC;;OAEG;IAEI,KAAK,CAAC,EAAE,MAAM,C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G;IACI,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IA8BzC;;;;OAIG;IACI,QAAQ,CAAC,QAAQ,GAAE,OAAc,GAAG,MAAM,GAAG,IAAI;IAyBxD;;;;OAIG;IACI,QAAQ,CAAC,KAAK,SAAI,GAAG,IAAI;IAQhC;;;;OAIG;IACI,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQxC;;;;OAIG;IACI,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAOvC;;OAEG;IACI,UAAU,IAAI,IAAI;IAMzB;;OAEG;IACI,aAAa,IAAI,IAAI;IAI5B;;OAEG;IACI,MAAM;IAQb;;OAEG;IACH,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IACI,oBAAoB,IAAI,IAAI;IAuB5B,MAAM,IAAI,cAAc,GAAG,IAAI;IA4BtC,SAAS,CAAC,gBAAgB,IAAI,OAAO,GAAG,UAAU;IAMlD;;OAEG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IA8B9B,SAAS,CAAC,cAAc,IAAI,cAAc;IA4F1C;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAMnC;IAED;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,qBAAqB;IA8G7B;;;;OAIG;IACH,OAAO,CAAC,MAAM;CAUf"}
|
77
node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js
generated
vendored
Normal file
77
node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
77
node_modules/@lottiefiles/lottie-player/dist/lottie-player.js
generated
vendored
Normal file
77
node_modules/@lottiefiles/lottie-player/dist/lottie-player.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.js.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
node_modules/@lottiefiles/lottie-player/dist/lottie-player.styles.d.ts
generated
vendored
Normal file
6
node_modules/@lottiefiles/lottie-player/dist/lottie-player.styles.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Copyright 2021 Design Barn Inc.
|
||||
*/
|
||||
declare const _default: import("lit").CSSResult;
|
||||
export default _default;
|
||||
//# sourceMappingURL=lottie-player.styles.d.ts.map
|
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.styles.d.ts.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/lottie-player.styles.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"lottie-player.styles.d.ts","sourceRoot":"","sources":["../src/lottie-player.styles.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAIH,wBA6JE"}
|
29
node_modules/@lottiefiles/lottie-player/dist/tgs-player.d.ts
generated
vendored
Normal file
29
node_modules/@lottiefiles/lottie-player/dist/tgs-player.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Copyright 2022 Design Barn Inc.
|
||||
*/
|
||||
import { LottiePlayer } from "./lottie-player";
|
||||
/**
|
||||
* TGSPlayer web component class
|
||||
*
|
||||
* @export
|
||||
* @class TGSPlayer
|
||||
* @extends {LottiePlayer}
|
||||
*/
|
||||
export declare class TGSPlayer extends LottiePlayer {
|
||||
/**
|
||||
* Strict format checks for TGS.
|
||||
*/
|
||||
strict: boolean;
|
||||
/**
|
||||
* Configure and initialize lottie-web player instance.
|
||||
*/
|
||||
load(src: string | object): Promise<void>;
|
||||
/**
|
||||
* Returns the styles for the component.
|
||||
*/
|
||||
static get styles(): import("lit").CSSResult;
|
||||
protected formatCheck(data: any): string[];
|
||||
private checkLayer;
|
||||
private checkItems;
|
||||
}
|
||||
//# sourceMappingURL=tgs-player.d.ts.map
|
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.d.ts.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tgs-player.d.ts","sourceRoot":"","sources":["../src/tgs-player.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,YAAY,EAA0B,MAAM,iBAAiB,CAAC;AAyCvE;;;;;;GAMG;AACH,qBACa,SAAU,SAAQ,YAAY;IACzC;;OAEG;IAEI,MAAM,UAAQ;IAErB;;OAEG;IACU,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA4BtD;;OAEG;IACH,MAAM,KAAK,MAAM,4BAEhB;IAED,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,EAAE;IAoC1C,OAAO,CAAC,UAAU;IAgDlB,OAAO,CAAC,UAAU;CA6BnB"}
|
54
node_modules/@lottiefiles/lottie-player/dist/tgs-player.esm.js
generated
vendored
Normal file
54
node_modules/@lottiefiles/lottie-player/dist/tgs-player.esm.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.esm.js.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.esm.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
54
node_modules/@lottiefiles/lottie-player/dist/tgs-player.js
generated
vendored
Normal file
54
node_modules/@lottiefiles/lottie-player/dist/tgs-player.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.js.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
node_modules/@lottiefiles/lottie-player/dist/tgs-player.styles.d.ts
generated
vendored
Normal file
6
node_modules/@lottiefiles/lottie-player/dist/tgs-player.styles.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Copyright 2022 Design Barn Inc.
|
||||
*/
|
||||
declare const _default: import("lit-element").CSSResult;
|
||||
export default _default;
|
||||
//# sourceMappingURL=tgs-player.styles.d.ts.map
|
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.styles.d.ts.map
generated
vendored
Normal file
1
node_modules/@lottiefiles/lottie-player/dist/tgs-player.styles.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tgs-player.styles.d.ts","sourceRoot":"","sources":["../src/tgs-player.styles.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAMH,wBAOE"}
|
Reference in New Issue
Block a user