@lottiefiles/dotlottie-wc
Version:
Web component wrapper around the dotlottie-web library
67 lines (66 loc) • 2.42 kB
TypeScript
import * as _$lit from "lit";
import { LitElement, TemplateResult } from "lit";
import { Config, DotLottie, DotLottieWorker } from "@lottiefiles/dotlottie-web";
//#region src/base-dotlottie-wc.d.ts
declare abstract class BaseDotLottieWC<T extends DotLottie | DotLottieWorker> extends LitElement {
private _animationId?;
private _loop;
private _loopCount;
private _autoplay;
private _speed;
private _segment;
private _mode;
private _marker;
private _backgroundColor;
private _renderConfig;
private _useFrameInterpolation;
private _themeId;
private _isPlayerReady;
get animationId(): string | undefined;
set animationId(value: string | undefined);
src: Config['src'];
data: Config['data'];
get loop(): Config['loop'];
set loop(value: Config['loop']);
get loopCount(): Config['loopCount'];
set loopCount(value: Config['loopCount']);
get autoplay(): Config['autoplay'];
set autoplay(value: Config['autoplay']);
get speed(): Config['speed'];
set speed(value: Config['speed']);
get segment(): Config['segment'];
set segment(value: Config['segment']);
get mode(): Config['mode'];
set mode(value: Config['mode']);
get marker(): Config['marker'];
set marker(value: Config['marker']);
get backgroundColor(): Config['backgroundColor'];
set backgroundColor(value: Config['backgroundColor']);
get renderConfig(): Config['renderConfig'];
set renderConfig(value: Config['renderConfig']);
get useFrameInterpolation(): Config['useFrameInterpolation'];
set useFrameInterpolation(value: Config['useFrameInterpolation']);
get themeId(): Config['themeId'];
set themeId(value: Config['themeId']);
workerId?: string;
stateMachineId: Config['stateMachineId'];
stateMachineConfig: Config['stateMachineConfig'];
dotLottie: T | null;
static styles: _$lit.CSSResult;
private _declaredConfig;
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 as t };
//# sourceMappingURL=base-dotlottie-wc-CdGqzevG.d.ts.map