@miris-inc/core 0.0.8-3a309d8 → 0.0.8-3a8fc9d

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/AquaApi.wasm CHANGED
Binary file
Binary file
package/dist/core.d.ts CHANGED
@@ -34,7 +34,10 @@ export declare class AttributeNames {
34
34
  static readonly OCTANT_OFFSETS: string;
35
35
  static readonly SURFEL_OCTANT_OFFSETS: string;
36
36
  static readonly SURFEL_COUNT: string;
37
+ static readonly SURFEL_OWNER_GROUPS: string;
38
+ static readonly OCTANT_CELL: string;
37
39
  static readonly REFLECTANCE_DATA_V1: string;
40
+ static readonly REFLECTANCE_DATA_V2: string;
38
41
  static readonly GLASS_MESH_GEOMETRY: string;
39
42
  static readonly GLASS_MESH_PANELS: string;
40
43
  static readonly MOD_DEPTH: string;
@@ -110,7 +113,9 @@ declare class Client {
110
113
  getSceneMetadata(...args: ClientMethodParameters["getSceneMetadata"]): number;
111
114
  getSceneObjectParent(...args: ClientMethodParameters["getSceneObjectParent"]): number;
112
115
  getSceneObjectType(...args: ClientMethodParameters["getSceneObjectType"]): SceneObjectType;
116
+ getStreamStatus(...args: ClientMethodParameters["getStreamStatus"]): StreamStatus;
113
117
  getDrawnOctantMask(...args: ClientMethodParameters["getDrawnOctantMask"]): number;
118
+ getOctantLocalBoundingBoxes(...args: ClientMethodParameters["getOctantLocalBoundingBoxes"]): number[];
114
119
  getLocalTransform(...args: ClientMethodParameters["getLocalTransform"]): AquaStatus;
115
120
  getWorldTransform(...args: ClientMethodParameters["getWorldTransform"]): AquaStatus;
116
121
  hasAttribute(...args: ClientMethodParameters["hasAttribute"]): boolean;
@@ -193,6 +198,13 @@ declare class Engine {
193
198
  readonly Loaded: 2;
194
199
  readonly Failed: 3;
195
200
  };
201
+ static StreamStatus: {
202
+ readonly Unknown: 0;
203
+ readonly Resolving: 1;
204
+ readonly Loading: 2;
205
+ readonly Ready: 3;
206
+ readonly Failed: 4;
207
+ };
196
208
  readonly ready: Promise<this>;
197
209
  readonly pending: boolean;
198
210
  get module(): MainModule;
@@ -201,6 +213,7 @@ declare class Engine {
201
213
  get CompressionType(): {
202
214
  SHARK_ELLIPSOID_COMPRESSED: unknown;
203
215
  SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
216
+ SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
204
217
  };
205
218
  get Handedness(): {
206
219
  Right: number;
@@ -239,6 +252,7 @@ declare class Engine {
239
252
  deactivatedObjectIdsView(...args: [sceneChangeIds: SceneChangeIds]): Uint32Array;
240
253
  remaskedObjectIdsView(...args: [sceneChangeIds: SceneChangeIds]): Uint32Array;
241
254
  getDrawnOctantMask(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
255
+ getOctantLocalBoundingBoxes(...args: [handle: AquaClientHandle, sceneObjectId: number]): number[];
242
256
  destroyClient(...args: [handle: AquaClientHandle]): AquaStatus;
243
257
  free(...args: [size: number]): number;
244
258
  getAssetsAsync(...args: [handle: AquaClientHandle, tags: StringVector]): AssetInfo[];
@@ -257,6 +271,7 @@ declare class Engine {
257
271
  getSceneChangesCounts(...args: [handle: AquaClientHandle, sceneChangeIds: SceneChangeIds]): void;
258
272
  getSceneMetadata(...args: [handle: AquaClientHandle, metadata: SceneMetadata]): number;
259
273
  getSceneObjectParent(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
274
+ getStreamStatus(...args: [handle: AquaClientHandle, streamObjectId: number]): StreamStatus;
260
275
  getSceneObjectType(...args: [handle: AquaClientHandle, sceneObjectId: number]): SceneObjectType;
261
276
  getLocalTransform(...args: [
262
277
  handle: AquaClientHandle,
@@ -354,6 +369,12 @@ declare type EngineMethodParameters<E extends Engine = Engine> = {
354
369
  [Key in keyof E]: E[Key] extends (...args: any[]) => any ? Parameters<E[Key]> : never;
355
370
  };
356
371
 
372
+ export declare const HaveData = 2;
373
+
374
+ export declare const HaveMetadata = 1;
375
+
376
+ export declare const HaveNothing = 0;
377
+
357
378
  export declare class Lod {
358
379
  #private;
359
380
  readonly id: LodInit["id"];
@@ -384,10 +405,14 @@ export declare class Lod {
384
405
  get transform(): Float32Array<ArrayBuffer> | null;
385
406
  get _drawnOctantMask(): number;
386
407
  set _drawnOctantMask(mask: number);
408
+ get _octantLocalBounds(): Float32Array<ArrayBuffer> | null;
409
+ set _octantLocalBounds(bounds: Float32Array<ArrayBuffer> | null);
387
410
  get _octantOffsets(): Uint32Array<ArrayBuffer> | null;
388
411
  get _hasOctantOffsets(): boolean;
389
412
  get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
390
413
  get _surfelCount(): number;
414
+ get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
415
+ get _octantCell(): Uint32Array<ArrayBuffer> | null;
391
416
  _readOctantOffsets(engine: Engine): void;
392
417
  hasAttribute(attributeName: string): boolean;
393
418
  getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
@@ -420,6 +445,7 @@ declare interface MainModule {
420
445
  CompressionType: {
421
446
  SHARK_ELLIPSOID_COMPRESSED: unknown;
422
447
  SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
448
+ SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
423
449
  };
424
450
  Handedness: { Right: number; Left: number };
425
451
  HEAPF32: Float32Array<ArrayBuffer>;
@@ -449,6 +475,7 @@ declare interface MainModule {
449
475
  remaskedObjectIdsView(sceneChangeIds: SceneChangeIds): Uint32Array;
450
476
  deletedObjectIdsView(sceneChangeIds: SceneChangeIds): Uint32Array;
451
477
  GetDrawnOctantMask(handle: number, sceneObjectId: number): number;
478
+ GetOctantLocalBoundingBoxes(handle: number, sceneObjectId: number): number[];
452
479
  GetAssetsAsync(handle: number, tags: StringVector): unknown[];
453
480
  GetSceneChanges(handle: number, sceneChangeIds: SceneChangeIds): void;
454
481
  GetSceneChangesCounts(handle: number, sceneChangeIds: SceneChangeIds): void;
@@ -506,11 +533,12 @@ export declare class Miris {
506
533
  static readonly _XR_TARGET_FRAME_RATE = 43;
507
534
  /* Excluded from this release type: _XR_SPLAT_COUNT_BUDGET */
508
535
  /* Excluded from this release type: _SHARK_SPLAT_CAPACITY_MOBILE */
509
- static readonly _SHARK_SPLAT_CAPACITY_DESKTOP = 3000000;
536
+ static readonly _SHARK_SPLAT_CAPACITY_DESKTOP: number;
510
537
  /* Excluded from this release type: _SHARK_SPLAT_BUDGET_CAP_MOBILE */
511
- static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
538
+ static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2400000;
512
539
  /* Excluded from this release type: _isMobileDevice */
513
540
  /* Excluded from this release type: _sharkSplatCapacity */
541
+ /* Excluded from this release type: _limitSharkSplatCapacity */
514
542
  /* Excluded from this release type: _sharkSplatBudgetCap */
515
543
  /* Excluded from this release type: _setTargetFrameRate */
516
544
  /* Excluded from this release type: _setXRModeActive */
@@ -551,9 +579,9 @@ export declare type ModelRootInit = {
551
579
  * The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
552
580
  * contract, returning bytes rather than words.
553
581
  *
554
- * Use this rather than that one wherever the stride is not a whole number of words:
555
- * reflectanceDataV1's 26-byte record is not, and an odd record count would lose that record's
556
- * last field to dataPtrView's truncation.
582
+ * Use this rather than that one wherever the stride is not a whole number of words: the
583
+ * reflectance records' 18- and 26-byte strides are not, and an odd record count would lose that
584
+ * record's last field to dataPtrView's truncation.
557
585
  */
558
586
  export declare type RawByteAttributeWithBounds = {
559
587
  bytes: Uint8Array<ArrayBuffer>;
@@ -569,6 +597,9 @@ export declare type RawByteAttributeWithBounds = {
569
597
  };
570
598
  };
571
599
 
600
+ declare type ReadyState_2 = typeof HaveNothing | typeof HaveMetadata | typeof HaveData;
601
+ export { ReadyState_2 as ReadyState }
602
+
572
603
  declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
573
604
 
574
605
  declare interface RuntimeSettings extends EmbindObject {
@@ -627,6 +658,7 @@ export declare class Scene extends EventTarget {
627
658
  /* Excluded from this release type: _getDrMap */
628
659
  /* Excluded from this release type: _onDrMapLadder */
629
660
  /* Excluded from this release type: _onFeatureData */
661
+ /* Excluded from this release type: _updateStreamStatuses */
630
662
  /* Excluded from this release type: _onSceneLoaded */
631
663
  delete(stream: Stream): void;
632
664
  close(): void;
@@ -718,6 +750,9 @@ export declare class Stream extends EventTarget {
718
750
  /* Excluded from this release type: _onStreamLoaded */
719
751
  getDefaultCameraTransform(): Float32Array<ArrayBuffer> | null | undefined;
720
752
  /* Excluded from this release type: _getViewingVolumeObb */
753
+ /** How much of the stream has loaded, as of the last frame. */
754
+ get readyState(): ReadyState_2;
755
+ /* Excluded from this release type: _updateStatus */
721
756
  /* Excluded from this release type: _onRootLoaded */
722
757
  add(modelRoot: ModelRoot): void;
723
758
  end(): void;