@lovelace_lol/embody 0.0.12 → 0.0.14

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.
Files changed (47) hide show
  1. package/README.md +106 -23
  2. package/dist/index.js +3286 -5900
  3. package/dist/index.js.map +1 -1
  4. package/dist/three/annotations/DOMControls.d.ts +5 -1
  5. package/dist/three/annotations/HtmlAnnotationMarkers.d.ts +5 -0
  6. package/dist/three/annotations/OverlayAnnotationMarkers.d.ts +1 -0
  7. package/dist/three/annotations/ThreeAnnotationController.d.ts +145 -0
  8. package/dist/three/annotations/ThreeAnnotationControls.d.ts +42 -0
  9. package/dist/three/annotations/ThreeAnnotationMarkers.d.ts +42 -0
  10. package/dist/three/annotations/ThreeAnnotationRenderer.d.ts +35 -0
  11. package/dist/three/annotations/{DPthree.d.ts → ThreeAnnotations.d.ts} +18 -27
  12. package/dist/three/annotations/adapter.d.ts +2 -8
  13. package/dist/three/annotations/annotationAnchorModel.d.ts +0 -4
  14. package/dist/three/annotations/index.d.ts +9 -8
  15. package/dist/three/annotations/lifecycleBridge.d.ts +26 -0
  16. package/dist/three/annotations/markerVisibilityLifecycle.d.ts +8 -7
  17. package/dist/three/annotations/modelObservation.d.ts +44 -0
  18. package/dist/three/annotations/runtime.d.ts +46 -0
  19. package/dist/three/annotations/runtimeAnnotationPreview.d.ts +2 -2
  20. package/dist/three/annotations/runtimeAnnotationPreviewSide.d.ts +0 -4
  21. package/dist/three/annotations/runtimeAnnotationSidePreview.d.ts +2 -1
  22. package/dist/three/annotations/types.d.ts +7 -8
  23. package/dist/three/authoring.d.ts +1 -1
  24. package/dist/three/characterHost.d.ts +33 -5
  25. package/dist/three/characterTexturePalette.d.ts +6 -0
  26. package/dist/three/editor/SkeletonOverlay.d.ts +128 -0
  27. package/dist/three/editor/morphVertexPreview.d.ts +35 -0
  28. package/dist/three/index.d.ts +2 -0
  29. package/dist/three/modelMorphLayout.d.ts +13 -0
  30. package/dist/three/scene.d.ts +5 -0
  31. package/dist/three/sceneInkBackground.d.ts +11 -0
  32. package/dist/three/sceneInkBackgroundStyle.d.ts +5 -0
  33. package/dist/three.js +3286 -5900
  34. package/dist/three.js.map +1 -1
  35. package/dist/wasm/README.md +106 -23
  36. package/dist/wasm/embody_wasm.d.ts +191 -85
  37. package/dist/wasm/embody_wasm.js +455 -2
  38. package/dist/wasm/embody_wasm_bg.wasm +0 -0
  39. package/dist/wasm/embody_wasm_bg.wasm.d.ts +116 -83
  40. package/dist/wasm/index.d.ts +1 -1
  41. package/dist/wasm.js.map +1 -1
  42. package/package.json +2 -2
  43. package/dist/three/annotations/DPthree3DMarkers.d.ts +0 -320
  44. package/dist/three/annotations/DPthreeCameraController.d.ts +0 -415
  45. package/dist/three/annotations/DPthreeHTMLMarkers.d.ts +0 -131
  46. package/dist/three/annotations/DPthreeMarkers.d.ts +0 -52
  47. package/dist/three/annotations/animationFrameTaskScheduler.d.ts +0 -18
@@ -33,7 +33,8 @@ The Rust core owns:
33
33
  (`morphTarget` / `boneTransform` tracks) for the host mixer to schedule
34
34
  - mesh-category routing and material profile data
35
35
  - hair curves, hair physics, and appearance normalization
36
- - annotation camera/marker math and humanoid template fitting
36
+ - annotation regions, camera gestures/flights/orbits, marker placement and visibility,
37
+ preview/reveal lifecycles, and humanoid template fitting
37
38
  - profile-aware screen-space gaze geometry for eye/head AU trajectories
38
39
  - renderer-neutral model analysis and packed live frame generation
39
40
 
@@ -53,9 +54,9 @@ disable the AU's mapped morphs or the viseme shapes.
53
54
  The TypeScript adapter is intentionally limited to operations that require
54
55
  Three.js objects: scene traversal, ClipIR ↔ `AnimationClip` conversion, frame
55
56
  application, material writes, model loading/disposal, and default scene
56
- construction. The annotation adapter also owns camera controls, marker scene
57
- objects, labels, selection, and their browser lifecycle; applications provide
58
- the scene/camera/DOM inputs and render controls through the public API.
57
+ construction. Annotation adapters capture DOM input, observe native geometry,
58
+ apply Rust camera/marker frames, render labels and release native resources.
59
+ Camera integration, region selection and marker state belong to Rust.
59
60
 
60
61
  `ThreeFrameApplier.applyMeshMaterialConfigs(model, profile.meshes)` replays named
61
62
  mesh visibility and material overrides when a host binds or replaces a profile.
@@ -67,31 +68,95 @@ do not need a separate mesh-visibility replay loop.
67
68
 
68
69
  ### Annotation runtime
69
70
 
70
- `DPthreeCameraController` and the `DPthree` convenience facade from
71
- `@lovelace_lol/embody/three` own the complete camera and annotation runtime.
72
- `DPthree3DMarkers`, `DPthreeHTMLMarkers`, and the legacy `DPthreeMarkers` adapter
73
- are available for hosts that need a marker-only layer. Rust owns camera
74
- framing/flights/orbits, viewport clipping, curves, visibility factors and
75
- endpoint separation. The Three adapter owns native model inspection,
76
- raycasting, labels, DOM controls, marker expansion/solo/style state and disposal.
71
+ `AnnotationRuntime` in `src/annotation_runtime/` owns the annotation behavior
72
+ and mutable state in Rust/Wasm: camera input and damping, framing and intro
73
+ transitions, authored/runtime regions, AU/bone target selection, laterality,
74
+ anchors, surface-query planning, expansion, solo, styles, visibility and layout.
75
+ `AnnotationLifecycle` owns preview/reveal deadlines and the effects they emit.
76
+ There is no TypeScript annotation state machine or OrbitControls dependency.
77
+
78
+ `ThreeAnnotationController` and the `ThreeAnnotations` convenience facade from
79
+ `@lovelace_lol/embody/three` provide native adapters. `ThreeAnnotationMarkers`,
80
+ `HtmlAnnotationMarkers`, and its `OverlayAnnotationMarkers` alias provide
81
+ marker-only views of the same Rust runtime. Their TypeScript code captures input,
82
+ serializes model observations, calls native raycasts and skinned-vertex evaluation,
83
+ applies packed Rust frames, creates labels, and owns renderer resources. Three
84
+ continues to own scene objects and GPU operations; those APIs cannot be replaced
85
+ by renderer-neutral Rust. Both marker styles share the same state and selection
86
+ rules. HTML occlusion uses Rust-planned rays evaluated by Three.
87
+
88
+ Rust fits marker endpoints before marker loading returns and on each update,
89
+ including additions, endpoint separation and reveal overshoot. Clipping uses
90
+ the displayed label dimensions and preserves the minimum leader-line length;
91
+ temporary overshoot clipping does not restart the reveal. Sphere sizing retains
92
+ the close-up scale and clamped distance scaling outside that range. Explicit
93
+ `markerAnchor.projectToSurface: false` also applies to `objects: ['*']` anchors.
94
+ HTML overlays align with the canvas rectangle inside its container, update on
95
+ resize/rebind, and restore borrowed parent positioning when the final view is
96
+ disposed. These coordinates assume axis-aligned CSS boxes without transforms.
97
+
98
+ AU morph anchors currently sample native deformed vertices during marker
99
+ preparation, then follow the selected object's transform. They do not yet
100
+ resample morph weights or skinning on subsequent frames. Animated surface
101
+ tracking requires cached vertex candidates and per-frame pose observations;
102
+ ordinary object-transform tracking does not provide that behavior.
103
+
104
+ This is a breaking replacement of the DPthree exports. Use
105
+ `ThreeAnnotationController.create(options)` or `ThreeAnnotations.create(options)`
106
+ to await Wasm initialization; synchronous constructors require an already initialized
107
+ core. Replace DPthree-prefixed types with `AnnotationCharacterConfig`,
108
+ `AnnotationRegion`, `AnnotationRegistry`, and the corresponding callback types.
109
+ The `controls` bridge retains `target`, `enabled`, damping/distance settings,
110
+ `update()`, and `change`/`start`/`end` listeners, but is not a Three `OrbitControls`
111
+ instance. Region and camera snapshots are observations; mutate through controller
112
+ methods. Explicit `undefined` fields in `updateAnnotationRegion` remove overrides.
113
+ `getCharacterConfig()` retains snapshot identity until configuration content or
114
+ the model changes; selection, visibility and camera input do not replace it.
115
+ Call `clearModel()` before releasing a removed model's native resources. The
116
+ controller retains renderer rebinding, canvas input reconnect and resource-drain
117
+ support through the scene's rendering controller.
118
+ Runtime preview region IDs retain the `runtime:annotation:` namespace.
119
+
120
+ When the annotation controller owns the renderer loop, it advances registered
121
+ native character mixers before observing annotation transforms and drawing the
122
+ scene. The first frame establishes the timer origin; skipped asynchronous draws
123
+ do not accumulate playback time. External render loops use the existing
124
+ `createScenePlaybackFrame` integration to advance character playback.
125
+
126
+ ```ts
127
+ import { ThreeAnnotations } from '@lovelace_lol/embody/three';
128
+
129
+ const annotations = await ThreeAnnotations.create({ scene, camera, domElement: canvas });
130
+ annotations.setModel(model);
131
+ await annotations.loadCharacter({ characterId: 'character', profilePresetId: 'cc4' });
132
+ // Host-owned render loop: call annotations.update() before renderer.render(...).
133
+ ```
77
134
 
78
135
  Applications pass `AnnotationCharacterConfig`; storage, agency, editor and
79
136
  character-asset metadata remain host concerns. `loadRegions` defaults to
80
137
  `resolveAnnotationCharacterConfig`, which resolves annotation and AU mapping
81
138
  fields from an Embody preset without serializing unrelated host metadata.
82
139
  An optional `resolveCharacterConfig` callback supports host profile intake.
140
+ `prepareRegionsForReveal` defers native marker construction until the first
141
+ `setMarkersVisible(true)` call. Later visibility changes reuse those resources;
142
+ Rust's loaded state resets when the model or configuration is replaced.
83
143
  `prepareRegionsAndMarkersForReveal` accepts an already-resolved profile and
84
144
  prepares native surface queries while the model pose is still stable.
85
145
  Initial queries yield to a browser paint between meshes once a 4 ms slice is
86
- spent. Each native mesh raycast is indivisible; a large mesh can still cause a
87
- frame drop, and slicing does not reduce total raycast CPU time. Interactive
88
- annotation changes retain synchronous queries so a marker samples one pose.
89
- Replacement, clearing and disposal cancel stale loads before scene commits.
90
- New 3D markers and separated endpoints invalidate the cached camera layout.
91
- Visible markers receive the current zoom sizing and Rust viewport constraints
92
- before paint; hidden markers receive that layout before reveal captures label
93
- scales. Viewport clipping also follows the animated label size during reveal
94
- overshoot. Markers added during a reveal stay hidden until its layout pass resumes.
146
+ spent. Each native mesh raycast is indivisible; slicing does not reduce total
147
+ raycast CPU time. Interactive edits retain synchronous queries so a marker samples
148
+ one pose. Rust generations reject stale profile, surface and reveal completions
149
+ after replacement, clearing, region edits or disposal. Camera requests settle when
150
+ completed or cancelled, including controller disposal.
151
+
152
+ The direct Wasm boundary uses JSON commands/snapshots for configuration and
153
+ primitive model observations with stable object IDs. Frames, vertex candidates,
154
+ transform observations and ray results use packed typed arrays; coordinates are
155
+ world-space, camera/visibility angles are degrees, durations are milliseconds,
156
+ and viewport dimensions are CSS pixels. The layouts and operations are maintained
157
+ in [the Rust runtime](src/annotation_runtime/mod.rs) and
158
+ [marker frames](src/annotation_runtime/markers.rs); generated Wasm declarations
159
+ remain the ABI type source. IDs are scoped to one model lifetime.
95
160
 
96
161
  For first reveal, call `controller.prepareModelForRender(model, { signal })`
97
162
  from the existing `beforeReveal` callback (or directly before attaching the
@@ -103,8 +168,14 @@ it settles, even after `controller.dispose()`. This prepares visible variants,
103
168
  not every future hidden material or animation state. See the
104
169
  [model readiness contract](docs/SCENE_READINESS.md#model-readiness).
105
170
 
106
- `createMarkerVisibilityLifecycle` owns automatic reveal/hide timers;
107
- `createRuntimeAnnotationPreviewLifecycle` owns temporary authoring previews.
171
+ `createMarkerVisibilityLifecycle` and `createRuntimeAnnotationPreviewLifecycle`
172
+ transport host events to `AnnotationLifecycle`; browser timers only wake Rust at
173
+ its next deadline. Factories can queue input while Wasm initializes; `ready`
174
+ reports the current initialization attempt. After an initialization failure,
175
+ the next command retries or adopts a core initialized by another scene. Failed
176
+ attempts discard their queued input. `dispose()` also discards pending input,
177
+ cancels timers and frees the runtime, so cleanup before readiness cannot replay
178
+ callbacks. Later calls create a fresh runtime, preserving host effect-replay cleanup.
108
179
  React hosts forward user events and subscribe to controller state. They do not
109
180
  need local copies of the camera, marker, placement or timer algorithms.
110
181
  The convenience facade delegates to one controller-owned marker layer.
@@ -177,7 +248,7 @@ controller immediately. `ready` reports the initial attempt; failure retains the
177
248
  controller for recovery through `setSettings`. `getSettings`, `getSnapshot` and
178
249
  `subscribe` expose the requested preference, actual backend, status and errors.
179
250
  Live changes prepare and replace only backend resources, preserving the character,
180
- scene, camera, lighting and marker state. `DPthreeCameraController({ rendering,
251
+ scene, camera, lighting and marker state. `ThreeAnnotationController({ rendering,
181
252
  scene, camera, domElement: container })` retargets its existing loop and controls;
182
253
  hosts persist settings and display status without recreating the scene.
183
254
 
@@ -549,3 +620,15 @@ values/curves, using their original profile mappings. `LEGACY_BODY_CONTROL_AUS`
549
620
  is a deprecated reader-only historical identity snapshot for old CC4 records;
550
621
  it is never consulted for current controls, actuation or profile compilation.
551
622
  Unknown legacy names must be reported rather than silently omitted.
623
+
624
+ ### Character-derived studio background
625
+
626
+ The Three `createCharacterHost` paints its container with soft gradients sampled
627
+ from the selected model's material and texture colors. The studio uses the
628
+ original visible ink strengths (24/12%, 22/10%, 18%) over a gunmetal base.
629
+ Embody owns palette extraction and updates after successful character replacement;
630
+ late extraction cannot repaint a newer selection or a disposed host. Disposal
631
+ restores the container's original inline background. Explicit saved backgrounds,
632
+ including `null` transparency, non-studio scene types and external scenes retain
633
+ their authored appearance. Polymer forwards the host; applications do not sample
634
+ textures or construct a second scene background.
@@ -1,10 +1,67 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
+ /**
5
+ * Browser timers only wake this state machine. Rust owns deadlines, expiry,
6
+ * manual overrides, repeated preview starts, and one-shot end notifications.
7
+ */
8
+ export class AnnotationLifecycle {
9
+ free(): void;
10
+ [Symbol.dispose](): void;
11
+ command(operation: string, options_json: string, now_ms: number): string;
12
+ deadline(): number | undefined;
13
+ is_active(): boolean;
14
+ constructor(mode: string, default_duration_ms: number);
15
+ }
16
+
17
+ export class AnnotationRuntime {
18
+ free(): void;
19
+ [Symbol.dispose](): void;
20
+ /**
21
+ * The only camera integrator: pose observation(6), fov/aspect/viewport(4).
22
+ * Returns pose(6), active request id, completed request id, needs frame.
23
+ */
24
+ camera_frame(now_ms: number, observation: Float32Array): Float32Array;
25
+ command(operation: string, payload_json: string, now_ms: number): string;
26
+ completed_camera_request(): number;
27
+ dispose(): void;
28
+ finish_markers(generation: number): void;
29
+ generation(): number;
30
+ is_current(generation: number): boolean;
31
+ label_metrics(id: number, width: number, height: number): void;
32
+ marker_frame(now_ms: number, projection: Float32Array, view_projection: Float32Array, width: number, height: number): Float32Array;
33
+ needs_frame(): boolean;
34
+ constructor(settings_json: string);
35
+ observe_model(model_json: string): void;
36
+ /**
37
+ * Native hit observations are [marker id, nearest distance], with infinity for no hit.
38
+ */
39
+ observe_occlusion(hits: Float32Array): void;
40
+ /**
41
+ * Packed observation records are [object id, column-major matrixWorld(16)].
42
+ */
43
+ observe_transforms(transforms: Float32Array): void;
44
+ /**
45
+ * HTML occlusion rays: [id, origin(3), direction(3), maximum distance].
46
+ * Three reports the nearest native hit; Rust owns its visibility meaning.
47
+ */
48
+ occlusion_queries(): Float32Array;
49
+ /**
50
+ * Plans contain native ray queries, never native handles. Every result is
51
+ * tied to this generation; a stale query cannot resurrect cleared markers.
52
+ */
53
+ plan_markers(morph_anchors_json: string): string;
54
+ revision(): number;
55
+ set_model(model_json: string): void;
56
+ snapshot(): string;
57
+ surface_result(generation: number, id: number, phase: number, hits: Float32Array): string;
58
+ tracked_objects(): Uint32Array;
59
+ }
60
+
4
61
  /**
5
62
  * Spherical camera flight between two camera poses.
6
63
  *
7
- * Mirrors the DPthree camera transition: orbital interpolation with a
64
+ * Mirrors the ThreeAnnotations camera transition: orbital interpolation with a
8
65
  * pullback arc so large rotations do not pass through the model.
9
66
  * `sample(elapsed_ms)` returns
10
67
  * `[posX, posY, posZ, targetX, targetY, targetZ, done]`.
@@ -304,8 +361,24 @@ export function analyze_mesh_proportions(vertices: Float32Array, vertical_axis:
304
361
 
305
362
  export function analyze_model_descriptor(model_json: string, clips_json: string, profile_json: string, options_json: string): string;
306
363
 
364
+ /**
365
+ * Select vertices influenced by any requested skeleton index. The adapter
366
+ * evaluates these indices through the native skinned vertex API.
367
+ */
368
+ export function annotation_bone_vertices(indices: Float32Array, weights: Float32Array, bones: Uint32Array): Uint32Array;
369
+
307
370
  export function annotation_camera_framing_stride(): number;
308
371
 
372
+ export function annotation_marker_frame_stride(): number;
373
+
374
+ export function annotation_morph_candidates(base: Float32Array, morphs: Float32Array, relative: boolean): Float32Array;
375
+
376
+ export function annotation_morph_center(region_json: string, candidates: Float32Array): Float32Array;
377
+
378
+ export function annotation_point_bounds(points: Float32Array): Float32Array;
379
+
380
+ export function annotation_query(operation: string, payload_json: string): string;
381
+
309
382
  /**
310
383
  * Build head-pitch gravity hair morph curves.
311
384
  */
@@ -495,7 +568,7 @@ export function sample_marker_bezier_curve(start: Float32Array, end: Float32Arra
495
568
  *
496
569
  * `starts` and `ends` are packed `[x, y, z, ...]` arrays. The output includes
497
570
  * one endpoint for every complete start/end pair. Proximity and rotation
498
- * constants match DPthree's marker layout, scaled to the current model height.
571
+ * constants match ThreeAnnotations's marker layout, scaled to the current model height.
499
572
  */
500
573
  export function separate_overlapping_marker_endpoints(starts: Float32Array, ends: Float32Array, model_center: Float32Array, model_height: number): Float32Array;
501
574
 
@@ -600,48 +673,81 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
600
673
 
601
674
  export interface InitOutput {
602
675
  readonly memory: WebAssembly.Memory;
603
- readonly default_hair_color_appearance_json: () => [number, number, number, number];
604
- readonly hair_color_presets_json: () => [number, number, number, number];
605
- readonly normalize_hair_color_appearance_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
606
- readonly embody_request: (a: number, b: number) => [number, number, number, number];
607
- readonly compute_humanoid_skeleton_template_rest_bounds: (a: number, b: number) => [number, number, number, number];
608
676
  readonly core_abi_version: () => number;
609
- readonly create_validation_skeleton_json: (a: number, b: number) => [number, number, number, number];
610
- readonly extract_humanoid_skeleton_template_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
611
- readonly get_humanoid_skeleton_template_json: (a: number, b: number) => [number, number, number, number];
612
- readonly humanoid_skeleton_template_bone_names: (a: number, b: number) => [number, number, number, number];
613
- readonly list_humanoid_skeleton_templates_json: () => [number, number, number, number];
614
- readonly marker_endpoint_stride: () => number;
615
- readonly marker_visibility_animation_factors: (a: number, b: number) => [number, number];
616
677
  readonly pack_morph_frame_delta: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
617
678
  readonly packed_bone_frame_delta_stride: () => number;
618
679
  readonly packed_morph_frame_delta_stride: () => number;
619
- readonly passes_marker_camera_angle_gate: (a: number, b: number, c: number) => number;
620
- readonly resolve_viewport_constrained_line_scale: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
621
- readonly resolve_viewport_safe_bounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
622
- readonly sample_marker_arc_curve: (a: number, b: number, c: number, d: number, e: number) => [number, number];
623
- readonly sample_marker_bezier_curve: (a: number, b: number, c: number, d: number, e: number) => [number, number];
624
- readonly separate_overlapping_marker_endpoints: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
625
- readonly should_show_marker: (a: number, b: number, c: number, d: number) => number;
626
- readonly marker_visibility_factors_stride: () => number;
627
- readonly __wbg_cameraflight_free: (a: number, b: number) => void;
628
- readonly __wbg_cameraorbit_free: (a: number, b: number) => void;
680
+ readonly solve_axis_quaternion: (a: number, b: number, c: number, d: number) => [number, number];
681
+ readonly solve_bilateral_values: (a: number, b: number) => [number, number];
682
+ readonly solve_morph_batch: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
683
+ readonly compose_template_skeleton_fit_transform: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
684
+ readonly template_skeleton_fit_transform_stride: () => number;
685
+ readonly __wbg_annotationruntime_free: (a: number, b: number) => void;
686
+ readonly __wbg_nativeplaybacksession_free: (a: number, b: number) => void;
687
+ readonly annotation_marker_frame_stride: () => number;
688
+ readonly annotationruntime_camera_frame: (a: number, b: number, c: number, d: number) => [number, number];
689
+ readonly annotationruntime_command: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
690
+ readonly annotationruntime_completed_camera_request: (a: number) => number;
691
+ readonly annotationruntime_dispose: (a: number) => void;
692
+ readonly annotationruntime_finish_markers: (a: number, b: number) => void;
693
+ readonly annotationruntime_generation: (a: number) => number;
694
+ readonly annotationruntime_is_current: (a: number, b: number) => number;
695
+ readonly annotationruntime_label_metrics: (a: number, b: number, c: number, d: number) => void;
696
+ readonly annotationruntime_marker_frame: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
697
+ readonly annotationruntime_needs_frame: (a: number) => number;
698
+ readonly annotationruntime_new: (a: number, b: number) => [number, number, number];
699
+ readonly annotationruntime_observe_model: (a: number, b: number, c: number) => [number, number];
700
+ readonly annotationruntime_observe_occlusion: (a: number, b: number, c: number) => void;
701
+ readonly annotationruntime_observe_transforms: (a: number, b: number, c: number) => void;
702
+ readonly annotationruntime_occlusion_queries: (a: number) => [number, number];
703
+ readonly annotationruntime_plan_markers: (a: number, b: number, c: number) => [number, number, number, number];
704
+ readonly annotationruntime_revision: (a: number) => number;
705
+ readonly annotationruntime_set_model: (a: number, b: number, c: number) => [number, number];
706
+ readonly annotationruntime_snapshot: (a: number) => [number, number];
707
+ readonly annotationruntime_surface_result: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
708
+ readonly annotationruntime_tracked_objects: (a: number) => [number, number];
709
+ readonly nativeplaybacksession_control: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
710
+ readonly nativeplaybacksession_dispose: (a: number) => [number, number, number, number];
711
+ readonly nativeplaybacksession_new: () => [number, number, number];
712
+ readonly nativeplaybacksession_notify: (a: number, b: number, c: number) => [number, number, number, number];
713
+ readonly nativeplaybacksession_play: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
714
+ readonly nativeplaybacksession_rebind: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
715
+ readonly nativeplaybacksession_replace_clip: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
716
+ readonly analyze_model_descriptor: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
717
+ readonly build_hair_gravity_curves: (a: number, b: number) => [number, number, number, number];
718
+ readonly build_hair_idle_curves: (a: number, b: number, c: number) => [number, number, number, number];
719
+ readonly build_hair_impulse_curves: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
720
+ readonly compile_clip: (a: number, b: number) => [number, number, number, number];
721
+ readonly compile_clip_curves: (a: number, b: number) => [number, number, number, number];
722
+ readonly extract_model_data_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
723
+ readonly get_preset_json: (a: number, b: number) => [number, number, number, number];
724
+ readonly has_preset: (a: number, b: number) => number;
725
+ readonly list_presets: () => [number, number];
726
+ readonly merge_embedded_preset: (a: number, b: number, c: number, d: number) => [number, number, number, number];
727
+ readonly merge_preset_profile: (a: number, b: number, c: number, d: number) => [number, number, number, number];
728
+ readonly resolve_embedded_profile_view: (a: number, b: number, c: number, d: number) => [number, number, number, number];
729
+ readonly resolve_profile_view: (a: number, b: number) => [number, number, number, number];
730
+ readonly validate_humanoid_characterization: (a: number, b: number, c: number, d: number) => [number, number, number, number];
731
+ readonly validate_profile_model: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
732
+ readonly embody_request: (a: number, b: number) => [number, number, number, number];
733
+ readonly __wbg_hairphysicssolver_free: (a: number, b: number) => void;
629
734
  readonly __wbg_runtimecore_free: (a: number, b: number) => void;
630
- readonly analyze_mesh_proportions: (a: number, b: number, c: number) => [number, number];
631
- readonly annotation_camera_framing_stride: () => number;
632
- readonly cameraflight_duration_ms: (a: number) => number;
633
- readonly cameraflight_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
634
- readonly cameraflight_sample: (a: number, b: number) => [number, number];
635
- readonly cameraorbit_duration_ms: (a: number) => number;
636
- readonly cameraorbit_new: (a: number, b: number, c: number, d: number, e: number) => number;
637
- readonly cameraorbit_sample: (a: number, b: number) => [number, number];
638
- readonly compose_template_fit_adjustment: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
639
- readonly focus_padding_factor: (a: number, b: number, c: number, d: number) => number;
640
- readonly mesh_proportions_stride: () => number;
641
- readonly normalize_camera_angle_degrees: (a: number) => number;
642
- readonly resolve_auto_closeup_angle: (a: number, b: number, c: number, d: number, e: number) => number;
643
- readonly resolve_focus_camera_direction: (a: number, b: number, c: number, d: number, e: number) => [number, number];
644
- readonly runtimecore_au_morph_binding_stride: () => number;
735
+ readonly annotation_bone_vertices: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
736
+ readonly annotation_morph_candidates: (a: number, b: number, c: number, d: number, e: number) => [number, number];
737
+ readonly annotation_morph_center: (a: number, b: number, c: number, d: number) => [number, number, number, number];
738
+ readonly annotation_point_bounds: (a: number, b: number) => [number, number];
739
+ readonly annotation_query: (a: number, b: number, c: number, d: number) => [number, number, number, number];
740
+ readonly default_hair_physics_config_values: () => [number, number];
741
+ readonly hair_config_stride: () => number;
742
+ readonly hair_head_state_stride: () => number;
743
+ readonly hair_morph_output_stride: () => number;
744
+ readonly hair_state_stride: () => number;
745
+ readonly hairphysicssolver_get_config: (a: number) => [number, number];
746
+ readonly hairphysicssolver_get_state: (a: number) => [number, number];
747
+ readonly hairphysicssolver_new: (a: number, b: number) => number;
748
+ readonly hairphysicssolver_reset: (a: number) => void;
749
+ readonly hairphysicssolver_set_config: (a: number, b: number, c: number) => void;
750
+ readonly hairphysicssolver_update: (a: number, b: number, c: number, d: number) => [number, number];
645
751
  readonly runtimecore_begin_live_command: (a: number) => void;
646
752
  readonly runtimecore_build_clip: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
647
753
  readonly runtimecore_build_hair_gravity_clip: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
@@ -699,57 +805,57 @@ export interface InitOutput {
699
805
  readonly runtimecore_set_viseme: (a: number, b: number, c: number) => void;
700
806
  readonly runtimecore_set_viseme_jaw_scale: (a: number, b: number, c: number) => void;
701
807
  readonly runtimecore_set_viseme_slot_count: (a: number, b: number) => void;
702
- readonly runtimecore_viseme_morph_binding_stride: () => number;
703
808
  readonly runtimecore_viseme_slot_index: (a: number, b: number, c: number) => number;
809
+ readonly validate_generated_template_fit_metadata: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
810
+ readonly runtimecore_au_morph_binding_stride: () => number;
811
+ readonly runtimecore_viseme_morph_binding_stride: () => number;
812
+ readonly runtimecore_remove_animation_clip: (a: number, b: number, c: number) => number;
813
+ readonly __wbg_annotationlifecycle_free: (a: number, b: number) => void;
814
+ readonly annotationlifecycle_command: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
815
+ readonly annotationlifecycle_deadline: (a: number) => [number, number];
816
+ readonly annotationlifecycle_is_active: (a: number) => number;
817
+ readonly annotationlifecycle_new: (a: number, b: number, c: number) => number;
818
+ readonly compute_humanoid_skeleton_template_rest_bounds: (a: number, b: number) => [number, number, number, number];
819
+ readonly create_validation_skeleton_json: (a: number, b: number) => [number, number, number, number];
820
+ readonly extract_humanoid_skeleton_template_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
821
+ readonly get_humanoid_skeleton_template_json: (a: number, b: number) => [number, number, number, number];
822
+ readonly humanoid_skeleton_template_bone_names: (a: number, b: number) => [number, number, number, number];
823
+ readonly list_humanoid_skeleton_templates_json: () => [number, number, number, number];
824
+ readonly __wbg_cameraflight_free: (a: number, b: number) => void;
825
+ readonly __wbg_cameraorbit_free: (a: number, b: number) => void;
826
+ readonly annotation_camera_framing_stride: () => number;
827
+ readonly cameraflight_duration_ms: (a: number) => number;
828
+ readonly cameraflight_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
829
+ readonly cameraflight_sample: (a: number, b: number) => [number, number];
830
+ readonly cameraorbit_duration_ms: (a: number) => number;
831
+ readonly cameraorbit_new: (a: number, b: number, c: number, d: number, e: number) => number;
832
+ readonly cameraorbit_sample: (a: number, b: number) => [number, number];
833
+ readonly focus_padding_factor: (a: number, b: number, c: number, d: number) => number;
834
+ readonly normalize_camera_angle_degrees: (a: number) => number;
835
+ readonly resolve_auto_closeup_angle: (a: number, b: number, c: number, d: number, e: number) => number;
836
+ readonly resolve_focus_camera_direction: (a: number, b: number, c: number, d: number, e: number) => [number, number];
704
837
  readonly solve_focus_framing: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => [number, number];
705
838
  readonly solve_full_body_framing: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => [number, number];
706
- readonly solve_template_skeleton_fit: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
707
- readonly template_skeleton_fit_solution_stride: () => number;
708
839
  readonly world_direction_for_camera_angle: (a: number, b: number, c: number) => [number, number];
709
840
  readonly camera_flight_sample_stride: () => number;
710
- readonly runtimecore_remove_animation_clip: (a: number, b: number, c: number) => number;
711
- readonly analyze_model_descriptor: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
712
- readonly build_hair_gravity_curves: (a: number, b: number) => [number, number, number, number];
713
- readonly build_hair_idle_curves: (a: number, b: number, c: number) => [number, number, number, number];
714
- readonly build_hair_impulse_curves: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
715
- readonly compile_clip: (a: number, b: number) => [number, number, number, number];
716
- readonly compile_clip_curves: (a: number, b: number) => [number, number, number, number];
717
- readonly compose_template_skeleton_fit_transform: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
718
- readonly extract_model_data_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
719
- readonly get_preset_json: (a: number, b: number) => [number, number, number, number];
720
- readonly has_preset: (a: number, b: number) => number;
721
- readonly list_presets: () => [number, number];
722
- readonly merge_embedded_preset: (a: number, b: number, c: number, d: number) => [number, number, number, number];
723
- readonly merge_preset_profile: (a: number, b: number, c: number, d: number) => [number, number, number, number];
724
- readonly resolve_embedded_profile_view: (a: number, b: number, c: number, d: number) => [number, number, number, number];
725
- readonly resolve_profile_view: (a: number, b: number) => [number, number, number, number];
726
- readonly solve_axis_quaternion: (a: number, b: number, c: number, d: number) => [number, number];
727
- readonly solve_bilateral_values: (a: number, b: number) => [number, number];
728
- readonly solve_morph_batch: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
729
- readonly template_skeleton_fit_transform_stride: () => number;
730
- readonly validate_generated_template_fit_metadata: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
731
- readonly validate_humanoid_characterization: (a: number, b: number, c: number, d: number) => [number, number, number, number];
732
- readonly validate_profile_model: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
733
- readonly __wbg_hairphysicssolver_free: (a: number, b: number) => void;
734
- readonly __wbg_nativeplaybacksession_free: (a: number, b: number) => void;
735
- readonly default_hair_physics_config_values: () => [number, number];
736
- readonly hair_config_stride: () => number;
737
- readonly hair_head_state_stride: () => number;
738
- readonly hair_morph_output_stride: () => number;
739
- readonly hair_state_stride: () => number;
740
- readonly hairphysicssolver_get_config: (a: number) => [number, number];
741
- readonly hairphysicssolver_get_state: (a: number) => [number, number];
742
- readonly hairphysicssolver_new: (a: number, b: number) => number;
743
- readonly hairphysicssolver_reset: (a: number) => void;
744
- readonly hairphysicssolver_set_config: (a: number, b: number, c: number) => void;
745
- readonly hairphysicssolver_update: (a: number, b: number, c: number, d: number) => [number, number];
746
- readonly nativeplaybacksession_control: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
747
- readonly nativeplaybacksession_dispose: (a: number) => [number, number, number, number];
748
- readonly nativeplaybacksession_new: () => [number, number, number];
749
- readonly nativeplaybacksession_notify: (a: number, b: number, c: number) => [number, number, number, number];
750
- readonly nativeplaybacksession_play: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
751
- readonly nativeplaybacksession_rebind: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
752
- readonly nativeplaybacksession_replace_clip: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
841
+ readonly analyze_mesh_proportions: (a: number, b: number, c: number) => [number, number];
842
+ readonly compose_template_fit_adjustment: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
843
+ readonly default_hair_color_appearance_json: () => [number, number, number, number];
844
+ readonly hair_color_presets_json: () => [number, number, number, number];
845
+ readonly marker_endpoint_stride: () => number;
846
+ readonly marker_visibility_animation_factors: (a: number, b: number) => [number, number];
847
+ readonly mesh_proportions_stride: () => number;
848
+ readonly normalize_hair_color_appearance_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
849
+ readonly passes_marker_camera_angle_gate: (a: number, b: number, c: number) => number;
850
+ readonly resolve_viewport_constrained_line_scale: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
851
+ readonly resolve_viewport_safe_bounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
852
+ readonly sample_marker_arc_curve: (a: number, b: number, c: number, d: number, e: number) => [number, number];
853
+ readonly sample_marker_bezier_curve: (a: number, b: number, c: number, d: number, e: number) => [number, number];
854
+ readonly separate_overlapping_marker_endpoints: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
855
+ readonly should_show_marker: (a: number, b: number, c: number, d: number) => number;
856
+ readonly solve_template_skeleton_fit: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
857
+ readonly template_skeleton_fit_solution_stride: () => number;
858
+ readonly marker_visibility_factors_stride: () => number;
753
859
  readonly __wbindgen_externrefs: WebAssembly.Table;
754
860
  readonly __wbindgen_malloc: (a: number, b: number) => number;
755
861
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;