@miris-inc/core 0.0.8-4ed3888 → 0.0.8-50b20f3
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 +41 -1
- package/dist/core.js +61 -15
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +238 -192
- package/dist/core.standalone.prod.js +1 -1
- package/package.json +1 -1
- package/webshark.d.ts +71 -2
package/dist/AquaApi.wasm
CHANGED
|
Binary file
|
package/dist/aqua-parser.wasm
CHANGED
|
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
|
-
|
|
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,11 @@ 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 GLASS_MESH_GEOMETRY: string;
|
|
41
|
+
static readonly GLASS_MESH_PANELS: string;
|
|
36
42
|
static readonly MOD_DEPTH: string;
|
|
37
43
|
}
|
|
38
44
|
|
|
@@ -194,6 +200,10 @@ declare class Engine {
|
|
|
194
200
|
get module(): MainModule;
|
|
195
201
|
constructor(moduleOptions?: Record<string, unknown>);
|
|
196
202
|
get AttributeInfo(): new () => AttributeInfo;
|
|
203
|
+
get CompressionType(): {
|
|
204
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
205
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
206
|
+
};
|
|
197
207
|
get Handedness(): {
|
|
198
208
|
Right: number;
|
|
199
209
|
Left: number;
|
|
@@ -380,10 +390,13 @@ export declare class Lod {
|
|
|
380
390
|
get _hasOctantOffsets(): boolean;
|
|
381
391
|
get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
382
392
|
get _surfelCount(): number;
|
|
393
|
+
get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
|
|
394
|
+
get _octantCell(): Uint32Array<ArrayBuffer> | null;
|
|
383
395
|
_readOctantOffsets(engine: Engine): void;
|
|
384
396
|
hasAttribute(attributeName: string): boolean;
|
|
385
397
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
386
398
|
_getRawByteAttribute(engine: Engine, attributeName: string): Uint8Array<ArrayBuffer> | null;
|
|
399
|
+
_getRawByteAttributeWithBounds(engine: Engine, attributeName: string): RawByteAttributeWithBounds | null;
|
|
387
400
|
dispose(): void;
|
|
388
401
|
constructor({ id, modelRoot, lodStore, client }: LodInit);
|
|
389
402
|
}
|
|
@@ -408,6 +421,10 @@ export declare class LodStore {
|
|
|
408
421
|
|
|
409
422
|
declare interface MainModule {
|
|
410
423
|
AttributeInfo: new () => AttributeInfo;
|
|
424
|
+
CompressionType: {
|
|
425
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
426
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
427
|
+
};
|
|
411
428
|
Handedness: { Right: number; Left: number };
|
|
412
429
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
413
430
|
HEAPU8: Uint8Array<ArrayBuffer>;
|
|
@@ -498,6 +515,7 @@ export declare class Miris {
|
|
|
498
515
|
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
|
|
499
516
|
/* Excluded from this release type: _isMobileDevice */
|
|
500
517
|
/* Excluded from this release type: _sharkSplatCapacity */
|
|
518
|
+
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
501
519
|
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
502
520
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
503
521
|
/* Excluded from this release type: _setXRModeActive */
|
|
@@ -534,6 +552,28 @@ export declare type ModelRootInit = {
|
|
|
534
552
|
stream: Stream;
|
|
535
553
|
};
|
|
536
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
|
+
|
|
537
577
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
538
578
|
|
|
539
579
|
declare interface RuntimeSettings extends EmbindObject {
|