@smplrspace/smplr-loader 2.17.1-beta.12 → 2.17.1-beta.14
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 +60 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -200,6 +200,13 @@ declare interface FurnitureDataLayer<D extends UnknownData = NoData> extends Bas
|
|
|
200
200
|
color?: string | ((dataElement: FurnitureData & D) => string);
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
declare interface GeojsonSpace {
|
|
204
|
+
id: string;
|
|
205
|
+
name: string;
|
|
206
|
+
definition?: object | null;
|
|
207
|
+
georeference?: object | null;
|
|
208
|
+
}
|
|
209
|
+
|
|
203
210
|
declare interface HeatmapBarChartOptions {
|
|
204
211
|
style: 'bar-chart';
|
|
205
212
|
height: (interpolatedValue: number) => number;
|
|
@@ -283,6 +290,57 @@ declare interface Listener {
|
|
|
283
290
|
userDefined: boolean;
|
|
284
291
|
}
|
|
285
292
|
|
|
293
|
+
declare class Map_2 {
|
|
294
|
+
private options;
|
|
295
|
+
private viewerStarted;
|
|
296
|
+
private container;
|
|
297
|
+
private mapViewerRef;
|
|
298
|
+
constructor(options: MapOptions);
|
|
299
|
+
private checkOptions;
|
|
300
|
+
private prepareContainer;
|
|
301
|
+
remove: () => void;
|
|
302
|
+
mapbox(): mapboxgl.Map | undefined;
|
|
303
|
+
startViewer(options: MapViewerOptions): Promise<void>;
|
|
304
|
+
addSpaces(spaces: GeojsonSpace[]): void;
|
|
305
|
+
addSpacesById(spaceIds: string[]): void;
|
|
306
|
+
removeSpacesById(spaceIds: string[]): void;
|
|
307
|
+
removeAllSpaces(): void;
|
|
308
|
+
showOsmBuildings(): void;
|
|
309
|
+
hideOsmBuildings(): void;
|
|
310
|
+
toggleOsmBuildings(): void;
|
|
311
|
+
flyToSpace(spaceId: string): void;
|
|
312
|
+
fitAllSpacesInScreen(): void;
|
|
313
|
+
updateLoadingMessage(message: string): void;
|
|
314
|
+
showLoader(): void;
|
|
315
|
+
hideLoader(): void;
|
|
316
|
+
}
|
|
317
|
+
export { Map_2 as Map }
|
|
318
|
+
|
|
319
|
+
declare interface MapOptions {
|
|
320
|
+
clientToken: string;
|
|
321
|
+
containerId: string;
|
|
322
|
+
disableErrorReporting?: boolean;
|
|
323
|
+
internal?: boolean;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
declare interface MapViewerOptions {
|
|
327
|
+
spaceIds?: string[];
|
|
328
|
+
spaces?: GeojsonSpace[];
|
|
329
|
+
osmBuildings?: boolean;
|
|
330
|
+
hash?: boolean;
|
|
331
|
+
fitNewSpacesInScreen?: boolean;
|
|
332
|
+
preview?: boolean;
|
|
333
|
+
loadingMessage?: string;
|
|
334
|
+
forceLoader?: boolean;
|
|
335
|
+
onReady?: () => void;
|
|
336
|
+
onError?: (errorMessage: string) => void;
|
|
337
|
+
experimental__standardStyle?: boolean;
|
|
338
|
+
onSpaceClick?: ({ space, levelIndex }: {
|
|
339
|
+
space: GeojsonSpace | undefined;
|
|
340
|
+
levelIndex: number;
|
|
341
|
+
}) => void;
|
|
342
|
+
}
|
|
343
|
+
|
|
286
344
|
declare interface Material {
|
|
287
345
|
baseColor: string;
|
|
288
346
|
metallicRatio: number;
|
|
@@ -776,7 +834,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
776
834
|
z: number;
|
|
777
835
|
}
|
|
778
836
|
|
|
779
|
-
export declare const version = "2.17.1-beta.
|
|
837
|
+
export declare const version = "2.17.1-beta.14";
|
|
780
838
|
|
|
781
839
|
declare interface ViewerOptions {
|
|
782
840
|
mode?: CameraMode;
|
|
@@ -787,6 +845,7 @@ declare interface ViewerOptions {
|
|
|
787
845
|
disableCameraRotation?: boolean;
|
|
788
846
|
autoRotate?: boolean;
|
|
789
847
|
hideNavigationButtons?: boolean;
|
|
848
|
+
hideLevelPicker?: boolean;
|
|
790
849
|
compass?: boolean;
|
|
791
850
|
annotations?: boolean;
|
|
792
851
|
renderOptions?: RenderOptions;
|
package/dist/types.d.ts
CHANGED