@miris-inc/core 0.0.8-d4777d0 → 0.0.8-d6a42da
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 +28 -3
- package/dist/core.js +44 -3
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +670 -609
- package/dist/core.standalone.prod.js +1 -1
- package/{webshark.d.ts → dist/webshark.d.ts} +7 -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
|
@@ -37,6 +37,7 @@ export declare class AttributeNames {
|
|
|
37
37
|
static readonly SURFEL_OWNER_GROUPS: string;
|
|
38
38
|
static readonly OCTANT_CELL: string;
|
|
39
39
|
static readonly REFLECTANCE_DATA_V1: string;
|
|
40
|
+
static readonly REFLECTANCE_DATA_V2: string;
|
|
40
41
|
static readonly GLASS_MESH_GEOMETRY: string;
|
|
41
42
|
static readonly GLASS_MESH_PANELS: string;
|
|
42
43
|
static readonly MOD_DEPTH: string;
|
|
@@ -112,6 +113,7 @@ declare class Client {
|
|
|
112
113
|
getSceneMetadata(...args: ClientMethodParameters["getSceneMetadata"]): number;
|
|
113
114
|
getSceneObjectParent(...args: ClientMethodParameters["getSceneObjectParent"]): number;
|
|
114
115
|
getSceneObjectType(...args: ClientMethodParameters["getSceneObjectType"]): SceneObjectType;
|
|
116
|
+
getStreamStatus(...args: ClientMethodParameters["getStreamStatus"]): StreamStatus;
|
|
115
117
|
getDrawnOctantMask(...args: ClientMethodParameters["getDrawnOctantMask"]): number;
|
|
116
118
|
getLocalTransform(...args: ClientMethodParameters["getLocalTransform"]): AquaStatus;
|
|
117
119
|
getWorldTransform(...args: ClientMethodParameters["getWorldTransform"]): AquaStatus;
|
|
@@ -195,6 +197,13 @@ declare class Engine {
|
|
|
195
197
|
readonly Loaded: 2;
|
|
196
198
|
readonly Failed: 3;
|
|
197
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
|
+
};
|
|
198
207
|
readonly ready: Promise<this>;
|
|
199
208
|
readonly pending: boolean;
|
|
200
209
|
get module(): MainModule;
|
|
@@ -203,6 +212,7 @@ declare class Engine {
|
|
|
203
212
|
get CompressionType(): {
|
|
204
213
|
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
205
214
|
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
215
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
|
|
206
216
|
};
|
|
207
217
|
get Handedness(): {
|
|
208
218
|
Right: number;
|
|
@@ -259,6 +269,7 @@ declare class Engine {
|
|
|
259
269
|
getSceneChangesCounts(...args: [handle: AquaClientHandle, sceneChangeIds: SceneChangeIds]): void;
|
|
260
270
|
getSceneMetadata(...args: [handle: AquaClientHandle, metadata: SceneMetadata]): number;
|
|
261
271
|
getSceneObjectParent(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
|
|
272
|
+
getStreamStatus(...args: [handle: AquaClientHandle, streamObjectId: number]): StreamStatus;
|
|
262
273
|
getSceneObjectType(...args: [handle: AquaClientHandle, sceneObjectId: number]): SceneObjectType;
|
|
263
274
|
getLocalTransform(...args: [
|
|
264
275
|
handle: AquaClientHandle,
|
|
@@ -356,6 +367,12 @@ declare type EngineMethodParameters<E extends Engine = Engine> = {
|
|
|
356
367
|
[Key in keyof E]: E[Key] extends (...args: any[]) => any ? Parameters<E[Key]> : never;
|
|
357
368
|
};
|
|
358
369
|
|
|
370
|
+
export declare const HaveData = 2;
|
|
371
|
+
|
|
372
|
+
export declare const HaveMetadata = 1;
|
|
373
|
+
|
|
374
|
+
export declare const HaveNothing = 0;
|
|
375
|
+
|
|
359
376
|
export declare class Lod {
|
|
360
377
|
#private;
|
|
361
378
|
readonly id: LodInit["id"];
|
|
@@ -424,6 +441,7 @@ declare interface MainModule {
|
|
|
424
441
|
CompressionType: {
|
|
425
442
|
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
426
443
|
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
444
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
|
|
427
445
|
};
|
|
428
446
|
Handedness: { Right: number; Left: number };
|
|
429
447
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
@@ -556,9 +574,9 @@ export declare type ModelRootInit = {
|
|
|
556
574
|
* The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
|
|
557
575
|
* contract, returning bytes rather than words.
|
|
558
576
|
*
|
|
559
|
-
* Use this rather than that one wherever the stride is not a whole number of words:
|
|
560
|
-
*
|
|
561
|
-
* 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.
|
|
562
580
|
*/
|
|
563
581
|
export declare type RawByteAttributeWithBounds = {
|
|
564
582
|
bytes: Uint8Array<ArrayBuffer>;
|
|
@@ -574,6 +592,9 @@ export declare type RawByteAttributeWithBounds = {
|
|
|
574
592
|
};
|
|
575
593
|
};
|
|
576
594
|
|
|
595
|
+
declare type ReadyState_2 = typeof HaveNothing | typeof HaveMetadata | typeof HaveData;
|
|
596
|
+
export { ReadyState_2 as ReadyState }
|
|
597
|
+
|
|
577
598
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
578
599
|
|
|
579
600
|
declare interface RuntimeSettings extends EmbindObject {
|
|
@@ -632,6 +653,7 @@ export declare class Scene extends EventTarget {
|
|
|
632
653
|
/* Excluded from this release type: _getDrMap */
|
|
633
654
|
/* Excluded from this release type: _onDrMapLadder */
|
|
634
655
|
/* Excluded from this release type: _onFeatureData */
|
|
656
|
+
/* Excluded from this release type: _updateStreamStatuses */
|
|
635
657
|
/* Excluded from this release type: _onSceneLoaded */
|
|
636
658
|
delete(stream: Stream): void;
|
|
637
659
|
close(): void;
|
|
@@ -723,6 +745,9 @@ export declare class Stream extends EventTarget {
|
|
|
723
745
|
/* Excluded from this release type: _onStreamLoaded */
|
|
724
746
|
getDefaultCameraTransform(): Float32Array<ArrayBuffer> | null | undefined;
|
|
725
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 */
|
|
726
751
|
/* Excluded from this release type: _onRootLoaded */
|
|
727
752
|
add(modelRoot: ModelRoot): void;
|
|
728
753
|
end(): void;
|