@smplrspace/smplr-loader 2.28.1-beta.36 → 2.28.1-beta.39
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/generated/smplr.d.ts +20 -10
- package/package.json +1 -1
|
@@ -213,14 +213,17 @@ export declare class Editor {
|
|
|
213
213
|
startSession(options?: SessionOptions): void;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
export declare
|
|
216
|
+
export declare type EditorOptions = {
|
|
217
217
|
spaceId: string;
|
|
218
218
|
user: EmbeddedEditorUser;
|
|
219
219
|
clientToken: string;
|
|
220
|
-
containerId: string;
|
|
221
220
|
disableErrorReporting?: boolean;
|
|
222
221
|
whiteLabel?: boolean;
|
|
223
|
-
}
|
|
222
|
+
} & ({
|
|
223
|
+
containerId: string;
|
|
224
|
+
} | {
|
|
225
|
+
container: HTMLElement;
|
|
226
|
+
});
|
|
224
227
|
|
|
225
228
|
export declare interface EmbeddedEditorUser {
|
|
226
229
|
id: string;
|
|
@@ -461,13 +464,16 @@ export declare interface MapCameraPlacement {
|
|
|
461
464
|
center: GeoPoint;
|
|
462
465
|
}
|
|
463
466
|
|
|
464
|
-
export declare
|
|
467
|
+
export declare type MapOptions = {
|
|
465
468
|
clientToken: string;
|
|
466
|
-
containerId: string;
|
|
467
469
|
disableErrorReporting?: boolean;
|
|
468
470
|
internal?: boolean;
|
|
469
471
|
sideLoadedAuth0?: Pick<Auth0ContextValue, 'getTokenSilently'>;
|
|
470
|
-
}
|
|
472
|
+
} & ({
|
|
473
|
+
containerId: string;
|
|
474
|
+
} | {
|
|
475
|
+
container: HTMLElement;
|
|
476
|
+
});
|
|
471
477
|
|
|
472
478
|
export declare interface MapSpaceRenderOptions {
|
|
473
479
|
footprint: {
|
|
@@ -1021,16 +1027,19 @@ export declare class Space {
|
|
|
1021
1027
|
}): Promise<string>;
|
|
1022
1028
|
}
|
|
1023
1029
|
|
|
1024
|
-
export declare
|
|
1030
|
+
export declare type SpaceOptions = {
|
|
1025
1031
|
spaceId: string;
|
|
1026
1032
|
spaceDefinition?: object;
|
|
1027
1033
|
clientToken: string;
|
|
1028
|
-
containerId: string;
|
|
1029
1034
|
disableErrorReporting?: boolean;
|
|
1030
1035
|
whiteLabel?: boolean;
|
|
1031
1036
|
internal?: boolean;
|
|
1032
1037
|
sideLoadedAuth0?: Pick<Auth0ContextValue, 'getTokenSilently'>;
|
|
1033
|
-
}
|
|
1038
|
+
} & ({
|
|
1039
|
+
containerId: string;
|
|
1040
|
+
} | {
|
|
1041
|
+
container: HTMLElement;
|
|
1042
|
+
});
|
|
1034
1043
|
|
|
1035
1044
|
export declare interface SpaceRenderOptions {
|
|
1036
1045
|
compass?: boolean
|
|
@@ -1080,6 +1089,7 @@ export declare interface SpaceViewerOptions {
|
|
|
1080
1089
|
onError?: (errorMessage: string) => void;
|
|
1081
1090
|
onResize?: (containerRect: DOMRect) => void;
|
|
1082
1091
|
onVisibleLevelsChanged?: (visibleLevels: number[]) => void;
|
|
1092
|
+
onObjectsUpdated?: () => void;
|
|
1083
1093
|
onModeChange?: (mode: CameraMode) => void;
|
|
1084
1094
|
loadingMessage?: string;
|
|
1085
1095
|
renderingMessage?: string;
|
|
@@ -1136,7 +1146,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
1136
1146
|
z: number;
|
|
1137
1147
|
}
|
|
1138
1148
|
|
|
1139
|
-
export declare const version = "2.28.1-beta.
|
|
1149
|
+
export declare const version = "2.28.1-beta.39";
|
|
1140
1150
|
|
|
1141
1151
|
declare interface ViewerRendererHandle {
|
|
1142
1152
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|