@miris-inc/core 0.0.8-6acf41c → 0.0.8-6b6248f
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 +60 -4
- package/dist/core.js +202 -4
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +534 -336
- package/dist/core.standalone.prod.js +1 -1
- package/package.json +8 -1
- package/webshark.d.ts +313 -0
package/dist/AquaApi.wasm
CHANGED
|
Binary file
|
package/dist/aqua-parser.wasm
CHANGED
|
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
|
-
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
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;
|
|
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>;
|
|
@@ -481,6 +505,14 @@ export declare class Miris {
|
|
|
481
505
|
*/
|
|
482
506
|
static readonly _XR_TARGET_FRAME_RATE = 43;
|
|
483
507
|
/* Excluded from this release type: _XR_SPLAT_COUNT_BUDGET */
|
|
508
|
+
/* Excluded from this release type: _SHARK_SPLAT_CAPACITY_MOBILE */
|
|
509
|
+
static readonly _SHARK_SPLAT_CAPACITY_DESKTOP = 3000000;
|
|
510
|
+
/* Excluded from this release type: _SHARK_SPLAT_BUDGET_CAP_MOBILE */
|
|
511
|
+
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
|
|
512
|
+
/* Excluded from this release type: _isMobileDevice */
|
|
513
|
+
/* Excluded from this release type: _sharkSplatCapacity */
|
|
514
|
+
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
515
|
+
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
484
516
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
485
517
|
/* Excluded from this release type: _setXRModeActive */
|
|
486
518
|
/* Excluded from this release type: _setSplatCountBudgetOverride */
|
|
@@ -516,6 +548,28 @@ export declare type ModelRootInit = {
|
|
|
516
548
|
stream: Stream;
|
|
517
549
|
};
|
|
518
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
|
+
|
|
519
573
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
520
574
|
|
|
521
575
|
declare interface RuntimeSettings extends EmbindObject {
|
|
@@ -524,6 +578,7 @@ declare interface RuntimeSettings extends EmbindObject {
|
|
|
524
578
|
targetFramesPerSecond: number;
|
|
525
579
|
xrModeActive: boolean;
|
|
526
580
|
splatCountBudget: number;
|
|
581
|
+
splatCountBudgetCap: number;
|
|
527
582
|
}
|
|
528
583
|
|
|
529
584
|
export declare class Scene extends EventTarget {
|
|
@@ -571,6 +626,7 @@ export declare class Scene extends EventTarget {
|
|
|
571
626
|
_recordAssetFormat(modelRoot: ModelRoot, formatVersion: number): void;
|
|
572
627
|
/* Excluded from this release type: _getFeatureMesh */
|
|
573
628
|
/* Excluded from this release type: _getDrMap */
|
|
629
|
+
/* Excluded from this release type: _onDrMapLadder */
|
|
574
630
|
/* Excluded from this release type: _onFeatureData */
|
|
575
631
|
/* Excluded from this release type: _onSceneLoaded */
|
|
576
632
|
delete(stream: Stream): void;
|