oh-my-live2d
Version:
live2d component for web. 看板娘组件, 支持 model2、model3、model4
23 lines (22 loc) • 1.14 kB
TypeScript
import type { WordTheDayData } from 'src/types/common.js';
import type { CSSProperties, ElementConfig, ImportType, LibraryUrls, PIXI_LIVE2D_DISPLAY_MODULE } from '../types/index.js';
export * from './tips.js';
/**
* 打印项目信息
*/
export declare const printProjectInfo: () => void;
export declare const handleStyleSize: (value: Record<string, unknown>) => void;
/**
* 根据元素设置内联样式
*
* @param style
* @param el
*/
export declare const setStyleForElement: (style: CSSProperties, el: HTMLElement) => void;
export declare const sleep: (time: number) => Promise<void>;
export declare const createElement: (elConfig: ElementConfig) => HTMLElement;
export declare const loadScript: (url: string) => Promise<void>;
export declare const loadLibrary: (importType: ImportType, urls: LibraryUrls) => Promise<PIXI_LIVE2D_DISPLAY_MODULE>;
export declare const loadUmdLibrary: (importType: ImportType, urls: LibraryUrls) => Promise<void>;
export declare const checkVersion: () => Promise<void>;
export declare const getWordTheDay: (format?: ((wordTheDayData: WordTheDayData) => string) | undefined) => Promise<string>;