@smplrspace/smplr-loader 2.35.2-beta.0 → 2.35.2-beta.2
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 +26 -14
- package/package.json +1 -1
|
@@ -454,13 +454,6 @@ export declare interface FurnitureDataLayer<D extends UnknownData = NoData> exte
|
|
|
454
454
|
color?: string | ((dataElement: FurnitureData & D) => string);
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
export declare interface GeojsonSpace {
|
|
458
|
-
sid: string;
|
|
459
|
-
name: string;
|
|
460
|
-
definition?: object | null;
|
|
461
|
-
georeference?: object | null;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
457
|
export declare interface GeoPoint {
|
|
465
458
|
lng: number;
|
|
466
459
|
lat: number;
|
|
@@ -498,6 +491,13 @@ declare interface Georeference {
|
|
|
498
491
|
cameraPlacement: MapCameraPlacement;
|
|
499
492
|
}
|
|
500
493
|
|
|
494
|
+
export declare interface GeoSpace {
|
|
495
|
+
sid: string;
|
|
496
|
+
name: string;
|
|
497
|
+
definition?: object | null;
|
|
498
|
+
georeference?: object | null;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
501
|
declare const getGroundFootprint: GroundFootprintGetter<CubeConfiguration>;
|
|
502
502
|
|
|
503
503
|
declare const getGroundFootprint_2: GroundFootprintGetter<DeskConfiguration>;
|
|
@@ -1358,6 +1358,8 @@ declare class Map_2 {
|
|
|
1358
1358
|
updateGeoPolygonDataLayer<D extends UnknownData>(definitionUpdates: Partial<GeoPolygonMapDataLayerDefinition<D>>): void;
|
|
1359
1359
|
addOsmBuildingDataLayer<D extends UnknownData>(definition: OsmBuildingMapDataLayerDefinition<D>): void;
|
|
1360
1360
|
updateOsmBuildingDataLayer<D extends UnknownData>(definitionUpdates: Partial<OsmBuildingMapDataLayerDefinition<D>>): void;
|
|
1361
|
+
addSpaceShellDataLayer<D extends UnknownData>(definition: SpaceShellMapDataLayerDefinition<D>): void;
|
|
1362
|
+
updateSpaceShellDataLayer<D extends UnknownData>(definitionUpdates: Partial<SpaceShellMapDataLayerDefinition<D>>): void;
|
|
1361
1363
|
removeDataLayer(id: string): void;
|
|
1362
1364
|
removeAllDataLayers(): void;
|
|
1363
1365
|
enablePickingMode({ onPick }: {
|
|
@@ -1368,7 +1370,7 @@ declare class Map_2 {
|
|
|
1368
1370
|
setStyle(style: string): void;
|
|
1369
1371
|
setDefaultStyle(): void;
|
|
1370
1372
|
getCurrentSpaceIds(): string[];
|
|
1371
|
-
addSpaces(spaces:
|
|
1373
|
+
addSpaces(spaces: GeoSpace[]): void;
|
|
1372
1374
|
addSpacesById(spaceIds: string[]): void;
|
|
1373
1375
|
removeSpacesById(spaceIds: string[]): void;
|
|
1374
1376
|
removeAllSpaces(): void;
|
|
@@ -1455,7 +1457,7 @@ export declare interface MapRenderOptions {
|
|
|
1455
1457
|
|
|
1456
1458
|
export declare interface MapViewerOptions {
|
|
1457
1459
|
spaceIds?: string[];
|
|
1458
|
-
spaces?:
|
|
1460
|
+
spaces?: GeoSpace[];
|
|
1459
1461
|
osmBuildings?: boolean;
|
|
1460
1462
|
search?: boolean;
|
|
1461
1463
|
hash?: boolean;
|
|
@@ -1467,7 +1469,7 @@ export declare interface MapViewerOptions {
|
|
|
1467
1469
|
onError?: (errorMessage: string) => void;
|
|
1468
1470
|
experimental__standardStyle?: boolean;
|
|
1469
1471
|
onSpaceClick?: ({ space, levelIndex }: {
|
|
1470
|
-
space:
|
|
1472
|
+
space: ValidGeoSpace | undefined;
|
|
1471
1473
|
levelIndex: number;
|
|
1472
1474
|
}) => void;
|
|
1473
1475
|
legendPosition?: LegendPosition;
|
|
@@ -1714,12 +1716,12 @@ declare interface OrientatedGeoPoint extends GeoPoint {
|
|
|
1714
1716
|
heading: number;
|
|
1715
1717
|
}
|
|
1716
1718
|
|
|
1717
|
-
declare type OsmBuildingData = BaseData & {
|
|
1719
|
+
export declare type OsmBuildingData = BaseData & {
|
|
1718
1720
|
id: string;
|
|
1719
1721
|
osmIds: number[];
|
|
1720
1722
|
};
|
|
1721
1723
|
|
|
1722
|
-
declare type OsmBuildingMapDataLayerDefinition<D extends UnknownData = NoData> = MapDataLayerSharedDefinition<OsmBuildingData, D> & {
|
|
1724
|
+
export declare type OsmBuildingMapDataLayerDefinition<D extends UnknownData = NoData> = MapDataLayerSharedDefinition<OsmBuildingData, D> & {
|
|
1723
1725
|
data: (OsmBuildingData & D)[];
|
|
1724
1726
|
color?: string | ((dataElement: OsmBuildingData & D) => string);
|
|
1725
1727
|
};
|
|
@@ -3039,6 +3041,16 @@ export declare interface SpaceRenderOptions {
|
|
|
3039
3041
|
}
|
|
3040
3042
|
}
|
|
3041
3043
|
|
|
3044
|
+
export declare type SpaceShellData = BaseData & {
|
|
3045
|
+
id: string;
|
|
3046
|
+
spaceId: string;
|
|
3047
|
+
};
|
|
3048
|
+
|
|
3049
|
+
export declare type SpaceShellMapDataLayerDefinition<D extends UnknownData = NoData> = MapDataLayerSharedDefinition<SpaceShellData, D> & {
|
|
3050
|
+
data: (SpaceShellData & D)[];
|
|
3051
|
+
color?: string | ((dataElement: SpaceShellData & D) => string);
|
|
3052
|
+
};
|
|
3053
|
+
|
|
3042
3054
|
declare type SpaceSid = `${SpacePrefix}${string}`;
|
|
3043
3055
|
|
|
3044
3056
|
export declare interface SpaceViewerOptions {
|
|
@@ -3209,7 +3221,7 @@ declare interface User extends Auth0UserWithClaims {
|
|
|
3209
3221
|
emailVerified: boolean
|
|
3210
3222
|
}
|
|
3211
3223
|
|
|
3212
|
-
export declare interface
|
|
3224
|
+
export declare interface ValidGeoSpace extends GeoSpace {
|
|
3213
3225
|
definition: SOSpace;
|
|
3214
3226
|
georeference: Georeference;
|
|
3215
3227
|
basementsCount: number;
|
|
@@ -3224,7 +3236,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3224
3236
|
z: number;
|
|
3225
3237
|
}
|
|
3226
3238
|
|
|
3227
|
-
export declare const version = "2.35.2-beta.
|
|
3239
|
+
export declare const version = "2.35.2-beta.2";
|
|
3228
3240
|
|
|
3229
3241
|
declare interface ViewerRendererHandle {
|
|
3230
3242
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|