@smplrspace/smplr-loader 2.37.1-beta.1 → 2.37.1-beta.11
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 +13 -6
- package/package.json +1 -1
|
@@ -768,11 +768,7 @@ export declare interface IconDataLayer<D extends UnknownData = NoData> extends B
|
|
|
768
768
|
id: string;
|
|
769
769
|
type: 'icon';
|
|
770
770
|
data: (IconData & D)[];
|
|
771
|
-
icon:
|
|
772
|
-
url: string;
|
|
773
|
-
width: number;
|
|
774
|
-
height: number;
|
|
775
|
-
};
|
|
771
|
+
icon: IconSource | ((dataElement: IconData & D) => IconSource);
|
|
776
772
|
width?: number | ((dataElement: IconData & D) => number);
|
|
777
773
|
onDrag?: (dragged: {
|
|
778
774
|
data: IconData & D;
|
|
@@ -788,6 +784,12 @@ declare interface IconLegend extends Pick<IconsSwatchesProps, 'icons'> {
|
|
|
788
784
|
type: 'icons';
|
|
789
785
|
}
|
|
790
786
|
|
|
787
|
+
export declare interface IconSource {
|
|
788
|
+
url: string;
|
|
789
|
+
width: number;
|
|
790
|
+
height: number;
|
|
791
|
+
}
|
|
792
|
+
|
|
791
793
|
declare interface IconsSwatchesProps {
|
|
792
794
|
icons: {
|
|
793
795
|
url: string;
|
|
@@ -1903,6 +1905,7 @@ export declare class QueryClient {
|
|
|
1903
1905
|
created_at: string;
|
|
1904
1906
|
modified_at: string;
|
|
1905
1907
|
embed_image?: string | null | undefined;
|
|
1908
|
+
embed_image_id?: string | null | undefined;
|
|
1906
1909
|
}>;
|
|
1907
1910
|
getSpaceFromCache(spaceId: string): {
|
|
1908
1911
|
sid: string;
|
|
@@ -1915,6 +1918,7 @@ export declare class QueryClient {
|
|
|
1915
1918
|
created_at: string;
|
|
1916
1919
|
modified_at: string;
|
|
1917
1920
|
embed_image?: string | null | undefined;
|
|
1921
|
+
embed_image_id?: string | null | undefined;
|
|
1918
1922
|
};
|
|
1919
1923
|
getAllFurnitureInSpace(spaceId: string): Promise<Furniture[]>;
|
|
1920
1924
|
getAllFurnitureInSpaceFromCache(spaceId: string): Furniture[];
|
|
@@ -2402,6 +2406,9 @@ export declare class Space {
|
|
|
2402
2406
|
takeScreenshotToString(args: TakeScreenshotArgs & {
|
|
2403
2407
|
mode: '3d-scene' | 'full-viewer';
|
|
2404
2408
|
}): Promise<string>;
|
|
2409
|
+
takeScreenshotToFile(args: TakeScreenshotArgs & {
|
|
2410
|
+
mode: '3d-scene' | 'full-viewer';
|
|
2411
|
+
}): Promise<File>;
|
|
2405
2412
|
}
|
|
2406
2413
|
|
|
2407
2414
|
declare const Space_2: IModelType< {
|
|
@@ -3300,7 +3307,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3300
3307
|
z: number;
|
|
3301
3308
|
}
|
|
3302
3309
|
|
|
3303
|
-
export declare const version = "2.37.1-beta.
|
|
3310
|
+
export declare const version = "2.37.1-beta.11";
|
|
3304
3311
|
|
|
3305
3312
|
declare interface ViewerRendererHandle {
|
|
3306
3313
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|