@miris-inc/core 0.0.8-e627096 → 0.0.8-e6a35ce
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 +66 -1
- package/dist/core.js +104 -17
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +661 -554
- package/dist/core.standalone.prod.js +1 -1
- package/{webshark.d.ts → dist/webshark.d.ts} +78 -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,12 @@ 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;
|
|
41
|
+
static readonly GLASS_MESH_GEOMETRY: string;
|
|
42
|
+
static readonly GLASS_MESH_PANELS: string;
|
|
36
43
|
static readonly MOD_DEPTH: string;
|
|
37
44
|
}
|
|
38
45
|
|
|
@@ -106,6 +113,7 @@ declare class Client {
|
|
|
106
113
|
getSceneMetadata(...args: ClientMethodParameters["getSceneMetadata"]): number;
|
|
107
114
|
getSceneObjectParent(...args: ClientMethodParameters["getSceneObjectParent"]): number;
|
|
108
115
|
getSceneObjectType(...args: ClientMethodParameters["getSceneObjectType"]): SceneObjectType;
|
|
116
|
+
getStreamStatus(...args: ClientMethodParameters["getStreamStatus"]): StreamStatus;
|
|
109
117
|
getDrawnOctantMask(...args: ClientMethodParameters["getDrawnOctantMask"]): number;
|
|
110
118
|
getLocalTransform(...args: ClientMethodParameters["getLocalTransform"]): AquaStatus;
|
|
111
119
|
getWorldTransform(...args: ClientMethodParameters["getWorldTransform"]): AquaStatus;
|
|
@@ -189,11 +197,23 @@ declare class Engine {
|
|
|
189
197
|
readonly Loaded: 2;
|
|
190
198
|
readonly Failed: 3;
|
|
191
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
|
+
};
|
|
192
207
|
readonly ready: Promise<this>;
|
|
193
208
|
readonly pending: boolean;
|
|
194
209
|
get module(): MainModule;
|
|
195
210
|
constructor(moduleOptions?: Record<string, unknown>);
|
|
196
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
|
+
};
|
|
197
217
|
get Handedness(): {
|
|
198
218
|
Right: number;
|
|
199
219
|
Left: number;
|
|
@@ -249,6 +269,7 @@ declare class Engine {
|
|
|
249
269
|
getSceneChangesCounts(...args: [handle: AquaClientHandle, sceneChangeIds: SceneChangeIds]): void;
|
|
250
270
|
getSceneMetadata(...args: [handle: AquaClientHandle, metadata: SceneMetadata]): number;
|
|
251
271
|
getSceneObjectParent(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
|
|
272
|
+
getStreamStatus(...args: [handle: AquaClientHandle, streamObjectId: number]): StreamStatus;
|
|
252
273
|
getSceneObjectType(...args: [handle: AquaClientHandle, sceneObjectId: number]): SceneObjectType;
|
|
253
274
|
getLocalTransform(...args: [
|
|
254
275
|
handle: AquaClientHandle,
|
|
@@ -346,6 +367,12 @@ declare type EngineMethodParameters<E extends Engine = Engine> = {
|
|
|
346
367
|
[Key in keyof E]: E[Key] extends (...args: any[]) => any ? Parameters<E[Key]> : never;
|
|
347
368
|
};
|
|
348
369
|
|
|
370
|
+
export declare const HaveData = 2;
|
|
371
|
+
|
|
372
|
+
export declare const HaveMetadata = 1;
|
|
373
|
+
|
|
374
|
+
export declare const HaveNothing = 0;
|
|
375
|
+
|
|
349
376
|
export declare class Lod {
|
|
350
377
|
#private;
|
|
351
378
|
readonly id: LodInit["id"];
|
|
@@ -380,10 +407,13 @@ export declare class Lod {
|
|
|
380
407
|
get _hasOctantOffsets(): boolean;
|
|
381
408
|
get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
382
409
|
get _surfelCount(): number;
|
|
410
|
+
get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
|
|
411
|
+
get _octantCell(): Uint32Array<ArrayBuffer> | null;
|
|
383
412
|
_readOctantOffsets(engine: Engine): void;
|
|
384
413
|
hasAttribute(attributeName: string): boolean;
|
|
385
414
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
386
415
|
_getRawByteAttribute(engine: Engine, attributeName: string): Uint8Array<ArrayBuffer> | null;
|
|
416
|
+
_getRawByteAttributeWithBounds(engine: Engine, attributeName: string): RawByteAttributeWithBounds | null;
|
|
387
417
|
dispose(): void;
|
|
388
418
|
constructor({ id, modelRoot, lodStore, client }: LodInit);
|
|
389
419
|
}
|
|
@@ -408,6 +438,11 @@ export declare class LodStore {
|
|
|
408
438
|
|
|
409
439
|
declare interface MainModule {
|
|
410
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
|
+
};
|
|
411
446
|
Handedness: { Right: number; Left: number };
|
|
412
447
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
413
448
|
HEAPU8: Uint8Array<ArrayBuffer>;
|
|
@@ -498,6 +533,7 @@ export declare class Miris {
|
|
|
498
533
|
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2500000;
|
|
499
534
|
/* Excluded from this release type: _isMobileDevice */
|
|
500
535
|
/* Excluded from this release type: _sharkSplatCapacity */
|
|
536
|
+
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
501
537
|
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
502
538
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
503
539
|
/* Excluded from this release type: _setXRModeActive */
|
|
@@ -534,6 +570,31 @@ export declare type ModelRootInit = {
|
|
|
534
570
|
stream: Stream;
|
|
535
571
|
};
|
|
536
572
|
|
|
573
|
+
/**
|
|
574
|
+
* The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
|
|
575
|
+
* contract, returning bytes rather than words.
|
|
576
|
+
*
|
|
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.
|
|
580
|
+
*/
|
|
581
|
+
export declare type RawByteAttributeWithBounds = {
|
|
582
|
+
bytes: Uint8Array<ArrayBuffer>;
|
|
583
|
+
minValue: {
|
|
584
|
+
x: number;
|
|
585
|
+
y: number;
|
|
586
|
+
z: number;
|
|
587
|
+
};
|
|
588
|
+
maxValue: {
|
|
589
|
+
x: number;
|
|
590
|
+
y: number;
|
|
591
|
+
z: number;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
declare type ReadyState_2 = typeof HaveNothing | typeof HaveMetadata | typeof HaveData;
|
|
596
|
+
export { ReadyState_2 as ReadyState }
|
|
597
|
+
|
|
537
598
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
538
599
|
|
|
539
600
|
declare interface RuntimeSettings extends EmbindObject {
|
|
@@ -592,6 +653,7 @@ export declare class Scene extends EventTarget {
|
|
|
592
653
|
/* Excluded from this release type: _getDrMap */
|
|
593
654
|
/* Excluded from this release type: _onDrMapLadder */
|
|
594
655
|
/* Excluded from this release type: _onFeatureData */
|
|
656
|
+
/* Excluded from this release type: _updateStreamStatuses */
|
|
595
657
|
/* Excluded from this release type: _onSceneLoaded */
|
|
596
658
|
delete(stream: Stream): void;
|
|
597
659
|
close(): void;
|
|
@@ -683,6 +745,9 @@ export declare class Stream extends EventTarget {
|
|
|
683
745
|
/* Excluded from this release type: _onStreamLoaded */
|
|
684
746
|
getDefaultCameraTransform(): Float32Array<ArrayBuffer> | null | undefined;
|
|
685
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 */
|
|
686
751
|
/* Excluded from this release type: _onRootLoaded */
|
|
687
752
|
add(modelRoot: ModelRoot): void;
|
|
688
753
|
end(): void;
|