@lovelace_lol/embody 0.0.13 → 0.0.15

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 (41) hide show
  1. package/README.md +123 -23
  2. package/dist/index.js +1644 -5876
  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 +4 -0
  24. package/dist/three/authoringTypes.d.ts +7 -0
  25. package/dist/three/characterHost.d.ts +5 -5
  26. package/dist/three/editor/morphVertexPreview.d.ts +3 -2
  27. package/dist/three.js +1644 -5876
  28. package/dist/three.js.map +1 -1
  29. package/dist/wasm/README.md +123 -23
  30. package/dist/wasm/embody_wasm.d.ts +183 -77
  31. package/dist/wasm/embody_wasm.js +455 -2
  32. package/dist/wasm/embody_wasm_bg.wasm +0 -0
  33. package/dist/wasm/embody_wasm_bg.wasm.d.ts +108 -75
  34. package/dist/wasm/index.d.ts +1 -1
  35. package/dist/wasm.js.map +1 -1
  36. package/package.json +2 -2
  37. package/dist/three/annotations/DPthree3DMarkers.d.ts +0 -320
  38. package/dist/three/annotations/DPthreeCameraController.d.ts +0 -415
  39. package/dist/three/annotations/DPthreeHTMLMarkers.d.ts +0 -131
  40. package/dist/three/annotations/DPthreeMarkers.d.ts +0 -52
  41. package/dist/three/annotations/animationFrameTaskScheduler.d.ts +0 -18
@@ -1,9 +1,345 @@
1
1
  /* @ts-self-types="./embody_wasm.d.ts" */
2
2
 
3
+ /**
4
+ * Browser timers only wake this state machine. Rust owns deadlines, expiry,
5
+ * manual overrides, repeated preview starts, and one-shot end notifications.
6
+ */
7
+ export class AnnotationLifecycle {
8
+ __destroy_into_raw() {
9
+ const ptr = this.__wbg_ptr;
10
+ this.__wbg_ptr = 0;
11
+ AnnotationLifecycleFinalization.unregister(this);
12
+ return ptr;
13
+ }
14
+ free() {
15
+ const ptr = this.__destroy_into_raw();
16
+ wasm.__wbg_annotationlifecycle_free(ptr, 0);
17
+ }
18
+ /**
19
+ * @param {string} operation
20
+ * @param {string} options_json
21
+ * @param {number} now_ms
22
+ * @returns {string}
23
+ */
24
+ command(operation, options_json, now_ms) {
25
+ let deferred4_0;
26
+ let deferred4_1;
27
+ try {
28
+ const ptr0 = passStringToWasm0(operation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
29
+ const len0 = WASM_VECTOR_LEN;
30
+ const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
31
+ const len1 = WASM_VECTOR_LEN;
32
+ const ret = wasm.annotationlifecycle_command(this.__wbg_ptr, ptr0, len0, ptr1, len1, now_ms);
33
+ var ptr3 = ret[0];
34
+ var len3 = ret[1];
35
+ if (ret[3]) {
36
+ ptr3 = 0; len3 = 0;
37
+ throw takeFromExternrefTable0(ret[2]);
38
+ }
39
+ deferred4_0 = ptr3;
40
+ deferred4_1 = len3;
41
+ return getStringFromWasm0(ptr3, len3);
42
+ } finally {
43
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
44
+ }
45
+ }
46
+ /**
47
+ * @returns {number | undefined}
48
+ */
49
+ deadline() {
50
+ const ret = wasm.annotationlifecycle_deadline(this.__wbg_ptr);
51
+ return ret[0] === 0 ? undefined : ret[1];
52
+ }
53
+ /**
54
+ * @returns {boolean}
55
+ */
56
+ is_active() {
57
+ const ret = wasm.annotationlifecycle_is_active(this.__wbg_ptr);
58
+ return ret !== 0;
59
+ }
60
+ /**
61
+ * @param {string} mode
62
+ * @param {number} default_duration_ms
63
+ */
64
+ constructor(mode, default_duration_ms) {
65
+ const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
66
+ const len0 = WASM_VECTOR_LEN;
67
+ const ret = wasm.annotationlifecycle_new(ptr0, len0, default_duration_ms);
68
+ this.__wbg_ptr = ret;
69
+ AnnotationLifecycleFinalization.register(this, this.__wbg_ptr, this);
70
+ return this;
71
+ }
72
+ }
73
+ if (Symbol.dispose) AnnotationLifecycle.prototype[Symbol.dispose] = AnnotationLifecycle.prototype.free;
74
+
75
+ export class AnnotationRuntime {
76
+ __destroy_into_raw() {
77
+ const ptr = this.__wbg_ptr;
78
+ this.__wbg_ptr = 0;
79
+ AnnotationRuntimeFinalization.unregister(this);
80
+ return ptr;
81
+ }
82
+ free() {
83
+ const ptr = this.__destroy_into_raw();
84
+ wasm.__wbg_annotationruntime_free(ptr, 0);
85
+ }
86
+ /**
87
+ * The only camera integrator: pose observation(6), fov/aspect/viewport(4).
88
+ * Returns pose(6), active request id, completed request id, needs frame.
89
+ * @param {number} now_ms
90
+ * @param {Float32Array} observation
91
+ * @returns {Float32Array}
92
+ */
93
+ camera_frame(now_ms, observation) {
94
+ const ptr0 = passArrayF32ToWasm0(observation, wasm.__wbindgen_malloc);
95
+ const len0 = WASM_VECTOR_LEN;
96
+ const ret = wasm.annotationruntime_camera_frame(this.__wbg_ptr, now_ms, ptr0, len0);
97
+ var v2 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
98
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
99
+ return v2;
100
+ }
101
+ /**
102
+ * @param {string} operation
103
+ * @param {string} payload_json
104
+ * @param {number} now_ms
105
+ * @returns {string}
106
+ */
107
+ command(operation, payload_json, now_ms) {
108
+ let deferred4_0;
109
+ let deferred4_1;
110
+ try {
111
+ const ptr0 = passStringToWasm0(operation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
112
+ const len0 = WASM_VECTOR_LEN;
113
+ const ptr1 = passStringToWasm0(payload_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
114
+ const len1 = WASM_VECTOR_LEN;
115
+ const ret = wasm.annotationruntime_command(this.__wbg_ptr, ptr0, len0, ptr1, len1, now_ms);
116
+ var ptr3 = ret[0];
117
+ var len3 = ret[1];
118
+ if (ret[3]) {
119
+ ptr3 = 0; len3 = 0;
120
+ throw takeFromExternrefTable0(ret[2]);
121
+ }
122
+ deferred4_0 = ptr3;
123
+ deferred4_1 = len3;
124
+ return getStringFromWasm0(ptr3, len3);
125
+ } finally {
126
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
127
+ }
128
+ }
129
+ /**
130
+ * @returns {number}
131
+ */
132
+ completed_camera_request() {
133
+ const ret = wasm.annotationruntime_completed_camera_request(this.__wbg_ptr);
134
+ return ret >>> 0;
135
+ }
136
+ dispose() {
137
+ wasm.annotationruntime_dispose(this.__wbg_ptr);
138
+ }
139
+ /**
140
+ * @param {number} generation
141
+ */
142
+ finish_markers(generation) {
143
+ wasm.annotationruntime_finish_markers(this.__wbg_ptr, generation);
144
+ }
145
+ /**
146
+ * @returns {number}
147
+ */
148
+ generation() {
149
+ const ret = wasm.annotationruntime_generation(this.__wbg_ptr);
150
+ return ret >>> 0;
151
+ }
152
+ /**
153
+ * @param {number} generation
154
+ * @returns {boolean}
155
+ */
156
+ is_current(generation) {
157
+ const ret = wasm.annotationruntime_is_current(this.__wbg_ptr, generation);
158
+ return ret !== 0;
159
+ }
160
+ /**
161
+ * @param {number} id
162
+ * @param {number} width
163
+ * @param {number} height
164
+ */
165
+ label_metrics(id, width, height) {
166
+ wasm.annotationruntime_label_metrics(this.__wbg_ptr, id, width, height);
167
+ }
168
+ /**
169
+ * @param {number} now_ms
170
+ * @param {Float32Array} projection
171
+ * @param {Float32Array} view_projection
172
+ * @param {number} width
173
+ * @param {number} height
174
+ * @returns {Float32Array}
175
+ */
176
+ marker_frame(now_ms, projection, view_projection, width, height) {
177
+ const ptr0 = passArrayF32ToWasm0(projection, wasm.__wbindgen_malloc);
178
+ const len0 = WASM_VECTOR_LEN;
179
+ const ptr1 = passArrayF32ToWasm0(view_projection, wasm.__wbindgen_malloc);
180
+ const len1 = WASM_VECTOR_LEN;
181
+ const ret = wasm.annotationruntime_marker_frame(this.__wbg_ptr, now_ms, ptr0, len0, ptr1, len1, width, height);
182
+ var v3 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
183
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
184
+ return v3;
185
+ }
186
+ /**
187
+ * @returns {boolean}
188
+ */
189
+ needs_frame() {
190
+ const ret = wasm.annotationruntime_needs_frame(this.__wbg_ptr);
191
+ return ret !== 0;
192
+ }
193
+ /**
194
+ * @param {string} settings_json
195
+ */
196
+ constructor(settings_json) {
197
+ const ptr0 = passStringToWasm0(settings_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
198
+ const len0 = WASM_VECTOR_LEN;
199
+ const ret = wasm.annotationruntime_new(ptr0, len0);
200
+ if (ret[2]) {
201
+ throw takeFromExternrefTable0(ret[1]);
202
+ }
203
+ this.__wbg_ptr = ret[0];
204
+ AnnotationRuntimeFinalization.register(this, this.__wbg_ptr, this);
205
+ return this;
206
+ }
207
+ /**
208
+ * @param {string} model_json
209
+ */
210
+ observe_model(model_json) {
211
+ const ptr0 = passStringToWasm0(model_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
212
+ const len0 = WASM_VECTOR_LEN;
213
+ const ret = wasm.annotationruntime_observe_model(this.__wbg_ptr, ptr0, len0);
214
+ if (ret[1]) {
215
+ throw takeFromExternrefTable0(ret[0]);
216
+ }
217
+ }
218
+ /**
219
+ * Native hit observations are [marker id, nearest distance], with infinity for no hit.
220
+ * @param {Float32Array} hits
221
+ */
222
+ observe_occlusion(hits) {
223
+ const ptr0 = passArrayF32ToWasm0(hits, wasm.__wbindgen_malloc);
224
+ const len0 = WASM_VECTOR_LEN;
225
+ wasm.annotationruntime_observe_occlusion(this.__wbg_ptr, ptr0, len0);
226
+ }
227
+ /**
228
+ * Packed observation records are [object id, column-major matrixWorld(16)].
229
+ * @param {Float32Array} transforms
230
+ */
231
+ observe_transforms(transforms) {
232
+ const ptr0 = passArrayF32ToWasm0(transforms, wasm.__wbindgen_malloc);
233
+ const len0 = WASM_VECTOR_LEN;
234
+ wasm.annotationruntime_observe_transforms(this.__wbg_ptr, ptr0, len0);
235
+ }
236
+ /**
237
+ * HTML occlusion rays: [id, origin(3), direction(3), maximum distance].
238
+ * Three reports the nearest native hit; Rust owns its visibility meaning.
239
+ * @returns {Float32Array}
240
+ */
241
+ occlusion_queries() {
242
+ const ret = wasm.annotationruntime_occlusion_queries(this.__wbg_ptr);
243
+ var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
244
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
245
+ return v1;
246
+ }
247
+ /**
248
+ * Plans contain native ray queries, never native handles. Every result is
249
+ * tied to this generation; a stale query cannot resurrect cleared markers.
250
+ * @param {string} morph_anchors_json
251
+ * @returns {string}
252
+ */
253
+ plan_markers(morph_anchors_json) {
254
+ let deferred3_0;
255
+ let deferred3_1;
256
+ try {
257
+ const ptr0 = passStringToWasm0(morph_anchors_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
258
+ const len0 = WASM_VECTOR_LEN;
259
+ const ret = wasm.annotationruntime_plan_markers(this.__wbg_ptr, ptr0, len0);
260
+ var ptr2 = ret[0];
261
+ var len2 = ret[1];
262
+ if (ret[3]) {
263
+ ptr2 = 0; len2 = 0;
264
+ throw takeFromExternrefTable0(ret[2]);
265
+ }
266
+ deferred3_0 = ptr2;
267
+ deferred3_1 = len2;
268
+ return getStringFromWasm0(ptr2, len2);
269
+ } finally {
270
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
271
+ }
272
+ }
273
+ /**
274
+ * @returns {number}
275
+ */
276
+ revision() {
277
+ const ret = wasm.annotationruntime_revision(this.__wbg_ptr);
278
+ return ret >>> 0;
279
+ }
280
+ /**
281
+ * @param {string} model_json
282
+ */
283
+ set_model(model_json) {
284
+ const ptr0 = passStringToWasm0(model_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
285
+ const len0 = WASM_VECTOR_LEN;
286
+ const ret = wasm.annotationruntime_set_model(this.__wbg_ptr, ptr0, len0);
287
+ if (ret[1]) {
288
+ throw takeFromExternrefTable0(ret[0]);
289
+ }
290
+ }
291
+ /**
292
+ * @returns {string}
293
+ */
294
+ snapshot() {
295
+ let deferred1_0;
296
+ let deferred1_1;
297
+ try {
298
+ const ret = wasm.annotationruntime_snapshot(this.__wbg_ptr);
299
+ deferred1_0 = ret[0];
300
+ deferred1_1 = ret[1];
301
+ return getStringFromWasm0(ret[0], ret[1]);
302
+ } finally {
303
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
304
+ }
305
+ }
306
+ /**
307
+ * @param {number} generation
308
+ * @param {number} id
309
+ * @param {number} phase
310
+ * @param {Float32Array} hits
311
+ * @returns {string}
312
+ */
313
+ surface_result(generation, id, phase, hits) {
314
+ let deferred2_0;
315
+ let deferred2_1;
316
+ try {
317
+ const ptr0 = passArrayF32ToWasm0(hits, wasm.__wbindgen_malloc);
318
+ const len0 = WASM_VECTOR_LEN;
319
+ const ret = wasm.annotationruntime_surface_result(this.__wbg_ptr, generation, id, phase, ptr0, len0);
320
+ deferred2_0 = ret[0];
321
+ deferred2_1 = ret[1];
322
+ return getStringFromWasm0(ret[0], ret[1]);
323
+ } finally {
324
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
325
+ }
326
+ }
327
+ /**
328
+ * @returns {Uint32Array}
329
+ */
330
+ tracked_objects() {
331
+ const ret = wasm.annotationruntime_tracked_objects(this.__wbg_ptr);
332
+ var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
333
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
334
+ return v1;
335
+ }
336
+ }
337
+ if (Symbol.dispose) AnnotationRuntime.prototype[Symbol.dispose] = AnnotationRuntime.prototype.free;
338
+
3
339
  /**
4
340
  * Spherical camera flight between two camera poses.
5
341
  *
6
- * Mirrors the DPthree camera transition: orbital interpolation with a
342
+ * Mirrors the ThreeAnnotations camera transition: orbital interpolation with a
7
343
  * pullback arc so large rotations do not pass through the model.
8
344
  * `sample(elapsed_ms)` returns
9
345
  * `[posX, posY, posZ, targetX, targetY, targetZ, done]`.
@@ -1259,6 +1595,27 @@ export function analyze_model_descriptor(model_json, clips_json, profile_json, o
1259
1595
  }
1260
1596
  }
1261
1597
 
1598
+ /**
1599
+ * Select vertices influenced by any requested skeleton index. The adapter
1600
+ * evaluates these indices through the native skinned vertex API.
1601
+ * @param {Float32Array} indices
1602
+ * @param {Float32Array} weights
1603
+ * @param {Uint32Array} bones
1604
+ * @returns {Uint32Array}
1605
+ */
1606
+ export function annotation_bone_vertices(indices, weights, bones) {
1607
+ const ptr0 = passArrayF32ToWasm0(indices, wasm.__wbindgen_malloc);
1608
+ const len0 = WASM_VECTOR_LEN;
1609
+ const ptr1 = passArrayF32ToWasm0(weights, wasm.__wbindgen_malloc);
1610
+ const len1 = WASM_VECTOR_LEN;
1611
+ const ptr2 = passArray32ToWasm0(bones, wasm.__wbindgen_malloc);
1612
+ const len2 = WASM_VECTOR_LEN;
1613
+ const ret = wasm.annotation_bone_vertices(ptr0, len0, ptr1, len1, ptr2, len2);
1614
+ var v4 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
1615
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1616
+ return v4;
1617
+ }
1618
+
1262
1619
  /**
1263
1620
  * @returns {number}
1264
1621
  */
@@ -1267,6 +1624,91 @@ export function annotation_camera_framing_stride() {
1267
1624
  return ret >>> 0;
1268
1625
  }
1269
1626
 
1627
+ /**
1628
+ * @returns {number}
1629
+ */
1630
+ export function annotation_marker_frame_stride() {
1631
+ const ret = wasm.annotation_marker_frame_stride();
1632
+ return ret >>> 0;
1633
+ }
1634
+
1635
+ /**
1636
+ * @param {Float32Array} base
1637
+ * @param {Float32Array} morphs
1638
+ * @param {boolean} relative
1639
+ * @returns {Float32Array}
1640
+ */
1641
+ export function annotation_morph_candidates(base, morphs, relative) {
1642
+ const ptr0 = passArrayF32ToWasm0(base, wasm.__wbindgen_malloc);
1643
+ const len0 = WASM_VECTOR_LEN;
1644
+ const ptr1 = passArrayF32ToWasm0(morphs, wasm.__wbindgen_malloc);
1645
+ const len1 = WASM_VECTOR_LEN;
1646
+ const ret = wasm.annotation_morph_candidates(ptr0, len0, ptr1, len1, relative);
1647
+ var v3 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
1648
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1649
+ return v3;
1650
+ }
1651
+
1652
+ /**
1653
+ * @param {string} region_json
1654
+ * @param {Float32Array} candidates
1655
+ * @returns {Float32Array}
1656
+ */
1657
+ export function annotation_morph_center(region_json, candidates) {
1658
+ const ptr0 = passStringToWasm0(region_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1659
+ const len0 = WASM_VECTOR_LEN;
1660
+ const ptr1 = passArrayF32ToWasm0(candidates, wasm.__wbindgen_malloc);
1661
+ const len1 = WASM_VECTOR_LEN;
1662
+ const ret = wasm.annotation_morph_center(ptr0, len0, ptr1, len1);
1663
+ if (ret[3]) {
1664
+ throw takeFromExternrefTable0(ret[2]);
1665
+ }
1666
+ var v3 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
1667
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1668
+ return v3;
1669
+ }
1670
+
1671
+ /**
1672
+ * @param {Float32Array} points
1673
+ * @returns {Float32Array}
1674
+ */
1675
+ export function annotation_point_bounds(points) {
1676
+ const ptr0 = passArrayF32ToWasm0(points, wasm.__wbindgen_malloc);
1677
+ const len0 = WASM_VECTOR_LEN;
1678
+ const ret = wasm.annotation_point_bounds(ptr0, len0);
1679
+ var v2 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
1680
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1681
+ return v2;
1682
+ }
1683
+
1684
+ /**
1685
+ * @param {string} operation
1686
+ * @param {string} payload_json
1687
+ * @returns {string}
1688
+ */
1689
+ export function annotation_query(operation, payload_json) {
1690
+ let deferred4_0;
1691
+ let deferred4_1;
1692
+ try {
1693
+ const ptr0 = passStringToWasm0(operation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1694
+ const len0 = WASM_VECTOR_LEN;
1695
+ const ptr1 = passStringToWasm0(payload_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1696
+ const len1 = WASM_VECTOR_LEN;
1697
+ const ret = wasm.annotation_query(ptr0, len0, ptr1, len1);
1698
+ var ptr3 = ret[0];
1699
+ var len3 = ret[1];
1700
+ if (ret[3]) {
1701
+ ptr3 = 0; len3 = 0;
1702
+ throw takeFromExternrefTable0(ret[2]);
1703
+ }
1704
+ deferred4_0 = ptr3;
1705
+ deferred4_1 = len3;
1706
+ return getStringFromWasm0(ptr3, len3);
1707
+ } finally {
1708
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1709
+ }
1710
+ }
1711
+
1270
1712
  /**
1271
1713
  * Build head-pitch gravity hair morph curves.
1272
1714
  * @param {string} config_json
@@ -2164,7 +2606,7 @@ export function sample_marker_bezier_curve(start, end, segments) {
2164
2606
  *
2165
2607
  * `starts` and `ends` are packed `[x, y, z, ...]` arrays. The output includes
2166
2608
  * one endpoint for every complete start/end pair. Proximity and rotation
2167
- * constants match DPthree's marker layout, scaled to the current model height.
2609
+ * constants match ThreeAnnotations's marker layout, scaled to the current model height.
2168
2610
  * @param {Float32Array} starts
2169
2611
  * @param {Float32Array} ends
2170
2612
  * @param {Float32Array} model_center
@@ -2504,6 +2946,12 @@ function __wbg_get_imports() {
2504
2946
  };
2505
2947
  }
2506
2948
 
2949
+ const AnnotationLifecycleFinalization = (typeof FinalizationRegistry === 'undefined')
2950
+ ? { register: () => {}, unregister: () => {} }
2951
+ : new FinalizationRegistry(ptr => wasm.__wbg_annotationlifecycle_free(ptr, 1));
2952
+ const AnnotationRuntimeFinalization = (typeof FinalizationRegistry === 'undefined')
2953
+ ? { register: () => {}, unregister: () => {} }
2954
+ : new FinalizationRegistry(ptr => wasm.__wbg_annotationruntime_free(ptr, 1));
2507
2955
  const CameraFlightFinalization = (typeof FinalizationRegistry === 'undefined')
2508
2956
  ? { register: () => {}, unregister: () => {} }
2509
2957
  : new FinalizationRegistry(ptr => wasm.__wbg_cameraflight_free(ptr, 1));
@@ -2547,6 +2995,11 @@ function getArrayJsValueFromWasm0(ptr, len) {
2547
2995
  return result;
2548
2996
  }
2549
2997
 
2998
+ function getArrayU32FromWasm0(ptr, len) {
2999
+ ptr = ptr >>> 0;
3000
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
3001
+ }
3002
+
2550
3003
  let cachedDataViewMemory0 = null;
2551
3004
  function getDataViewMemory0() {
2552
3005
  if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
Binary file