@smplrspace/smplr-loader 2.48.1-beta.0 → 2.48.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.
@@ -2321,6 +2321,16 @@ export declare class QueryClient {
2321
2321
  line: SmplrCoord3d[];
2322
2322
  unit?: 'ft' | 'm' | 'cm' | 'mm';
2323
2323
  }): number;
2324
+ doSegmentsIntersect({ segment1, segment2, }: {
2325
+ segment1: {
2326
+ start: SmplrCoord2d;
2327
+ end: SmplrCoord2d;
2328
+ };
2329
+ segment2: {
2330
+ start: SmplrCoord2d;
2331
+ end: SmplrCoord2d;
2332
+ };
2333
+ }): boolean;
2324
2334
  getPolygonArea({ polygon, unit, }: {
2325
2335
  polygon: SmplrCoord2d[] | SmplrCoord2d[][];
2326
2336
  unit?: 'sqft' | 'sqm';
@@ -2328,6 +2338,24 @@ export declare class QueryClient {
2328
2338
  getPolygonCenter({ polygon }: {
2329
2339
  polygon: SmplrCoord2d[] | SmplrCoord2d[][];
2330
2340
  }): SmplrCoord2d;
2341
+ fitRectangleInPolygon({ polygon, width, height, rotationRange, gridSize, }: {
2342
+ polygon: SmplrCoord2d[] | SmplrCoord2d[][];
2343
+ width: number;
2344
+ height: number;
2345
+ rotationRange?: number | [number, number];
2346
+ gridSize?: number;
2347
+ }): {
2348
+ center: SmplrCoord2d;
2349
+ width: number;
2350
+ height: number;
2351
+ rotation: number;
2352
+ };
2353
+ getRectangleCorners({ center, width, height, rotation, }: {
2354
+ center: SmplrCoord2d;
2355
+ width: number;
2356
+ height: number;
2357
+ rotation: number;
2358
+ }): SmplrCoord2d[];
2331
2359
  getPointsBoundingBox({ points, padding }: {
2332
2360
  points: SmplrCoord2d[];
2333
2361
  padding?: number;
@@ -2346,6 +2374,10 @@ export declare class QueryClient {
2346
2374
  point: SmplrCoord2d;
2347
2375
  polygon: SmplrCoord2d[] | SmplrCoord2d[][];
2348
2376
  }): boolean;
2377
+ isPolygonAInPolygonB({ a, b, }: {
2378
+ a: SmplrCoord2d[] | SmplrCoord2d[][];
2379
+ b: SmplrCoord2d[] | SmplrCoord2d[][];
2380
+ }): boolean;
2349
2381
  isFurnitureInPolygon({ spaceId, furnitureId, polygon, }: {
2350
2382
  spaceId: string;
2351
2383
  furnitureId: string;
@@ -3847,7 +3879,7 @@ declare interface Vector3Coord extends Vector2Coord {
3847
3879
  z: number;
3848
3880
  }
3849
3881
 
3850
- export declare const version = "2.48.1-beta.0";
3882
+ export declare const version = "2.48.1-beta.1";
3851
3883
 
3852
3884
  declare interface ViewerRendererHandle {
3853
3885
  // 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.1",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [