@miris-inc/core 0.0.8-c560ed8 → 0.0.8-c7ec385
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 +20 -4
- package/dist/core.js +42 -7
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +137 -82
- package/dist/core.standalone.prod.js +1 -1
- package/package.json +1 -1
- package/webshark.d.ts +37 -6
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,10 @@ 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 REFLECTANCE_DATA_V2: string;
|
|
36
41
|
static readonly GLASS_MESH_GEOMETRY: string;
|
|
37
42
|
static readonly GLASS_MESH_PANELS: string;
|
|
38
43
|
static readonly MOD_DEPTH: string;
|
|
@@ -196,6 +201,10 @@ declare class Engine {
|
|
|
196
201
|
get module(): MainModule;
|
|
197
202
|
constructor(moduleOptions?: Record<string, unknown>);
|
|
198
203
|
get AttributeInfo(): new () => AttributeInfo;
|
|
204
|
+
get CompressionType(): {
|
|
205
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
206
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
207
|
+
};
|
|
199
208
|
get Handedness(): {
|
|
200
209
|
Right: number;
|
|
201
210
|
Left: number;
|
|
@@ -382,6 +391,8 @@ export declare class Lod {
|
|
|
382
391
|
get _hasOctantOffsets(): boolean;
|
|
383
392
|
get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
384
393
|
get _surfelCount(): number;
|
|
394
|
+
get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
|
|
395
|
+
get _octantCell(): Uint32Array<ArrayBuffer> | null;
|
|
385
396
|
_readOctantOffsets(engine: Engine): void;
|
|
386
397
|
hasAttribute(attributeName: string): boolean;
|
|
387
398
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
@@ -411,6 +422,10 @@ export declare class LodStore {
|
|
|
411
422
|
|
|
412
423
|
declare interface MainModule {
|
|
413
424
|
AttributeInfo: new () => AttributeInfo;
|
|
425
|
+
CompressionType: {
|
|
426
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
427
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
428
|
+
};
|
|
414
429
|
Handedness: { Right: number; Left: number };
|
|
415
430
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
416
431
|
HEAPU8: Uint8Array<ArrayBuffer>;
|
|
@@ -501,6 +516,7 @@ export declare class Miris {
|
|
|
501
516
|
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
|
|
502
517
|
/* Excluded from this release type: _isMobileDevice */
|
|
503
518
|
/* Excluded from this release type: _sharkSplatCapacity */
|
|
519
|
+
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
504
520
|
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
505
521
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
506
522
|
/* Excluded from this release type: _setXRModeActive */
|
|
@@ -541,9 +557,9 @@ export declare type ModelRootInit = {
|
|
|
541
557
|
* The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
|
|
542
558
|
* contract, returning bytes rather than words.
|
|
543
559
|
*
|
|
544
|
-
* Use this rather than that one wherever the stride is not a whole number of words:
|
|
545
|
-
*
|
|
546
|
-
* last field to dataPtrView's truncation.
|
|
560
|
+
* Use this rather than that one wherever the stride is not a whole number of words: the
|
|
561
|
+
* reflectance records' 18- and 26-byte strides are not, and an odd record count would lose that
|
|
562
|
+
* record's last field to dataPtrView's truncation.
|
|
547
563
|
*/
|
|
548
564
|
export declare type RawByteAttributeWithBounds = {
|
|
549
565
|
bytes: Uint8Array<ArrayBuffer>;
|