@smplrspace/smplr-loader 2.9.1-beta.6 → 2.10.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 +31 -2
- package/package.json +1 -1
|
@@ -65,6 +65,12 @@ declare interface DeprecatedPreviewProps {
|
|
|
65
65
|
onError: () => void;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
declare interface Dimensions {
|
|
69
|
+
length: number;
|
|
70
|
+
height: number;
|
|
71
|
+
width: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
68
74
|
declare type DispatchDataLayersDefinitionFn = Dispatch<ReducerAction<DataLayersDefinitionReducer>>;
|
|
69
75
|
|
|
70
76
|
declare type EventHandler = () => void;
|
|
@@ -159,6 +165,21 @@ declare interface Filter {
|
|
|
159
165
|
};
|
|
160
166
|
}
|
|
161
167
|
|
|
168
|
+
declare interface Furniture {
|
|
169
|
+
catalogId: string;
|
|
170
|
+
id: string;
|
|
171
|
+
name: string;
|
|
172
|
+
levelIndex: number;
|
|
173
|
+
position: Omit<SmplrCoord3d, 'levelIndex'>;
|
|
174
|
+
rotation: Partial<{
|
|
175
|
+
pitch: number;
|
|
176
|
+
yaw: number;
|
|
177
|
+
roll: number;
|
|
178
|
+
}>;
|
|
179
|
+
dimensions: Partial<Dimensions>;
|
|
180
|
+
configuration?: object;
|
|
181
|
+
}
|
|
182
|
+
|
|
162
183
|
declare type FurnitureData = BaseData & {
|
|
163
184
|
furnitureId: string | string[];
|
|
164
185
|
};
|
|
@@ -287,11 +308,14 @@ declare interface PolylineDataLayer<D extends UnknownData = NoData> extends Base
|
|
|
287
308
|
export declare class QueryClient {
|
|
288
309
|
private options;
|
|
289
310
|
private client;
|
|
311
|
+
private cache;
|
|
290
312
|
constructor(options: ClientOptions);
|
|
291
313
|
private checkOptions;
|
|
292
314
|
checkApiConnection(): Promise<string>;
|
|
293
315
|
getApiVersion(): Promise<string>;
|
|
294
|
-
getSpace(id: string
|
|
316
|
+
getSpace(id: string, { useCache }?: {
|
|
317
|
+
useCache?: boolean | undefined;
|
|
318
|
+
}): Promise<{
|
|
295
319
|
status: string;
|
|
296
320
|
name: string;
|
|
297
321
|
id: string;
|
|
@@ -303,6 +327,11 @@ export declare class QueryClient {
|
|
|
303
327
|
short_code?: string | null | undefined;
|
|
304
328
|
public_link_enabled: boolean;
|
|
305
329
|
}>;
|
|
330
|
+
getAllFurnitureInSpace(id: string): Promise<Furniture[]>;
|
|
331
|
+
getFurnitureById({ spaceId, furnitureId, }: {
|
|
332
|
+
spaceId: string;
|
|
333
|
+
furnitureId: string;
|
|
334
|
+
}): Promise<Furniture | null>;
|
|
306
335
|
}
|
|
307
336
|
|
|
308
337
|
declare interface RenderOptions {
|
|
@@ -418,7 +447,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
418
447
|
z: number;
|
|
419
448
|
}
|
|
420
449
|
|
|
421
|
-
export declare const version = "2.
|
|
450
|
+
export declare const version = "2.10.0";
|
|
422
451
|
|
|
423
452
|
declare interface ViewerOptions {
|
|
424
453
|
mode?: CameraMode;
|