@miris-inc/core 0.0.8-9fbec00 → 0.0.8-a0bfce9

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,15 @@ 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 SURFEL_OWNER_GROUPS: string;
38
+ static readonly OCTANT_CELL: string;
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;
43
+ static readonly MOD_DEPTH: string;
32
44
  }
33
45
 
34
46
  declare type CachedAttribute = {
@@ -118,6 +130,7 @@ declare class Client {
118
130
  getFeatureVersion(...args: ClientMethodParameters["getFeatureVersion"]): number;
119
131
  getFeatureState(...args: ClientMethodParameters["getFeatureState"]): number;
120
132
  getAssetFormatVersion(...args: ClientMethodParameters["getAssetFormatVersion"]): number;
133
+ getDrMapLadderRoughnessLevels(...args: ClientMethodParameters["getDrMapLadderRoughnessLevels"]): number[];
121
134
  getName(...args: ClientMethodParameters["getName"]): string;
122
135
  setVariantSelection(...args: ClientMethodParameters["setVariantSelection"]): AquaStatus;
123
136
  takeAttribute(...args: ClientMethodParameters["takeAttribute"]): AquaStatus;
@@ -188,6 +201,10 @@ declare class Engine {
188
201
  get module(): MainModule;
189
202
  constructor(moduleOptions?: Record<string, unknown>);
190
203
  get AttributeInfo(): new () => AttributeInfo;
204
+ get CompressionType(): {
205
+ SHARK_ELLIPSOID_COMPRESSED: unknown;
206
+ SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
207
+ };
191
208
  get Handedness(): {
192
209
  Right: number;
193
210
  Left: number;
@@ -304,6 +321,7 @@ declare class Engine {
304
321
  hasFeature(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): boolean;
305
322
  getFeatureVersion(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): number;
306
323
  getFeatureState(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): number;
324
+ getDrMapLadderRoughnessLevels(...args: [handle: AquaClientHandle, sceneObjectId: number]): number[];
307
325
  getAssetFormatVersion(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
308
326
  getName(...args: [handle: AquaClientHandle, sceneObjectId: number]): string;
309
327
  setVariantSelection(...args: [handle: AquaClientHandle, sceneObjectId: number]): AquaStatus;
@@ -371,9 +389,15 @@ export declare class Lod {
371
389
  set _drawnOctantMask(mask: number);
372
390
  get _octantOffsets(): Uint32Array<ArrayBuffer> | null;
373
391
  get _hasOctantOffsets(): boolean;
392
+ get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
393
+ get _surfelCount(): number;
394
+ get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
395
+ get _octantCell(): Uint32Array<ArrayBuffer> | null;
374
396
  _readOctantOffsets(engine: Engine): void;
375
397
  hasAttribute(attributeName: string): boolean;
376
398
  getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
399
+ _getRawByteAttribute(engine: Engine, attributeName: string): Uint8Array<ArrayBuffer> | null;
400
+ _getRawByteAttributeWithBounds(engine: Engine, attributeName: string): RawByteAttributeWithBounds | null;
377
401
  dispose(): void;
378
402
  constructor({ id, modelRoot, lodStore, client }: LodInit);
379
403
  }
@@ -398,6 +422,10 @@ export declare class LodStore {
398
422
 
399
423
  declare interface MainModule {
400
424
  AttributeInfo: new () => AttributeInfo;
425
+ CompressionType: {
426
+ SHARK_ELLIPSOID_COMPRESSED: unknown;
427
+ SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
428
+ };
401
429
  Handedness: { Right: number; Left: number };
402
430
  HEAPF32: Float32Array<ArrayBuffer>;
403
431
  HEAPU8: Uint8Array<ArrayBuffer>;
@@ -435,6 +463,7 @@ declare interface MainModule {
435
463
  GetFeatureVersion(handle: number, sceneObjectId: number, feature: number): number;
436
464
  GetFeatureState(handle: number, sceneObjectId: number, feature: number): number;
437
465
  GetAssetFormatVersion(handle: number, sceneObjectId: number): number;
466
+ GetDrMapLadderRoughnessLevels(handle: number, sceneObjectId: number): number[];
438
467
  SetClientSpatialFormat(handle: number, spatialFormat: SpatialFormat): { value: number };
439
468
  SetRuntimeSettings(handle: number, settings: RuntimeSettings): { value: number };
440
469
  TakeEvictedClientSideAttributeIds(handle: number): EmbindVector<bigint>;
@@ -481,6 +510,14 @@ export declare class Miris {
481
510
  */
482
511
  static readonly _XR_TARGET_FRAME_RATE = 43;
483
512
  /* Excluded from this release type: _XR_SPLAT_COUNT_BUDGET */
513
+ /* Excluded from this release type: _SHARK_SPLAT_CAPACITY_MOBILE */
514
+ static readonly _SHARK_SPLAT_CAPACITY_DESKTOP = 3000000;
515
+ /* Excluded from this release type: _SHARK_SPLAT_BUDGET_CAP_MOBILE */
516
+ static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
517
+ /* Excluded from this release type: _isMobileDevice */
518
+ /* Excluded from this release type: _sharkSplatCapacity */
519
+ /* Excluded from this release type: _limitSharkSplatCapacity */
520
+ /* Excluded from this release type: _sharkSplatBudgetCap */
484
521
  /* Excluded from this release type: _setTargetFrameRate */
485
522
  /* Excluded from this release type: _setXRModeActive */
486
523
  /* Excluded from this release type: _setSplatCountBudgetOverride */
@@ -516,6 +553,28 @@ export declare type ModelRootInit = {
516
553
  stream: Stream;
517
554
  };
518
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
+
519
578
  declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
520
579
 
521
580
  declare interface RuntimeSettings extends EmbindObject {
@@ -524,6 +583,7 @@ declare interface RuntimeSettings extends EmbindObject {
524
583
  targetFramesPerSecond: number;
525
584
  xrModeActive: boolean;
526
585
  splatCountBudget: number;
586
+ splatCountBudgetCap: number;
527
587
  }
528
588
 
529
589
  export declare class Scene extends EventTarget {
@@ -571,6 +631,7 @@ export declare class Scene extends EventTarget {
571
631
  _recordAssetFormat(modelRoot: ModelRoot, formatVersion: number): void;
572
632
  /* Excluded from this release type: _getFeatureMesh */
573
633
  /* Excluded from this release type: _getDrMap */
634
+ /* Excluded from this release type: _onDrMapLadder */
574
635
  /* Excluded from this release type: _onFeatureData */
575
636
  /* Excluded from this release type: _onSceneLoaded */
576
637
  delete(stream: Stream): void;