import { Live2DCubismFramework as cubismid } from '../id/cubismid'; import { Live2DCubismFramework as csmvector } from '../type/csmvector'; import { Live2DCubismFramework as cubismmodel } from '../model/cubismmodel'; import CubismIdHandle = cubismid.CubismIdHandle; import csmVector = csmvector.csmVector; import CubismModel = cubismmodel.CubismModel; export declare namespace Live2DCubismFramework { /** * パーツの不透明度の設定 * * パーツの不透明度の管理と設定を行う。 */ class CubismPose { /** * インスタンスの作成 * @param pose3json pose3.jsonのデータ * @param size pose3.jsonのデータのサイズ[byte] * @return 作成されたインスタンス */ static create(pose3json: ArrayBuffer, size: number): CubismPose; /** * インスタンスを破棄する * @param pose 対象のCubismPose */ static delete(pose: CubismPose): void; _partGroups: csmVector; _partGroupCounts: csmVector; _fadeTimeSeconds: number; _lastModel: CubismModel; /** * コンストラクタ */ constructor(); /** * モデルのパラメータの更新 * @param model 対象のモデル * @param deltaTimeSeconds デルタ時間[秒] */ updateParameters(model: CubismModel, deltaTimeSeconds: number): void; /** * 表示を初期化 * @param model 対象のモデル * @note 不透明度の初期値が0でないパラメータは、不透明度を1に設定する */ reset(model: CubismModel): void; /** * パーツの不透明度をコピー * * @param model 対象のモデル */ copyPartOpacities(model: CubismModel): void; /** * パーツのフェード操作を行う。 * @param model 対象のモデル * @param deltaTimeSeconds デルタ時間[秒] * @param beginIndex フェード操作を行うパーツグループの先頭インデックス * @param partGroupCount フェード操作を行うパーツグループの個数 */ doFade(model: CubismModel, deltaTimeSeconds: number, beginIndex: number, partGroupCount: number): void; } /** * パーツにまつわるデータを管理 */ class PartData { partId: CubismIdHandle; parameterIndex: number; partIndex: number; link: csmVector; /** * コンストラクタ */ constructor(v?: PartData); /** * =演算子のオーバーロード */ assignment(v: PartData): PartData; /** * 初期化 * @param model 初期化に使用するモデル */ initialize(model: CubismModel): void; /** * オブジェクトのコピーを生成する */ clone(): PartData; } }