@charivo/render-live2d 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +418 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/cubismdefaultparameterid.d.ts +63 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/cubismdefaultparameterid.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/cubismframeworkconfig.d.ts +20 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/cubismframeworkconfig.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/cubismmodelsettingjson.d.ts +332 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/cubismmodelsettingjson.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/effect/cubismbreath.d.ts +74 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/effect/cubismbreath.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/effect/cubismeyeblink.d.ts +101 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/effect/cubismeyeblink.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/effect/cubismpose.d.ts +96 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/effect/cubismpose.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/icubismmodelsetting.d.ts +166 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/icubismmodelsetting.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/id/cubismid.d.ts +57 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/id/cubismid.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/id/cubismidmanager.d.ts +63 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/id/cubismidmanager.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/live2dcubismframework.d.ts +105 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/live2dcubismframework.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismmath.d.ts +158 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismmath.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismmatrix44.d.ts +147 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismmatrix44.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismmodelmatrix.d.ts +111 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismmodelmatrix.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismtargetpoint.d.ts +54 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismtargetpoint.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismvector2.d.ts +111 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismvector2.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismviewmatrix.d.ts +140 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/math/cubismviewmatrix.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismmoc.d.ts +63 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismmoc.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismmodel.d.ts +953 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismmodel.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismmodeluserdata.d.ts +73 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismmodeluserdata.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismmodeluserdatajson.d.ts +57 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismmodeluserdatajson.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismusermodel.d.ts +226 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/model/cubismusermodel.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/acubismmotion.d.ts +245 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/acubismmotion.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismexpressionmotion.d.ts +118 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismexpressionmotion.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismexpressionmotionmanager.d.ts +112 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismexpressionmotionmanager.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotion.d.ts +209 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotion.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotioninternal.d.ts +121 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotioninternal.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotionjson.d.ts +170 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotionjson.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotionmanager.d.ts +69 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotionmanager.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotionqueueentry.d.ts +159 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotionqueueentry.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotionqueuemanager.d.ts +122 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotionqueuemanager.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/physics/cubismphysics.d.ts +139 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/physics/cubismphysics.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/physics/cubismphysicsinternal.d.ts +191 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/physics/cubismphysicsinternal.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/physics/cubismphysicsjson.d.ts +225 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/physics/cubismphysicsjson.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/rendering/cubismclippingmanager.d.ts +106 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/rendering/cubismclippingmanager.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/rendering/cubismrenderer.d.ts +214 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/rendering/cubismrenderer.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/rendering/cubismrenderer_webgl.d.ts +240 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/rendering/cubismrenderer_webgl.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/rendering/cubismshader_webgl.d.ts +149 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/rendering/cubismshader_webgl.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/type/csmmap.d.ts +144 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/type/csmmap.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/type/csmrectf.d.ts +56 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/type/csmrectf.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/type/csmstring.d.ts +71 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/type/csmstring.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/type/csmvector.d.ts +144 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/type/csmvector.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/utils/cubismdebug.d.ts +49 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/utils/cubismdebug.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/utils/cubismjson.d.ts +484 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/utils/cubismjson.d.ts.map +1 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/utils/cubismjsonextension.d.ts +18 -0
- package/dist/CubismSdkForWeb-5-r.4/Framework/src/utils/cubismjsonextension.d.ts.map +1 -0
- package/dist/renderer.js +14522 -0
- package/dist/renderer.js.map +1 -0
- package/dist/src/cubism/lappdefine.d.ts +37 -0
- package/dist/src/cubism/lappdefine.d.ts.map +1 -0
- package/dist/src/cubism/lappglmanager.d.ts +16 -0
- package/dist/src/cubism/lappglmanager.d.ts.map +1 -0
- package/dist/src/cubism/lappmodel.d.ts +66 -0
- package/dist/src/cubism/lappmodel.d.ts.map +1 -0
- package/dist/src/cubism/lapppal.d.ts +20 -0
- package/dist/src/cubism/lapppal.d.ts.map +1 -0
- package/dist/src/cubism/lapptexturemanager.d.ts +26 -0
- package/dist/src/cubism/lapptexturemanager.d.ts.map +1 -0
- package/dist/src/cubism/lappwavfilehandler.d.ts +22 -0
- package/dist/src/cubism/lappwavfilehandler.d.ts.map +1 -0
- package/dist/src/cubism/model-host.d.ts +22 -0
- package/dist/src/cubism/model-host.d.ts.map +1 -0
- package/dist/src/renderer.d.ts +54 -0
- package/dist/src/renderer.d.ts.map +1 -0
- package/dist/src/utils/motion.d.ts +6 -0
- package/dist/src/utils/motion.d.ts.map +1 -0
- package/dist/src/utils/resize.d.ts +3 -0
- package/dist/src/utils/resize.d.ts.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Live2D Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by the Live2D Open Software license
|
|
5
|
+
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
|
|
6
|
+
*/
|
|
7
|
+
import { CubismIdHandle } from '../id/cubismid';
|
|
8
|
+
import { CubismModel } from '../model/cubismmodel';
|
|
9
|
+
import { csmVector } from '../type/csmvector';
|
|
10
|
+
import { ACubismMotion } from './acubismmotion';
|
|
11
|
+
import { CubismMotionQueueEntry } from './cubismmotionqueueentry';
|
|
12
|
+
/**
|
|
13
|
+
* 表情のモーション
|
|
14
|
+
*
|
|
15
|
+
* 表情のモーションクラス。
|
|
16
|
+
*/
|
|
17
|
+
export declare class CubismExpressionMotion extends ACubismMotion {
|
|
18
|
+
static readonly DefaultAdditiveValue = 0;
|
|
19
|
+
static readonly DefaultMultiplyValue = 1;
|
|
20
|
+
/**
|
|
21
|
+
* インスタンスを作成する。
|
|
22
|
+
* @param buffer expファイルが読み込まれているバッファ
|
|
23
|
+
* @param size バッファのサイズ
|
|
24
|
+
* @return 作成されたインスタンス
|
|
25
|
+
*/
|
|
26
|
+
static create(buffer: ArrayBuffer, size: number): CubismExpressionMotion;
|
|
27
|
+
/**
|
|
28
|
+
* モデルのパラメータの更新の実行
|
|
29
|
+
* @param model 対象のモデル
|
|
30
|
+
* @param userTimeSeconds デルタ時間の積算値[秒]
|
|
31
|
+
* @param weight モーションの重み
|
|
32
|
+
* @param motionQueueEntry CubismMotionQueueManagerで管理されているモーション
|
|
33
|
+
*/
|
|
34
|
+
doUpdateParameters(model: CubismModel, userTimeSeconds: number, weight: number, motionQueueEntry: CubismMotionQueueEntry): void;
|
|
35
|
+
/**
|
|
36
|
+
* @brief 表情によるモデルのパラメータの計算
|
|
37
|
+
*
|
|
38
|
+
* モデルの表情に関するパラメータを計算する。
|
|
39
|
+
*
|
|
40
|
+
* @param[in] model 対象のモデル
|
|
41
|
+
* @param[in] userTimeSeconds デルタ時間の積算値[秒]
|
|
42
|
+
* @param[in] motionQueueEntry CubismMotionQueueManagerで管理されているモーション
|
|
43
|
+
* @param[in] expressionParameterValues モデルに適用する各パラメータの値
|
|
44
|
+
* @param[in] expressionIndex 表情のインデックス
|
|
45
|
+
* @param[in] fadeWeight 表情のウェイト
|
|
46
|
+
*/
|
|
47
|
+
calculateExpressionParameters(model: CubismModel, userTimeSeconds: number, motionQueueEntry: CubismMotionQueueEntry, expressionParameterValues: csmVector<ExpressionParameterValue>, expressionIndex: number, fadeWeight: number): void;
|
|
48
|
+
/**
|
|
49
|
+
* @brief 表情が参照しているパラメータを取得
|
|
50
|
+
*
|
|
51
|
+
* 表情が参照しているパラメータを取得する
|
|
52
|
+
*
|
|
53
|
+
* @return 表情パラメータ
|
|
54
|
+
*/
|
|
55
|
+
getExpressionParameters(): csmVector<ExpressionParameter>;
|
|
56
|
+
/**
|
|
57
|
+
* @brief 表情のフェードの値を取得
|
|
58
|
+
*
|
|
59
|
+
* 現在の表情のフェードのウェイト値を取得する
|
|
60
|
+
*
|
|
61
|
+
* @returns 表情のフェードのウェイト値
|
|
62
|
+
*
|
|
63
|
+
* @deprecated CubismExpressionMotion.fadeWeightが削除予定のため非推奨。
|
|
64
|
+
* CubismExpressionMotionManager.getFadeWeight(index: number): number を使用してください。
|
|
65
|
+
* @see CubismExpressionMotionManager#getFadeWeight(index: number)
|
|
66
|
+
*/
|
|
67
|
+
getFadeWeight(): number;
|
|
68
|
+
protected parse(buffer: ArrayBuffer, size: number): void;
|
|
69
|
+
/**
|
|
70
|
+
* @brief ブレンド計算
|
|
71
|
+
*
|
|
72
|
+
* 入力された値でブレンド計算をする。
|
|
73
|
+
*
|
|
74
|
+
* @param source 現在の値
|
|
75
|
+
* @param destination 適用する値
|
|
76
|
+
* @param weight ウェイト
|
|
77
|
+
* @returns 計算結果
|
|
78
|
+
*/
|
|
79
|
+
calculateValue(source: number, destination: number, fadeWeight: number): number;
|
|
80
|
+
/**
|
|
81
|
+
* コンストラクタ
|
|
82
|
+
*/
|
|
83
|
+
protected constructor();
|
|
84
|
+
private _parameters;
|
|
85
|
+
/**
|
|
86
|
+
* 表情の現在のウェイト
|
|
87
|
+
*
|
|
88
|
+
* @deprecated 不具合を引き起こす要因となるため非推奨。
|
|
89
|
+
*/
|
|
90
|
+
private _fadeWeight;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* 表情パラメータ値の計算方式
|
|
94
|
+
*/
|
|
95
|
+
export declare enum ExpressionBlendType {
|
|
96
|
+
Additive = 0,// 加算
|
|
97
|
+
Multiply = 1,// 乗算
|
|
98
|
+
Overwrite = 2
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* 表情のパラメータ情報
|
|
102
|
+
*/
|
|
103
|
+
export declare class ExpressionParameter {
|
|
104
|
+
parameterId: CubismIdHandle;
|
|
105
|
+
blendType: ExpressionBlendType;
|
|
106
|
+
value: number;
|
|
107
|
+
}
|
|
108
|
+
import * as $ from './cubismexpressionmotion';
|
|
109
|
+
import { ExpressionParameterValue } from './cubismexpressionmotionmanager';
|
|
110
|
+
export declare namespace Live2DCubismFramework {
|
|
111
|
+
const CubismExpressionMotion: typeof $.CubismExpressionMotion;
|
|
112
|
+
type CubismExpressionMotion = $.CubismExpressionMotion;
|
|
113
|
+
const ExpressionBlendType: typeof $.ExpressionBlendType;
|
|
114
|
+
type ExpressionBlendType = $.ExpressionBlendType;
|
|
115
|
+
const ExpressionParameter: typeof $.ExpressionParameter;
|
|
116
|
+
type ExpressionParameter = $.ExpressionParameter;
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=cubismexpressionmotion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cubismexpressionmotion.d.ts","sourceRoot":"","sources":["../../../../../CubismSdkForWeb-5-r.4/Framework/src/motion/cubismexpressionmotion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAclE;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,aAAa;IACvD,MAAM,CAAC,QAAQ,CAAC,oBAAoB,KAAO;IAC3C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,KAAO;IAE3C;;;;;OAKG;WACW,MAAM,CAClB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,GACX,sBAAsB;IAMzB;;;;;;OAMG;IACI,kBAAkB,CACvB,KAAK,EAAE,WAAW,EAClB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,sBAAsB,GACvC,IAAI;IAoCP;;;;;;;;;;;OAWG;IACI,6BAA6B,CAClC,KAAK,EAAE,WAAW,EAClB,eAAe,EAAE,MAAM,EACvB,gBAAgB,EAAE,sBAAsB,EACxC,yBAAyB,EAAE,SAAS,CAAC,wBAAwB,CAAC,EAC9D,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,MAAM;IAgHpB;;;;;;OAMG;IACI,uBAAuB;IAI9B;;;;;;;;;;OAUG;IACI,aAAa;IAIpB,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM;IAqEjD;;;;;;;;;OASG;IACI,cAAc,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,MAAM;IAIT;;OAEG;IACH,SAAS;IAMT,OAAO,CAAC,WAAW,CAAiC;IAEpD;;;;OAIG;IACH,OAAO,CAAC,WAAW,CAAS;CAC7B;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,QAAQ,IAAI,CAAE,KAAK;IACnB,QAAQ,IAAI,CAAE,KAAK;IACnB,SAAS,IAAI;CACd;AAED;;GAEG;AACH,qBAAa,mBAAmB;IAC9B,WAAW,EAAE,cAAc,CAAC;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,OAAO,KAAK,CAAC,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,yBAAiB,qBAAqB,CAAC;IAC9B,MAAM,sBAAsB,iCAA2B,CAAC;IAC/D,KAAY,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC;IACvD,MAAM,mBAAmB,8BAAwB,CAAC;IACzD,KAAY,mBAAmB,GAAG,CAAC,CAAC,mBAAmB,CAAC;IACjD,MAAM,mBAAmB,8BAAwB,CAAC;IACzD,KAAY,mBAAmB,GAAG,CAAC,CAAC,mBAAmB,CAAC;CACzD"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { CubismIdHandle } from '../id/cubismid';
|
|
2
|
+
import { CubismModel } from '../model/cubismmodel';
|
|
3
|
+
import { ACubismMotion } from './acubismmotion';
|
|
4
|
+
import { CubismMotionQueueEntryHandle, CubismMotionQueueManager } from './cubismmotionqueuemanager';
|
|
5
|
+
/**
|
|
6
|
+
* @brief パラメータに適用する表情の値を持たせる構造体
|
|
7
|
+
*/
|
|
8
|
+
export declare class ExpressionParameterValue {
|
|
9
|
+
parameterId: CubismIdHandle;
|
|
10
|
+
additiveValue: number;
|
|
11
|
+
multiplyValue: number;
|
|
12
|
+
overwriteValue: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @brief 表情モーションの管理
|
|
16
|
+
*
|
|
17
|
+
* 表情モーションの管理をおこなうクラス。
|
|
18
|
+
*/
|
|
19
|
+
export declare class CubismExpressionMotionManager extends CubismMotionQueueManager {
|
|
20
|
+
/**
|
|
21
|
+
* コンストラクタ
|
|
22
|
+
*/
|
|
23
|
+
constructor();
|
|
24
|
+
/**
|
|
25
|
+
* デストラクタ相当の処理
|
|
26
|
+
*/
|
|
27
|
+
release(): void;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated
|
|
30
|
+
* ExpressionではPriorityを使用していないため、この関数は非推奨となりました。
|
|
31
|
+
*
|
|
32
|
+
* @brief 再生中のモーションの優先度の取得
|
|
33
|
+
*
|
|
34
|
+
* 再生中のモーションの優先度を取得する。
|
|
35
|
+
*
|
|
36
|
+
* @returns モーションの優先度
|
|
37
|
+
*/
|
|
38
|
+
getCurrentPriority(): number;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated
|
|
41
|
+
* ExpressionではPriorityを使用していないため、この関数は非推奨となりました。
|
|
42
|
+
*
|
|
43
|
+
* @brief 予約中のモーションの優先度の取得
|
|
44
|
+
*
|
|
45
|
+
* 予約中のモーションの優先度を取得する。
|
|
46
|
+
*
|
|
47
|
+
* @return モーションの優先度
|
|
48
|
+
*/
|
|
49
|
+
getReservePriority(): number;
|
|
50
|
+
/**
|
|
51
|
+
* @brief 再生中のモーションのウェイトを取得する。
|
|
52
|
+
*
|
|
53
|
+
* @param[in] index 表情のインデックス
|
|
54
|
+
* @returns 表情モーションのウェイト
|
|
55
|
+
*/
|
|
56
|
+
getFadeWeight(index: number): number;
|
|
57
|
+
/**
|
|
58
|
+
* @brief モーションのウェイトの設定。
|
|
59
|
+
*
|
|
60
|
+
* @param[in] index 表情のインデックス
|
|
61
|
+
* @param[in] index 表情モーションのウェイト
|
|
62
|
+
*/
|
|
63
|
+
setFadeWeight(index: number, expressionFadeWeight: number): void;
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated
|
|
66
|
+
* ExpressionではPriorityを使用していないため、この関数は非推奨となりました。
|
|
67
|
+
*
|
|
68
|
+
* @brief 予約中のモーションの優先度の設定
|
|
69
|
+
*
|
|
70
|
+
* 予約中のモーションの優先度を設定する。
|
|
71
|
+
*
|
|
72
|
+
* @param[in] priority 優先度
|
|
73
|
+
*/
|
|
74
|
+
setReservePriority(priority: number): void;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated
|
|
77
|
+
* ExpressionではPriorityを使用していないため、この関数は非推奨となりました。
|
|
78
|
+
* CubismExpressionMotionManager.startMotion() を使用してください。
|
|
79
|
+
*
|
|
80
|
+
* @brief 優先度を設定してモーションの開始
|
|
81
|
+
*
|
|
82
|
+
* 優先度を設定してモーションを開始する。
|
|
83
|
+
*
|
|
84
|
+
* @param[in] motion モーション
|
|
85
|
+
* @param[in] autoDelete 再生が終了したモーションのインスタンスを削除するならtrue
|
|
86
|
+
* @param[in] priority 優先度
|
|
87
|
+
* @return 開始したモーションの識別番号を返す。個別のモーションが終了したか否かを判定するIsFinished()の引数で使用する。開始できない時は「-1」
|
|
88
|
+
*/
|
|
89
|
+
startMotionPriority(motion: ACubismMotion, autoDelete: boolean, priority: number): CubismMotionQueueEntryHandle;
|
|
90
|
+
/**
|
|
91
|
+
* @brief モーションの更新
|
|
92
|
+
*
|
|
93
|
+
* モーションを更新して、モデルにパラメータ値を反映する。
|
|
94
|
+
*
|
|
95
|
+
* @param[in] model 対象のモデル
|
|
96
|
+
* @param[in] deltaTimeSeconds デルタ時間[秒]
|
|
97
|
+
* @retval true 更新されている
|
|
98
|
+
* @retval false 更新されていない
|
|
99
|
+
*/
|
|
100
|
+
updateMotion(model: CubismModel, deltaTimeSeconds: number): boolean;
|
|
101
|
+
private _expressionParameterValues;
|
|
102
|
+
private _fadeWeights;
|
|
103
|
+
private _currentPriority;
|
|
104
|
+
private _reservePriority;
|
|
105
|
+
private _startExpressionTime;
|
|
106
|
+
}
|
|
107
|
+
import * as $ from './cubismexpressionmotionmanager';
|
|
108
|
+
export declare namespace Live2DCubismFramework {
|
|
109
|
+
const CubismExpressionMotionManager: typeof $.CubismExpressionMotionManager;
|
|
110
|
+
type CubismExpressionMotionManager = $.CubismExpressionMotionManager;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=cubismexpressionmotionmanager.d.ts.map
|
package/dist/CubismSdkForWeb-5-r.4/Framework/src/motion/cubismexpressionmotionmanager.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cubismexpressionmotionmanager.d.ts","sourceRoot":"","sources":["../../../../../CubismSdkForWeb-5-r.4/Framework/src/motion/cubismexpressionmotionmanager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAGpC;;GAEG;AACH,qBAAa,wBAAwB;IACnC,WAAW,EAAE,cAAc,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,qBAAa,6BAA8B,SAAQ,wBAAwB;IACzE;;OAEG;;IASH;;OAEG;IACI,OAAO,IAAI,IAAI;IAYtB;;;;;;;;;OASG;IACI,kBAAkB,IAAI,MAAM;IAOnC;;;;;;;;;OASG;IACI,kBAAkB,IAAI,MAAM;IAOnC;;;;;OAKG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAe3C;;;;;OAKG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,GAAG,IAAI;IAevE;;;;;;;;;OASG;IACI,kBAAkB,CAAC,QAAQ,EAAE,MAAM;IAO1C;;;;;;;;;;;;;OAaG;IACI,mBAAmB,CACxB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,OAAO,EACnB,QAAQ,EAAE,MAAM,GACf,4BAA4B;IAY/B;;;;;;;;;OASG;IACI,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO;IA+J1E,OAAO,CAAC,0BAA0B,CAAsC;IACxE,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,oBAAoB,CAAS;CACtC;AAGD,OAAO,KAAK,CAAC,MAAM,iCAAiC,CAAC;AAIrD,yBAAiB,qBAAqB,CAAC;IAC9B,MAAM,6BAA6B,wCAAkC,CAAC;IAC7E,KAAY,6BAA6B,GAAG,CAAC,CAAC,6BAA6B,CAAC;CAC7E"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Live2D Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by the Live2D Open Software license
|
|
5
|
+
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
|
|
6
|
+
*/
|
|
7
|
+
import { CubismIdHandle } from '../id/cubismid';
|
|
8
|
+
import { CubismModel } from '../model/cubismmodel';
|
|
9
|
+
import { csmString } from '../type/csmstring';
|
|
10
|
+
import { csmVector } from '../type/csmvector';
|
|
11
|
+
import { ACubismMotion, BeganMotionCallback, FinishedMotionCallback } from './acubismmotion';
|
|
12
|
+
import { CubismMotionData } from './cubismmotioninternal';
|
|
13
|
+
import { CubismMotionQueueEntry } from './cubismmotionqueueentry';
|
|
14
|
+
/**
|
|
15
|
+
* Enumerator for version control of Motion Behavior.
|
|
16
|
+
* For details, see the SDK Manual.
|
|
17
|
+
*/
|
|
18
|
+
export declare enum MotionBehavior {
|
|
19
|
+
MotionBehavior_V1 = 0,
|
|
20
|
+
MotionBehavior_V2 = 1
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* モーションクラス
|
|
24
|
+
*
|
|
25
|
+
* モーションのクラス。
|
|
26
|
+
*/
|
|
27
|
+
export declare class CubismMotion extends ACubismMotion {
|
|
28
|
+
/**
|
|
29
|
+
* インスタンスを作成する
|
|
30
|
+
*
|
|
31
|
+
* @param buffer motion3.jsonが読み込まれているバッファ
|
|
32
|
+
* @param size バッファのサイズ
|
|
33
|
+
* @param onFinishedMotionHandler モーション再生終了時に呼び出されるコールバック関数
|
|
34
|
+
* @param onBeganMotionHandler モーション再生開始時に呼び出されるコールバック関数
|
|
35
|
+
* @param shouldCheckMotionConsistency motion3.json整合性チェックするかどうか
|
|
36
|
+
* @return 作成されたインスタンス
|
|
37
|
+
*/
|
|
38
|
+
static create(buffer: ArrayBuffer, size: number, onFinishedMotionHandler?: FinishedMotionCallback, onBeganMotionHandler?: BeganMotionCallback, shouldCheckMotionConsistency?: boolean): CubismMotion;
|
|
39
|
+
/**
|
|
40
|
+
* モデルのパラメータの更新の実行
|
|
41
|
+
* @param model 対象のモデル
|
|
42
|
+
* @param userTimeSeconds 現在の時刻[秒]
|
|
43
|
+
* @param fadeWeight モーションの重み
|
|
44
|
+
* @param motionQueueEntry CubismMotionQueueManagerで管理されているモーション
|
|
45
|
+
*/
|
|
46
|
+
doUpdateParameters(model: CubismModel, userTimeSeconds: number, fadeWeight: number, motionQueueEntry: CubismMotionQueueEntry): void;
|
|
47
|
+
/**
|
|
48
|
+
* ループ情報の設定
|
|
49
|
+
* @param loop ループ情報
|
|
50
|
+
*/
|
|
51
|
+
setIsLoop(loop: boolean): void;
|
|
52
|
+
/**
|
|
53
|
+
* ループ情報の取得
|
|
54
|
+
* @return true ループする
|
|
55
|
+
* @return false ループしない
|
|
56
|
+
*/
|
|
57
|
+
isLoop(): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* ループ時のフェードイン情報の設定
|
|
60
|
+
* @param loopFadeIn ループ時のフェードイン情報
|
|
61
|
+
*/
|
|
62
|
+
setIsLoopFadeIn(loopFadeIn: boolean): void;
|
|
63
|
+
/**
|
|
64
|
+
* ループ時のフェードイン情報の取得
|
|
65
|
+
*
|
|
66
|
+
* @return true する
|
|
67
|
+
* @return false しない
|
|
68
|
+
*/
|
|
69
|
+
isLoopFadeIn(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Sets the version of the Motion Behavior.
|
|
72
|
+
*
|
|
73
|
+
* @param Specifies the version of the Motion Behavior.
|
|
74
|
+
*/
|
|
75
|
+
setMotionBehavior(motionBehavior: MotionBehavior): void;
|
|
76
|
+
/**
|
|
77
|
+
* Gets the version of the Motion Behavior.
|
|
78
|
+
*
|
|
79
|
+
* @return Returns the version of the Motion Behavior.
|
|
80
|
+
*/
|
|
81
|
+
getMotionBehavior(): MotionBehavior;
|
|
82
|
+
/**
|
|
83
|
+
* モーションの長さを取得する。
|
|
84
|
+
*
|
|
85
|
+
* @return モーションの長さ[秒]
|
|
86
|
+
*/
|
|
87
|
+
getDuration(): number;
|
|
88
|
+
/**
|
|
89
|
+
* モーションのループ時の長さを取得する。
|
|
90
|
+
*
|
|
91
|
+
* @return モーションのループ時の長さ[秒]
|
|
92
|
+
*/
|
|
93
|
+
getLoopDuration(): number;
|
|
94
|
+
/**
|
|
95
|
+
* パラメータに対するフェードインの時間を設定する。
|
|
96
|
+
*
|
|
97
|
+
* @param parameterId パラメータID
|
|
98
|
+
* @param value フェードインにかかる時間[秒]
|
|
99
|
+
*/
|
|
100
|
+
setParameterFadeInTime(parameterId: CubismIdHandle, value: number): void;
|
|
101
|
+
/**
|
|
102
|
+
* パラメータに対するフェードアウトの時間の設定
|
|
103
|
+
* @param parameterId パラメータID
|
|
104
|
+
* @param value フェードアウトにかかる時間[秒]
|
|
105
|
+
*/
|
|
106
|
+
setParameterFadeOutTime(parameterId: CubismIdHandle, value: number): void;
|
|
107
|
+
/**
|
|
108
|
+
* パラメータに対するフェードインの時間の取得
|
|
109
|
+
* @param parameterId パラメータID
|
|
110
|
+
* @return フェードインにかかる時間[秒]
|
|
111
|
+
*/
|
|
112
|
+
getParameterFadeInTime(parameterId: CubismIdHandle): number;
|
|
113
|
+
/**
|
|
114
|
+
* パラメータに対するフェードアウトの時間を取得
|
|
115
|
+
*
|
|
116
|
+
* @param parameterId パラメータID
|
|
117
|
+
* @return フェードアウトにかかる時間[秒]
|
|
118
|
+
*/
|
|
119
|
+
getParameterFadeOutTime(parameterId: CubismIdHandle): number;
|
|
120
|
+
/**
|
|
121
|
+
* 自動エフェクトがかかっているパラメータIDリストの設定
|
|
122
|
+
* @param eyeBlinkParameterIds 自動まばたきがかかっているパラメータIDのリスト
|
|
123
|
+
* @param lipSyncParameterIds リップシンクがかかっているパラメータIDのリスト
|
|
124
|
+
*/
|
|
125
|
+
setEffectIds(eyeBlinkParameterIds: csmVector<CubismIdHandle>, lipSyncParameterIds: csmVector<CubismIdHandle>): void;
|
|
126
|
+
/**
|
|
127
|
+
* コンストラクタ
|
|
128
|
+
*/
|
|
129
|
+
constructor();
|
|
130
|
+
/**
|
|
131
|
+
* デストラクタ相当の処理
|
|
132
|
+
*/
|
|
133
|
+
release(): void;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @param motionQueueEntry
|
|
137
|
+
* @param userTimeSeconds
|
|
138
|
+
* @param time
|
|
139
|
+
*/
|
|
140
|
+
updateForNextLoop(motionQueueEntry: CubismMotionQueueEntry, userTimeSeconds: number, time: number): void;
|
|
141
|
+
/**
|
|
142
|
+
* motion3.jsonをパースする。
|
|
143
|
+
*
|
|
144
|
+
* @param motionJson motion3.jsonが読み込まれているバッファ
|
|
145
|
+
* @param size バッファのサイズ
|
|
146
|
+
* @param shouldCheckMotionConsistency motion3.json整合性チェックするかどうか
|
|
147
|
+
*/
|
|
148
|
+
parse(motionJson: ArrayBuffer, size: number, shouldCheckMotionConsistency?: boolean): void;
|
|
149
|
+
/**
|
|
150
|
+
* モデルのパラメータ更新
|
|
151
|
+
*
|
|
152
|
+
* イベント発火のチェック。
|
|
153
|
+
* 入力する時間は呼ばれるモーションタイミングを0とした秒数で行う。
|
|
154
|
+
*
|
|
155
|
+
* @param beforeCheckTimeSeconds 前回のイベントチェック時間[秒]
|
|
156
|
+
* @param motionTimeSeconds 今回の再生時間[秒]
|
|
157
|
+
*/
|
|
158
|
+
getFiredEvent(beforeCheckTimeSeconds: number, motionTimeSeconds: number): csmVector<csmString>;
|
|
159
|
+
/**
|
|
160
|
+
* 透明度のカーブが存在するかどうかを確認する
|
|
161
|
+
*
|
|
162
|
+
* @returns true -> キーが存在する
|
|
163
|
+
* false -> キーが存在しない
|
|
164
|
+
*/
|
|
165
|
+
isExistModelOpacity(): boolean;
|
|
166
|
+
/**
|
|
167
|
+
* 透明度のカーブのインデックスを返す
|
|
168
|
+
*
|
|
169
|
+
* @returns success:透明度のカーブのインデックス
|
|
170
|
+
*/
|
|
171
|
+
getModelOpacityIndex(): number;
|
|
172
|
+
/**
|
|
173
|
+
* 透明度のIdを返す
|
|
174
|
+
*
|
|
175
|
+
* @param index モーションカーブのインデックス
|
|
176
|
+
* @returns success:透明度のカーブのインデックス
|
|
177
|
+
*/
|
|
178
|
+
getModelOpacityId(index: number): CubismIdHandle;
|
|
179
|
+
/**
|
|
180
|
+
* 現在時間の透明度の値を返す
|
|
181
|
+
*
|
|
182
|
+
* @returns success:モーションの当該時間におけるOpacityの値
|
|
183
|
+
*/
|
|
184
|
+
getModelOpacityValue(): number;
|
|
185
|
+
/**
|
|
186
|
+
* デバッグ用フラグを設定する
|
|
187
|
+
*
|
|
188
|
+
* @param debugMode デバッグモードの有効・無効
|
|
189
|
+
*/
|
|
190
|
+
setDebugMode(debugMode: boolean): void;
|
|
191
|
+
_sourceFrameRate: number;
|
|
192
|
+
_loopDurationSeconds: number;
|
|
193
|
+
_motionBehavior: MotionBehavior;
|
|
194
|
+
_lastWeight: number;
|
|
195
|
+
_motionData: CubismMotionData;
|
|
196
|
+
_eyeBlinkParameterIds: csmVector<CubismIdHandle>;
|
|
197
|
+
_lipSyncParameterIds: csmVector<CubismIdHandle>;
|
|
198
|
+
_modelCurveIdEyeBlink: CubismIdHandle;
|
|
199
|
+
_modelCurveIdLipSync: CubismIdHandle;
|
|
200
|
+
_modelCurveIdOpacity: CubismIdHandle;
|
|
201
|
+
_modelOpacity: number;
|
|
202
|
+
private _debugMode;
|
|
203
|
+
}
|
|
204
|
+
import * as $ from './cubismmotion';
|
|
205
|
+
export declare namespace Live2DCubismFramework {
|
|
206
|
+
const CubismMotion: typeof $.CubismMotion;
|
|
207
|
+
type CubismMotion = $.CubismMotion;
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=cubismmotion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cubismmotion.d.ts","sourceRoot":"","sources":["../../../../../CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAO9C,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,gBAAgB,EAKjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAyQlE;;;GAGG;AACH,oBAAY,cAAc;IACxB,iBAAiB,IAAA;IACjB,iBAAiB,IAAA;CAClB;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,aAAa;IAC7C;;;;;;;;;OASG;WACW,MAAM,CAClB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,sBAAsB,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IACI,KAAK,CACV,UAAU,EAAE,WAAW,EACvB,IAAI,EAAE,MAAM,EACZ,4BAA4B,GAAE,OAAe,GAC5C,IAAI;IAoPP;;;;;;;;OAQG;IACI,aAAa,CAClB,sBAAsB,EAAE,MAAM,EAC9B,iBAAiB,EAAE,MAAM,GACxB,SAAS,CAAC,SAAS,CAAC;IAkBvB;;;;;OAKG;IACI,mBAAmB,IAAI,OAAO;IAgBrC;;;;OAIG;IACI,oBAAoB,IAAI,MAAM;IAmBrC;;;;;OAKG;IACI,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc;IAcvD;;;;OAIG;IACI,oBAAoB,IAAI,MAAM;IAIrC;;;;OAIG;IACI,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAItC,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,cAAc,CAAoC;IACnE,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,gBAAgB,CAAC;IAE9B,qBAAqB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACjD,oBAAoB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAEhD,qBAAqB,EAAE,cAAc,CAAC;IACtC,oBAAoB,EAAE,cAAc,CAAC;IACrC,oBAAoB,EAAE,cAAc,CAAC;IAErC,aAAa,EAAE,MAAM,CAAC;IAE7B,OAAO,CAAC,UAAU,CAAU;CAC7B;AAGD,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEpC,yBAAiB,qBAAqB,CAAC;IAC9B,MAAM,YAAY,uBAAiB,CAAC;IAC3C,KAAY,YAAY,GAAG,CAAC,CAAC,YAAY,CAAC;CAC3C"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Live2D Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed by the Live2D Open Software license
|
|
5
|
+
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
|
|
6
|
+
*/
|
|
7
|
+
import { CubismIdHandle } from '../id/cubismid';
|
|
8
|
+
import { csmString } from '../type/csmstring';
|
|
9
|
+
import { csmVector } from '../type/csmvector';
|
|
10
|
+
/**
|
|
11
|
+
* @brief モーションカーブの種類
|
|
12
|
+
*
|
|
13
|
+
* モーションカーブの種類。
|
|
14
|
+
*/
|
|
15
|
+
export declare enum CubismMotionCurveTarget {
|
|
16
|
+
CubismMotionCurveTarget_Model = 0,// モデルに対して
|
|
17
|
+
CubismMotionCurveTarget_Parameter = 1,// パラメータに対して
|
|
18
|
+
CubismMotionCurveTarget_PartOpacity = 2
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @brief モーションカーブのセグメントの種類
|
|
22
|
+
*
|
|
23
|
+
* モーションカーブのセグメントの種類。
|
|
24
|
+
*/
|
|
25
|
+
export declare enum CubismMotionSegmentType {
|
|
26
|
+
CubismMotionSegmentType_Linear = 0,// リニア
|
|
27
|
+
CubismMotionSegmentType_Bezier = 1,// ベジェ曲線
|
|
28
|
+
CubismMotionSegmentType_Stepped = 2,// ステップ
|
|
29
|
+
CubismMotionSegmentType_InverseStepped = 3
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @brief モーションカーブの制御点
|
|
33
|
+
*
|
|
34
|
+
* モーションカーブの制御点。
|
|
35
|
+
*/
|
|
36
|
+
export declare class CubismMotionPoint {
|
|
37
|
+
time: number;
|
|
38
|
+
value: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* モーションカーブのセグメントの評価関数
|
|
42
|
+
*
|
|
43
|
+
* @param points モーションカーブの制御点リスト
|
|
44
|
+
* @param time 評価する時間[秒]
|
|
45
|
+
*/
|
|
46
|
+
export interface csmMotionSegmentEvaluationFunction {
|
|
47
|
+
(points: CubismMotionPoint[], time: number): number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @brief モーションカーブのセグメント
|
|
51
|
+
*
|
|
52
|
+
* モーションカーブのセグメント。
|
|
53
|
+
*/
|
|
54
|
+
export declare class CubismMotionSegment {
|
|
55
|
+
/**
|
|
56
|
+
* @brief コンストラクタ
|
|
57
|
+
*
|
|
58
|
+
* コンストラクタ。
|
|
59
|
+
*/
|
|
60
|
+
constructor();
|
|
61
|
+
evaluate: csmMotionSegmentEvaluationFunction;
|
|
62
|
+
basePointIndex: number;
|
|
63
|
+
segmentType: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @brief モーションカーブ
|
|
67
|
+
*
|
|
68
|
+
* モーションカーブ。
|
|
69
|
+
*/
|
|
70
|
+
export declare class CubismMotionCurve {
|
|
71
|
+
constructor();
|
|
72
|
+
type: CubismMotionCurveTarget;
|
|
73
|
+
id: CubismIdHandle;
|
|
74
|
+
segmentCount: number;
|
|
75
|
+
baseSegmentIndex: number;
|
|
76
|
+
fadeInTime: number;
|
|
77
|
+
fadeOutTime: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* イベント。
|
|
81
|
+
*/
|
|
82
|
+
export declare class CubismMotionEvent {
|
|
83
|
+
fireTime: number;
|
|
84
|
+
value: csmString;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @brief モーションデータ
|
|
88
|
+
*
|
|
89
|
+
* モーションデータ。
|
|
90
|
+
*/
|
|
91
|
+
export declare class CubismMotionData {
|
|
92
|
+
constructor();
|
|
93
|
+
duration: number;
|
|
94
|
+
loop: boolean;
|
|
95
|
+
curveCount: number;
|
|
96
|
+
eventCount: number;
|
|
97
|
+
fps: number;
|
|
98
|
+
curves: csmVector<CubismMotionCurve>;
|
|
99
|
+
segments: csmVector<CubismMotionSegment>;
|
|
100
|
+
points: csmVector<CubismMotionPoint>;
|
|
101
|
+
events: csmVector<CubismMotionEvent>;
|
|
102
|
+
}
|
|
103
|
+
import * as $ from './cubismmotioninternal';
|
|
104
|
+
export declare namespace Live2DCubismFramework {
|
|
105
|
+
const CubismMotionCurve: typeof $.CubismMotionCurve;
|
|
106
|
+
type CubismMotionCurve = $.CubismMotionCurve;
|
|
107
|
+
const CubismMotionCurveTarget: typeof $.CubismMotionCurveTarget;
|
|
108
|
+
type CubismMotionCurveTarget = $.CubismMotionCurveTarget;
|
|
109
|
+
const CubismMotionData: typeof $.CubismMotionData;
|
|
110
|
+
type CubismMotionData = $.CubismMotionData;
|
|
111
|
+
const CubismMotionEvent: typeof $.CubismMotionEvent;
|
|
112
|
+
type CubismMotionEvent = $.CubismMotionEvent;
|
|
113
|
+
const CubismMotionPoint: typeof $.CubismMotionPoint;
|
|
114
|
+
type CubismMotionPoint = $.CubismMotionPoint;
|
|
115
|
+
const CubismMotionSegment: typeof $.CubismMotionSegment;
|
|
116
|
+
type CubismMotionSegment = $.CubismMotionSegment;
|
|
117
|
+
const CubismMotionSegmentType: typeof $.CubismMotionSegmentType;
|
|
118
|
+
type CubismMotionSegmentType = $.CubismMotionSegmentType;
|
|
119
|
+
type csmMotionSegmentEvaluationFunction = $.csmMotionSegmentEvaluationFunction;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=cubismmotioninternal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cubismmotioninternal.d.ts","sourceRoot":"","sources":["../../../../../CubismSdkForWeb-5-r.4/Framework/src/motion/cubismmotioninternal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C;;;;GAIG;AACH,oBAAY,uBAAuB;IACjC,6BAA6B,IAAA,CAAE,UAAU;IACzC,iCAAiC,IAAA,CAAE,YAAY;IAC/C,mCAAmC,IAAA;CACpC;AAED;;;;GAIG;AACH,oBAAY,uBAAuB;IACjC,8BAA8B,IAAI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