@miris-inc/core 0.0.8-80eca3b → 0.0.8-8367be4
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 +0 -0
- package/dist/aqua-parser.wasm +0 -0
- package/dist/core.d.ts +74 -4
- package/dist/core.js +256 -5
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +600 -329
- package/dist/core.standalone.prod.js +1 -1
- package/package.json +8 -1
- package/webshark.d.ts +318 -0
package/dist/AquaApi.wasm
CHANGED
|
Binary file
|
package/dist/aqua-parser.wasm
CHANGED
|
Binary file
|
package/dist/core.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
export declare const AssetFormat: {
|
|
2
|
+
readonly GaussianSplats: 1;
|
|
3
|
+
readonly GES: 2;
|
|
4
|
+
};
|
|
5
|
+
|
|
1
6
|
declare interface AttributeInfo extends EmbindObject {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
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;
|
|
6
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 };
|
|
7
15
|
readonly maxValue: { x: number; y: number; z: number };
|
|
8
16
|
}
|
|
9
17
|
|
|
@@ -24,6 +32,14 @@ export declare class AttributeNames {
|
|
|
24
32
|
static readonly SHARK_SPHERICAL_HARMONICS: string;
|
|
25
33
|
static readonly COLOR: string;
|
|
26
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 GLASS_MESH_GEOMETRY: string;
|
|
41
|
+
static readonly GLASS_MESH_PANELS: string;
|
|
42
|
+
static readonly MOD_DEPTH: string;
|
|
27
43
|
}
|
|
28
44
|
|
|
29
45
|
declare type CachedAttribute = {
|
|
@@ -112,6 +128,8 @@ declare class Client {
|
|
|
112
128
|
hasFeature(...args: ClientMethodParameters["hasFeature"]): boolean;
|
|
113
129
|
getFeatureVersion(...args: ClientMethodParameters["getFeatureVersion"]): number;
|
|
114
130
|
getFeatureState(...args: ClientMethodParameters["getFeatureState"]): number;
|
|
131
|
+
getAssetFormatVersion(...args: ClientMethodParameters["getAssetFormatVersion"]): number;
|
|
132
|
+
getDrMapLadderRoughnessLevels(...args: ClientMethodParameters["getDrMapLadderRoughnessLevels"]): number[];
|
|
115
133
|
getName(...args: ClientMethodParameters["getName"]): string;
|
|
116
134
|
setVariantSelection(...args: ClientMethodParameters["setVariantSelection"]): AquaStatus;
|
|
117
135
|
takeAttribute(...args: ClientMethodParameters["takeAttribute"]): AquaStatus;
|
|
@@ -182,6 +200,10 @@ declare class Engine {
|
|
|
182
200
|
get module(): MainModule;
|
|
183
201
|
constructor(moduleOptions?: Record<string, unknown>);
|
|
184
202
|
get AttributeInfo(): new () => AttributeInfo;
|
|
203
|
+
get CompressionType(): {
|
|
204
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
205
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
206
|
+
};
|
|
185
207
|
get Handedness(): {
|
|
186
208
|
Right: number;
|
|
187
209
|
Left: number;
|
|
@@ -298,6 +320,8 @@ declare class Engine {
|
|
|
298
320
|
hasFeature(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): boolean;
|
|
299
321
|
getFeatureVersion(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): number;
|
|
300
322
|
getFeatureState(...args: [handle: AquaClientHandle, sceneObjectId: number, feature: number]): number;
|
|
323
|
+
getDrMapLadderRoughnessLevels(...args: [handle: AquaClientHandle, sceneObjectId: number]): number[];
|
|
324
|
+
getAssetFormatVersion(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
|
|
301
325
|
getName(...args: [handle: AquaClientHandle, sceneObjectId: number]): string;
|
|
302
326
|
setVariantSelection(...args: [handle: AquaClientHandle, sceneObjectId: number]): AquaStatus;
|
|
303
327
|
takeAttribute(...args: [
|
|
@@ -364,9 +388,15 @@ export declare class Lod {
|
|
|
364
388
|
set _drawnOctantMask(mask: number);
|
|
365
389
|
get _octantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
366
390
|
get _hasOctantOffsets(): boolean;
|
|
391
|
+
get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
392
|
+
get _surfelCount(): number;
|
|
393
|
+
get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
|
|
394
|
+
get _octantCell(): Uint32Array<ArrayBuffer> | null;
|
|
367
395
|
_readOctantOffsets(engine: Engine): void;
|
|
368
396
|
hasAttribute(attributeName: string): boolean;
|
|
369
397
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
398
|
+
_getRawByteAttribute(engine: Engine, attributeName: string): Uint8Array<ArrayBuffer> | null;
|
|
399
|
+
_getRawByteAttributeWithBounds(engine: Engine, attributeName: string): RawByteAttributeWithBounds | null;
|
|
370
400
|
dispose(): void;
|
|
371
401
|
constructor({ id, modelRoot, lodStore, client }: LodInit);
|
|
372
402
|
}
|
|
@@ -391,6 +421,10 @@ export declare class LodStore {
|
|
|
391
421
|
|
|
392
422
|
declare interface MainModule {
|
|
393
423
|
AttributeInfo: new () => AttributeInfo;
|
|
424
|
+
CompressionType: {
|
|
425
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
426
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
427
|
+
};
|
|
394
428
|
Handedness: { Right: number; Left: number };
|
|
395
429
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
396
430
|
HEAPU8: Uint8Array<ArrayBuffer>;
|
|
@@ -427,6 +461,8 @@ declare interface MainModule {
|
|
|
427
461
|
HasFeature(handle: number, sceneObjectId: number, feature: number): boolean;
|
|
428
462
|
GetFeatureVersion(handle: number, sceneObjectId: number, feature: number): number;
|
|
429
463
|
GetFeatureState(handle: number, sceneObjectId: number, feature: number): number;
|
|
464
|
+
GetAssetFormatVersion(handle: number, sceneObjectId: number): number;
|
|
465
|
+
GetDrMapLadderRoughnessLevels(handle: number, sceneObjectId: number): number[];
|
|
430
466
|
SetClientSpatialFormat(handle: number, spatialFormat: SpatialFormat): { value: number };
|
|
431
467
|
SetRuntimeSettings(handle: number, settings: RuntimeSettings): { value: number };
|
|
432
468
|
TakeEvictedClientSideAttributeIds(handle: number): EmbindVector<bigint>;
|
|
@@ -473,6 +509,14 @@ export declare class Miris {
|
|
|
473
509
|
*/
|
|
474
510
|
static readonly _XR_TARGET_FRAME_RATE = 43;
|
|
475
511
|
/* Excluded from this release type: _XR_SPLAT_COUNT_BUDGET */
|
|
512
|
+
/* Excluded from this release type: _SHARK_SPLAT_CAPACITY_MOBILE */
|
|
513
|
+
static readonly _SHARK_SPLAT_CAPACITY_DESKTOP = 3000000;
|
|
514
|
+
/* Excluded from this release type: _SHARK_SPLAT_BUDGET_CAP_MOBILE */
|
|
515
|
+
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
|
|
516
|
+
/* Excluded from this release type: _isMobileDevice */
|
|
517
|
+
/* Excluded from this release type: _sharkSplatCapacity */
|
|
518
|
+
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
519
|
+
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
476
520
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
477
521
|
/* Excluded from this release type: _setXRModeActive */
|
|
478
522
|
/* Excluded from this release type: _setSplatCountBudgetOverride */
|
|
@@ -508,6 +552,28 @@ export declare type ModelRootInit = {
|
|
|
508
552
|
stream: Stream;
|
|
509
553
|
};
|
|
510
554
|
|
|
555
|
+
/**
|
|
556
|
+
* The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
|
|
557
|
+
* contract, returning bytes rather than words.
|
|
558
|
+
*
|
|
559
|
+
* Use this rather than that one wherever the stride is not a whole number of words:
|
|
560
|
+
* reflectanceDataV1's 26-byte record is not, and an odd record count would lose that record's
|
|
561
|
+
* last field to dataPtrView's truncation.
|
|
562
|
+
*/
|
|
563
|
+
export declare type RawByteAttributeWithBounds = {
|
|
564
|
+
bytes: Uint8Array<ArrayBuffer>;
|
|
565
|
+
minValue: {
|
|
566
|
+
x: number;
|
|
567
|
+
y: number;
|
|
568
|
+
z: number;
|
|
569
|
+
};
|
|
570
|
+
maxValue: {
|
|
571
|
+
x: number;
|
|
572
|
+
y: number;
|
|
573
|
+
z: number;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
|
|
511
577
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
512
578
|
|
|
513
579
|
declare interface RuntimeSettings extends EmbindObject {
|
|
@@ -516,6 +582,7 @@ declare interface RuntimeSettings extends EmbindObject {
|
|
|
516
582
|
targetFramesPerSecond: number;
|
|
517
583
|
xrModeActive: boolean;
|
|
518
584
|
splatCountBudget: number;
|
|
585
|
+
splatCountBudgetCap: number;
|
|
519
586
|
}
|
|
520
587
|
|
|
521
588
|
export declare class Scene extends EventTarget {
|
|
@@ -527,6 +594,7 @@ export declare class Scene extends EventTarget {
|
|
|
527
594
|
readonly id: number;
|
|
528
595
|
get key(): unknown;
|
|
529
596
|
set key(key: unknown);
|
|
597
|
+
/* Excluded from this release type: _assetFormat */
|
|
530
598
|
get viewerKey(): string | null;
|
|
531
599
|
set viewerKey(viewerKey: string | null);
|
|
532
600
|
get streams(): Set<Stream>;
|
|
@@ -559,8 +627,10 @@ export declare class Scene extends EventTarget {
|
|
|
559
627
|
getStreamForId(streamObjectId: number): Stream | undefined;
|
|
560
628
|
getStreamForDescendentId(descendentObjectId: number): Stream | null;
|
|
561
629
|
getModelRootForDescendentId(descendentObjectId: number): ModelRoot | null;
|
|
630
|
+
_recordAssetFormat(modelRoot: ModelRoot, formatVersion: number): void;
|
|
562
631
|
/* Excluded from this release type: _getFeatureMesh */
|
|
563
632
|
/* Excluded from this release type: _getDrMap */
|
|
633
|
+
/* Excluded from this release type: _onDrMapLadder */
|
|
564
634
|
/* Excluded from this release type: _onFeatureData */
|
|
565
635
|
/* Excluded from this release type: _onSceneLoaded */
|
|
566
636
|
delete(stream: Stream): void;
|