@miris-inc/core 0.0.8-5274919 → 0.0.8-540abbc
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 +33 -3
- package/dist/core.js +80 -8
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +706 -614
- package/dist/core.standalone.prod.js +1 -1
- package/{webshark.d.ts → dist/webshark.d.ts} +18 -4
- package/dist/webshark.js +2 -0
- package/dist/webshark.wasm +0 -0
- package/package.json +3 -6
package/dist/AquaApi.wasm
CHANGED
|
Binary file
|
package/dist/aqua-parser.wasm
CHANGED
|
Binary file
|
package/dist/core.d.ts
CHANGED
|
@@ -34,7 +34,10 @@ export declare class AttributeNames {
|
|
|
34
34
|
static readonly OCTANT_OFFSETS: string;
|
|
35
35
|
static readonly SURFEL_OCTANT_OFFSETS: string;
|
|
36
36
|
static readonly SURFEL_COUNT: string;
|
|
37
|
+
static readonly SURFEL_OWNER_GROUPS: string;
|
|
38
|
+
static readonly OCTANT_CELL: string;
|
|
37
39
|
static readonly REFLECTANCE_DATA_V1: string;
|
|
40
|
+
static readonly REFLECTANCE_DATA_V2: string;
|
|
38
41
|
static readonly GLASS_MESH_GEOMETRY: string;
|
|
39
42
|
static readonly GLASS_MESH_PANELS: string;
|
|
40
43
|
static readonly MOD_DEPTH: string;
|
|
@@ -110,6 +113,7 @@ declare class Client {
|
|
|
110
113
|
getSceneMetadata(...args: ClientMethodParameters["getSceneMetadata"]): number;
|
|
111
114
|
getSceneObjectParent(...args: ClientMethodParameters["getSceneObjectParent"]): number;
|
|
112
115
|
getSceneObjectType(...args: ClientMethodParameters["getSceneObjectType"]): SceneObjectType;
|
|
116
|
+
getStreamStatus(...args: ClientMethodParameters["getStreamStatus"]): StreamStatus;
|
|
113
117
|
getDrawnOctantMask(...args: ClientMethodParameters["getDrawnOctantMask"]): number;
|
|
114
118
|
getLocalTransform(...args: ClientMethodParameters["getLocalTransform"]): AquaStatus;
|
|
115
119
|
getWorldTransform(...args: ClientMethodParameters["getWorldTransform"]): AquaStatus;
|
|
@@ -193,6 +197,13 @@ declare class Engine {
|
|
|
193
197
|
readonly Loaded: 2;
|
|
194
198
|
readonly Failed: 3;
|
|
195
199
|
};
|
|
200
|
+
static StreamStatus: {
|
|
201
|
+
readonly Unknown: 0;
|
|
202
|
+
readonly Resolving: 1;
|
|
203
|
+
readonly Loading: 2;
|
|
204
|
+
readonly Ready: 3;
|
|
205
|
+
readonly Failed: 4;
|
|
206
|
+
};
|
|
196
207
|
readonly ready: Promise<this>;
|
|
197
208
|
readonly pending: boolean;
|
|
198
209
|
get module(): MainModule;
|
|
@@ -201,6 +212,7 @@ declare class Engine {
|
|
|
201
212
|
get CompressionType(): {
|
|
202
213
|
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
203
214
|
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
215
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
|
|
204
216
|
};
|
|
205
217
|
get Handedness(): {
|
|
206
218
|
Right: number;
|
|
@@ -257,6 +269,7 @@ declare class Engine {
|
|
|
257
269
|
getSceneChangesCounts(...args: [handle: AquaClientHandle, sceneChangeIds: SceneChangeIds]): void;
|
|
258
270
|
getSceneMetadata(...args: [handle: AquaClientHandle, metadata: SceneMetadata]): number;
|
|
259
271
|
getSceneObjectParent(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
|
|
272
|
+
getStreamStatus(...args: [handle: AquaClientHandle, streamObjectId: number]): StreamStatus;
|
|
260
273
|
getSceneObjectType(...args: [handle: AquaClientHandle, sceneObjectId: number]): SceneObjectType;
|
|
261
274
|
getLocalTransform(...args: [
|
|
262
275
|
handle: AquaClientHandle,
|
|
@@ -354,6 +367,12 @@ declare type EngineMethodParameters<E extends Engine = Engine> = {
|
|
|
354
367
|
[Key in keyof E]: E[Key] extends (...args: any[]) => any ? Parameters<E[Key]> : never;
|
|
355
368
|
};
|
|
356
369
|
|
|
370
|
+
export declare const HaveData = 2;
|
|
371
|
+
|
|
372
|
+
export declare const HaveMetadata = 1;
|
|
373
|
+
|
|
374
|
+
export declare const HaveNothing = 0;
|
|
375
|
+
|
|
357
376
|
export declare class Lod {
|
|
358
377
|
#private;
|
|
359
378
|
readonly id: LodInit["id"];
|
|
@@ -388,6 +407,8 @@ export declare class Lod {
|
|
|
388
407
|
get _hasOctantOffsets(): boolean;
|
|
389
408
|
get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
390
409
|
get _surfelCount(): number;
|
|
410
|
+
get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
|
|
411
|
+
get _octantCell(): Uint32Array<ArrayBuffer> | null;
|
|
391
412
|
_readOctantOffsets(engine: Engine): void;
|
|
392
413
|
hasAttribute(attributeName: string): boolean;
|
|
393
414
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
@@ -420,6 +441,7 @@ declare interface MainModule {
|
|
|
420
441
|
CompressionType: {
|
|
421
442
|
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
422
443
|
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
444
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
|
|
423
445
|
};
|
|
424
446
|
Handedness: { Right: number; Left: number };
|
|
425
447
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
@@ -511,6 +533,7 @@ export declare class Miris {
|
|
|
511
533
|
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
|
|
512
534
|
/* Excluded from this release type: _isMobileDevice */
|
|
513
535
|
/* Excluded from this release type: _sharkSplatCapacity */
|
|
536
|
+
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
514
537
|
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
515
538
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
516
539
|
/* Excluded from this release type: _setXRModeActive */
|
|
@@ -551,9 +574,9 @@ export declare type ModelRootInit = {
|
|
|
551
574
|
* The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
|
|
552
575
|
* contract, returning bytes rather than words.
|
|
553
576
|
*
|
|
554
|
-
* Use this rather than that one wherever the stride is not a whole number of words:
|
|
555
|
-
*
|
|
556
|
-
* last field to dataPtrView's truncation.
|
|
577
|
+
* Use this rather than that one wherever the stride is not a whole number of words: the
|
|
578
|
+
* reflectance records' 18- and 26-byte strides are not, and an odd record count would lose that
|
|
579
|
+
* record's last field to dataPtrView's truncation.
|
|
557
580
|
*/
|
|
558
581
|
export declare type RawByteAttributeWithBounds = {
|
|
559
582
|
bytes: Uint8Array<ArrayBuffer>;
|
|
@@ -569,6 +592,9 @@ export declare type RawByteAttributeWithBounds = {
|
|
|
569
592
|
};
|
|
570
593
|
};
|
|
571
594
|
|
|
595
|
+
declare type ReadyState_2 = typeof HaveNothing | typeof HaveMetadata | typeof HaveData;
|
|
596
|
+
export { ReadyState_2 as ReadyState }
|
|
597
|
+
|
|
572
598
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
573
599
|
|
|
574
600
|
declare interface RuntimeSettings extends EmbindObject {
|
|
@@ -627,6 +653,7 @@ export declare class Scene extends EventTarget {
|
|
|
627
653
|
/* Excluded from this release type: _getDrMap */
|
|
628
654
|
/* Excluded from this release type: _onDrMapLadder */
|
|
629
655
|
/* Excluded from this release type: _onFeatureData */
|
|
656
|
+
/* Excluded from this release type: _updateStreamStatuses */
|
|
630
657
|
/* Excluded from this release type: _onSceneLoaded */
|
|
631
658
|
delete(stream: Stream): void;
|
|
632
659
|
close(): void;
|
|
@@ -718,6 +745,9 @@ export declare class Stream extends EventTarget {
|
|
|
718
745
|
/* Excluded from this release type: _onStreamLoaded */
|
|
719
746
|
getDefaultCameraTransform(): Float32Array<ArrayBuffer> | null | undefined;
|
|
720
747
|
/* Excluded from this release type: _getViewingVolumeObb */
|
|
748
|
+
/** How much of the stream has loaded, as of the last frame. */
|
|
749
|
+
get readyState(): ReadyState_2;
|
|
750
|
+
/* Excluded from this release type: _updateStatus */
|
|
721
751
|
/* Excluded from this release type: _onRootLoaded */
|
|
722
752
|
add(modelRoot: ModelRoot): void;
|
|
723
753
|
end(): void;
|