@miris-inc/core 0.0.8-4555963 → 0.0.8-4725d04
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 +40 -2
- package/dist/core.js +39 -10
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +216 -187
- package/dist/core.standalone.prod.js +1 -1
- package/package.json +1 -1
- package/webshark.d.ts +49 -0
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,11 @@ 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;
|
|
34
37
|
static readonly REFLECTANCE_DATA_V1: string;
|
|
38
|
+
static readonly GLASS_MESH_GEOMETRY: string;
|
|
39
|
+
static readonly GLASS_MESH_PANELS: string;
|
|
35
40
|
static readonly MOD_DEPTH: string;
|
|
36
41
|
}
|
|
37
42
|
|
|
@@ -193,6 +198,10 @@ declare class Engine {
|
|
|
193
198
|
get module(): MainModule;
|
|
194
199
|
constructor(moduleOptions?: Record<string, unknown>);
|
|
195
200
|
get AttributeInfo(): new () => AttributeInfo;
|
|
201
|
+
get CompressionType(): {
|
|
202
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
203
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
204
|
+
};
|
|
196
205
|
get Handedness(): {
|
|
197
206
|
Right: number;
|
|
198
207
|
Left: number;
|
|
@@ -377,10 +386,13 @@ export declare class Lod {
|
|
|
377
386
|
set _drawnOctantMask(mask: number);
|
|
378
387
|
get _octantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
379
388
|
get _hasOctantOffsets(): boolean;
|
|
389
|
+
get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
390
|
+
get _surfelCount(): number;
|
|
380
391
|
_readOctantOffsets(engine: Engine): void;
|
|
381
392
|
hasAttribute(attributeName: string): boolean;
|
|
382
393
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
383
394
|
_getRawByteAttribute(engine: Engine, attributeName: string): Uint8Array<ArrayBuffer> | null;
|
|
395
|
+
_getRawByteAttributeWithBounds(engine: Engine, attributeName: string): RawByteAttributeWithBounds | null;
|
|
384
396
|
dispose(): void;
|
|
385
397
|
constructor({ id, modelRoot, lodStore, client }: LodInit);
|
|
386
398
|
}
|
|
@@ -405,6 +417,10 @@ export declare class LodStore {
|
|
|
405
417
|
|
|
406
418
|
declare interface MainModule {
|
|
407
419
|
AttributeInfo: new () => AttributeInfo;
|
|
420
|
+
CompressionType: {
|
|
421
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
422
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
423
|
+
};
|
|
408
424
|
Handedness: { Right: number; Left: number };
|
|
409
425
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
410
426
|
HEAPU8: Uint8Array<ArrayBuffer>;
|
|
@@ -531,6 +547,28 @@ export declare type ModelRootInit = {
|
|
|
531
547
|
stream: Stream;
|
|
532
548
|
};
|
|
533
549
|
|
|
550
|
+
/**
|
|
551
|
+
* The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
|
|
552
|
+
* contract, returning bytes rather than words.
|
|
553
|
+
*
|
|
554
|
+
* Use this rather than that one wherever the stride is not a whole number of words:
|
|
555
|
+
* reflectanceDataV1's 26-byte record is not, and an odd record count would lose that record's
|
|
556
|
+
* last field to dataPtrView's truncation.
|
|
557
|
+
*/
|
|
558
|
+
export declare type RawByteAttributeWithBounds = {
|
|
559
|
+
bytes: Uint8Array<ArrayBuffer>;
|
|
560
|
+
minValue: {
|
|
561
|
+
x: number;
|
|
562
|
+
y: number;
|
|
563
|
+
z: number;
|
|
564
|
+
};
|
|
565
|
+
maxValue: {
|
|
566
|
+
x: number;
|
|
567
|
+
y: number;
|
|
568
|
+
z: number;
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
|
|
534
572
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
535
573
|
|
|
536
574
|
declare interface RuntimeSettings extends EmbindObject {
|