@miris-inc/core 0.0.8-d5a0ae6 → 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 +44 -4
- package/dist/core.js +83 -8
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +709 -614
- package/dist/core.standalone.prod.js +1 -1
- package/{webshark.d.ts → dist/webshark.d.ts} +37 -6
- 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
|
@@ -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;
|
|
@@ -108,6 +113,7 @@ declare class Client {
|
|
|
108
113
|
getSceneMetadata(...args: ClientMethodParameters["getSceneMetadata"]): number;
|
|
109
114
|
getSceneObjectParent(...args: ClientMethodParameters["getSceneObjectParent"]): number;
|
|
110
115
|
getSceneObjectType(...args: ClientMethodParameters["getSceneObjectType"]): SceneObjectType;
|
|
116
|
+
getStreamStatus(...args: ClientMethodParameters["getStreamStatus"]): StreamStatus;
|
|
111
117
|
getDrawnOctantMask(...args: ClientMethodParameters["getDrawnOctantMask"]): number;
|
|
112
118
|
getLocalTransform(...args: ClientMethodParameters["getLocalTransform"]): AquaStatus;
|
|
113
119
|
getWorldTransform(...args: ClientMethodParameters["getWorldTransform"]): AquaStatus;
|
|
@@ -191,11 +197,23 @@ declare class Engine {
|
|
|
191
197
|
readonly Loaded: 2;
|
|
192
198
|
readonly Failed: 3;
|
|
193
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
|
+
};
|
|
194
207
|
readonly ready: Promise<this>;
|
|
195
208
|
readonly pending: boolean;
|
|
196
209
|
get module(): MainModule;
|
|
197
210
|
constructor(moduleOptions?: Record<string, unknown>);
|
|
198
211
|
get AttributeInfo(): new () => AttributeInfo;
|
|
212
|
+
get CompressionType(): {
|
|
213
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
214
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
215
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
|
|
216
|
+
};
|
|
199
217
|
get Handedness(): {
|
|
200
218
|
Right: number;
|
|
201
219
|
Left: number;
|
|
@@ -251,6 +269,7 @@ declare class Engine {
|
|
|
251
269
|
getSceneChangesCounts(...args: [handle: AquaClientHandle, sceneChangeIds: SceneChangeIds]): void;
|
|
252
270
|
getSceneMetadata(...args: [handle: AquaClientHandle, metadata: SceneMetadata]): number;
|
|
253
271
|
getSceneObjectParent(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
|
|
272
|
+
getStreamStatus(...args: [handle: AquaClientHandle, streamObjectId: number]): StreamStatus;
|
|
254
273
|
getSceneObjectType(...args: [handle: AquaClientHandle, sceneObjectId: number]): SceneObjectType;
|
|
255
274
|
getLocalTransform(...args: [
|
|
256
275
|
handle: AquaClientHandle,
|
|
@@ -348,6 +367,12 @@ declare type EngineMethodParameters<E extends Engine = Engine> = {
|
|
|
348
367
|
[Key in keyof E]: E[Key] extends (...args: any[]) => any ? Parameters<E[Key]> : never;
|
|
349
368
|
};
|
|
350
369
|
|
|
370
|
+
export declare const HaveData = 2;
|
|
371
|
+
|
|
372
|
+
export declare const HaveMetadata = 1;
|
|
373
|
+
|
|
374
|
+
export declare const HaveNothing = 0;
|
|
375
|
+
|
|
351
376
|
export declare class Lod {
|
|
352
377
|
#private;
|
|
353
378
|
readonly id: LodInit["id"];
|
|
@@ -382,6 +407,8 @@ export declare class Lod {
|
|
|
382
407
|
get _hasOctantOffsets(): boolean;
|
|
383
408
|
get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
384
409
|
get _surfelCount(): number;
|
|
410
|
+
get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
|
|
411
|
+
get _octantCell(): Uint32Array<ArrayBuffer> | null;
|
|
385
412
|
_readOctantOffsets(engine: Engine): void;
|
|
386
413
|
hasAttribute(attributeName: string): boolean;
|
|
387
414
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
@@ -411,6 +438,11 @@ export declare class LodStore {
|
|
|
411
438
|
|
|
412
439
|
declare interface MainModule {
|
|
413
440
|
AttributeInfo: new () => AttributeInfo;
|
|
441
|
+
CompressionType: {
|
|
442
|
+
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
443
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
444
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
|
|
445
|
+
};
|
|
414
446
|
Handedness: { Right: number; Left: number };
|
|
415
447
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
416
448
|
HEAPU8: Uint8Array<ArrayBuffer>;
|
|
@@ -501,6 +533,7 @@ export declare class Miris {
|
|
|
501
533
|
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
|
|
502
534
|
/* Excluded from this release type: _isMobileDevice */
|
|
503
535
|
/* Excluded from this release type: _sharkSplatCapacity */
|
|
536
|
+
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
504
537
|
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
505
538
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
506
539
|
/* Excluded from this release type: _setXRModeActive */
|
|
@@ -541,9 +574,9 @@ export declare type ModelRootInit = {
|
|
|
541
574
|
* The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
|
|
542
575
|
* contract, returning bytes rather than words.
|
|
543
576
|
*
|
|
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.
|
|
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.
|
|
547
580
|
*/
|
|
548
581
|
export declare type RawByteAttributeWithBounds = {
|
|
549
582
|
bytes: Uint8Array<ArrayBuffer>;
|
|
@@ -559,6 +592,9 @@ export declare type RawByteAttributeWithBounds = {
|
|
|
559
592
|
};
|
|
560
593
|
};
|
|
561
594
|
|
|
595
|
+
declare type ReadyState_2 = typeof HaveNothing | typeof HaveMetadata | typeof HaveData;
|
|
596
|
+
export { ReadyState_2 as ReadyState }
|
|
597
|
+
|
|
562
598
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
563
599
|
|
|
564
600
|
declare interface RuntimeSettings extends EmbindObject {
|
|
@@ -617,6 +653,7 @@ export declare class Scene extends EventTarget {
|
|
|
617
653
|
/* Excluded from this release type: _getDrMap */
|
|
618
654
|
/* Excluded from this release type: _onDrMapLadder */
|
|
619
655
|
/* Excluded from this release type: _onFeatureData */
|
|
656
|
+
/* Excluded from this release type: _updateStreamStatuses */
|
|
620
657
|
/* Excluded from this release type: _onSceneLoaded */
|
|
621
658
|
delete(stream: Stream): void;
|
|
622
659
|
close(): void;
|
|
@@ -708,6 +745,9 @@ export declare class Stream extends EventTarget {
|
|
|
708
745
|
/* Excluded from this release type: _onStreamLoaded */
|
|
709
746
|
getDefaultCameraTransform(): Float32Array<ArrayBuffer> | null | undefined;
|
|
710
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 */
|
|
711
751
|
/* Excluded from this release type: _onRootLoaded */
|
|
712
752
|
add(modelRoot: ModelRoot): void;
|
|
713
753
|
end(): void;
|