@smplrspace/smplr-loader 2.15.1 → 2.15.2-beta.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 +45 -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;
|
|
@@ -580,6 +616,9 @@ declare interface RenderOptions {
|
|
|
580
616
|
maxHeightCm?: number
|
|
581
617
|
showStructuralWalls?: boolean
|
|
582
618
|
}
|
|
619
|
+
grounds?: {
|
|
620
|
+
render?: boolean
|
|
621
|
+
}
|
|
583
622
|
doors?: boolean
|
|
584
623
|
windows?: boolean
|
|
585
624
|
flip?: boolean
|
|
@@ -665,6 +704,8 @@ export declare class Space {
|
|
|
665
704
|
zoomOut(): void;
|
|
666
705
|
showUpToLevel(levelIndex: number): void;
|
|
667
706
|
showAllLevels(): void;
|
|
707
|
+
updateRenderOptions(options: RenderOptions): void;
|
|
708
|
+
resetRenderOptions(): void;
|
|
668
709
|
}
|
|
669
710
|
|
|
670
711
|
declare interface SpaceOptions {
|
|
@@ -709,7 +750,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
709
750
|
z: number;
|
|
710
751
|
}
|
|
711
752
|
|
|
712
|
-
export declare const version = "2.15.1";
|
|
753
|
+
export declare const version = "2.15.2-beta.1";
|
|
713
754
|
|
|
714
755
|
declare interface ViewerOptions {
|
|
715
756
|
mode?: CameraMode;
|
|
@@ -738,6 +779,8 @@ declare interface ViewerRendererHandle {
|
|
|
738
779
|
centerCam: () => void
|
|
739
780
|
showUpToLevel: (levelIndex: number) => void
|
|
740
781
|
showAllLevels: () => void
|
|
782
|
+
updateRenderOptions: (options: RenderOptions) => void
|
|
783
|
+
resetRenderOptions: () => void
|
|
741
784
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
742
785
|
getFurnitureElementInstance: (furnitureId: string | string[]) => any
|
|
743
786
|
addEventListener: EventEmitter['addListener']
|