@smplrspace/smplr-loader 2.15.1 → 2.15.2-beta.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 +38 -2
- package/package.json +1 -1
|
@@ -501,16 +501,38 @@ export declare class QueryClient {
|
|
|
501
501
|
short_code?: string | null | undefined;
|
|
502
502
|
public_link_enabled: boolean;
|
|
503
503
|
}>;
|
|
504
|
+
getSpaceFromCache(id: string): {
|
|
505
|
+
status: string;
|
|
506
|
+
name: string;
|
|
507
|
+
id: string;
|
|
508
|
+
assetmap?: {} | null | undefined;
|
|
509
|
+
created_at: string;
|
|
510
|
+
modified_at: string;
|
|
511
|
+
definition?: {} | null | undefined;
|
|
512
|
+
embed_image?: string | null | undefined;
|
|
513
|
+
short_code?: string | null | undefined;
|
|
514
|
+
public_link_enabled: boolean;
|
|
515
|
+
};
|
|
504
516
|
getAllFurnitureInSpace(id: string): Promise<Furniture[]>;
|
|
517
|
+
getAllFurnitureInSpaceFromCache(id: string): Furniture[];
|
|
505
518
|
getFurnitureOnLevel({ spaceId, levelIndex }: {
|
|
506
519
|
spaceId: string;
|
|
507
520
|
levelIndex: number;
|
|
508
521
|
}): Promise<Furniture[]>;
|
|
522
|
+
getFurnitureOnLevelFromCache({ spaceId, levelIndex }: {
|
|
523
|
+
spaceId: string;
|
|
524
|
+
levelIndex: number;
|
|
525
|
+
}): Furniture[];
|
|
509
526
|
getFurnitureById({ spaceId, furnitureId, }: {
|
|
510
527
|
spaceId: string;
|
|
511
528
|
furnitureId: string;
|
|
512
529
|
}): Promise<Furniture | null>;
|
|
530
|
+
getFurnitureByIdFromCache({ spaceId, furnitureId }: {
|
|
531
|
+
spaceId: string;
|
|
532
|
+
furnitureId: string;
|
|
533
|
+
}): Furniture | null;
|
|
513
534
|
getSpaceAssetmap(id: string): Promise<unknown>;
|
|
535
|
+
getSpaceAssetmapFromCache(id: string): unknown;
|
|
514
536
|
getPolylineLength({ line, unit }: {
|
|
515
537
|
line: SmplrCoord3d[];
|
|
516
538
|
unit?: 'ft' | 'm' | 'cm' | 'mm';
|
|
@@ -530,7 +552,12 @@ export declare class QueryClient {
|
|
|
530
552
|
spaceId: string;
|
|
531
553
|
levelIndex: number;
|
|
532
554
|
padding?: number;
|
|
533
|
-
}): Promise<SmplrCoord2d[]>;
|
|
555
|
+
}): Promise<SmplrCoord2d[] | null>;
|
|
556
|
+
getLevelBoundingBoxFromCache({ spaceId, levelIndex, padding, }: {
|
|
557
|
+
spaceId: string;
|
|
558
|
+
levelIndex: number;
|
|
559
|
+
padding?: number;
|
|
560
|
+
}): SmplrCoord2d[] | null;
|
|
534
561
|
isPointInPolygon({ point, polygon }: {
|
|
535
562
|
point: SmplrCoord2d;
|
|
536
563
|
polygon: SmplrCoord2d[];
|
|
@@ -540,10 +567,19 @@ export declare class QueryClient {
|
|
|
540
567
|
furnitureId: string;
|
|
541
568
|
polygon: SmplrCoord2d[];
|
|
542
569
|
}): Promise<boolean | null>;
|
|
570
|
+
isFurnitureInPolygonFromCache({ spaceId, furnitureId, polygon, }: {
|
|
571
|
+
spaceId: string;
|
|
572
|
+
furnitureId: string;
|
|
573
|
+
polygon: SmplrCoord2d[];
|
|
574
|
+
}): boolean | null;
|
|
543
575
|
getFurnitureInPolygon({ spaceId, polygon, }: {
|
|
544
576
|
spaceId: string;
|
|
545
577
|
polygon: SmplrCoord2d[];
|
|
546
578
|
}): Promise<Furniture[]>;
|
|
579
|
+
getFurnitureInPolygonFromCache({ spaceId, polygon }: {
|
|
580
|
+
spaceId: string;
|
|
581
|
+
polygon: SmplrCoord2d[];
|
|
582
|
+
}): Furniture[];
|
|
547
583
|
getPointsConcaveHull({ points, simplify, simplifyTolerance, }: {
|
|
548
584
|
points: SmplrCoord2d[];
|
|
549
585
|
simplify?: boolean;
|
|
@@ -709,7 +745,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
709
745
|
z: number;
|
|
710
746
|
}
|
|
711
747
|
|
|
712
|
-
export declare const version = "2.15.
|
|
748
|
+
export declare const version = "2.15.2-beta.0";
|
|
713
749
|
|
|
714
750
|
declare interface ViewerOptions {
|
|
715
751
|
mode?: CameraMode;
|