@lottiefiles/dotlottie-wc
Version:
Web component wrapper around the dotlottie-web library
38 lines (37 loc) • 1.35 kB
TypeScript
import { a as CSSResult, i as TemplateResult, n as ae, r as LitElement, t as $ } from "./index-DzwdSRLm.js";
//#region src/base-dotlottie-wc.d.ts
declare abstract class BaseDotLottieWC<T extends ae | $> extends LitElement {
animationId?: string;
src: Config['src'];
data: Config['data'];
loop: Config['loop'];
autoplay: Config['autoplay'];
speed: Config['speed'];
segment: Config['segment'];
mode: Config['mode'];
marker: Config['marker'];
backgroundColor: Config['backgroundColor'];
renderConfig: Config['renderConfig'];
useFrameInterpolation: Config['useFrameInterpolation'];
themeId: Config['themeId'];
workerId?: string;
stateMachineId: Config['stateMachineId'];
stateMachineConfig: Config['stateMachineConfig'];
dotLottie: T | null;
static styles: CSSResult;
private _init;
connectedCallback(): void;
/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements#custom_element_lifecycle_callbacks
*/
adoptedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
protected abstract _createDotLottieInstance(config: Config & {
workerId?: string;
}): T;
render(): TemplateResult;
}
//#endregion
export { BaseDotLottieWC };
//# sourceMappingURL=base-dotlottie-wc.d.ts.map