@smplrspace/smplr-loader 2.13.1-beta.9 → 2.14.0
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 +49 -1
- package/package.json +1 -1
|
@@ -364,10 +364,58 @@ export declare class QueryClient {
|
|
|
364
364
|
public_link_enabled: boolean;
|
|
365
365
|
}>;
|
|
366
366
|
getAllFurnitureInSpace(id: string): Promise<Furniture[]>;
|
|
367
|
+
getFurnitureOnLevel({ spaceId, levelIndex }: {
|
|
368
|
+
spaceId: string;
|
|
369
|
+
levelIndex: number;
|
|
370
|
+
}): Promise<Furniture[]>;
|
|
367
371
|
getFurnitureById({ spaceId, furnitureId, }: {
|
|
368
372
|
spaceId: string;
|
|
369
373
|
furnitureId: string;
|
|
370
374
|
}): Promise<Furniture | null>;
|
|
375
|
+
getSpaceAssetmap(id: string): Promise<unknown>;
|
|
376
|
+
getPolylineLength({ line, unit }: {
|
|
377
|
+
line: SmplrCoord3d[];
|
|
378
|
+
unit?: 'ft' | 'm' | 'cm' | 'mm';
|
|
379
|
+
}): number;
|
|
380
|
+
getPolygonArea({ polygon, unit }: {
|
|
381
|
+
polygon: SmplrCoord2d[];
|
|
382
|
+
unit?: 'sqft' | 'sqm';
|
|
383
|
+
}): number;
|
|
384
|
+
getPolygonCenter({ polygon }: {
|
|
385
|
+
polygon: SmplrCoord2d[];
|
|
386
|
+
}): SmplrCoord2d;
|
|
387
|
+
getPointsBoundingBox({ points, padding }: {
|
|
388
|
+
points: SmplrCoord2d[];
|
|
389
|
+
padding?: number;
|
|
390
|
+
}): SmplrCoord2d[];
|
|
391
|
+
getLevelBoundingBox({ spaceId, levelIndex, padding, }: {
|
|
392
|
+
spaceId: string;
|
|
393
|
+
levelIndex: number;
|
|
394
|
+
padding?: number;
|
|
395
|
+
}): Promise<SmplrCoord2d[] | null>;
|
|
396
|
+
isPointInPolygon({ point, polygon }: {
|
|
397
|
+
point: SmplrCoord2d;
|
|
398
|
+
polygon: SmplrCoord2d[];
|
|
399
|
+
}): boolean;
|
|
400
|
+
isFurnitureInPolygon({ spaceId, furnitureId, polygon, }: {
|
|
401
|
+
spaceId: string;
|
|
402
|
+
furnitureId: string;
|
|
403
|
+
polygon: SmplrCoord2d[];
|
|
404
|
+
}): Promise<boolean | null>;
|
|
405
|
+
getFurnitureInPolygon({ spaceId, polygon, }: {
|
|
406
|
+
spaceId: string;
|
|
407
|
+
polygon: SmplrCoord2d[];
|
|
408
|
+
}): Promise<Furniture[]>;
|
|
409
|
+
getPointsConcaveHull({ points, simplify, simplifyTolerance, }: {
|
|
410
|
+
points: SmplrCoord2d[];
|
|
411
|
+
simplify?: boolean;
|
|
412
|
+
simplifyTolerance?: number;
|
|
413
|
+
}): SmplrCoord2d[];
|
|
414
|
+
getLinesConcaveHull({ lines, simplify, simplifyTolerance, }: {
|
|
415
|
+
lines: SmplrCoord2d[][];
|
|
416
|
+
simplify?: boolean;
|
|
417
|
+
simplifyTolerance?: number;
|
|
418
|
+
}): SmplrCoord2d[];
|
|
371
419
|
}
|
|
372
420
|
|
|
373
421
|
declare interface RenderOptions {
|
|
@@ -500,7 +548,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
500
548
|
z: number;
|
|
501
549
|
}
|
|
502
550
|
|
|
503
|
-
export declare const version = "2.
|
|
551
|
+
export declare const version = "2.14.0";
|
|
504
552
|
|
|
505
553
|
declare interface ViewerOptions {
|
|
506
554
|
mode?: CameraMode;
|