@miris-inc/core 0.0.8-4555963 → 0.0.8-45a6c97
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 +45 -2
- package/dist/core.js +76 -16
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +295 -215
- package/dist/core.standalone.prod.js +1 -1
- package/package.json +1 -1
- package/webshark.d.ts +72 -2
package/dist/AquaApi.wasm
CHANGED
|
Binary file
|
package/dist/aqua-parser.wasm
CHANGED
|
Binary file
|
package/dist/core.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ 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
|
-
readonly elementCount: number;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export declare class AttributeNames {
|
|
@@ -31,7 +32,13 @@ export declare class AttributeNames {
|
|
|
31
32
|
static readonly SHARK_SPHERICAL_HARMONICS: string;
|
|
32
33
|
static readonly COLOR: string;
|
|
33
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;
|
|
34
39
|
static readonly REFLECTANCE_DATA_V1: string;
|
|
40
|
+
static readonly GLASS_MESH_GEOMETRY: string;
|
|
41
|
+
static readonly GLASS_MESH_PANELS: string;
|
|
35
42
|
static readonly MOD_DEPTH: string;
|
|
36
43
|
}
|
|
37
44
|
|
|
@@ -193,6 +200,10 @@ declare class Engine {
|
|
|
193
200
|
get module(): MainModule;
|
|
194
201
|
constructor(moduleOptions?: Record<string, unknown>);
|
|
195
202
|
get AttributeInfo(): new () => AttributeInfo;
|
|
203
|
+
get CompressionType(): {
|
|
204
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
205
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
206
|
+
};
|
|
196
207
|
get Handedness(): {
|
|
197
208
|
Right: number;
|
|
198
209
|
Left: number;
|
|
@@ -377,10 +388,15 @@ export declare class Lod {
|
|
|
377
388
|
set _drawnOctantMask(mask: number);
|
|
378
389
|
get _octantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
379
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;
|
|
380
395
|
_readOctantOffsets(engine: Engine): void;
|
|
381
396
|
hasAttribute(attributeName: string): boolean;
|
|
382
397
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
383
398
|
_getRawByteAttribute(engine: Engine, attributeName: string): Uint8Array<ArrayBuffer> | null;
|
|
399
|
+
_getRawByteAttributeWithBounds(engine: Engine, attributeName: string): RawByteAttributeWithBounds | null;
|
|
384
400
|
dispose(): void;
|
|
385
401
|
constructor({ id, modelRoot, lodStore, client }: LodInit);
|
|
386
402
|
}
|
|
@@ -405,6 +421,10 @@ export declare class LodStore {
|
|
|
405
421
|
|
|
406
422
|
declare interface MainModule {
|
|
407
423
|
AttributeInfo: new () => AttributeInfo;
|
|
424
|
+
CompressionType: {
|
|
425
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
426
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
427
|
+
};
|
|
408
428
|
Handedness: { Right: number; Left: number };
|
|
409
429
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
410
430
|
HEAPU8: Uint8Array<ArrayBuffer>;
|
|
@@ -495,6 +515,7 @@ export declare class Miris {
|
|
|
495
515
|
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
|
|
496
516
|
/* Excluded from this release type: _isMobileDevice */
|
|
497
517
|
/* Excluded from this release type: _sharkSplatCapacity */
|
|
518
|
+
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
498
519
|
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
499
520
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
500
521
|
/* Excluded from this release type: _setXRModeActive */
|
|
@@ -531,6 +552,28 @@ export declare type ModelRootInit = {
|
|
|
531
552
|
stream: Stream;
|
|
532
553
|
};
|
|
533
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
|
+
|
|
534
577
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
535
578
|
|
|
536
579
|
declare interface RuntimeSettings extends EmbindObject {
|