@smplrspace/smplr-loader 2.50.1-beta.2 → 2.50.1-beta.20

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.
@@ -1344,7 +1344,7 @@ swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
1344
1344
  glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
1345
1345
  openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
1346
1346
  panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
1347
- openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
1347
+ openAngle: IMaybe<ISimpleType<number>>;
1348
1348
  railingHeight: IMaybe<ISimpleType<number>>;
1349
1349
  railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
1350
1350
  }, {
@@ -1400,6 +1400,7 @@ layers: IArrayType<ISimpleType<string>>;
1400
1400
  readonly json: JsonWall;
1401
1401
  } & {
1402
1402
  newInParent(): void;
1403
+ setOptions(options: JsonWallOptions): void;
1403
1404
  removeInParent(): void;
1404
1405
  clearInEditor(id: string): void;
1405
1406
  regenerateIds(randomizer: string): void;
@@ -1677,6 +1678,10 @@ updateObjectsLevelIndex(updater: (levelIndex: number) => number): void;
1677
1678
  regenerateIds(randomizer: string): void;
1678
1679
  } & {
1679
1680
  addObjects(objects: SIObject[]): void;
1681
+ newWallWithOptions(template: {
1682
+ options: JsonWallOptions;
1683
+ layers: string[];
1684
+ }): void;
1680
1685
  clear(): void;
1681
1686
  }, _NotCustomized, _NotCustomized>;
1682
1687
 
@@ -2276,11 +2281,12 @@ export declare class QueryClient {
2276
2281
  private checkOptions;
2277
2282
  checkApiConnection(): Promise<string>;
2278
2283
  getApiVersion(): Promise<string>;
2279
- createSpace({ organizationId, name, notes, tags, }: {
2284
+ createSpace({ organizationId, name, notes, tags, addToProjectId, }: {
2280
2285
  organizationId?: string;
2281
2286
  name: string;
2282
2287
  notes?: string;
2283
2288
  tags?: string[];
2289
+ addToProjectId?: string;
2284
2290
  }): Promise<{
2285
2291
  sid: string;
2286
2292
  }>;
@@ -2297,6 +2303,9 @@ export declare class QueryClient {
2297
2303
  }): Promise<{
2298
2304
  sid: string;
2299
2305
  status: string;
2306
+ projects: {
2307
+ project_sid: string;
2308
+ }[];
2300
2309
  name: string;
2301
2310
  created_at: string;
2302
2311
  deprecated_id: string;
@@ -2306,6 +2315,9 @@ export declare class QueryClient {
2306
2315
  }): Promise<{
2307
2316
  sid: string;
2308
2317
  status: string;
2318
+ projects: {
2319
+ project_sid: string;
2320
+ }[];
2309
2321
  name: string;
2310
2322
  georeference?: {} | null | undefined;
2311
2323
  definition?: {} | null | undefined;
@@ -2319,6 +2331,9 @@ export declare class QueryClient {
2319
2331
  getSpaceFromCache(spaceId: string): {
2320
2332
  sid: string;
2321
2333
  status: string;
2334
+ projects: {
2335
+ project_sid: string;
2336
+ }[];
2322
2337
  name: string;
2323
2338
  georeference?: {} | null | undefined;
2324
2339
  definition?: {} | null | undefined;
@@ -2331,6 +2346,8 @@ export declare class QueryClient {
2331
2346
  };
2332
2347
  getAllFurnitureInSpace(spaceId: string): Promise<Furniture[]>;
2333
2348
  getAllFurnitureInSpaceFromCache(spaceId: string): Furniture[];
2349
+ getSpaceLevels(spaceId: string): Promise<SpaceLevel[]>;
2350
+ getSpaceLevelsFromCache(spaceId: string): SpaceLevel[];
2334
2351
  getFurnitureOnLevel({ spaceId, levelIndex }: {
2335
2352
  spaceId: string;
2336
2353
  levelIndex: number;
@@ -3157,7 +3174,7 @@ swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
3157
3174
  glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
3158
3175
  openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
3159
3176
  panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
3160
- openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
3177
+ openAngle: IMaybe<ISimpleType<number>>;
3161
3178
  railingHeight: IMaybe<ISimpleType<number>>;
3162
3179
  railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
3163
3180
  }, {
@@ -3213,6 +3230,7 @@ layers: IArrayType<ISimpleType<string>>;
3213
3230
  readonly json: JsonWall;
3214
3231
  } & {
3215
3232
  newInParent(): void;
3233
+ setOptions(options: JsonWallOptions): void;
3216
3234
  removeInParent(): void;
3217
3235
  clearInEditor(id: string): void;
3218
3236
  regenerateIds(randomizer: string): void;
@@ -3490,6 +3508,10 @@ updateObjectsLevelIndex(updater: (levelIndex: number) => number): void;
3490
3508
  regenerateIds(randomizer: string): void;
3491
3509
  } & {
3492
3510
  addObjects(objects: SIObject[]): void;
3511
+ newWallWithOptions(template: {
3512
+ options: JsonWallOptions;
3513
+ layers: string[];
3514
+ }): void;
3493
3515
  clear(): void;
3494
3516
  }, _NotCustomized, _NotCustomized>>, [undefined]>;
3495
3517
  camerasEnabled: IOptionalIType<IArrayType<ISimpleType<SmplrCameraType>>, [undefined]>;
@@ -3534,6 +3556,7 @@ roofAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
3534
3556
  doorWidth: IOptionalIType<ISimpleType<number>, [undefined]>;
3535
3557
  doorHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3536
3558
  doorBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3559
+ doorOpenAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
3537
3560
  windowWidth: IOptionalIType<ISimpleType<number>, [undefined]>;
3538
3561
  windowHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3539
3562
  windowBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -3541,6 +3564,13 @@ railingHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3541
3564
  stairsStepSize: IOptionalIType<ISimpleType<number>, [undefined]>;
3542
3565
  annotationHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3543
3566
  annotationSize: IOptionalIType<ISimpleType<number>, [undefined]>;
3567
+ wallLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3568
+ groundLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3569
+ doorLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3570
+ windowLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3571
+ stairsLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3572
+ objectLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3573
+ annotationLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3544
3574
  }, {
3545
3575
  setUnit(unit: string): void;
3546
3576
  setGroundThickness(groundThickness: number): void;
@@ -3552,6 +3582,7 @@ setRoofAngle(roofAngle: number): void;
3552
3582
  setDoorWidth(doorWidth: number): void;
3553
3583
  setDoorHeight(doorHeight: number): void;
3554
3584
  setDoorBaseHeight(doorBaseHeight: number): void;
3585
+ setDoorOpenAngle(doorOpenAngle: number): void;
3555
3586
  setWindowWidth(windowWidth: number): void;
3556
3587
  setWindowHeight(windowHeight: number): void;
3557
3588
  setWindowBaseHeight(windowBaseHeight: number): void;
@@ -3559,6 +3590,13 @@ setRailingHeight(railingHeight: number): void;
3559
3590
  setStairsStepSize(stairsStepSize: number): void;
3560
3591
  setAnnotationHeight(annotationHeight: number): void;
3561
3592
  setAnnotationSize(annotationSize: number): void;
3593
+ setWallLayers(layers: string[]): void;
3594
+ setGroundLayers(layers: string[]): void;
3595
+ setDoorLayers(layers: string[]): void;
3596
+ setWindowLayers(layers: string[]): void;
3597
+ setStairsLayers(layers: string[]): void;
3598
+ setObjectLayers(layers: string[]): void;
3599
+ setAnnotationLayers(layers: string[]): void;
3562
3600
  }, _NotCustomized, _NotCustomized>, [undefined]>;
3563
3601
  }, {
3564
3602
  readonly json: JsonSpace;
@@ -3603,6 +3641,7 @@ roofAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
3603
3641
  doorWidth: IOptionalIType<ISimpleType<number>, [undefined]>;
3604
3642
  doorHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3605
3643
  doorBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3644
+ doorOpenAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
3606
3645
  windowWidth: IOptionalIType<ISimpleType<number>, [undefined]>;
3607
3646
  windowHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3608
3647
  windowBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -3610,6 +3649,13 @@ railingHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3610
3649
  stairsStepSize: IOptionalIType<ISimpleType<number>, [undefined]>;
3611
3650
  annotationHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
3612
3651
  annotationSize: IOptionalIType<ISimpleType<number>, [undefined]>;
3652
+ wallLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3653
+ groundLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3654
+ doorLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3655
+ windowLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3656
+ stairsLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3657
+ objectLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3658
+ annotationLayers: IOptionalIType<IArrayType<ISimpleType<string>>, [undefined]>;
3613
3659
  }, {
3614
3660
  setUnit(unit: string): void;
3615
3661
  setGroundThickness(groundThickness: number): void;
@@ -3621,6 +3667,7 @@ setRoofAngle(roofAngle: number): void;
3621
3667
  setDoorWidth(doorWidth: number): void;
3622
3668
  setDoorHeight(doorHeight: number): void;
3623
3669
  setDoorBaseHeight(doorBaseHeight: number): void;
3670
+ setDoorOpenAngle(doorOpenAngle: number): void;
3624
3671
  setWindowWidth(windowWidth: number): void;
3625
3672
  setWindowHeight(windowHeight: number): void;
3626
3673
  setWindowBaseHeight(windowBaseHeight: number): void;
@@ -3628,8 +3675,21 @@ setRailingHeight(railingHeight: number): void;
3628
3675
  setStairsStepSize(stairsStepSize: number): void;
3629
3676
  setAnnotationHeight(annotationHeight: number): void;
3630
3677
  setAnnotationSize(annotationSize: number): void;
3678
+ setWallLayers(layers: string[]): void;
3679
+ setGroundLayers(layers: string[]): void;
3680
+ setDoorLayers(layers: string[]): void;
3681
+ setWindowLayers(layers: string[]): void;
3682
+ setStairsLayers(layers: string[]): void;
3683
+ setObjectLayers(layers: string[]): void;
3684
+ setAnnotationLayers(layers: string[]): void;
3631
3685
  }, _NotCustomized, _NotCustomized>;
3632
3686
 
3687
+ export declare interface SpaceLevel {
3688
+ index: number;
3689
+ name: string;
3690
+ initials: string;
3691
+ }
3692
+
3633
3693
  export declare type SpaceNoData = NoData & {
3634
3694
  id: string;
3635
3695
  spaceId: SpaceSid;
@@ -3927,7 +3987,7 @@ declare interface Vector3Coord extends Vector2Coord {
3927
3987
  z: number;
3928
3988
  }
3929
3989
 
3930
- export declare const version = "2.50.1-beta.2";
3990
+ export declare const version = "2.50.1-beta.20";
3931
3991
 
3932
3992
  declare interface ViewerRendererHandle {
3933
3993
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -4034,7 +4094,7 @@ swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
4034
4094
  glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
4035
4095
  openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
4036
4096
  panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
4037
- openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
4097
+ openAngle: IMaybe<ISimpleType<number>>;
4038
4098
  railingHeight: IMaybe<ISimpleType<number>>;
4039
4099
  railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
4040
4100
  }, {
@@ -4090,6 +4150,7 @@ layers: IArrayType<ISimpleType<string>>;
4090
4150
  readonly json: JsonWall;
4091
4151
  } & {
4092
4152
  newInParent(): void;
4153
+ setOptions(options: JsonWallOptions): void;
4093
4154
  removeInParent(): void;
4094
4155
  clearInEditor(id: string): void;
4095
4156
  regenerateIds(randomizer: string): void;
@@ -4142,7 +4203,7 @@ swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
4142
4203
  glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
4143
4204
  openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
4144
4205
  panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
4145
- openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
4206
+ openAngle: IMaybe<ISimpleType<number>>;
4146
4207
  railingHeight: IMaybe<ISimpleType<number>>;
4147
4208
  railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
4148
4209
  }, {
@@ -4202,7 +4263,7 @@ swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
4202
4263
  glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
4203
4264
  openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
4204
4265
  panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
4205
- openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
4266
+ openAngle: IMaybe<ISimpleType<number>>;
4206
4267
  railingHeight: IMaybe<ISimpleType<number>>;
4207
4268
  railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
4208
4269
  }, {
@@ -4281,7 +4342,7 @@ swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
4281
4342
  glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
4282
4343
  openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
4283
4344
  panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
4284
- openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
4345
+ openAngle: IMaybe<ISimpleType<number>>;
4285
4346
  railingHeight: IMaybe<ISimpleType<number>>;
4286
4347
  railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
4287
4348
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplrspace/smplr-loader",
3
- "version": "2.50.1-beta.2",
3
+ "version": "2.50.1-beta.20",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [