valaxy-addon-live2d
Version:
<a href="https://www.npmjs.com/package/valaxy-addon-live2d" rel="nofollow"><img src="https://img.shields.io/npm/v/valaxy-addon-live2d?color=0078E7" alt="NPM version"></a>
42 lines (41 loc) • 1.79 kB
TypeScript
import type { InternalModel, Live2DModel, ModelSettings } from 'pixi-live2d-display';
import type { Live2dTipsHandler } from '../helpers/tips';
import type { Live2dOptions, Live2dTips } from '../types';
import { ModelEntity } from './ModelEntity';
import { PixiApp } from './PixiApp';
export declare class Live2DApp {
static model: ModelEntity;
static pixiApp: PixiApp;
static widthLimit: number;
static safetyMargin: number;
static scaleRatio: number;
static horizontalAnchorAdjustment: number;
static verticalAnchorAdjustment: number;
static debugger: boolean;
static live2dTipsHandler: Live2dTipsHandler;
static live2dTips: Live2dTips;
static stats: Stats;
private static _volume;
private static _showHitAreaFrames;
private static _showModelFrame;
private static _showStats;
private static _cachedModel;
static init(options: Live2dOptions, live2dTipsHandler: Live2dTipsHandler): Promise<void>;
static loadModel(source: string | ModelSettings): Promise<ModelEntity>;
private static initModel;
static switchModel(source: string | ModelSettings): Promise<void>;
static mount(live2dModel: Live2DModel<InternalModel>): void;
static clearAppStage(live2dModel?: Live2DModel<InternalModel>): void;
static captureFrame(): void;
static hideModel(): void;
static showModel(): Promise<void>;
static destroyModel(): Promise<void>;
static restoreModel(source: string | ModelSettings): Promise<void>;
static set showStats(value: boolean);
static get showStats(): boolean;
static set volume(value: number);
static get volume(): number;
static get showModelFrame(): boolean;
static set showHitAreaFrames(value: boolean);
static get showHitAreaFrames(): boolean;
}