@smplrspace/smplr-loader 2.20.0 → 2.20.1-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 +25 -2
- package/package.json +1 -1
|
@@ -406,7 +406,7 @@ declare interface NumericScaleOptions {
|
|
|
406
406
|
zeroAsNoData?: boolean;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
declare type OnPickFn = (args: { coordinates: SmplrCoord3d; furnitureId?: string }) => void
|
|
409
|
+
declare type OnPickFn = (args: { coordinates: SmplrCoord3d; furnitureId?: string }) => void | Promise<void>
|
|
410
410
|
|
|
411
411
|
declare interface Opening {
|
|
412
412
|
id: string;
|
|
@@ -661,6 +661,23 @@ export declare class QueryClient {
|
|
|
661
661
|
spaceId: string;
|
|
662
662
|
levelIndex: number;
|
|
663
663
|
}): SmplrCoord2d[] | null;
|
|
664
|
+
getRoomsOnLevel({ spaceId, levelIndex, useCache, }: {
|
|
665
|
+
spaceId: string;
|
|
666
|
+
levelIndex: number;
|
|
667
|
+
useCache?: boolean;
|
|
668
|
+
}): Promise<RoomWithHoles[] | null>;
|
|
669
|
+
getRoomsOnLevelFromCache({ spaceId, levelIndex }: {
|
|
670
|
+
spaceId: string;
|
|
671
|
+
levelIndex: number;
|
|
672
|
+
}): RoomWithHoles[] | null;
|
|
673
|
+
getRoomAtPoint({ spaceId, point }: {
|
|
674
|
+
spaceId: string;
|
|
675
|
+
point: SmplrCoord2d;
|
|
676
|
+
}): Promise<RoomWithHoles | null>;
|
|
677
|
+
getRoomAtPointFromCache({ spaceId, point }: {
|
|
678
|
+
spaceId: string;
|
|
679
|
+
point: SmplrCoord2d;
|
|
680
|
+
}): RoomWithHoles | null;
|
|
664
681
|
getAllDoorsInSpace(id: string): Promise<Opening[]>;
|
|
665
682
|
getAllDoorsInSpaceFromCache(id: string): Opening[];
|
|
666
683
|
getDoorsOnLevel({ spaceId, levelIndex }: {
|
|
@@ -723,6 +740,12 @@ declare interface RenderOptions {
|
|
|
723
740
|
}
|
|
724
741
|
}
|
|
725
742
|
|
|
743
|
+
declare interface RoomWithHoles {
|
|
744
|
+
room: SmplrCoord2d[];
|
|
745
|
+
holes: SmplrCoord2d[][];
|
|
746
|
+
coordinates: SmplrCoord2d[][];
|
|
747
|
+
}
|
|
748
|
+
|
|
726
749
|
declare interface ScreenXY {
|
|
727
750
|
screenX: number;
|
|
728
751
|
screenY: number;
|
|
@@ -850,7 +873,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
850
873
|
z: number;
|
|
851
874
|
}
|
|
852
875
|
|
|
853
|
-
export declare const version = "2.20.
|
|
876
|
+
export declare const version = "2.20.1-beta.1";
|
|
854
877
|
|
|
855
878
|
declare interface ViewerOptions {
|
|
856
879
|
mode?: CameraMode;
|