@smplrspace/smplr-loader 2.48.1-beta.0 → 2.48.1-beta.10
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 +63 -4
- package/package.json +1 -1
|
@@ -1406,6 +1406,9 @@ regenerateIds(randomizer: string): void;
|
|
|
1406
1406
|
} & {
|
|
1407
1407
|
rename(name: string): void;
|
|
1408
1408
|
setLayers(layers: string[]): void;
|
|
1409
|
+
splitWallAtPoint({ pointId }: {
|
|
1410
|
+
pointId: string;
|
|
1411
|
+
}): void;
|
|
1409
1412
|
} & {
|
|
1410
1413
|
readonly points: SOCanvasPoint[];
|
|
1411
1414
|
readonly geometry: SegmentGeometry;
|
|
@@ -2205,7 +2208,15 @@ export declare interface PolylineDataLayer<D extends UnknownData = NoData> exten
|
|
|
2205
2208
|
disableElevationCorrection?: boolean;
|
|
2206
2209
|
}
|
|
2207
2210
|
|
|
2208
|
-
export declare type PosterData =
|
|
2211
|
+
export declare type PosterData = PosterDataByPosition | PosterDataByCoordinate;
|
|
2212
|
+
|
|
2213
|
+
declare type PosterDataByCoordinate = BaseData & {
|
|
2214
|
+
coordinates: SmplrCoord2d[] | SmplrCoord2d[][];
|
|
2215
|
+
width?: number;
|
|
2216
|
+
height?: number;
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2219
|
+
declare type PosterDataByPosition = BaseData & {
|
|
2209
2220
|
position: SmplrCoord3d;
|
|
2210
2221
|
width?: number;
|
|
2211
2222
|
height?: number;
|
|
@@ -2229,6 +2240,12 @@ export declare interface PosterDataLayer<D extends UnknownData = NoData> extends
|
|
|
2229
2240
|
position: SmplrCoord3d;
|
|
2230
2241
|
}) => void;
|
|
2231
2242
|
disableElevationCorrection?: boolean;
|
|
2243
|
+
autoFit?: {
|
|
2244
|
+
rotationRange?: number | [number, number];
|
|
2245
|
+
gridSize?: number;
|
|
2246
|
+
elevation?: number;
|
|
2247
|
+
paddingPercent?: number;
|
|
2248
|
+
};
|
|
2232
2249
|
}
|
|
2233
2250
|
|
|
2234
2251
|
export declare class QueryClient {
|
|
@@ -2239,9 +2256,10 @@ export declare class QueryClient {
|
|
|
2239
2256
|
private checkOptions;
|
|
2240
2257
|
checkApiConnection(): Promise<string>;
|
|
2241
2258
|
getApiVersion(): Promise<string>;
|
|
2242
|
-
createSpace({ name, notes }: {
|
|
2259
|
+
createSpace({ name, notes, tags }: {
|
|
2243
2260
|
name: string;
|
|
2244
2261
|
notes?: string;
|
|
2262
|
+
tags?: string[];
|
|
2245
2263
|
}): Promise<{
|
|
2246
2264
|
sid: string;
|
|
2247
2265
|
}>;
|
|
@@ -2252,7 +2270,9 @@ export declare class QueryClient {
|
|
|
2252
2270
|
status: string;
|
|
2253
2271
|
}>;
|
|
2254
2272
|
deleteSpace(spaceId: string): Promise<void>;
|
|
2255
|
-
listSpaces(
|
|
2273
|
+
listSpaces(options?: {
|
|
2274
|
+
tagged?: string[];
|
|
2275
|
+
}): Promise<{
|
|
2256
2276
|
sid: string;
|
|
2257
2277
|
status: string;
|
|
2258
2278
|
name: string;
|
|
@@ -2321,6 +2341,16 @@ export declare class QueryClient {
|
|
|
2321
2341
|
line: SmplrCoord3d[];
|
|
2322
2342
|
unit?: 'ft' | 'm' | 'cm' | 'mm';
|
|
2323
2343
|
}): number;
|
|
2344
|
+
doSegmentsIntersect({ segment1, segment2, }: {
|
|
2345
|
+
segment1: {
|
|
2346
|
+
start: SmplrCoord2d;
|
|
2347
|
+
end: SmplrCoord2d;
|
|
2348
|
+
};
|
|
2349
|
+
segment2: {
|
|
2350
|
+
start: SmplrCoord2d;
|
|
2351
|
+
end: SmplrCoord2d;
|
|
2352
|
+
};
|
|
2353
|
+
}): boolean;
|
|
2324
2354
|
getPolygonArea({ polygon, unit, }: {
|
|
2325
2355
|
polygon: SmplrCoord2d[] | SmplrCoord2d[][];
|
|
2326
2356
|
unit?: 'sqft' | 'sqm';
|
|
@@ -2328,6 +2358,25 @@ export declare class QueryClient {
|
|
|
2328
2358
|
getPolygonCenter({ polygon }: {
|
|
2329
2359
|
polygon: SmplrCoord2d[] | SmplrCoord2d[][];
|
|
2330
2360
|
}): SmplrCoord2d;
|
|
2361
|
+
fitRectangleInPolygon({ polygon, width, height, rotationRange, gridSize, paddingPercent, }: {
|
|
2362
|
+
polygon: SmplrCoord2d[] | SmplrCoord2d[][];
|
|
2363
|
+
width: number;
|
|
2364
|
+
height: number;
|
|
2365
|
+
rotationRange?: number | [number, number];
|
|
2366
|
+
gridSize?: number;
|
|
2367
|
+
paddingPercent?: number;
|
|
2368
|
+
}): {
|
|
2369
|
+
center: SmplrCoord2d;
|
|
2370
|
+
width: number;
|
|
2371
|
+
height: number;
|
|
2372
|
+
rotation: number;
|
|
2373
|
+
};
|
|
2374
|
+
getRectangleCorners({ center, width, height, rotation, }: {
|
|
2375
|
+
center: SmplrCoord2d;
|
|
2376
|
+
width: number;
|
|
2377
|
+
height: number;
|
|
2378
|
+
rotation: number;
|
|
2379
|
+
}): SmplrCoord2d[];
|
|
2331
2380
|
getPointsBoundingBox({ points, padding }: {
|
|
2332
2381
|
points: SmplrCoord2d[];
|
|
2333
2382
|
padding?: number;
|
|
@@ -2346,6 +2395,10 @@ export declare class QueryClient {
|
|
|
2346
2395
|
point: SmplrCoord2d;
|
|
2347
2396
|
polygon: SmplrCoord2d[] | SmplrCoord2d[][];
|
|
2348
2397
|
}): boolean;
|
|
2398
|
+
isPolygonAInPolygonB({ a, b, }: {
|
|
2399
|
+
a: SmplrCoord2d[] | SmplrCoord2d[][];
|
|
2400
|
+
b: SmplrCoord2d[] | SmplrCoord2d[][];
|
|
2401
|
+
}): boolean;
|
|
2349
2402
|
isFurnitureInPolygon({ spaceId, furnitureId, polygon, }: {
|
|
2350
2403
|
spaceId: string;
|
|
2351
2404
|
furnitureId: string;
|
|
@@ -3144,6 +3197,9 @@ regenerateIds(randomizer: string): void;
|
|
|
3144
3197
|
} & {
|
|
3145
3198
|
rename(name: string): void;
|
|
3146
3199
|
setLayers(layers: string[]): void;
|
|
3200
|
+
splitWallAtPoint({ pointId }: {
|
|
3201
|
+
pointId: string;
|
|
3202
|
+
}): void;
|
|
3147
3203
|
} & {
|
|
3148
3204
|
readonly points: SOCanvasPoint[];
|
|
3149
3205
|
readonly geometry: SegmentGeometry;
|
|
@@ -3847,7 +3903,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3847
3903
|
z: number;
|
|
3848
3904
|
}
|
|
3849
3905
|
|
|
3850
|
-
export declare const version = "2.48.1-beta.
|
|
3906
|
+
export declare const version = "2.48.1-beta.10";
|
|
3851
3907
|
|
|
3852
3908
|
declare interface ViewerRendererHandle {
|
|
3853
3909
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -4016,6 +4072,9 @@ regenerateIds(randomizer: string): void;
|
|
|
4016
4072
|
} & {
|
|
4017
4073
|
rename(name: string): void;
|
|
4018
4074
|
setLayers(layers: string[]): void;
|
|
4075
|
+
splitWallAtPoint({ pointId }: {
|
|
4076
|
+
pointId: string;
|
|
4077
|
+
}): void;
|
|
4019
4078
|
} & {
|
|
4020
4079
|
readonly points: SOCanvasPoint[];
|
|
4021
4080
|
readonly geometry: SegmentGeometry;
|