UNPKG

@sanyueqi/web-components

Version:

Web components

30 lines (28 loc) 908 B
declare class SpineManager { constructor(animationGroupId: string, containerId: string, spinePackageUrl?: string | { cdn: string; local: string }); init(animations?: Array<{ id: string; style?: string; atlas: string; skeleton: string; animation?: string; scale?: string; fit?: string; 'offset-x'?: string; 'offset-y'?: string; 'x-axis'?: string; 'y-axis'?: string; drag?: boolean; clip?: boolean; skin?: string; extraData?: Record<string, any>; 'raw-data'?: string; 'json-skeleton-key'?: string; }>): Promise<boolean>; getSkeleton(id: string): Element | null; addAnimation(animationConfig: any): void; removeAnimation(id: string): void; getAnimations(): any[]; isInitialized(): boolean; destroy(): void; }