@lovelace_lol/embody 0.0.4 → 0.0.6

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.
@@ -75,9 +75,9 @@ export class RuntimeCore {
75
75
  configure_with_profile(profile_json: string, model_json: string): void;
76
76
  /**
77
77
  * Packed bone FrameDelta rows: `[bone_id, px, py, pz, qx, qy, qz, qw, flags] * N`
78
- * flags: bit0 = has_position, bit1 = has_rotation. Mirrors
79
- * TsRuntimeCore.collectBoneWrites: composite rotations relative to rest,
80
- * AU-driven translations added to rest position, and viseme jaw rotation.
78
+ * flags: bit0 = has_position, bit1 = has_rotation. Composite rotations are
79
+ * relative to rest, AU-driven translations are added to rest position, and
80
+ * viseme jaw rotation is applied as an absolute packed frame write.
81
81
  */
82
82
  evaluate_bone_frame_delta(): Float32Array;
83
83
  /**
@@ -271,9 +271,9 @@ export class RuntimeCore {
271
271
  }
272
272
  /**
273
273
  * Packed bone FrameDelta rows: `[bone_id, px, py, pz, qx, qy, qz, qw, flags] * N`
274
- * flags: bit0 = has_position, bit1 = has_rotation. Mirrors
275
- * TsRuntimeCore.collectBoneWrites: composite rotations relative to rest,
276
- * AU-driven translations added to rest position, and viseme jaw rotation.
274
+ * flags: bit0 = has_position, bit1 = has_rotation. Composite rotations are
275
+ * relative to rest, AU-driven translations are added to rest position, and
276
+ * viseme jaw rotation is applied as an absolute packed frame write.
277
277
  * @returns {Float32Array}
278
278
  */
279
279
  evaluate_bone_frame_delta() {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovelace_lol/embody",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Renderer-agnostic character animation runtime for facial AUs, visemes, and bone-driven motion",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,40 +0,0 @@
1
- import type { FrameDelta, ModelDescriptor } from './contracts';
2
- import type { Profile } from '../mappings/types';
3
- export interface TsRuntimeCoreOptions {
4
- readonly profile: Profile;
5
- readonly model: ModelDescriptor;
6
- }
7
- export declare class TsRuntimeCore {
8
- private profile;
9
- private model;
10
- private auValues;
11
- private auBalances;
12
- private visemeValues;
13
- private visemeJawScales;
14
- private mixWeights;
15
- constructor(options: TsRuntimeCoreOptions);
16
- setProfile(profile: Profile): void;
17
- setModelDescriptor(model: ModelDescriptor): void;
18
- setAU(id: number, value: number, balance?: number): void;
19
- getAU(id: number): number;
20
- setContinuum(negAU: number, posAU: number, continuumValue: number, balance?: number): void;
21
- setViseme(visemeIndex: number, value: number, jawScale?: number): void;
22
- setVisemeById(slotId: string, value: number, jawScale?: number): void;
23
- setAUMixWeight(id: number, weight: number): void;
24
- evaluateFrameDelta(deltaSeconds?: number): FrameDelta;
25
- private collectAUWrites;
26
- private collectVisemeWrites;
27
- private collectBoneWrites;
28
- private computeRotationState;
29
- private evaluateCompositeTransform;
30
- private computeTranslations;
31
- private addMorphWrites;
32
- private resolveMorphTargets;
33
- private findBoneDescriptor;
34
- private findAutoVisemeJawBinding;
35
- private getActiveVisemeJawAmount;
36
- private getCompositeAxisValueForNode;
37
- private getEffectiveBoneAUValue;
38
- private getAUMixWeight;
39
- private isMixedAU;
40
- }