@miris-inc/core 0.0.8-e627096 → 0.0.8-e68f11f

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
@@ -9,7 +9,9 @@ declare interface AttributeInfo extends EmbindObject {
9
9
  readonly elementCount: number;
10
10
  readonly dataSizeBytes: number;
11
11
  readonly clientSideId: bigint;
12
- readonly minValue: { x: number; y: number; z: number };
12
+ // An embind CompressionType value, compared by identity against MainModule.CompressionType
13
+ readonly compressionType: unknown;
14
+ readonly minValue: { x: number; y: number; z: number; w: number };
13
15
  readonly maxValue: { x: number; y: number; z: number };
14
16
  }
15
17
 
@@ -32,7 +34,12 @@ export declare class AttributeNames {
32
34
  static readonly OCTANT_OFFSETS: string;
33
35
  static readonly SURFEL_OCTANT_OFFSETS: string;
34
36
  static readonly SURFEL_COUNT: string;
37
+ static readonly SURFEL_OWNER_GROUPS: string;
38
+ static readonly OCTANT_CELL: string;
35
39
  static readonly REFLECTANCE_DATA_V1: string;
40
+ static readonly REFLECTANCE_DATA_V2: string;
41
+ static readonly GLASS_MESH_GEOMETRY: string;
42
+ static readonly GLASS_MESH_PANELS: string;
36
43
  static readonly MOD_DEPTH: string;
37
44
  }
38
45
 
@@ -194,6 +201,10 @@ declare class Engine {
194
201
  get module(): MainModule;
195
202
  constructor(moduleOptions?: Record<string, unknown>);
196
203
  get AttributeInfo(): new () => AttributeInfo;
204
+ get CompressionType(): {
205
+ SHARK_ELLIPSOID_COMPRESSED: unknown;
206
+ SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
207
+ };
197
208
  get Handedness(): {
198
209
  Right: number;
199
210
  Left: number;
@@ -380,10 +391,13 @@ export declare class Lod {
380
391
  get _hasOctantOffsets(): boolean;
381
392
  get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
382
393
  get _surfelCount(): number;
394
+ get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
395
+ get _octantCell(): Uint32Array<ArrayBuffer> | null;
383
396
  _readOctantOffsets(engine: Engine): void;
384
397
  hasAttribute(attributeName: string): boolean;
385
398
  getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
386
399
  _getRawByteAttribute(engine: Engine, attributeName: string): Uint8Array<ArrayBuffer> | null;
400
+ _getRawByteAttributeWithBounds(engine: Engine, attributeName: string): RawByteAttributeWithBounds | null;
387
401
  dispose(): void;
388
402
  constructor({ id, modelRoot, lodStore, client }: LodInit);
389
403
  }
@@ -408,6 +422,10 @@ export declare class LodStore {
408
422
 
409
423
  declare interface MainModule {
410
424
  AttributeInfo: new () => AttributeInfo;
425
+ CompressionType: {
426
+ SHARK_ELLIPSOID_COMPRESSED: unknown;
427
+ SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
428
+ };
411
429
  Handedness: { Right: number; Left: number };
412
430
  HEAPF32: Float32Array<ArrayBuffer>;
413
431
  HEAPU8: Uint8Array<ArrayBuffer>;
@@ -498,6 +516,7 @@ export declare class Miris {
498
516
  static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
499
517
  /* Excluded from this release type: _isMobileDevice */
500
518
  /* Excluded from this release type: _sharkSplatCapacity */
519
+ /* Excluded from this release type: _limitSharkSplatCapacity */
501
520
  /* Excluded from this release type: _sharkSplatBudgetCap */
502
521
  /* Excluded from this release type: _setTargetFrameRate */
503
522
  /* Excluded from this release type: _setXRModeActive */
@@ -534,6 +553,28 @@ export declare type ModelRootInit = {
534
553
  stream: Stream;
535
554
  };
536
555
 
556
+ /**
557
+ * The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
558
+ * contract, returning bytes rather than words.
559
+ *
560
+ * Use this rather than that one wherever the stride is not a whole number of words: the
561
+ * reflectance records' 18- and 26-byte strides are not, and an odd record count would lose that
562
+ * record's last field to dataPtrView's truncation.
563
+ */
564
+ export declare type RawByteAttributeWithBounds = {
565
+ bytes: Uint8Array<ArrayBuffer>;
566
+ minValue: {
567
+ x: number;
568
+ y: number;
569
+ z: number;
570
+ };
571
+ maxValue: {
572
+ x: number;
573
+ y: number;
574
+ z: number;
575
+ };
576
+ };
577
+
537
578
  declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
538
579
 
539
580
  declare interface RuntimeSettings extends EmbindObject {