@tomiaa/live2d
Version:
35 lines (34 loc) • 870 B
TypeScript
/**
* 默认配置常量
*/
export declare const DEFAULT_OPTIONS: {
readonly el: "#live2d";
readonly loadLive2d_2: true;
readonly loadLive2d_3: true;
readonly playLoadingAnimation: true;
readonly showLoading: true;
readonly showControl: true;
readonly iApplicationOptions: {};
readonly maxWidth: 400;
readonly minWidth: 200;
readonly aspectRatio: [number, number];
readonly randomPeople: true;
readonly allowDrag: true;
readonly hitokoto: true;
};
/**
* 默认 CDN 地址
*/
export declare const DEFAULT_JS_BASE_URL = "https://tomiaa12.github.io/live2d/public";
/**
* PIXI 应用默认配置
*/
export declare const DEFAULT_PIXI_CONFIG: {
readonly width: 400;
readonly height: 300;
readonly backgroundAlpha: 0;
};
/**
* 容器尺寸计算比例
*/
export declare const CONTAINER_WIDTH_RATIO = 0.3;