@smplrspace/smplr-loader 2.43.2-beta.1 → 2.43.2-beta.3
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 +30 -28
- package/package.json +1 -1
|
@@ -339,7 +339,7 @@ declare type DispatchDataLayersDefinitionFn = Dispatch<ReducerAction<DataLayersD
|
|
|
339
339
|
|
|
340
340
|
export declare interface DottedPolylineDataLayer<D extends UnknownData = NoData> extends BaseDataLayer<PolylineData, D> {
|
|
341
341
|
id: string;
|
|
342
|
-
type:
|
|
342
|
+
type: LayerType.DottedPolyline;
|
|
343
343
|
data: (PolylineData & D)[];
|
|
344
344
|
diameter?: number | ((dataElement: PolylineData & D) => number);
|
|
345
345
|
gap?: number;
|
|
@@ -509,7 +509,7 @@ export declare type FurnitureData = BaseData & {
|
|
|
509
509
|
|
|
510
510
|
export declare interface FurnitureDataLayer<D extends UnknownData = NoData> extends BaseDataLayer<FurnitureData, D> {
|
|
511
511
|
id: string;
|
|
512
|
-
type:
|
|
512
|
+
type: LayerType.Furniture;
|
|
513
513
|
data: (FurnitureData & D)[];
|
|
514
514
|
color?: string | ((dataElement: FurnitureData & D) => string);
|
|
515
515
|
}
|
|
@@ -768,7 +768,7 @@ export declare type HeatmapData = BaseData & {
|
|
|
768
768
|
|
|
769
769
|
export declare type HeatmapDataLayer<D extends UnknownData = NoData> = NonInteractiveDataLayer<HeatmapData, D> & {
|
|
770
770
|
id: string;
|
|
771
|
-
type:
|
|
771
|
+
type: LayerType.Heatmap;
|
|
772
772
|
data: (HeatmapData & D)[];
|
|
773
773
|
value: (dataElement: HeatmapData & D) => number;
|
|
774
774
|
gridSize?: number;
|
|
@@ -866,9 +866,10 @@ export declare type IconData = BaseData & {
|
|
|
866
866
|
|
|
867
867
|
export declare interface IconDataLayer<D extends UnknownData = NoData> extends BaseDataLayer<IconData, D> {
|
|
868
868
|
id: string;
|
|
869
|
-
type:
|
|
869
|
+
type: LayerType.Icon;
|
|
870
870
|
data: (IconData & D)[];
|
|
871
|
-
icon
|
|
871
|
+
icon?: ImageSource | ((dataElement: IconData & D) => ImageSource);
|
|
872
|
+
image?: ImageSource | ((dataElement: IconData & D) => ImageSource);
|
|
872
873
|
width?: number | ((dataElement: IconData & D) => number);
|
|
873
874
|
height?: number | ((dataElement: IconData & D) => number);
|
|
874
875
|
colorOverlay?: string | ((dataElement: IconData & D) => string);
|
|
@@ -886,16 +887,6 @@ declare interface IconLegend extends Pick<IconsSwatchesProps, 'icons'> {
|
|
|
886
887
|
type: 'icons';
|
|
887
888
|
}
|
|
888
889
|
|
|
889
|
-
export declare type IconSource = ({
|
|
890
|
-
url: string;
|
|
891
|
-
} | {
|
|
892
|
-
blob: Blob;
|
|
893
|
-
blobIdOrHash: string;
|
|
894
|
-
}) & {
|
|
895
|
-
width: number;
|
|
896
|
-
height: number;
|
|
897
|
-
};
|
|
898
|
-
|
|
899
890
|
declare interface IconsSwatchesProps {
|
|
900
891
|
icons: {
|
|
901
892
|
url: string;
|
|
@@ -909,6 +900,13 @@ declare interface IconsSwatchesProps {
|
|
|
909
900
|
declare interface IGround extends Instance<typeof Ground> {
|
|
910
901
|
}
|
|
911
902
|
|
|
903
|
+
export declare type ImageSource = {
|
|
904
|
+
url: string;
|
|
905
|
+
} | {
|
|
906
|
+
blob: Blob;
|
|
907
|
+
blobIdOrHash: string;
|
|
908
|
+
};
|
|
909
|
+
|
|
912
910
|
declare interface IObject extends Instance<typeof Object_2> {
|
|
913
911
|
}
|
|
914
912
|
|
|
@@ -1079,6 +1077,17 @@ declare const key_7 = "tableAndChairs";
|
|
|
1079
1077
|
|
|
1080
1078
|
declare const key_8 = "triangularDesk";
|
|
1081
1079
|
|
|
1080
|
+
declare enum LayerType {
|
|
1081
|
+
Point = "point",
|
|
1082
|
+
Icon = "icon",
|
|
1083
|
+
Poster = "poster",
|
|
1084
|
+
Polyline = "polyline",
|
|
1085
|
+
DottedPolyline = "dotted-polyline",
|
|
1086
|
+
Polygon = "polygon",
|
|
1087
|
+
Furniture = "furniture",
|
|
1088
|
+
Heatmap = "heatmap"
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1082
1091
|
declare type LegendConfig = NumericLegend | ColorSwatches | IconLegend;
|
|
1083
1092
|
|
|
1084
1093
|
export declare type LegendPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
@@ -2108,7 +2117,7 @@ export declare type PointData = BaseData & {
|
|
|
2108
2117
|
|
|
2109
2118
|
export declare type PointDataLayer<D extends UnknownData = NoData> = BaseDataLayer<PointData, D> & {
|
|
2110
2119
|
id: string;
|
|
2111
|
-
type:
|
|
2120
|
+
type: LayerType.Point;
|
|
2112
2121
|
data: (PointData & D)[];
|
|
2113
2122
|
anchor?: 'bottom' | 'center' | 'top';
|
|
2114
2123
|
color?: string | ((dataElement: PointData & D) => string);
|
|
@@ -2133,7 +2142,7 @@ export declare type PolygonData = BaseData & {
|
|
|
2133
2142
|
|
|
2134
2143
|
export declare interface PolygonDataLayer<D extends UnknownData = NoData> extends BaseDataLayer<PolygonData, D> {
|
|
2135
2144
|
id: string;
|
|
2136
|
-
type:
|
|
2145
|
+
type: LayerType.Polygon;
|
|
2137
2146
|
data: (PolygonData & D)[];
|
|
2138
2147
|
baseHeight?: number | ((dataElement: PolygonData & D) => number);
|
|
2139
2148
|
height?: number | ((dataElement: PolygonData & D) => number);
|
|
@@ -2159,7 +2168,7 @@ export declare type PolylineData = BaseData & {
|
|
|
2159
2168
|
|
|
2160
2169
|
export declare interface PolylineDataLayer<D extends UnknownData = NoData> extends BaseDataLayer<PolylineData, D> {
|
|
2161
2170
|
id: string;
|
|
2162
|
-
type:
|
|
2171
|
+
type: LayerType.Polyline;
|
|
2163
2172
|
data: (PolylineData & D)[];
|
|
2164
2173
|
shape?: 'circle' | 'triangle' | 'square' | 'pentagon' | 'hexagon' | [number, number][];
|
|
2165
2174
|
cap?: boolean;
|
|
@@ -2192,9 +2201,9 @@ export declare type PosterData = BaseData & {
|
|
|
2192
2201
|
|
|
2193
2202
|
export declare interface PosterDataLayer<D extends UnknownData = NoData> extends BaseDataLayer<PosterData, D> {
|
|
2194
2203
|
id: string;
|
|
2195
|
-
type:
|
|
2204
|
+
type: LayerType.Poster;
|
|
2196
2205
|
data: (PosterData & D)[];
|
|
2197
|
-
|
|
2206
|
+
image: ImageSource | ((dataElement: PosterData & D) => ImageSource);
|
|
2198
2207
|
width?: number | ((dataElement: PosterData & D) => number);
|
|
2199
2208
|
height?: number | ((dataElement: PosterData & D) => number);
|
|
2200
2209
|
alpha?: number;
|
|
@@ -2209,13 +2218,6 @@ export declare interface PosterDataLayer<D extends UnknownData = NoData> extends
|
|
|
2209
2218
|
disableElevationCorrection?: boolean;
|
|
2210
2219
|
}
|
|
2211
2220
|
|
|
2212
|
-
export declare type PosterSource = {
|
|
2213
|
-
url: string;
|
|
2214
|
-
} | {
|
|
2215
|
-
blob: Blob;
|
|
2216
|
-
blobIdOrHash: string;
|
|
2217
|
-
};
|
|
2218
|
-
|
|
2219
2221
|
export declare class QueryClient {
|
|
2220
2222
|
private options;
|
|
2221
2223
|
private client;
|
|
@@ -3800,7 +3802,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3800
3802
|
z: number;
|
|
3801
3803
|
}
|
|
3802
3804
|
|
|
3803
|
-
export declare const version = "2.43.2-beta.
|
|
3805
|
+
export declare const version = "2.43.2-beta.3";
|
|
3804
3806
|
|
|
3805
3807
|
declare interface ViewerRendererHandle {
|
|
3806
3808
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|