@doki-land/live2d-core 0.0.18 → 0.0.19
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/dist/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/stage/stage.ts +15 -0
package/dist/index.d.ts
CHANGED
|
@@ -348,6 +348,16 @@ interface Live2dActor {
|
|
|
348
348
|
defaultValue: number;
|
|
349
349
|
value: number;
|
|
350
350
|
}>;
|
|
351
|
+
/** Load-time stable id → binding map (binding.value updated on setParameter). */
|
|
352
|
+
parameterMap(): ReadonlyMap<string, {
|
|
353
|
+
id: string;
|
|
354
|
+
min: number;
|
|
355
|
+
max: number;
|
|
356
|
+
defaultValue: number;
|
|
357
|
+
value: number;
|
|
358
|
+
}>;
|
|
359
|
+
/** Resolve parameter id → index (O(1) after load). */
|
|
360
|
+
resolveParameter(id: string): number | undefined;
|
|
351
361
|
listMotionGroups(): Record<string, readonly MotionDefinition[]>;
|
|
352
362
|
playMotion(group: string, index?: number, options?: PlayMotionActorOptions): Promise<boolean>;
|
|
353
363
|
stopMotion(opts?: {
|
package/package.json
CHANGED
package/src/stage/stage.ts
CHANGED
|
@@ -117,6 +117,21 @@ export interface Live2dActor {
|
|
|
117
117
|
value: number;
|
|
118
118
|
}>;
|
|
119
119
|
|
|
120
|
+
/** Load-time stable id → binding map (binding.value updated on setParameter). */
|
|
121
|
+
parameterMap(): ReadonlyMap<
|
|
122
|
+
string,
|
|
123
|
+
{
|
|
124
|
+
id: string;
|
|
125
|
+
min: number;
|
|
126
|
+
max: number;
|
|
127
|
+
defaultValue: number;
|
|
128
|
+
value: number;
|
|
129
|
+
}
|
|
130
|
+
>;
|
|
131
|
+
|
|
132
|
+
/** Resolve parameter id → index (O(1) after load). */
|
|
133
|
+
resolveParameter(id: string): number | undefined;
|
|
134
|
+
|
|
120
135
|
listMotionGroups(): Record<string, readonly MotionDefinition[]>;
|
|
121
136
|
|
|
122
137
|
playMotion(
|