@miris-inc/core 0.0.8-664500b → 0.0.8-686bce0
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 +60 -8
- package/dist/core.js +167 -17
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +508 -338
- package/dist/core.standalone.prod.js +1 -1
- package/{webshark.d.ts → dist/webshark.d.ts} +17 -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,7 +113,9 @@ 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;
|
|
118
|
+
getOctantLocalBoundingBoxes(...args: ClientMethodParameters["getOctantLocalBoundingBoxes"]): number[];
|
|
114
119
|
getLocalTransform(...args: ClientMethodParameters["getLocalTransform"]): AquaStatus;
|
|
115
120
|
getWorldTransform(...args: ClientMethodParameters["getWorldTransform"]): AquaStatus;
|
|
116
121
|
hasAttribute(...args: ClientMethodParameters["hasAttribute"]): boolean;
|
|
@@ -193,6 +198,13 @@ declare class Engine {
|
|
|
193
198
|
readonly Loaded: 2;
|
|
194
199
|
readonly Failed: 3;
|
|
195
200
|
};
|
|
201
|
+
static StreamStatus: {
|
|
202
|
+
readonly Unknown: 0;
|
|
203
|
+
readonly Resolving: 1;
|
|
204
|
+
readonly Loading: 2;
|
|
205
|
+
readonly Ready: 3;
|
|
206
|
+
readonly Failed: 4;
|
|
207
|
+
};
|
|
196
208
|
readonly ready: Promise<this>;
|
|
197
209
|
readonly pending: boolean;
|
|
198
210
|
get module(): MainModule;
|
|
@@ -201,6 +213,7 @@ declare class Engine {
|
|
|
201
213
|
get CompressionType(): {
|
|
202
214
|
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
203
215
|
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
216
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
|
|
204
217
|
};
|
|
205
218
|
get Handedness(): {
|
|
206
219
|
Right: number;
|
|
@@ -222,6 +235,7 @@ declare class Engine {
|
|
|
222
235
|
Y: number;
|
|
223
236
|
Z: number;
|
|
224
237
|
};
|
|
238
|
+
get UsePadding(): boolean;
|
|
225
239
|
activatedObjectIdsView(...args: [sceneChangeIds: SceneChangeIds]): Uint32Array;
|
|
226
240
|
addStreamById(...args: [
|
|
227
241
|
handle: AquaClientHandle,
|
|
@@ -239,6 +253,7 @@ declare class Engine {
|
|
|
239
253
|
deactivatedObjectIdsView(...args: [sceneChangeIds: SceneChangeIds]): Uint32Array;
|
|
240
254
|
remaskedObjectIdsView(...args: [sceneChangeIds: SceneChangeIds]): Uint32Array;
|
|
241
255
|
getDrawnOctantMask(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
|
|
256
|
+
getOctantLocalBoundingBoxes(...args: [handle: AquaClientHandle, sceneObjectId: number]): number[];
|
|
242
257
|
destroyClient(...args: [handle: AquaClientHandle]): AquaStatus;
|
|
243
258
|
free(...args: [size: number]): number;
|
|
244
259
|
getAssetsAsync(...args: [handle: AquaClientHandle, tags: StringVector]): AssetInfo[];
|
|
@@ -257,6 +272,7 @@ declare class Engine {
|
|
|
257
272
|
getSceneChangesCounts(...args: [handle: AquaClientHandle, sceneChangeIds: SceneChangeIds]): void;
|
|
258
273
|
getSceneMetadata(...args: [handle: AquaClientHandle, metadata: SceneMetadata]): number;
|
|
259
274
|
getSceneObjectParent(...args: [handle: AquaClientHandle, sceneObjectId: number]): number;
|
|
275
|
+
getStreamStatus(...args: [handle: AquaClientHandle, streamObjectId: number]): StreamStatus;
|
|
260
276
|
getSceneObjectType(...args: [handle: AquaClientHandle, sceneObjectId: number]): SceneObjectType;
|
|
261
277
|
getLocalTransform(...args: [
|
|
262
278
|
handle: AquaClientHandle,
|
|
@@ -310,6 +326,7 @@ declare class Engine {
|
|
|
310
326
|
]): AquaStatus;
|
|
311
327
|
setMaxCacheSize(...args: [maxSizeBytes: number]): void;
|
|
312
328
|
setPreferSharkEncodingProfiles(...args: [preferShark: boolean]): void;
|
|
329
|
+
setPadSplatAttributes(usePadding: boolean): void;
|
|
313
330
|
setSceneObjectTransform(...args: [
|
|
314
331
|
handle: AquaClientHandle,
|
|
315
332
|
sceneObjectId: number,
|
|
@@ -338,9 +355,16 @@ declare class Engine {
|
|
|
338
355
|
* displayed frame per context, before the per-client updateSceneExecution() calls.
|
|
339
356
|
* `previousFrameTimeMs` is how long the previous frame took; pass 0 when there is no plausible
|
|
340
357
|
* measurement (first frame, or a resume from a stall) and the frame advances without recording
|
|
341
|
-
*
|
|
358
|
+
* `primsResident` is what the renderer held at the end of the previous frame, fading
|
|
359
|
+
* prims included, and `primCapacity` what it can hold; activations that would not fit are
|
|
360
|
+
* deferred, where primCapacity 0 means deferral is disabled.
|
|
342
361
|
*/
|
|
343
|
-
beginFrame(...args: [
|
|
362
|
+
beginFrame(...args: [
|
|
363
|
+
contextHandle: AquaContextHandle,
|
|
364
|
+
previousFrameTimeMs: number,
|
|
365
|
+
primsResident: number,
|
|
366
|
+
primCapacity: number
|
|
367
|
+
]): AquaStatus;
|
|
344
368
|
createDeserializeWorker(_url: string, _workerUrl: string, poolSize: number): boolean;
|
|
345
369
|
cancelRequest(requestIdLow: number, requestIdHigh: number): boolean;
|
|
346
370
|
submitToWorker(requestIdLow: number, requestIdHigh: number, descriptorBuffer: ArrayBuffer, contextPtr: number): boolean;
|
|
@@ -354,6 +378,12 @@ declare type EngineMethodParameters<E extends Engine = Engine> = {
|
|
|
354
378
|
[Key in keyof E]: E[Key] extends (...args: any[]) => any ? Parameters<E[Key]> : never;
|
|
355
379
|
};
|
|
356
380
|
|
|
381
|
+
export declare const HaveData = 2;
|
|
382
|
+
|
|
383
|
+
export declare const HaveMetadata = 1;
|
|
384
|
+
|
|
385
|
+
export declare const HaveNothing = 0;
|
|
386
|
+
|
|
357
387
|
export declare class Lod {
|
|
358
388
|
#private;
|
|
359
389
|
readonly id: LodInit["id"];
|
|
@@ -384,10 +414,14 @@ export declare class Lod {
|
|
|
384
414
|
get transform(): Float32Array<ArrayBuffer> | null;
|
|
385
415
|
get _drawnOctantMask(): number;
|
|
386
416
|
set _drawnOctantMask(mask: number);
|
|
417
|
+
get _octantLocalBounds(): Float32Array<ArrayBuffer> | null;
|
|
418
|
+
set _octantLocalBounds(bounds: Float32Array<ArrayBuffer> | null);
|
|
387
419
|
get _octantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
388
420
|
get _hasOctantOffsets(): boolean;
|
|
389
421
|
get _surfelOctantOffsets(): Uint32Array<ArrayBuffer> | null;
|
|
390
422
|
get _surfelCount(): number;
|
|
423
|
+
get _surfelOwnerGroups(): Uint32Array<ArrayBuffer> | null;
|
|
424
|
+
get _octantCell(): Uint32Array<ArrayBuffer> | null;
|
|
391
425
|
_readOctantOffsets(engine: Engine): void;
|
|
392
426
|
hasAttribute(attributeName: string): boolean;
|
|
393
427
|
getDataFromAttribute(engine: Engine, attributeName: string, attributeInfo: AttributeInfo): CachedAttribute | null;
|
|
@@ -420,6 +454,7 @@ declare interface MainModule {
|
|
|
420
454
|
CompressionType: {
|
|
421
455
|
SHARK_ELLIPSOID_COMPRESSED: unknown;
|
|
422
456
|
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE: unknown;
|
|
457
|
+
SHARK_ELLIPSOID_COMPRESSED_ROOT_RELATIVE_V2: unknown;
|
|
423
458
|
};
|
|
424
459
|
Handedness: { Right: number; Left: number };
|
|
425
460
|
HEAPF32: Float32Array<ArrayBuffer>;
|
|
@@ -449,6 +484,7 @@ declare interface MainModule {
|
|
|
449
484
|
remaskedObjectIdsView(sceneChangeIds: SceneChangeIds): Uint32Array;
|
|
450
485
|
deletedObjectIdsView(sceneChangeIds: SceneChangeIds): Uint32Array;
|
|
451
486
|
GetDrawnOctantMask(handle: number, sceneObjectId: number): number;
|
|
487
|
+
GetOctantLocalBoundingBoxes(handle: number, sceneObjectId: number): number[];
|
|
452
488
|
GetAssetsAsync(handle: number, tags: StringVector): unknown[];
|
|
453
489
|
GetSceneChanges(handle: number, sceneChangeIds: SceneChangeIds): void;
|
|
454
490
|
GetSceneChangesCounts(handle: number, sceneChangeIds: SceneChangeIds): void;
|
|
@@ -464,7 +500,12 @@ declare interface MainModule {
|
|
|
464
500
|
TakeEvictedClientSideAttributeIds(handle: number): EmbindVector<bigint>;
|
|
465
501
|
GetActiveClientSideIdsCheckSum(): number;
|
|
466
502
|
TakeRenderRequired(handle: number): boolean;
|
|
467
|
-
BeginFrame(
|
|
503
|
+
BeginFrame(
|
|
504
|
+
contextHandle: number,
|
|
505
|
+
previousFrameTimeMs: number,
|
|
506
|
+
primsResident: number,
|
|
507
|
+
primCapacity: number,
|
|
508
|
+
): number;
|
|
468
509
|
modifiedObjectIdsView(sceneChangeIds: SceneChangeIds): Uint32Array;
|
|
469
510
|
setMaxCacheSize(maxSizeBytes: number): void;
|
|
470
511
|
SetPreferSharkEncodingProfiles(prefer: boolean): void;
|
|
@@ -506,16 +547,20 @@ export declare class Miris {
|
|
|
506
547
|
static readonly _XR_TARGET_FRAME_RATE = 43;
|
|
507
548
|
/* Excluded from this release type: _XR_SPLAT_COUNT_BUDGET */
|
|
508
549
|
/* Excluded from this release type: _SHARK_SPLAT_CAPACITY_MOBILE */
|
|
509
|
-
static readonly _SHARK_SPLAT_CAPACITY_DESKTOP
|
|
550
|
+
static readonly _SHARK_SPLAT_CAPACITY_DESKTOP: number;
|
|
510
551
|
/* Excluded from this release type: _SHARK_SPLAT_BUDGET_CAP_MOBILE */
|
|
511
|
-
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP =
|
|
552
|
+
static readonly _SHARK_SPLAT_BUDGET_CAP_DESKTOP = 2400000;
|
|
512
553
|
/* Excluded from this release type: _isMobileDevice */
|
|
513
554
|
/* Excluded from this release type: _sharkSplatCapacity */
|
|
555
|
+
/* Excluded from this release type: _minimumSplatCount */
|
|
556
|
+
/* Excluded from this release type: _splatCountStorageKey */
|
|
557
|
+
/* Excluded from this release type: _reloadWithLowerSplatCapacity */
|
|
514
558
|
/* Excluded from this release type: _limitSharkSplatCapacity */
|
|
515
559
|
/* Excluded from this release type: _sharkSplatBudgetCap */
|
|
516
560
|
/* Excluded from this release type: _setTargetFrameRate */
|
|
517
561
|
/* Excluded from this release type: _setXRModeActive */
|
|
518
562
|
/* Excluded from this release type: _setSplatCountBudgetOverride */
|
|
563
|
+
/* Excluded from this release type: _reportRendererPrims */
|
|
519
564
|
/* Excluded from this release type: _update */
|
|
520
565
|
getLocalTransform(client: Client, sceneObjectId: number): Float32Array<ArrayBuffer> | undefined;
|
|
521
566
|
getWorldTransform(client: Client, sceneObjectId: number): Float32Array<ArrayBuffer> | undefined;
|
|
@@ -552,9 +597,9 @@ export declare type ModelRootInit = {
|
|
|
552
597
|
* The byte-exact counterpart of getRawUint32Attribute above: same no-padding, no-takeAttribute
|
|
553
598
|
* contract, returning bytes rather than words.
|
|
554
599
|
*
|
|
555
|
-
* Use this rather than that one wherever the stride is not a whole number of words:
|
|
556
|
-
*
|
|
557
|
-
* last field to dataPtrView's truncation.
|
|
600
|
+
* Use this rather than that one wherever the stride is not a whole number of words: the
|
|
601
|
+
* reflectance records' 18- and 26-byte strides are not, and an odd record count would lose that
|
|
602
|
+
* record's last field to dataPtrView's truncation.
|
|
558
603
|
*/
|
|
559
604
|
export declare type RawByteAttributeWithBounds = {
|
|
560
605
|
bytes: Uint8Array<ArrayBuffer>;
|
|
@@ -570,6 +615,9 @@ export declare type RawByteAttributeWithBounds = {
|
|
|
570
615
|
};
|
|
571
616
|
};
|
|
572
617
|
|
|
618
|
+
declare type ReadyState_2 = typeof HaveNothing | typeof HaveMetadata | typeof HaveData;
|
|
619
|
+
export { ReadyState_2 as ReadyState }
|
|
620
|
+
|
|
573
621
|
declare type RequestAnimationFrameFn = ((callback: FrameRequestCallback) => number) | ((callback: XRFrameRequestCallback) => void);
|
|
574
622
|
|
|
575
623
|
declare interface RuntimeSettings extends EmbindObject {
|
|
@@ -628,6 +676,7 @@ export declare class Scene extends EventTarget {
|
|
|
628
676
|
/* Excluded from this release type: _getDrMap */
|
|
629
677
|
/* Excluded from this release type: _onDrMapLadder */
|
|
630
678
|
/* Excluded from this release type: _onFeatureData */
|
|
679
|
+
/* Excluded from this release type: _updateStreamStatuses */
|
|
631
680
|
/* Excluded from this release type: _onSceneLoaded */
|
|
632
681
|
delete(stream: Stream): void;
|
|
633
682
|
close(): void;
|
|
@@ -719,6 +768,9 @@ export declare class Stream extends EventTarget {
|
|
|
719
768
|
/* Excluded from this release type: _onStreamLoaded */
|
|
720
769
|
getDefaultCameraTransform(): Float32Array<ArrayBuffer> | null | undefined;
|
|
721
770
|
/* Excluded from this release type: _getViewingVolumeObb */
|
|
771
|
+
/** How much of the stream has loaded, as of the last frame. */
|
|
772
|
+
get readyState(): ReadyState_2;
|
|
773
|
+
/* Excluded from this release type: _updateStatus */
|
|
722
774
|
/* Excluded from this release type: _onRootLoaded */
|
|
723
775
|
add(modelRoot: ModelRoot): void;
|
|
724
776
|
end(): void;
|