@miris-inc/core 0.0.8-65fc419 → 0.0.8-664500b

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
@@ -4,11 +4,14 @@ export declare const AssetFormat: {
4
4
  };
5
5
 
6
6
  declare interface AttributeInfo extends EmbindObject {
7
- readonly dataType: number;
8
- readonly componentCount: number;
9
- readonly dataPtr: number;
10
- readonly dataByteLength: number;
7
+ // Logical elements from the drop metadata: splats for a per-splat attribute, records for a
8
+ // per-surfel one. Not necessarily dataSizeBytes / bytesPerElement.
9
+ readonly elementCount: number;
10
+ readonly dataSizeBytes: number;
11
11
  readonly clientSideId: bigint;
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 };
12
15
  readonly maxValue: { x: number; y: number; z: number };
13
16
  }
14
17
 
@@ -29,6 +32,12 @@ export declare class AttributeNames {
29
32
  static readonly SHARK_SPHERICAL_HARMONICS: string;
30
33
  static readonly COLOR: string;
31
34
  static readonly OCTANT_OFFSETS: string;
35
+ static readonly SURFEL_OCTANT_OFFSETS: string;
36
+ static readonly SURFEL_COUNT: string;
37
+ static readonly REFLECTANCE_DATA_V1: string;
38
+ static readonly GLASS_MESH_GEOMETRY: string;
39
+ static readonly GLASS_MESH_PANELS: string;
40
+ static readonly MOD_DEPTH: string;
32
41
  }
33
42
 
34
43
  declare type CachedAttribute = {
@@ -118,6 +127,7 @@ declare class Client {
118
127
  getFeatureVersion(...args: ClientMethodParameters["getFeatureVersion"]): number;
119
128
  getFeatureState(...args: ClientMethodParameters["getFeatureState"]): number;
120
129
  getAssetFormatVersion(...args: ClientMethodParameters["getAssetFormatVersion"]): number;
130
+ getDrMapLadderRoughnessLevels(...args: ClientMethodParameters["getDrMapLadderRoughnessLevels"]): number[];
121
131
  getName(...args: ClientMethodParameters["getName"]): string;
122
132
  setVariantSelection(...args: ClientMethodParameters["setVariantSelection"]): AquaStatus;
123
133
  takeAttribute(...args: ClientMethodParameters["takeAttribute"]): AquaStatus;
@@ -188,6 +198,10 @@ declare class Engine {
188
198
  get module(): MainModule;
189
199
  constructor(moduleOptions?: Record<string, unknown>);
190
200
  get AttributeInfo(): new () => AttributeInfo;
201
+ get CompressionType(): {
202
+ SHARK_ELLIPSOID_COMPRESSED: unknown;
203
+ SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
204
+ };
191
205
  get Handedness(): {
192
206
  Right: number;
193
207
  Left: number;
@@ -304,6 +318,7 @@ declare class Engine {
304
318
  hasFeature(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): boolean;
305
319
  getFeatureVersion(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): number;
306
320
  getFeatureState(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): number;
321
+ getDrMapLadderRoughnessLevels(...args: [handle: AquaClientHandle, sceneObjectId: number]): number[];
307
322
  getAssetFormatVersion(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
308
323
  getName(...args: [handle: AquaClientHandle, sceneObjectId: number]): string;
309
324
  setVariantSelection(...args: [handle: AquaClientHandle, sceneObjectId: number]): AquaStatus;
@@ -371,9 +386,13 @@ export declare class Lod {
371
386
  set _drawnOctantMask(mask: number);
372
387
  get _octantOffsets(): Uint32Array<ArrayBuffer> | null;
373
388
  get _hasOctantOffsets(): boolean;
389
+ get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
390
+ get _surfelCount(): number;
374
391
  _readOctantOffsets(engine: Engine): void;
375
392
  hasAttribute(attributeName: string): boolean;
376
393
  getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
394
+ _getRawByteAttribute(engine: Engine, attributeName: string): Uint8Array<ArrayBuffer> | null;
395
+ _getRawByteAttributeWithBounds(engine: Engine, attributeName: string): RawByteAttributeWithBounds | null;
377
396
  dispose(): void;
378
397
  constructor({ id, modelRoot, lodStore, client }: LodInit);
379
398
  }
@@ -398,6 +417,10 @@ export declare class LodStore {
398
417
 
399
418
  declare interface MainModule {
400
419
  AttributeInfo: new () => AttributeInfo;
420
+ CompressionType: {
421
+ SHARK_ELLIPSOID_COMPRESSED: unknown;
422
+ SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
423
+ };
401
424
  Handedness: { Right: number; Left: number };
402
425
  HEAPF32: Float32Array<ArrayBuffer>;
403
426
  HEAPU8: Uint8Array<ArrayBuffer>;
@@ -435,6 +458,7 @@ declare interface MainModule {
435
458
  GetFeatureVersion(handle: number, sceneObjectId: number, feature: number): number;
436
459
  GetFeatureState(handle: number, sceneObjectId: number, feature: number): number;
437
460
  GetAssetFormatVersion(handle: number, sceneObjectId: number): number;
461
+ GetDrMapLadderRoughnessLevels(handle: number, sceneObjectId: number): number[];
438
462
  SetClientSpatialFormat(handle: number, spatialFormat: SpatialFormat): { value: number };
439
463
  SetRuntimeSettings(handle: number, settings: RuntimeSettings): { value: number };
440
464
  TakeEvictedClientSideAttributeIds(handle: number): EmbindVector<bigint>;
@@ -487,6 +511,7 @@ export declare class Miris {
487
511
  static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
488
512
  /* Excluded from this release type: _isMobileDevice */
489
513
  /* Excluded from this release type: _sharkSplatCapacity */
514
+ /* Excluded from this release type: _limitSharkSplatCapacity */
490
515
  /* Excluded from this release type: _sharkSplatBudgetCap */
491
516
  /* Excluded from this release type: _setTargetFrameRate */
492
517
  /* Excluded from this release type: _setXRModeActive */
@@ -523,6 +548,28 @@ export declare type ModelRootInit = {
523
548
  stream: Stream;
524
549
  };
525
550
 
551
+ /**
552
+ * The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
553
+ * contract, returning bytes rather than words.
554
+ *
555
+ * Use this rather than that one wherever the stride is not a whole number of words:
556
+ * reflectanceDataV1's 26-byte record is not, and an odd record count would lose that record's
557
+ * last field to dataPtrView's truncation.
558
+ */
559
+ export declare type RawByteAttributeWithBounds = {
560
+ bytes: Uint8Array<ArrayBuffer>;
561
+ minValue: {
562
+ x: number;
563
+ y: number;
564
+ z: number;
565
+ };
566
+ maxValue: {
567
+ x: number;
568
+ y: number;
569
+ z: number;
570
+ };
571
+ };
572
+
526
573
  declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
527
574
 
528
575
  declare interface RuntimeSettings extends EmbindObject {
@@ -579,6 +626,7 @@ export declare class Scene extends EventTarget {
579
626
  _recordAssetFormat(modelRoot: ModelRoot, formatVersion: number): void;
580
627
  /* Excluded from this release type: _getFeatureMesh */
581
628
  /* Excluded from this release type: _getDrMap */
629
+ /* Excluded from this release type: _onDrMapLadder */
582
630
  /* Excluded from this release type: _onFeatureData */
583
631
  /* Excluded from this release type: _onSceneLoaded */
584
632
  delete(stream: Stream): void;