@miris-inc/core 0.0.8-e44cce7 → 0.0.8-e5afd91
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 +89 -7
- package/dist/core.js +143 -16
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +150 -23
- package/dist/core.standalone.prod.js +1 -1
- package/package.json +1 -1
package/dist/AquaApi.wasm
CHANGED
|
Binary file
|
package/dist/aqua-parser.wasm
CHANGED
|
Binary file
|
package/dist/core.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ declare class Client {
|
|
|
132
132
|
getClusterLodPoolInfo(...args: ClientMethodParameters["getClusterLodPoolInfo"]): ClusterLodPoolInfo | null;
|
|
133
133
|
takeClusterLodPoolWrites(...args: ClientMethodParameters["takeClusterLodPoolWrites"]): ClusterLodPoolWrite[] | null;
|
|
134
134
|
getClusterLodDrawList(...args: ClientMethodParameters["getClusterLodDrawList"]): Uint32Array<ArrayBufferLike> | null;
|
|
135
|
+
getClusterLodGlassDrawList(...args: ClientMethodParameters["getClusterLodGlassDrawList"]): Uint32Array<ArrayBufferLike> | null;
|
|
135
136
|
hasClusterLodResidualPages(...args: ClientMethodParameters["hasClusterLodResidualPages"]): boolean | null;
|
|
136
137
|
fetchClusterLodPageFile(...args: ClientMethodParameters["fetchClusterLodPageFile"]): boolean;
|
|
137
138
|
getLocalTransform(...args: ClientMethodParameters["getLocalTransform"]): AquaStatus;
|
|
@@ -210,6 +211,18 @@ declare interface ClusterLodDrawState {
|
|
|
210
211
|
slotsPtr: number,
|
|
211
212
|
slotCount: number,
|
|
212
213
|
): void;
|
|
214
|
+
// As cullAndDraw, for the same cut's glass slots, which the glass peel draws. Call it after
|
|
215
|
+
// cullAndDraw, with the same camera, every frame the pool has glass.
|
|
216
|
+
cullAndDrawGlass(
|
|
217
|
+
renderState: RenderState,
|
|
218
|
+
splatSet: SplatSet,
|
|
219
|
+
modelRootIndex: number,
|
|
220
|
+
camera: Camera_2,
|
|
221
|
+
width: number,
|
|
222
|
+
height: number,
|
|
223
|
+
slotsPtr: number,
|
|
224
|
+
slotCount: number,
|
|
225
|
+
): void;
|
|
213
226
|
delete(): void;
|
|
214
227
|
}
|
|
215
228
|
|
|
@@ -219,6 +232,7 @@ export declare interface ClusterLodFrame {
|
|
|
219
232
|
info: ClusterLodPoolInfo;
|
|
220
233
|
writes: ClusterLodPoolWrite[];
|
|
221
234
|
drawList: Uint32Array;
|
|
235
|
+
glassDrawList: Uint32Array;
|
|
222
236
|
writesApplied: () => void;
|
|
223
237
|
fetchPageFile: ClusterLodPageFetch | null;
|
|
224
238
|
}
|
|
@@ -235,6 +249,13 @@ declare interface ClusterLodPoolInfo {
|
|
|
235
249
|
positionScale: number;
|
|
236
250
|
featureLow: number[];
|
|
237
251
|
featureHigh: number[];
|
|
252
|
+
// MOSS's glass block, which the native pool sizes its glass peel by; glassLayers is 0 without glass.
|
|
253
|
+
glassLayers: number;
|
|
254
|
+
glassSheetGap: number;
|
|
255
|
+
glassHybMode: number;
|
|
256
|
+
// The Schlick r a glass vertex's code 0 and 255 decode to.
|
|
257
|
+
reflectanceLow: number;
|
|
258
|
+
reflectanceHigh: number;
|
|
238
259
|
}
|
|
239
260
|
|
|
240
261
|
declare interface ClusterLodPoolWrite {
|
|
@@ -333,6 +354,12 @@ export declare interface ConfigurationStreamData {
|
|
|
333
354
|
|
|
334
355
|
export declare type ConfigurationStreamInit = Omit<ConfigurationStreamData, never>;
|
|
335
356
|
|
|
357
|
+
export declare type ConfigValue = boolean | number | string | null | ConfigValue[] | {
|
|
358
|
+
[key: string]: ConfigValue;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
declare type ConfigValues = Readonly<Record<string, ConfigValue>>;
|
|
362
|
+
|
|
336
363
|
declare interface EmbindObject {
|
|
337
364
|
delete(): void;
|
|
338
365
|
}
|
|
@@ -450,6 +477,7 @@ declare class Engine {
|
|
|
450
477
|
getClusterLodPoolInfo(...args: [handle: AquaClientHandle, sceneObjectId: number]): ClusterLodPoolInfo | null;
|
|
451
478
|
takeClusterLodPoolWrites(...args: [handle: AquaClientHandle, sceneObjectId: number]): ClusterLodPoolWrite[] | null;
|
|
452
479
|
getClusterLodDrawList(...args: [handle: AquaClientHandle, sceneObjectId: number]): Uint32Array | null;
|
|
480
|
+
getClusterLodGlassDrawList(...args: [handle: AquaClientHandle, sceneObjectId: number]): Uint32Array | null;
|
|
453
481
|
hasClusterLodResidualPages(...args: [handle: AquaClientHandle, sceneObjectId: number]): boolean | null;
|
|
454
482
|
fetchClusterLodPageFile(...args: [
|
|
455
483
|
handle: AquaClientHandle,
|
|
@@ -537,7 +565,8 @@ declare class Engine {
|
|
|
537
565
|
sessionId: string,
|
|
538
566
|
sessionStartTimeMs: number,
|
|
539
567
|
isNewSession: boolean,
|
|
540
|
-
mirisId: number
|
|
568
|
+
mirisId: number,
|
|
569
|
+
creationTimeMs: number
|
|
541
570
|
]): AquaTelemetryCollectorHandle;
|
|
542
571
|
destroyTelemetryCollector(...args: [handle: AquaTelemetryCollectorHandle]): AquaStatus;
|
|
543
572
|
tickTelemetryCollector(...args: [handle: AquaTelemetryCollectorHandle, monotonicTimeMs: number]): AquaStatus;
|
|
@@ -806,6 +835,9 @@ export declare const HaveMetadata = 1;
|
|
|
806
835
|
|
|
807
836
|
export declare const HaveNothing = 0;
|
|
808
837
|
|
|
838
|
+
/** Replaces the settings of the header's kind; a header that doesn't parse keeps the current ones. */
|
|
839
|
+
export declare function ingestMirisConfig(header: string | null | undefined): void;
|
|
840
|
+
|
|
809
841
|
declare const INTERACTION_NAME_ORDINAL: {
|
|
810
842
|
readonly click: 0;
|
|
811
843
|
readonly "context-menu": 1;
|
|
@@ -874,14 +906,36 @@ export declare class LifecycleEntry extends Entry {
|
|
|
874
906
|
/* Excluded from this release type: _enqueue */
|
|
875
907
|
}
|
|
876
908
|
|
|
877
|
-
export declare type
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
909
|
+
export declare type LifecycleEntryCameraName = "create" | "add" | "enable" | "disable" | "remove" | "delete";
|
|
910
|
+
|
|
911
|
+
/** A target, and one of the names it reports. */
|
|
912
|
+
export declare type LifecycleEntryInit = {
|
|
913
|
+
[K in keyof LifecycleEntryTargets]: EntryInit & {
|
|
914
|
+
target: LifecycleEntryTargets[K][0];
|
|
915
|
+
name: LifecycleEntryTargets[K][1];
|
|
916
|
+
duration?: DOMHighResTimeStamp;
|
|
917
|
+
};
|
|
918
|
+
}[keyof LifecycleEntryTargets];
|
|
919
|
+
|
|
920
|
+
/** The lifecycle names each target reports. */
|
|
921
|
+
export declare type LifecycleEntryMirisName = "create" | "enable" | "load" | "disable" | "remove" | "delete";
|
|
882
922
|
|
|
883
923
|
export declare type LifecycleEntryName = keyof typeof LIFECYCLE_NAME_ORDINAL;
|
|
884
924
|
|
|
925
|
+
/** Only Aqua reports octants. */
|
|
926
|
+
export declare type LifecycleEntryOctantName = "create" | "add" | "enable" | "load" | "abort" | "error" | "decode" | "cache" | "show" | "hide" | "evict" | "remove" | "delete";
|
|
927
|
+
|
|
928
|
+
export declare type LifecycleEntrySceneName = "create" | "add" | "enable" | "load" | "suspend" | "disable" | "remove" | "delete";
|
|
929
|
+
|
|
930
|
+
export declare type LifecycleEntryStreamName = LifecycleEntrySceneName;
|
|
931
|
+
|
|
932
|
+
declare type LifecycleEntryTargets = {
|
|
933
|
+
miris: [MirisTarget, LifecycleEntryMirisName];
|
|
934
|
+
scene: [SceneTarget, LifecycleEntrySceneName];
|
|
935
|
+
camera: [ObjectTarget<"camera">, LifecycleEntryCameraName];
|
|
936
|
+
stream: [ObjectTarget<"stream">, LifecycleEntryStreamName];
|
|
937
|
+
};
|
|
938
|
+
|
|
885
939
|
export declare class Lod {
|
|
886
940
|
#private;
|
|
887
941
|
readonly id: LodInit["id"];
|
|
@@ -986,6 +1040,7 @@ declare interface MainModule extends SharkModule {
|
|
|
986
1040
|
GetClusterLodPoolInfo(handle: number, sceneObjectId: number): ClusterLodPoolInfo | null;
|
|
987
1041
|
TakeClusterLodPoolWrites(handle: number, sceneObjectId: number): ClusterLodPoolWrite[] | null;
|
|
988
1042
|
GetClusterLodDrawList(handle: number, sceneObjectId: number): Uint32Array | null;
|
|
1043
|
+
GetClusterLodGlassDrawList(handle: number, sceneObjectId: number): Uint32Array | null;
|
|
989
1044
|
HasClusterLodResidualPages(handle: number, sceneObjectId: number): boolean | null;
|
|
990
1045
|
FetchClusterLodPageFile(
|
|
991
1046
|
handle: number,
|
|
@@ -1081,7 +1136,7 @@ export declare interface MetricsEntry {
|
|
|
1081
1136
|
/** ms since the session start. */
|
|
1082
1137
|
readonly startTime: number;
|
|
1083
1138
|
readonly duration: number;
|
|
1084
|
-
/** "<miris>-<scene>[-<camera|stream>[-<
|
|
1139
|
+
/** "<miris>-<scene>[-<camera|stream>[-<octree>.<node>]]"; empty for the session target. */
|
|
1085
1140
|
readonly targetId: string;
|
|
1086
1141
|
readonly targetType: MetricsTargetType;
|
|
1087
1142
|
readonly sessionId: string;
|
|
@@ -1329,6 +1384,28 @@ export declare type RawByteAttributeWithBounds = {
|
|
|
1329
1384
|
declare type ReadyState_2 = typeof HaveNothing | typeof HaveMetadata | typeof HaveData;
|
|
1330
1385
|
export { ReadyState_2 as ReadyState }
|
|
1331
1386
|
|
|
1387
|
+
export declare class RemoteConfig {
|
|
1388
|
+
#private;
|
|
1389
|
+
readonly kind: string;
|
|
1390
|
+
constructor(kind: string);
|
|
1391
|
+
/** The header the current values came from, for persisting and later ingesting. */
|
|
1392
|
+
get raw(): string | undefined;
|
|
1393
|
+
values(): ConfigValues;
|
|
1394
|
+
get(key: string): ConfigValue | undefined;
|
|
1395
|
+
bool(key: string, fallback: boolean): boolean;
|
|
1396
|
+
number(key: string, fallback: number): number;
|
|
1397
|
+
int(key: string, fallback: number): number;
|
|
1398
|
+
string(key: string, fallback: string): string;
|
|
1399
|
+
/** A JSON setting, given as an object or as a JSON string; fallback unless isT accepts it. */
|
|
1400
|
+
json<T>(key: string, fallback: T, isT: (value: unknown) => value is T): T;
|
|
1401
|
+
/** Calls listener after each change of values; returns the unsubscribe. */
|
|
1402
|
+
subscribe(listener: () => void): () => void;
|
|
1403
|
+
/* Excluded from this release type: set */
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/** The settings of kind, such as "client" or "sdk"; empty until a header for it is ingested. */
|
|
1407
|
+
export declare function remoteConfig(kind: string): RemoteConfig;
|
|
1408
|
+
|
|
1332
1409
|
declare interface RendererWGPU {
|
|
1333
1410
|
getProgramCount(): number;
|
|
1334
1411
|
getTextureCount(): number;
|
|
@@ -1741,6 +1818,11 @@ declare interface SplatSet {
|
|
|
1741
1818
|
clearReflectionParams(startSplat: number, endSplat: number): void;
|
|
1742
1819
|
// Splats in [0, count) holding a non-zero record. Diagnostic.
|
|
1743
1820
|
populatedReflectionParamCount(count: number): number;
|
|
1821
|
+
// Overwrites the RGB of splats [start, start + count) from count * 3 bytes at rgbPtr in this
|
|
1822
|
+
// module's heap, each byte 0-255 mapping to 0-1, and keeps alpha. False, writing nothing, for a
|
|
1823
|
+
// range outside the resident splats. Reaches the GPU with the next uploadSplatSetData whose
|
|
1824
|
+
// start is at most start.
|
|
1825
|
+
writeColours(start: number, count: number, rgbPtr: number): boolean;
|
|
1744
1826
|
delete(): void;
|
|
1745
1827
|
}
|
|
1746
1828
|
|