@smplrspace/smplr-loader 2.48.1-beta.0 → 2.48.1-beta.2

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.
@@ -2239,9 +2239,10 @@ export declare class QueryClient {
2239
2239
  private checkOptions;
2240
2240
  checkApiConnection(): Promise<string>;
2241
2241
  getApiVersion(): Promise<string>;
2242
- createSpace({ name, notes }: {
2242
+ createSpace({ name, notes, tags }: {
2243
2243
  name: string;
2244
2244
  notes?: string;
2245
+ tags?: string[];
2245
2246
  }): Promise<{
2246
2247
  sid: string;
2247
2248
  }>;
@@ -2252,7 +2253,9 @@ export declare class QueryClient {
2252
2253
  status: string;
2253
2254
  }>;
2254
2255
  deleteSpace(spaceId: string): Promise<void>;
2255
- listSpaces(): Promise<{
2256
+ listSpaces(options?: {
2257
+ tagged?: string[];
2258
+ }): Promise<{
2256
2259
  sid: string;
2257
2260
  status: string;
2258
2261
  name: string;
@@ -2321,6 +2324,16 @@ export declare class QueryClient {
2321
2324
  line: SmplrCoord3d[];
2322
2325
  unit?: 'ft' | 'm' | 'cm' | 'mm';
2323
2326
  }): number;
2327
+ doSegmentsIntersect({ segment1, segment2, }: {
2328
+ segment1: {
2329
+ start: SmplrCoord2d;
2330
+ end: SmplrCoord2d;
2331
+ };
2332
+ segment2: {
2333
+ start: SmplrCoord2d;
2334
+ end: SmplrCoord2d;
2335
+ };
2336
+ }): boolean;
2324
2337
  getPolygonArea({ polygon, unit, }: {
2325
2338
  polygon: SmplrCoord2d[] | SmplrCoord2d[][];
2326
2339
  unit?: 'sqft' | 'sqm';
@@ -2328,6 +2341,24 @@ export declare class QueryClient {
2328
2341
  getPolygonCenter({ polygon }: {
2329
2342
  polygon: SmplrCoord2d[] | SmplrCoord2d[][];
2330
2343
  }): SmplrCoord2d;
2344
+ fitRectangleInPolygon({ polygon, width, height, rotationRange, gridSize, }: {
2345
+ polygon: SmplrCoord2d[] | SmplrCoord2d[][];
2346
+ width: number;
2347
+ height: number;
2348
+ rotationRange?: number | [number, number];
2349
+ gridSize?: number;
2350
+ }): {
2351
+ center: SmplrCoord2d;
2352
+ width: number;
2353
+ height: number;
2354
+ rotation: number;
2355
+ };
2356
+ getRectangleCorners({ center, width, height, rotation, }: {
2357
+ center: SmplrCoord2d;
2358
+ width: number;
2359
+ height: number;
2360
+ rotation: number;
2361
+ }): SmplrCoord2d[];
2331
2362
  getPointsBoundingBox({ points, padding }: {
2332
2363
  points: SmplrCoord2d[];
2333
2364
  padding?: number;
@@ -2346,6 +2377,10 @@ export declare class QueryClient {
2346
2377
  point: SmplrCoord2d;
2347
2378
  polygon: SmplrCoord2d[] | SmplrCoord2d[][];
2348
2379
  }): boolean;
2380
+ isPolygonAInPolygonB({ a, b, }: {
2381
+ a: SmplrCoord2d[] | SmplrCoord2d[][];
2382
+ b: SmplrCoord2d[] | SmplrCoord2d[][];
2383
+ }): boolean;
2349
2384
  isFurnitureInPolygon({ spaceId, furnitureId, polygon, }: {
2350
2385
  spaceId: string;
2351
2386
  furnitureId: string;
@@ -3847,7 +3882,7 @@ declare interface Vector3Coord extends Vector2Coord {
3847
3882
  z: number;
3848
3883
  }
3849
3884
 
3850
- export declare const version = "2.48.1-beta.0";
3885
+ export declare const version = "2.48.1-beta.2";
3851
3886
 
3852
3887
  declare interface ViewerRendererHandle {
3853
3888
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplrspace/smplr-loader",
3
- "version": "2.48.1-beta.0",
3
+ "version": "2.48.1-beta.2",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [