@smplrspace/smplr-loader 2.14.1-beta.2 → 2.14.1
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 +6 -39
- package/package.json +1 -1
|
@@ -25,16 +25,7 @@ declare interface ClientOptions {
|
|
|
25
25
|
clientToken: string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
declare
|
|
29
|
-
shape: 'cube';
|
|
30
|
-
size?: number;
|
|
31
|
-
width?: number;
|
|
32
|
-
height?: number;
|
|
33
|
-
depth?: number;
|
|
34
|
-
scale?: (dataElement: PointData & D) => number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare type DataLayer<D extends UnknownData = NoData> = PointDataLayer<D> | IconDataLayer<D> | PolygonDataLayer<D> | PolylineDataLayer<D> | DottedPolylineDataLayer<D> | FurnitureDataLayer<D> | HeatmapDataLayer<D>;
|
|
28
|
+
declare type DataLayer<D extends UnknownData = NoData> = PointDataLayer<D> | IconDataLayer<D> | PolygonDataLayer<D> | PolylineDataLayer<D> | DottedPolylineDataLayer<D> | FurnitureDataLayer<D>;
|
|
38
29
|
|
|
39
30
|
declare class DataLayerController<D extends UnknownData> {
|
|
40
31
|
private dataLayer;
|
|
@@ -215,21 +206,6 @@ declare interface FurnitureDataLayer<D extends UnknownData = NoData> extends Bas
|
|
|
215
206
|
color?: string | ((dataElement: FurnitureData & D) => string);
|
|
216
207
|
}
|
|
217
208
|
|
|
218
|
-
declare type HeatmapData = BaseData & {
|
|
219
|
-
position: SmplrCoord2d;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
declare interface HeatmapDataLayer<D extends UnknownData = NoData> extends NonInteractiveDataLayer<HeatmapData, D> {
|
|
223
|
-
id: string;
|
|
224
|
-
type: 'heatmap';
|
|
225
|
-
data: (HeatmapData & D)[];
|
|
226
|
-
value: (dataElement: HeatmapData & D) => number;
|
|
227
|
-
gridSize?: number;
|
|
228
|
-
mask?: SmplrCoord2d[];
|
|
229
|
-
color: (interpolatedValue: number) => string;
|
|
230
|
-
confidenceRadius?: number;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
209
|
declare type IconData = BaseData & {
|
|
234
210
|
position: SmplrCoord3d;
|
|
235
211
|
};
|
|
@@ -261,9 +237,6 @@ declare interface Listener {
|
|
|
261
237
|
|
|
262
238
|
declare type NoData = Record<string, never>;
|
|
263
239
|
|
|
264
|
-
declare interface NonInteractiveDataLayer<T, D extends UnknownData> {
|
|
265
|
-
}
|
|
266
|
-
|
|
267
240
|
declare type OnPickFn = (args: { coordinates: SmplrCoord3d; furnitureId?: string }) => void
|
|
268
241
|
|
|
269
242
|
declare interface OrbitCamera extends ArcRotateCamera {
|
|
@@ -299,10 +272,11 @@ declare type PointData = BaseData & {
|
|
|
299
272
|
position: SmplrCoord3d;
|
|
300
273
|
};
|
|
301
274
|
|
|
302
|
-
declare
|
|
275
|
+
declare interface PointDataLayer<D extends UnknownData = NoData> extends BaseDataLayer<PointData, D> {
|
|
303
276
|
id: string;
|
|
304
277
|
type: 'point';
|
|
305
278
|
data: (PointData & D)[];
|
|
279
|
+
diameter?: number | ((dataElement: PointData & D) => number);
|
|
306
280
|
anchor?: 'bottom' | 'center' | 'top';
|
|
307
281
|
color?: string | ((dataElement: PointData & D) => string);
|
|
308
282
|
alpha?: number;
|
|
@@ -313,7 +287,7 @@ declare type PointDataLayer<D extends UnknownData = NoData> = BaseDataLayer<Poin
|
|
|
313
287
|
data: PointData & D;
|
|
314
288
|
position: SmplrCoord3d;
|
|
315
289
|
}) => void;
|
|
316
|
-
}
|
|
290
|
+
}
|
|
317
291
|
|
|
318
292
|
declare type PolygonData = BaseData & {
|
|
319
293
|
coordinates: SmplrCoord2d[];
|
|
@@ -418,7 +392,7 @@ export declare class QueryClient {
|
|
|
418
392
|
spaceId: string;
|
|
419
393
|
levelIndex: number;
|
|
420
394
|
padding?: number;
|
|
421
|
-
}): Promise<SmplrCoord2d[]>;
|
|
395
|
+
}): Promise<SmplrCoord2d[] | null>;
|
|
422
396
|
isPointInPolygon({ point, polygon }: {
|
|
423
397
|
point: SmplrCoord2d;
|
|
424
398
|
polygon: SmplrCoord2d[];
|
|
@@ -473,8 +447,6 @@ declare interface ScreenXY {
|
|
|
473
447
|
screenY: number;
|
|
474
448
|
}
|
|
475
449
|
|
|
476
|
-
declare type ShapeOptions<D> = SphereOptions<D> | CubeOptions<D>;
|
|
477
|
-
|
|
478
450
|
declare type SmplrCamera = OrbitCamera | UniversalCamera | VRDeviceOrientationFreeCamera;
|
|
479
451
|
|
|
480
452
|
declare interface SmplrCoord2d {
|
|
@@ -552,11 +524,6 @@ declare interface SpaceOptions {
|
|
|
552
524
|
internal?: boolean;
|
|
553
525
|
}
|
|
554
526
|
|
|
555
|
-
declare interface SphereOptions<D> {
|
|
556
|
-
shape: 'sphere';
|
|
557
|
-
diameter?: number | ((dataElement: PointData & D) => number);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
527
|
declare const toString_2: () => string;
|
|
561
528
|
export { toString_2 as toString }
|
|
562
529
|
|
|
@@ -581,7 +548,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
581
548
|
z: number;
|
|
582
549
|
}
|
|
583
550
|
|
|
584
|
-
export declare const version = "2.14.1
|
|
551
|
+
export declare const version = "2.14.1";
|
|
585
552
|
|
|
586
553
|
declare interface ViewerOptions {
|
|
587
554
|
mode?: CameraMode;
|