@smplrspace/smplr-loader 2.33.1-beta.1 → 2.33.1-beta.10
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 +28 -3
- package/package.json +1 -1
|
@@ -216,6 +216,10 @@ declare interface ColorSwatchesProps {
|
|
|
216
216
|
noLabels?: boolean;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
declare type ColorValueHex = `#${string}`
|
|
220
|
+
|
|
221
|
+
export declare type ControlsPosition = LegendPosition | 'center-left' | 'center-right'
|
|
222
|
+
|
|
219
223
|
declare const cssToSmplrColor: (c: string) => string;
|
|
220
224
|
|
|
221
225
|
declare namespace cube {
|
|
@@ -804,6 +808,8 @@ declare const key_8 = "triangularDesk";
|
|
|
804
808
|
|
|
805
809
|
declare type LegendConfig = NumericLegend | ColorSwatches | IconLegend;
|
|
806
810
|
|
|
811
|
+
export declare type LegendPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
812
|
+
|
|
807
813
|
declare interface LegendProps {
|
|
808
814
|
colorScale: (n: number | null | undefined) => string;
|
|
809
815
|
domain?: [number, number];
|
|
@@ -1351,6 +1357,8 @@ declare class Map_2 {
|
|
|
1351
1357
|
}): void;
|
|
1352
1358
|
flyToSpace(spaceId: string, options?: EasingOptions): void;
|
|
1353
1359
|
fitAllSpacesInScreen(): void;
|
|
1360
|
+
zoomIn(): void;
|
|
1361
|
+
zoomOut(): void;
|
|
1354
1362
|
updateLoadingMessage(message: string): void;
|
|
1355
1363
|
showLoader(): void;
|
|
1356
1364
|
hideLoader(): void;
|
|
@@ -1370,6 +1378,15 @@ declare interface MapDataLayerSharedDefinition<T, D extends UnknownSpaceData> {
|
|
|
1370
1378
|
onHoverOut?: (dataElement: T & D, event: MapMouseEvent) => void;
|
|
1371
1379
|
}
|
|
1372
1380
|
|
|
1381
|
+
declare interface MapFilter {
|
|
1382
|
+
wallColor: ColorValueHex;
|
|
1383
|
+
windowColor: ColorValueHex;
|
|
1384
|
+
indoorGroundColor: ColorValueHex;
|
|
1385
|
+
grassGroundColor: ColorValueHex;
|
|
1386
|
+
waterGroundColor: ColorValueHex;
|
|
1387
|
+
darkGreyGroundColor: ColorValueHex;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1373
1390
|
export declare type MapOptions = {
|
|
1374
1391
|
clientToken: string;
|
|
1375
1392
|
disableErrorReporting?: boolean;
|
|
@@ -1395,6 +1412,7 @@ export declare interface MapRenderOptions {
|
|
|
1395
1412
|
windows: {
|
|
1396
1413
|
render: boolean;
|
|
1397
1414
|
};
|
|
1415
|
+
filter: MapFilter;
|
|
1398
1416
|
}
|
|
1399
1417
|
|
|
1400
1418
|
export declare interface MapViewerOptions {
|
|
@@ -1414,7 +1432,11 @@ export declare interface MapViewerOptions {
|
|
|
1414
1432
|
space: ValidGeojsonSpace | undefined;
|
|
1415
1433
|
levelIndex: number;
|
|
1416
1434
|
}) => void;
|
|
1417
|
-
legendPosition?:
|
|
1435
|
+
legendPosition?: LegendPosition;
|
|
1436
|
+
hideControls?: boolean;
|
|
1437
|
+
controlsPosition?: ControlsPosition;
|
|
1438
|
+
hideNavigationButtons?: boolean;
|
|
1439
|
+
hideLevelPicker?: boolean;
|
|
1418
1440
|
}
|
|
1419
1441
|
|
|
1420
1442
|
declare interface Material {
|
|
@@ -2968,13 +2990,15 @@ export declare interface SpaceViewerOptions {
|
|
|
2968
2990
|
mode?: CameraMode;
|
|
2969
2991
|
preview?: boolean;
|
|
2970
2992
|
allowModeChange?: boolean;
|
|
2993
|
+
hideControls?: boolean;
|
|
2994
|
+
controlsPosition?: ControlsPosition;
|
|
2971
2995
|
cameraPlacement?: PartialOrbitCameraPlacement;
|
|
2972
2996
|
disableCameraControls?: boolean;
|
|
2973
2997
|
disableCameraRotation?: boolean;
|
|
2974
2998
|
autoRotate?: boolean;
|
|
2975
2999
|
hideNavigationButtons?: boolean;
|
|
2976
3000
|
hideLevelPicker?: boolean;
|
|
2977
|
-
legendPosition?:
|
|
3001
|
+
legendPosition?: LegendPosition;
|
|
2978
3002
|
compass?: boolean;
|
|
2979
3003
|
annotations?: boolean;
|
|
2980
3004
|
renderOptions?: SpaceRenderOptions;
|
|
@@ -3131,6 +3155,7 @@ declare interface User extends Auth0UserWithClaims {
|
|
|
3131
3155
|
export declare interface ValidGeojsonSpace extends GeojsonSpace {
|
|
3132
3156
|
definition: SOSpace;
|
|
3133
3157
|
georeference: Georeference;
|
|
3158
|
+
basementsCount: number;
|
|
3134
3159
|
}
|
|
3135
3160
|
|
|
3136
3161
|
declare interface Vector2Coord {
|
|
@@ -3142,7 +3167,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3142
3167
|
z: number;
|
|
3143
3168
|
}
|
|
3144
3169
|
|
|
3145
|
-
export declare const version = "2.33.1-beta.
|
|
3170
|
+
export declare const version = "2.33.1-beta.10";
|
|
3146
3171
|
|
|
3147
3172
|
declare interface ViewerRendererHandle {
|
|
3148
3173
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|