@smplrspace/smplr-loader 2.42.1-beta.2 → 2.42.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.
@@ -34,6 +34,8 @@ t: ISimpleType<number>;
34
34
  } & {
35
35
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
36
36
  }, {
37
+ readonly json: CanvasCoordWithId;
38
+ } & {
37
39
  regenerateId(randomizer: string): void;
38
40
  }, _NotCustomized, _NotCustomized>;
39
41
  end: IModelType< {
@@ -42,9 +44,13 @@ t: ISimpleType<number>;
42
44
  } & {
43
45
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
44
46
  }, {
47
+ readonly json: CanvasCoordWithId;
48
+ } & {
45
49
  regenerateId(randomizer: string): void;
46
50
  }, _NotCustomized, _NotCustomized>;
47
51
  }, {
52
+ readonly superJson: JsonAbstractSegment;
53
+ } & {
48
54
  readonly centerPoint: SOCanvasPoint;
49
55
  }, _NotCustomized, _NotCustomized>;
50
56
 
@@ -61,6 +67,8 @@ is360: IOptionalIType<ISimpleType<boolean>, [undefined]>;
61
67
  direction: IMaybe<ISimpleType<number>>;
62
68
  layers: IArrayType<ISimpleType<string>>;
63
69
  }, {
70
+ readonly json: JsonAnnotation;
71
+ } & {
64
72
  setType(type: AnnotationType): void;
65
73
  rename(name: string): void;
66
74
  moveTo({ r, t }: CanvasCoord): void;
@@ -138,15 +146,23 @@ declare interface CanvasCoord {
138
146
  t: number;
139
147
  }
140
148
 
149
+ declare interface CanvasCoordWithId extends CanvasCoord {
150
+ id: string;
151
+ }
152
+
141
153
  declare const CanvasPoint: IModelType< {
142
154
  r: ISimpleType<number>;
143
155
  t: ISimpleType<number>;
144
156
  } & {
145
157
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
146
158
  }, {
159
+ readonly json: CanvasCoordWithId;
160
+ } & {
147
161
  regenerateId(randomizer: string): void;
148
162
  }, _NotCustomized, _NotCustomized>;
149
163
 
164
+ declare type Cap = 'flat' | 'round';
165
+
150
166
  declare const categoryScale: <C extends string>({ categories, nodata, }: CategoryScaleOptions<C>) => (category: C) => string;
151
167
 
152
168
  declare interface CategoryScaleOptions<C extends string> {
@@ -319,12 +335,6 @@ declare type DeskConfiguration = {
319
335
 
320
336
  declare type DeskSide = 'feet' | 'plank' | 'drawers';
321
337
 
322
- declare interface Dimensions {
323
- length: number;
324
- height: number;
325
- width: number;
326
- }
327
-
328
338
  declare type DispatchDataLayersDefinitionFn = Dispatch<ReducerAction<DataLayersDefinitionReducer>>;
329
339
 
330
340
  export declare interface DottedPolylineDataLayer<D extends UnknownData = NoData> extends BaseDataLayer<PolylineData, D> {
@@ -392,6 +402,36 @@ declare enum EventType {
392
402
  CameraStoppedMoving = "CameraStoppedMoving"
393
403
  }
394
404
 
405
+ declare const Facade: IModelType< {
406
+ url: ISimpleType<string>;
407
+ levelIndex: IOptionalIType<ISimpleType<number>, [undefined]>;
408
+ position: IOptionalIType<IModelType< {
409
+ x: ISimpleType<number>;
410
+ z: ISimpleType<number>;
411
+ } & {
412
+ elevation: ISimpleType<number>;
413
+ }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
414
+ rotation: IOptionalIType<IModelType< {
415
+ pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
416
+ yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
417
+ roll: IOptionalIType<ISimpleType<number>, [undefined]>;
418
+ }, {
419
+ readonly json: JsonObjectRotation;
420
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
421
+ dimensions: IOptionalIType<IModelType< {
422
+ length: IMaybe<ISimpleType<number>>;
423
+ width: IMaybe<ISimpleType<number>>;
424
+ height: IMaybe<ISimpleType<number>>;
425
+ }, {
426
+ readonly json: JsonObjectDimensions;
427
+ readonly safeValues: {
428
+ length: number;
429
+ width: number;
430
+ height: number;
431
+ };
432
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
433
+ }, {}, _NotCustomized, _NotCustomized>;
434
+
395
435
  declare interface Filter {
396
436
  background: {
397
437
  clearColor: string;
@@ -430,19 +470,37 @@ declare interface Filter {
430
470
  };
431
471
  }
432
472
 
473
+ declare const Floorplan: IModelType< {
474
+ url: IMaybe<ISimpleType<string>>;
475
+ data: IMaybe<ISimpleType<string>>;
476
+ r: IOptionalIType<ISimpleType<number>, [undefined]>;
477
+ t: IOptionalIType<ISimpleType<number>, [undefined]>;
478
+ scale: IOptionalIType<ISimpleType<number>, [undefined]>;
479
+ flipped: IOptionalIType<ISimpleType<boolean>, [undefined]>;
480
+ }, {
481
+ isNil(): boolean;
482
+ } & {
483
+ setUrl(url: string): void;
484
+ setData(data: string | undefined): void;
485
+ moveTo({ r, t }: CanvasCoord): void;
486
+ setScale(scale: number): void;
487
+ setFlipped(flipped: boolean): void;
488
+ remove(): void;
489
+ } & {
490
+ rescaleByFactor(factor: number, imageOnly?: boolean): void;
491
+ }, _NotCustomized, _NotCustomized>;
492
+
433
493
  export declare interface Furniture {
434
494
  catalogId: string;
435
495
  id: string;
436
496
  name: string;
437
497
  levelIndex: number;
438
498
  position: Omit<SmplrCoord3d, 'levelIndex'>;
439
- rotation: Partial<{
440
- pitch: number;
441
- yaw: number;
442
- roll: number;
443
- }>;
444
- dimensions: Partial<Dimensions>;
499
+ rotation: JsonObjectRotation;
500
+ dimensions: JsonObjectDimensions;
445
501
  configuration?: object;
502
+ external?: boolean;
503
+ layers?: string[];
446
504
  }
447
505
 
448
506
  export declare type FurnitureData = BaseData & {
@@ -533,6 +591,8 @@ contour: IMaybe<ISimpleType<number>>;
533
591
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
534
592
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
535
593
  }, {
594
+ readonly json: JsonGroundOptions;
595
+ } & {
536
596
  setType(type: "normal" | "shell" | "norender"): void;
537
597
  setBaseHeight(baseHeight: number): void;
538
598
  setThickness(thickness: number): void;
@@ -547,6 +607,8 @@ t: ISimpleType<number>;
547
607
  } & {
548
608
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
549
609
  }, {
610
+ readonly json: CanvasCoordWithId;
611
+ } & {
550
612
  regenerateId(randomizer: string): void;
551
613
  }, _NotCustomized, _NotCustomized>;
552
614
  end: IModelType< {
@@ -555,12 +617,18 @@ t: ISimpleType<number>;
555
617
  } & {
556
618
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
557
619
  }, {
620
+ readonly json: CanvasCoordWithId;
621
+ } & {
558
622
  regenerateId(randomizer: string): void;
559
623
  }, _NotCustomized, _NotCustomized>;
560
624
  }, {
625
+ readonly superJson: JsonAbstractSegment;
626
+ } & {
561
627
  readonly centerPoint: SOCanvasPoint;
562
628
  } & {
563
629
  regenerateIds(randomizer: string): void;
630
+ } & {
631
+ readonly json: JsonAbstractSegment;
564
632
  }, _NotCustomized, _NotCustomized>>;
565
633
  holes: IArrayType<IModelType< {
566
634
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
@@ -573,6 +641,8 @@ t: ISimpleType<number>;
573
641
  } & {
574
642
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
575
643
  }, {
644
+ readonly json: CanvasCoordWithId;
645
+ } & {
576
646
  regenerateId(randomizer: string): void;
577
647
  }, _NotCustomized, _NotCustomized>;
578
648
  end: IModelType< {
@@ -581,14 +651,21 @@ t: ISimpleType<number>;
581
651
  } & {
582
652
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
583
653
  }, {
654
+ readonly json: CanvasCoordWithId;
655
+ } & {
584
656
  regenerateId(randomizer: string): void;
585
657
  }, _NotCustomized, _NotCustomized>;
586
658
  }, {
659
+ readonly superJson: JsonAbstractSegment;
660
+ } & {
587
661
  readonly centerPoint: SOCanvasPoint;
588
662
  } & {
589
663
  regenerateIds(randomizer: string): void;
664
+ } & {
665
+ readonly json: JsonAbstractSegment;
590
666
  }, _NotCustomized, _NotCustomized>>;
591
667
  }, {
668
+ readonly json: JsonHole;
592
669
  getGround(): IGround;
593
670
  } & {
594
671
  newInParent(): void;
@@ -612,6 +689,8 @@ movePoint(id: string, { r, t }: SICanvasPoint): void;
612
689
  }, _NotCustomized, _NotCustomized>>;
613
690
  layers: IArrayType<ISimpleType<string>>;
614
691
  }, {
692
+ readonly json: JsonGround;
693
+ } & {
615
694
  newInParent(): void;
616
695
  removeInParent(): void;
617
696
  clearInEditor(id: string): void;
@@ -652,6 +731,8 @@ t: ISimpleType<number>;
652
731
  } & {
653
732
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
654
733
  }, {
734
+ readonly json: CanvasCoordWithId;
735
+ } & {
655
736
  regenerateId(randomizer: string): void;
656
737
  }, _NotCustomized, _NotCustomized>;
657
738
  end: IModelType< {
@@ -660,14 +741,22 @@ t: ISimpleType<number>;
660
741
  } & {
661
742
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
662
743
  }, {
744
+ readonly json: CanvasCoordWithId;
745
+ } & {
663
746
  regenerateId(randomizer: string): void;
664
747
  }, _NotCustomized, _NotCustomized>;
665
748
  }, {
749
+ readonly superJson: JsonAbstractSegment;
750
+ } & {
666
751
  readonly centerPoint: SOCanvasPoint;
667
752
  } & {
668
753
  regenerateIds(randomizer: string): void;
754
+ } & {
755
+ readonly json: JsonAbstractSegment;
669
756
  }, _NotCustomized, _NotCustomized>;
670
757
 
758
+ declare type GroundType = 'normal' | 'shell' | 'norender';
759
+
671
760
  declare interface HeatmapBarChartOptions {
672
761
  style: 'bar-chart';
673
762
  height: (interpolatedValue: number) => number;
@@ -716,6 +805,8 @@ t: ISimpleType<number>;
716
805
  } & {
717
806
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
718
807
  }, {
808
+ readonly json: CanvasCoordWithId;
809
+ } & {
719
810
  regenerateId(randomizer: string): void;
720
811
  }, _NotCustomized, _NotCustomized>;
721
812
  end: IModelType< {
@@ -724,14 +815,21 @@ t: ISimpleType<number>;
724
815
  } & {
725
816
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
726
817
  }, {
818
+ readonly json: CanvasCoordWithId;
819
+ } & {
727
820
  regenerateId(randomizer: string): void;
728
821
  }, _NotCustomized, _NotCustomized>;
729
822
  }, {
823
+ readonly superJson: JsonAbstractSegment;
824
+ } & {
730
825
  readonly centerPoint: SOCanvasPoint;
731
826
  } & {
732
827
  regenerateIds(randomizer: string): void;
828
+ } & {
829
+ readonly json: JsonAbstractSegment;
733
830
  }, _NotCustomized, _NotCustomized>>;
734
831
  }, {
832
+ readonly json: JsonHole;
735
833
  getGround(): IGround;
736
834
  } & {
737
835
  newInParent(): void;
@@ -826,6 +924,148 @@ declare interface IWallOpening extends Instance<typeof WallOpening> {
826
924
  declare interface IWallSegment extends Instance<typeof WallSegment> {
827
925
  }
828
926
 
927
+ declare interface JsonAbstractSegment {
928
+ start: CanvasCoordWithId;
929
+ end: CanvasCoordWithId;
930
+ }
931
+
932
+ declare interface JsonAnnotation {
933
+ id: string;
934
+ type: AnnotationType;
935
+ name: string;
936
+ r: number;
937
+ t: number;
938
+ height?: number;
939
+ size?: number;
940
+ media?: string;
941
+ is360: boolean;
942
+ direction?: number;
943
+ layers: string[];
944
+ }
945
+
946
+ declare interface JsonGround {
947
+ id: string;
948
+ type: 'ground';
949
+ name: string;
950
+ options: JsonGroundOptions;
951
+ segments: JsonAbstractSegment[];
952
+ holes: JsonHole[];
953
+ layers: string[];
954
+ }
955
+
956
+ declare interface JsonGroundOptions {
957
+ type: GroundType;
958
+ baseHeight?: number;
959
+ thickness?: number;
960
+ contour?: number;
961
+ style: string;
962
+ external: boolean;
963
+ }
964
+
965
+ declare interface JsonHole {
966
+ id: string;
967
+ type: 'hole';
968
+ name: string;
969
+ segments: JsonAbstractSegment[];
970
+ }
971
+
972
+ declare interface JsonLevel {
973
+ name: string;
974
+ initials: string;
975
+ autoInitials: boolean;
976
+ grounds: JsonGround[];
977
+ walls: JsonWall[];
978
+ roofs: JsonRoof[];
979
+ stairs: JsonStair[];
980
+ annotations: JsonAnnotation[];
981
+ objects: Furniture[];
982
+ floorplan: SOFloorplan;
983
+ }
984
+
985
+ declare interface JsonObjectDimensions {
986
+ length?: number;
987
+ width?: number;
988
+ height?: number;
989
+ }
990
+
991
+ declare interface JsonObjectRotation {
992
+ pitch: number;
993
+ yaw: number;
994
+ roll: number;
995
+ }
996
+
997
+ declare interface JsonRoof {
998
+ id: string;
999
+ type: 'roof';
1000
+ name: string;
1001
+ options: SORoofOptions;
1002
+ segments: SORoofSegment[];
1003
+ }
1004
+
1005
+ declare interface JsonSpace {
1006
+ levels: JsonLevel[];
1007
+ camerasEnabled: SmplrCameraType[];
1008
+ compassDirection?: number;
1009
+ facade?: SOFacade;
1010
+ defaults: SOSpaceDefaults;
1011
+ }
1012
+
1013
+ declare interface JsonStair {
1014
+ id: string;
1015
+ name: string;
1016
+ bottomSegment: CanvasCoordWithId[];
1017
+ topSegment: CanvasCoordWithId[];
1018
+ baseHeight?: number;
1019
+ height?: number;
1020
+ style: Style;
1021
+ color: Color_2;
1022
+ layers: string[];
1023
+ }
1024
+
1025
+ declare interface JsonWall {
1026
+ id: string;
1027
+ type: 'wall';
1028
+ name: string;
1029
+ options: JsonWallOptions;
1030
+ segments: JsonWallSegment[];
1031
+ layers: string[];
1032
+ }
1033
+
1034
+ declare interface JsonWallOpening {
1035
+ id: string;
1036
+ name: string;
1037
+ type: OpeningType;
1038
+ dimensions: JsonWallOpeningDimensions;
1039
+ position?: JsonWallOpeningPosition;
1040
+ options: SOWallOpeningOptions;
1041
+ layers: string[];
1042
+ }
1043
+
1044
+ declare interface JsonWallOpeningDimensions {
1045
+ width?: number;
1046
+ height?: number;
1047
+ baseHeight?: number;
1048
+ }
1049
+
1050
+ declare interface JsonWallOpeningPosition {
1051
+ from: 'start' | 'end';
1052
+ distance: number;
1053
+ }
1054
+
1055
+ declare interface JsonWallOptions {
1056
+ type: WallType;
1057
+ cap: Cap;
1058
+ height?: number;
1059
+ thickness?: number;
1060
+ autoFacade: boolean;
1061
+ partOfFacade: boolean;
1062
+ }
1063
+
1064
+ declare interface JsonWallSegment extends JsonAbstractSegment {
1065
+ id: string;
1066
+ openings: JsonWallOpening[];
1067
+ }
1068
+
829
1069
  declare const key = "chair";
830
1070
 
831
1071
  declare const key_2 = "cube";
@@ -871,6 +1111,8 @@ contour: IMaybe<ISimpleType<number>>;
871
1111
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
872
1112
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
873
1113
  }, {
1114
+ readonly json: JsonGroundOptions;
1115
+ } & {
874
1116
  setType(type: "normal" | "shell" | "norender"): void;
875
1117
  setBaseHeight(baseHeight: number): void;
876
1118
  setThickness(thickness: number): void;
@@ -885,6 +1127,8 @@ t: ISimpleType<number>;
885
1127
  } & {
886
1128
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
887
1129
  }, {
1130
+ readonly json: CanvasCoordWithId;
1131
+ } & {
888
1132
  regenerateId(randomizer: string): void;
889
1133
  }, _NotCustomized, _NotCustomized>;
890
1134
  end: IModelType< {
@@ -893,12 +1137,18 @@ t: ISimpleType<number>;
893
1137
  } & {
894
1138
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
895
1139
  }, {
1140
+ readonly json: CanvasCoordWithId;
1141
+ } & {
896
1142
  regenerateId(randomizer: string): void;
897
1143
  }, _NotCustomized, _NotCustomized>;
898
1144
  }, {
1145
+ readonly superJson: JsonAbstractSegment;
1146
+ } & {
899
1147
  readonly centerPoint: SOCanvasPoint;
900
1148
  } & {
901
1149
  regenerateIds(randomizer: string): void;
1150
+ } & {
1151
+ readonly json: JsonAbstractSegment;
902
1152
  }, _NotCustomized, _NotCustomized>>;
903
1153
  holes: IArrayType<IModelType< {
904
1154
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
@@ -911,6 +1161,8 @@ t: ISimpleType<number>;
911
1161
  } & {
912
1162
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
913
1163
  }, {
1164
+ readonly json: CanvasCoordWithId;
1165
+ } & {
914
1166
  regenerateId(randomizer: string): void;
915
1167
  }, _NotCustomized, _NotCustomized>;
916
1168
  end: IModelType< {
@@ -919,14 +1171,21 @@ t: ISimpleType<number>;
919
1171
  } & {
920
1172
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
921
1173
  }, {
1174
+ readonly json: CanvasCoordWithId;
1175
+ } & {
922
1176
  regenerateId(randomizer: string): void;
923
1177
  }, _NotCustomized, _NotCustomized>;
924
1178
  }, {
1179
+ readonly superJson: JsonAbstractSegment;
1180
+ } & {
925
1181
  readonly centerPoint: SOCanvasPoint;
926
1182
  } & {
927
1183
  regenerateIds(randomizer: string): void;
1184
+ } & {
1185
+ readonly json: JsonAbstractSegment;
928
1186
  }, _NotCustomized, _NotCustomized>>;
929
1187
  }, {
1188
+ readonly json: JsonHole;
930
1189
  getGround(): IGround;
931
1190
  } & {
932
1191
  newInParent(): void;
@@ -950,6 +1209,8 @@ movePoint(id: string, { r, t }: SICanvasPoint): void;
950
1209
  }, _NotCustomized, _NotCustomized>>;
951
1210
  layers: IArrayType<ISimpleType<string>>;
952
1211
  }, {
1212
+ readonly json: JsonGround;
1213
+ } & {
953
1214
  newInParent(): void;
954
1215
  removeInParent(): void;
955
1216
  clearInEditor(id: string): void;
@@ -987,6 +1248,8 @@ thickness: IMaybe<ISimpleType<number>>;
987
1248
  autoFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
988
1249
  partOfFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
989
1250
  }, {
1251
+ readonly json: JsonWallOptions;
1252
+ } & {
990
1253
  setType(type: "normal" | "shell" | "norender" | "structural"): void;
991
1254
  setCap(cap: "flat" | "round"): void;
992
1255
  setHeight(height: number): void;
@@ -1001,6 +1264,8 @@ t: ISimpleType<number>;
1001
1264
  } & {
1002
1265
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
1003
1266
  }, {
1267
+ readonly json: CanvasCoordWithId;
1268
+ } & {
1004
1269
  regenerateId(randomizer: string): void;
1005
1270
  }, _NotCustomized, _NotCustomized>;
1006
1271
  end: IModelType< {
@@ -1009,6 +1274,8 @@ t: ISimpleType<number>;
1009
1274
  } & {
1010
1275
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
1011
1276
  }, {
1277
+ readonly json: CanvasCoordWithId;
1278
+ } & {
1012
1279
  regenerateId(randomizer: string): void;
1013
1280
  }, _NotCustomized, _NotCustomized>;
1014
1281
  } & {
@@ -1021,11 +1288,15 @@ dimensions: IOptionalIType<IModelType< {
1021
1288
  width: IMaybe<ISimpleType<number>>;
1022
1289
  height: IMaybe<ISimpleType<number>>;
1023
1290
  baseHeight: IMaybe<ISimpleType<number>>;
1024
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
1291
+ }, {
1292
+ readonly json: JsonWallOpeningDimensions;
1293
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
1025
1294
  position: IMaybe<IModelType< {
1026
1295
  from: ISimpleType<"start" | "end">;
1027
1296
  distance: ISimpleType<number>;
1028
- }, {}, _NotCustomized, _NotCustomized>>;
1297
+ }, {
1298
+ readonly json: JsonWallOpeningPosition;
1299
+ }, _NotCustomized, _NotCustomized>>;
1029
1300
  options: IOptionalIType<IModelType< {
1030
1301
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
1031
1302
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -1059,6 +1330,7 @@ setRailingStyle(railingStyle: string): void;
1059
1330
  }, _NotCustomized, _NotCustomized>, [undefined]>;
1060
1331
  layers: IArrayType<ISimpleType<string>>;
1061
1332
  }, {
1333
+ readonly json: JsonWallOpening;
1062
1334
  readonly segment: IWallSegment;
1063
1335
  } & {
1064
1336
  readonly feature: IWall;
@@ -1077,8 +1349,11 @@ remove(): void;
1077
1349
  setLayers(layers: string[]): void;
1078
1350
  }, _NotCustomized, _NotCustomized>>;
1079
1351
  }, {
1352
+ readonly superJson: JsonAbstractSegment;
1353
+ } & {
1080
1354
  readonly centerPoint: SOCanvasPoint;
1081
1355
  } & {
1356
+ readonly json: JsonWallSegment;
1082
1357
  readonly centerPoint: SOCanvasPoint;
1083
1358
  } & {
1084
1359
  addOpening(opening: SIWallOpening): void;
@@ -1087,6 +1362,8 @@ regenerateIds(randomizer: string): void;
1087
1362
  }, _NotCustomized, _NotCustomized>>;
1088
1363
  layers: IArrayType<ISimpleType<string>>;
1089
1364
  }, {
1365
+ readonly json: JsonWall;
1366
+ } & {
1090
1367
  newInParent(): void;
1091
1368
  removeInParent(): void;
1092
1369
  clearInEditor(id: string): void;
@@ -1127,6 +1404,8 @@ t: ISimpleType<number>;
1127
1404
  } & {
1128
1405
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
1129
1406
  }, {
1407
+ readonly json: CanvasCoordWithId;
1408
+ } & {
1130
1409
  regenerateId(randomizer: string): void;
1131
1410
  }, _NotCustomized, _NotCustomized>;
1132
1411
  end: IModelType< {
@@ -1135,17 +1414,23 @@ t: ISimpleType<number>;
1135
1414
  } & {
1136
1415
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
1137
1416
  }, {
1417
+ readonly json: CanvasCoordWithId;
1418
+ } & {
1138
1419
  regenerateId(randomizer: string): void;
1139
1420
  }, _NotCustomized, _NotCustomized>;
1140
1421
  } & {
1141
1422
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
1142
1423
  base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
1143
1424
  }, {
1425
+ readonly superJson: JsonAbstractSegment;
1426
+ } & {
1144
1427
  readonly centerPoint: SOCanvasPoint;
1145
1428
  } & {
1146
1429
  regenerateIds(randomizer: string): void;
1147
1430
  }, _NotCustomized, _NotCustomized>>;
1148
1431
  }, {
1432
+ readonly json: JsonRoof;
1433
+ } & {
1149
1434
  newInParent(): void;
1150
1435
  removeInParent(): void;
1151
1436
  clearInEditor(id: string): void;
@@ -1175,6 +1460,8 @@ t: ISimpleType<number>;
1175
1460
  } & {
1176
1461
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
1177
1462
  }, {
1463
+ readonly json: CanvasCoordWithId;
1464
+ } & {
1178
1465
  regenerateId(randomizer: string): void;
1179
1466
  }, _NotCustomized, _NotCustomized>>;
1180
1467
  topSegment: IArrayType<IModelType< {
@@ -1183,14 +1470,18 @@ t: ISimpleType<number>;
1183
1470
  } & {
1184
1471
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
1185
1472
  }, {
1473
+ readonly json: CanvasCoordWithId;
1474
+ } & {
1186
1475
  regenerateId(randomizer: string): void;
1187
1476
  }, _NotCustomized, _NotCustomized>>;
1188
1477
  baseHeight: IMaybe<ISimpleType<number>>;
1189
1478
  height: IMaybe<ISimpleType<number>>;
1190
1479
  style: IOptionalIType<ISimpleType<"slope" | "thin" | "thick" | "block">, [undefined]>;
1191
- color: IOptionalIType<ISimpleType<string>, [undefined]>;
1480
+ color: IOptionalIType<ISimpleType<"white" | "grey" | "darkgrey">, [undefined]>;
1192
1481
  layers: IArrayType<ISimpleType<string>>;
1193
1482
  }, {
1483
+ readonly json: JsonStair;
1484
+ } & {
1194
1485
  rename(name: string): void;
1195
1486
  setBaseHeight(baseHeight: number): void;
1196
1487
  setHeight(height: number): void;
@@ -1217,6 +1508,8 @@ is360: IOptionalIType<ISimpleType<boolean>, [undefined]>;
1217
1508
  direction: IMaybe<ISimpleType<number>>;
1218
1509
  layers: IArrayType<ISimpleType<string>>;
1219
1510
  }, {
1511
+ readonly json: JsonAnnotation;
1512
+ } & {
1220
1513
  setType(type: AnnotationType): void;
1221
1514
  rename(name: string): void;
1222
1515
  moveTo({ r, t }: CanvasCoord): void;
@@ -1244,12 +1537,15 @@ rotation: IOptionalIType<IModelType< {
1244
1537
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
1245
1538
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
1246
1539
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
1247
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
1540
+ }, {
1541
+ readonly json: JsonObjectRotation;
1542
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
1248
1543
  dimensions: IOptionalIType<IModelType< {
1249
1544
  length: IMaybe<ISimpleType<number>>;
1250
1545
  width: IMaybe<ISimpleType<number>>;
1251
1546
  height: IMaybe<ISimpleType<number>>;
1252
1547
  }, {
1548
+ readonly json: JsonObjectDimensions;
1253
1549
  readonly safeValues: {
1254
1550
  length: number;
1255
1551
  width: number;
@@ -1260,6 +1556,8 @@ configuration: IMaybe<IType<Partial<ParametricObjectConfiguration>, Partial<Para
1260
1556
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
1261
1557
  layers: IArrayType<ISimpleType<string>>;
1262
1558
  }, {
1559
+ readonly json: Furniture;
1560
+ } & {
1263
1561
  rename(name: string): void;
1264
1562
  moveTo(position: Partial<SILevelCoord3d>): void;
1265
1563
  setLevelIndex(levelIndex: number): void;
@@ -1291,6 +1589,7 @@ remove(): void;
1291
1589
  rescaleByFactor(factor: number, imageOnly?: boolean): void;
1292
1590
  }, _NotCustomized, _NotCustomized>, [undefined]>;
1293
1591
  }, {
1592
+ readonly json: JsonLevel;
1294
1593
  readonly hash: string;
1295
1594
  readonly points: ICanvasPoint[];
1296
1595
  } & {
@@ -1362,6 +1661,7 @@ declare interface Listener {
1362
1661
  declare class Map_2 {
1363
1662
  private options;
1364
1663
  private viewerStarted;
1664
+ private hash?;
1365
1665
  private container;
1366
1666
  private pickHandler;
1367
1667
  private mapViewerRef;
@@ -1420,6 +1720,8 @@ declare class Map_2 {
1420
1720
  updateLoadingMessage(message: string): void;
1421
1721
  showLoader(): void;
1422
1722
  hideLoader(): void;
1723
+ hideLevelPicker(): void;
1724
+ showLevelPicker(): void;
1423
1725
  }
1424
1726
  export { Map_2 as Map }
1425
1727
 
@@ -1484,7 +1786,7 @@ export declare interface MapViewerOptions {
1484
1786
  spaces?: GeoSpace[];
1485
1787
  osmBuildings?: boolean;
1486
1788
  search?: boolean;
1487
- hash?: boolean;
1789
+ hash?: boolean | string;
1488
1790
  fitNewSpacesInScreen?: boolean;
1489
1791
  preview?: boolean;
1490
1792
  loadingMessage?: string;
@@ -1610,12 +1912,15 @@ rotation: IOptionalIType<IModelType< {
1610
1912
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
1611
1913
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
1612
1914
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
1613
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
1915
+ }, {
1916
+ readonly json: JsonObjectRotation;
1917
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
1614
1918
  dimensions: IOptionalIType<IModelType< {
1615
1919
  length: IMaybe<ISimpleType<number>>;
1616
1920
  width: IMaybe<ISimpleType<number>>;
1617
1921
  height: IMaybe<ISimpleType<number>>;
1618
1922
  }, {
1923
+ readonly json: JsonObjectDimensions;
1619
1924
  readonly safeValues: {
1620
1925
  length: number;
1621
1926
  width: number;
@@ -1626,6 +1931,8 @@ configuration: IMaybe<IType<Partial<ParametricObjectConfiguration>, Partial<Para
1626
1931
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
1627
1932
  layers: IArrayType<ISimpleType<string>>;
1628
1933
  }, {
1934
+ readonly json: Furniture;
1935
+ } & {
1629
1936
  rename(name: string): void;
1630
1937
  moveTo(position: Partial<SILevelCoord3d>): void;
1631
1938
  setLevelIndex(levelIndex: number): void;
@@ -1643,6 +1950,7 @@ length: IMaybe<ISimpleType<number>>;
1643
1950
  width: IMaybe<ISimpleType<number>>;
1644
1951
  height: IMaybe<ISimpleType<number>>;
1645
1952
  }, {
1953
+ readonly json: JsonObjectDimensions;
1646
1954
  readonly safeValues: {
1647
1955
  length: number;
1648
1956
  width: number;
@@ -1654,7 +1962,9 @@ declare const ObjectRotation: IModelType< {
1654
1962
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
1655
1963
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
1656
1964
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
1657
- }, {}, _NotCustomized, _NotCustomized>;
1965
+ }, {
1966
+ readonly json: JsonObjectRotation;
1967
+ }, _NotCustomized, _NotCustomized>;
1658
1968
 
1659
1969
  declare type OmitOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
1660
1970
 
@@ -1911,8 +2221,8 @@ export declare class QueryClient {
1911
2221
  status: string;
1912
2222
  name: string;
1913
2223
  georeference?: {} | null | undefined;
1914
- assetmap?: {} | null | undefined;
1915
2224
  definition?: {} | null | undefined;
2225
+ assetmap?: {} | null | undefined;
1916
2226
  public_link_enabled: boolean;
1917
2227
  created_at: string;
1918
2228
  modified_at: string;
@@ -1924,8 +2234,8 @@ export declare class QueryClient {
1924
2234
  status: string;
1925
2235
  name: string;
1926
2236
  georeference?: {} | null | undefined;
1927
- assetmap?: {} | null | undefined;
1928
2237
  definition?: {} | null | undefined;
2238
+ assetmap?: {} | null | undefined;
1929
2239
  public_link_enabled: boolean;
1930
2240
  created_at: string;
1931
2241
  modified_at: string;
@@ -2147,6 +2457,8 @@ t: ISimpleType<number>;
2147
2457
  } & {
2148
2458
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2149
2459
  }, {
2460
+ readonly json: CanvasCoordWithId;
2461
+ } & {
2150
2462
  regenerateId(randomizer: string): void;
2151
2463
  }, _NotCustomized, _NotCustomized>;
2152
2464
  end: IModelType< {
@@ -2155,17 +2467,23 @@ t: ISimpleType<number>;
2155
2467
  } & {
2156
2468
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2157
2469
  }, {
2470
+ readonly json: CanvasCoordWithId;
2471
+ } & {
2158
2472
  regenerateId(randomizer: string): void;
2159
2473
  }, _NotCustomized, _NotCustomized>;
2160
2474
  } & {
2161
2475
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2162
2476
  base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2163
2477
  }, {
2478
+ readonly superJson: JsonAbstractSegment;
2479
+ } & {
2164
2480
  readonly centerPoint: SOCanvasPoint;
2165
2481
  } & {
2166
2482
  regenerateIds(randomizer: string): void;
2167
2483
  }, _NotCustomized, _NotCustomized>>;
2168
2484
  }, {
2485
+ readonly json: JsonRoof;
2486
+ } & {
2169
2487
  newInParent(): void;
2170
2488
  removeInParent(): void;
2171
2489
  clearInEditor(id: string): void;
@@ -2187,6 +2505,48 @@ removePoint(id: string): void;
2187
2505
  movePoint(id: string, { r, t }: SICanvasPoint): void;
2188
2506
  }, _NotCustomized, _NotCustomized>;
2189
2507
 
2508
+ declare const RoofOptions: IModelType< {
2509
+ baseHeight: IMaybe<ISimpleType<number>>;
2510
+ topHeight: IMaybe<ISimpleType<number>>;
2511
+ angle: IMaybe<ISimpleType<number>>;
2512
+ }, {
2513
+ setBaseHeight(baseHeight: number): void;
2514
+ setTopHeight(topHeight: number): void;
2515
+ setAngle(angle: number): void;
2516
+ }, _NotCustomized, _NotCustomized>;
2517
+
2518
+ declare const RoofSegment: IModelType< {
2519
+ start: IModelType< {
2520
+ r: ISimpleType<number>;
2521
+ t: ISimpleType<number>;
2522
+ } & {
2523
+ id: IOptionalIType<ISimpleType<string>, [undefined]>;
2524
+ }, {
2525
+ readonly json: CanvasCoordWithId;
2526
+ } & {
2527
+ regenerateId(randomizer: string): void;
2528
+ }, _NotCustomized, _NotCustomized>;
2529
+ end: IModelType< {
2530
+ r: ISimpleType<number>;
2531
+ t: ISimpleType<number>;
2532
+ } & {
2533
+ id: IOptionalIType<ISimpleType<string>, [undefined]>;
2534
+ }, {
2535
+ readonly json: CanvasCoordWithId;
2536
+ } & {
2537
+ regenerateId(randomizer: string): void;
2538
+ }, _NotCustomized, _NotCustomized>;
2539
+ } & {
2540
+ id: IOptionalIType<ISimpleType<string>, [undefined]>;
2541
+ base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2542
+ }, {
2543
+ readonly superJson: JsonAbstractSegment;
2544
+ } & {
2545
+ readonly centerPoint: SOCanvasPoint;
2546
+ } & {
2547
+ regenerateIds(randomizer: string): void;
2548
+ }, _NotCustomized, _NotCustomized>;
2549
+
2190
2550
  export declare interface RoomWithHoles {
2191
2551
  room: SmplrCoord2d[];
2192
2552
  holes: SmplrCoord2d[][];
@@ -2339,9 +2699,21 @@ declare interface SOAbstractSegment extends SnapshotOut<typeof AbstractSegment>
2339
2699
  declare interface SOCanvasPoint extends SnapshotOut<typeof CanvasPoint> {
2340
2700
  }
2341
2701
 
2702
+ declare interface SOFacade extends SnapshotOut<typeof Facade> {
2703
+ }
2704
+
2705
+ declare interface SOFloorplan extends SnapshotOut<typeof Floorplan> {
2706
+ }
2707
+
2342
2708
  declare interface SOGroundSegment extends SnapshotOut<typeof GroundSegment> {
2343
2709
  }
2344
2710
 
2711
+ declare interface SORoofOptions extends SnapshotOut<typeof RoofOptions> {
2712
+ }
2713
+
2714
+ declare interface SORoofSegment extends SnapshotOut<typeof RoofSegment> {
2715
+ }
2716
+
2345
2717
  declare interface SOSpace extends SnapshotOut<typeof Space_2> {
2346
2718
  }
2347
2719
 
@@ -2441,6 +2813,8 @@ contour: IMaybe<ISimpleType<number>>;
2441
2813
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
2442
2814
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2443
2815
  }, {
2816
+ readonly json: JsonGroundOptions;
2817
+ } & {
2444
2818
  setType(type: "normal" | "shell" | "norender"): void;
2445
2819
  setBaseHeight(baseHeight: number): void;
2446
2820
  setThickness(thickness: number): void;
@@ -2455,6 +2829,8 @@ t: ISimpleType<number>;
2455
2829
  } & {
2456
2830
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2457
2831
  }, {
2832
+ readonly json: CanvasCoordWithId;
2833
+ } & {
2458
2834
  regenerateId(randomizer: string): void;
2459
2835
  }, _NotCustomized, _NotCustomized>;
2460
2836
  end: IModelType< {
@@ -2463,12 +2839,18 @@ t: ISimpleType<number>;
2463
2839
  } & {
2464
2840
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2465
2841
  }, {
2842
+ readonly json: CanvasCoordWithId;
2843
+ } & {
2466
2844
  regenerateId(randomizer: string): void;
2467
2845
  }, _NotCustomized, _NotCustomized>;
2468
2846
  }, {
2847
+ readonly superJson: JsonAbstractSegment;
2848
+ } & {
2469
2849
  readonly centerPoint: SOCanvasPoint;
2470
2850
  } & {
2471
2851
  regenerateIds(randomizer: string): void;
2852
+ } & {
2853
+ readonly json: JsonAbstractSegment;
2472
2854
  }, _NotCustomized, _NotCustomized>>;
2473
2855
  holes: IArrayType<IModelType< {
2474
2856
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
@@ -2481,6 +2863,8 @@ t: ISimpleType<number>;
2481
2863
  } & {
2482
2864
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2483
2865
  }, {
2866
+ readonly json: CanvasCoordWithId;
2867
+ } & {
2484
2868
  regenerateId(randomizer: string): void;
2485
2869
  }, _NotCustomized, _NotCustomized>;
2486
2870
  end: IModelType< {
@@ -2489,14 +2873,21 @@ t: ISimpleType<number>;
2489
2873
  } & {
2490
2874
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2491
2875
  }, {
2876
+ readonly json: CanvasCoordWithId;
2877
+ } & {
2492
2878
  regenerateId(randomizer: string): void;
2493
2879
  }, _NotCustomized, _NotCustomized>;
2494
2880
  }, {
2881
+ readonly superJson: JsonAbstractSegment;
2882
+ } & {
2495
2883
  readonly centerPoint: SOCanvasPoint;
2496
2884
  } & {
2497
2885
  regenerateIds(randomizer: string): void;
2886
+ } & {
2887
+ readonly json: JsonAbstractSegment;
2498
2888
  }, _NotCustomized, _NotCustomized>>;
2499
2889
  }, {
2890
+ readonly json: JsonHole;
2500
2891
  getGround(): IGround;
2501
2892
  } & {
2502
2893
  newInParent(): void;
@@ -2520,6 +2911,8 @@ movePoint(id: string, { r, t }: SICanvasPoint): void;
2520
2911
  }, _NotCustomized, _NotCustomized>>;
2521
2912
  layers: IArrayType<ISimpleType<string>>;
2522
2913
  }, {
2914
+ readonly json: JsonGround;
2915
+ } & {
2523
2916
  newInParent(): void;
2524
2917
  removeInParent(): void;
2525
2918
  clearInEditor(id: string): void;
@@ -2557,6 +2950,8 @@ thickness: IMaybe<ISimpleType<number>>;
2557
2950
  autoFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2558
2951
  partOfFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2559
2952
  }, {
2953
+ readonly json: JsonWallOptions;
2954
+ } & {
2560
2955
  setType(type: "normal" | "shell" | "norender" | "structural"): void;
2561
2956
  setCap(cap: "flat" | "round"): void;
2562
2957
  setHeight(height: number): void;
@@ -2571,6 +2966,8 @@ t: ISimpleType<number>;
2571
2966
  } & {
2572
2967
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2573
2968
  }, {
2969
+ readonly json: CanvasCoordWithId;
2970
+ } & {
2574
2971
  regenerateId(randomizer: string): void;
2575
2972
  }, _NotCustomized, _NotCustomized>;
2576
2973
  end: IModelType< {
@@ -2579,6 +2976,8 @@ t: ISimpleType<number>;
2579
2976
  } & {
2580
2977
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2581
2978
  }, {
2979
+ readonly json: CanvasCoordWithId;
2980
+ } & {
2582
2981
  regenerateId(randomizer: string): void;
2583
2982
  }, _NotCustomized, _NotCustomized>;
2584
2983
  } & {
@@ -2591,11 +2990,15 @@ dimensions: IOptionalIType<IModelType< {
2591
2990
  width: IMaybe<ISimpleType<number>>;
2592
2991
  height: IMaybe<ISimpleType<number>>;
2593
2992
  baseHeight: IMaybe<ISimpleType<number>>;
2594
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
2993
+ }, {
2994
+ readonly json: JsonWallOpeningDimensions;
2995
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
2595
2996
  position: IMaybe<IModelType< {
2596
2997
  from: ISimpleType<"start" | "end">;
2597
2998
  distance: ISimpleType<number>;
2598
- }, {}, _NotCustomized, _NotCustomized>>;
2999
+ }, {
3000
+ readonly json: JsonWallOpeningPosition;
3001
+ }, _NotCustomized, _NotCustomized>>;
2599
3002
  options: IOptionalIType<IModelType< {
2600
3003
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
2601
3004
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -2629,6 +3032,7 @@ setRailingStyle(railingStyle: string): void;
2629
3032
  }, _NotCustomized, _NotCustomized>, [undefined]>;
2630
3033
  layers: IArrayType<ISimpleType<string>>;
2631
3034
  }, {
3035
+ readonly json: JsonWallOpening;
2632
3036
  readonly segment: IWallSegment;
2633
3037
  } & {
2634
3038
  readonly feature: IWall;
@@ -2647,8 +3051,11 @@ remove(): void;
2647
3051
  setLayers(layers: string[]): void;
2648
3052
  }, _NotCustomized, _NotCustomized>>;
2649
3053
  }, {
3054
+ readonly superJson: JsonAbstractSegment;
3055
+ } & {
2650
3056
  readonly centerPoint: SOCanvasPoint;
2651
3057
  } & {
3058
+ readonly json: JsonWallSegment;
2652
3059
  readonly centerPoint: SOCanvasPoint;
2653
3060
  } & {
2654
3061
  addOpening(opening: SIWallOpening): void;
@@ -2657,6 +3064,8 @@ regenerateIds(randomizer: string): void;
2657
3064
  }, _NotCustomized, _NotCustomized>>;
2658
3065
  layers: IArrayType<ISimpleType<string>>;
2659
3066
  }, {
3067
+ readonly json: JsonWall;
3068
+ } & {
2660
3069
  newInParent(): void;
2661
3070
  removeInParent(): void;
2662
3071
  clearInEditor(id: string): void;
@@ -2697,6 +3106,8 @@ t: ISimpleType<number>;
2697
3106
  } & {
2698
3107
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2699
3108
  }, {
3109
+ readonly json: CanvasCoordWithId;
3110
+ } & {
2700
3111
  regenerateId(randomizer: string): void;
2701
3112
  }, _NotCustomized, _NotCustomized>;
2702
3113
  end: IModelType< {
@@ -2705,17 +3116,23 @@ t: ISimpleType<number>;
2705
3116
  } & {
2706
3117
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2707
3118
  }, {
3119
+ readonly json: CanvasCoordWithId;
3120
+ } & {
2708
3121
  regenerateId(randomizer: string): void;
2709
3122
  }, _NotCustomized, _NotCustomized>;
2710
3123
  } & {
2711
3124
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2712
3125
  base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2713
3126
  }, {
3127
+ readonly superJson: JsonAbstractSegment;
3128
+ } & {
2714
3129
  readonly centerPoint: SOCanvasPoint;
2715
3130
  } & {
2716
3131
  regenerateIds(randomizer: string): void;
2717
3132
  }, _NotCustomized, _NotCustomized>>;
2718
3133
  }, {
3134
+ readonly json: JsonRoof;
3135
+ } & {
2719
3136
  newInParent(): void;
2720
3137
  removeInParent(): void;
2721
3138
  clearInEditor(id: string): void;
@@ -2745,6 +3162,8 @@ t: ISimpleType<number>;
2745
3162
  } & {
2746
3163
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2747
3164
  }, {
3165
+ readonly json: CanvasCoordWithId;
3166
+ } & {
2748
3167
  regenerateId(randomizer: string): void;
2749
3168
  }, _NotCustomized, _NotCustomized>>;
2750
3169
  topSegment: IArrayType<IModelType< {
@@ -2753,14 +3172,18 @@ t: ISimpleType<number>;
2753
3172
  } & {
2754
3173
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2755
3174
  }, {
3175
+ readonly json: CanvasCoordWithId;
3176
+ } & {
2756
3177
  regenerateId(randomizer: string): void;
2757
3178
  }, _NotCustomized, _NotCustomized>>;
2758
3179
  baseHeight: IMaybe<ISimpleType<number>>;
2759
3180
  height: IMaybe<ISimpleType<number>>;
2760
3181
  style: IOptionalIType<ISimpleType<"slope" | "thin" | "thick" | "block">, [undefined]>;
2761
- color: IOptionalIType<ISimpleType<string>, [undefined]>;
3182
+ color: IOptionalIType<ISimpleType<"white" | "grey" | "darkgrey">, [undefined]>;
2762
3183
  layers: IArrayType<ISimpleType<string>>;
2763
3184
  }, {
3185
+ readonly json: JsonStair;
3186
+ } & {
2764
3187
  rename(name: string): void;
2765
3188
  setBaseHeight(baseHeight: number): void;
2766
3189
  setHeight(height: number): void;
@@ -2787,6 +3210,8 @@ is360: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2787
3210
  direction: IMaybe<ISimpleType<number>>;
2788
3211
  layers: IArrayType<ISimpleType<string>>;
2789
3212
  }, {
3213
+ readonly json: JsonAnnotation;
3214
+ } & {
2790
3215
  setType(type: AnnotationType): void;
2791
3216
  rename(name: string): void;
2792
3217
  moveTo({ r, t }: CanvasCoord): void;
@@ -2814,12 +3239,15 @@ rotation: IOptionalIType<IModelType< {
2814
3239
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
2815
3240
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
2816
3241
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
2817
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
3242
+ }, {
3243
+ readonly json: JsonObjectRotation;
3244
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
2818
3245
  dimensions: IOptionalIType<IModelType< {
2819
3246
  length: IMaybe<ISimpleType<number>>;
2820
3247
  width: IMaybe<ISimpleType<number>>;
2821
3248
  height: IMaybe<ISimpleType<number>>;
2822
3249
  }, {
3250
+ readonly json: JsonObjectDimensions;
2823
3251
  readonly safeValues: {
2824
3252
  length: number;
2825
3253
  width: number;
@@ -2830,6 +3258,8 @@ configuration: IMaybe<IType<Partial<ParametricObjectConfiguration>, Partial<Para
2830
3258
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2831
3259
  layers: IArrayType<ISimpleType<string>>;
2832
3260
  }, {
3261
+ readonly json: Furniture;
3262
+ } & {
2833
3263
  rename(name: string): void;
2834
3264
  moveTo(position: Partial<SILevelCoord3d>): void;
2835
3265
  setLevelIndex(levelIndex: number): void;
@@ -2861,6 +3291,7 @@ remove(): void;
2861
3291
  rescaleByFactor(factor: number, imageOnly?: boolean): void;
2862
3292
  }, _NotCustomized, _NotCustomized>, [undefined]>;
2863
3293
  }, {
3294
+ readonly json: JsonLevel;
2864
3295
  readonly hash: string;
2865
3296
  readonly points: ICanvasPoint[];
2866
3297
  } & {
@@ -2925,12 +3356,15 @@ rotation: IOptionalIType<IModelType< {
2925
3356
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
2926
3357
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
2927
3358
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
2928
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
3359
+ }, {
3360
+ readonly json: JsonObjectRotation;
3361
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
2929
3362
  dimensions: IOptionalIType<IModelType< {
2930
3363
  length: IMaybe<ISimpleType<number>>;
2931
3364
  width: IMaybe<ISimpleType<number>>;
2932
3365
  height: IMaybe<ISimpleType<number>>;
2933
3366
  }, {
3367
+ readonly json: JsonObjectDimensions;
2934
3368
  readonly safeValues: {
2935
3369
  length: number;
2936
3370
  width: number;
@@ -2976,6 +3410,7 @@ setAnnotationHeight(annotationHeight: number): void;
2976
3410
  setAnnotationSize(annotationSize: number): void;
2977
3411
  }, _NotCustomized, _NotCustomized>, [undefined]>;
2978
3412
  }, {
3413
+ readonly json: JsonSpace;
2979
3414
  readonly hash: string;
2980
3415
  } & {
2981
3416
  getHash({ only, ignore }: {
@@ -3184,6 +3619,8 @@ t: ISimpleType<number>;
3184
3619
  } & {
3185
3620
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3186
3621
  }, {
3622
+ readonly json: CanvasCoordWithId;
3623
+ } & {
3187
3624
  regenerateId(randomizer: string): void;
3188
3625
  }, _NotCustomized, _NotCustomized>>;
3189
3626
  topSegment: IArrayType<IModelType< {
@@ -3192,14 +3629,18 @@ t: ISimpleType<number>;
3192
3629
  } & {
3193
3630
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3194
3631
  }, {
3632
+ readonly json: CanvasCoordWithId;
3633
+ } & {
3195
3634
  regenerateId(randomizer: string): void;
3196
3635
  }, _NotCustomized, _NotCustomized>>;
3197
3636
  baseHeight: IMaybe<ISimpleType<number>>;
3198
3637
  height: IMaybe<ISimpleType<number>>;
3199
3638
  style: IOptionalIType<ISimpleType<Style>, [undefined]>;
3200
- color: IOptionalIType<ISimpleType<string>, [undefined]>;
3639
+ color: IOptionalIType<ISimpleType<Color_2>, [undefined]>;
3201
3640
  layers: IArrayType<ISimpleType<string>>;
3202
3641
  }, {
3642
+ readonly json: JsonStair;
3643
+ } & {
3203
3644
  rename(name: string): void;
3204
3645
  setBaseHeight(baseHeight: number): void;
3205
3646
  setHeight(height: number): void;
@@ -3322,7 +3763,7 @@ declare interface Vector3Coord extends Vector2Coord {
3322
3763
  z: number;
3323
3764
  }
3324
3765
 
3325
- export declare const version = "2.42.1-beta.2";
3766
+ export declare const version = "2.42.1-beta.20";
3326
3767
 
3327
3768
  declare interface ViewerRendererHandle {
3328
3769
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -3368,6 +3809,8 @@ thickness: IMaybe<ISimpleType<number>>;
3368
3809
  autoFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
3369
3810
  partOfFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
3370
3811
  }, {
3812
+ readonly json: JsonWallOptions;
3813
+ } & {
3371
3814
  setType(type: "normal" | "shell" | "norender" | "structural"): void;
3372
3815
  setCap(cap: "flat" | "round"): void;
3373
3816
  setHeight(height: number): void;
@@ -3382,6 +3825,8 @@ t: ISimpleType<number>;
3382
3825
  } & {
3383
3826
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3384
3827
  }, {
3828
+ readonly json: CanvasCoordWithId;
3829
+ } & {
3385
3830
  regenerateId(randomizer: string): void;
3386
3831
  }, _NotCustomized, _NotCustomized>;
3387
3832
  end: IModelType< {
@@ -3390,6 +3835,8 @@ t: ISimpleType<number>;
3390
3835
  } & {
3391
3836
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3392
3837
  }, {
3838
+ readonly json: CanvasCoordWithId;
3839
+ } & {
3393
3840
  regenerateId(randomizer: string): void;
3394
3841
  }, _NotCustomized, _NotCustomized>;
3395
3842
  } & {
@@ -3402,11 +3849,15 @@ dimensions: IOptionalIType<IModelType< {
3402
3849
  width: IMaybe<ISimpleType<number>>;
3403
3850
  height: IMaybe<ISimpleType<number>>;
3404
3851
  baseHeight: IMaybe<ISimpleType<number>>;
3405
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
3852
+ }, {
3853
+ readonly json: JsonWallOpeningDimensions;
3854
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
3406
3855
  position: IMaybe<IModelType< {
3407
3856
  from: ISimpleType<"start" | "end">;
3408
3857
  distance: ISimpleType<number>;
3409
- }, {}, _NotCustomized, _NotCustomized>>;
3858
+ }, {
3859
+ readonly json: JsonWallOpeningPosition;
3860
+ }, _NotCustomized, _NotCustomized>>;
3410
3861
  options: IOptionalIType<IModelType< {
3411
3862
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
3412
3863
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -3440,6 +3891,7 @@ setRailingStyle(railingStyle: string): void;
3440
3891
  }, _NotCustomized, _NotCustomized>, [undefined]>;
3441
3892
  layers: IArrayType<ISimpleType<string>>;
3442
3893
  }, {
3894
+ readonly json: JsonWallOpening;
3443
3895
  readonly segment: IWallSegment;
3444
3896
  } & {
3445
3897
  readonly feature: IWall;
@@ -3458,8 +3910,11 @@ remove(): void;
3458
3910
  setLayers(layers: string[]): void;
3459
3911
  }, _NotCustomized, _NotCustomized>>;
3460
3912
  }, {
3913
+ readonly superJson: JsonAbstractSegment;
3914
+ } & {
3461
3915
  readonly centerPoint: SOCanvasPoint;
3462
3916
  } & {
3917
+ readonly json: JsonWallSegment;
3463
3918
  readonly centerPoint: SOCanvasPoint;
3464
3919
  } & {
3465
3920
  addOpening(opening: SIWallOpening): void;
@@ -3468,6 +3923,8 @@ regenerateIds(randomizer: string): void;
3468
3923
  }, _NotCustomized, _NotCustomized>>;
3469
3924
  layers: IArrayType<ISimpleType<string>>;
3470
3925
  }, {
3926
+ readonly json: JsonWall;
3927
+ } & {
3471
3928
  newInParent(): void;
3472
3929
  removeInParent(): void;
3473
3930
  clearInEditor(id: string): void;
@@ -3497,11 +3954,15 @@ dimensions: IOptionalIType<IModelType< {
3497
3954
  width: IMaybe<ISimpleType<number>>;
3498
3955
  height: IMaybe<ISimpleType<number>>;
3499
3956
  baseHeight: IMaybe<ISimpleType<number>>;
3500
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
3957
+ }, {
3958
+ readonly json: JsonWallOpeningDimensions;
3959
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
3501
3960
  position: IMaybe<IModelType< {
3502
3961
  from: ISimpleType<"start" | "end">;
3503
3962
  distance: ISimpleType<number>;
3504
- }, {}, _NotCustomized, _NotCustomized>>;
3963
+ }, {
3964
+ readonly json: JsonWallOpeningPosition;
3965
+ }, _NotCustomized, _NotCustomized>>;
3505
3966
  options: IOptionalIType<IModelType< {
3506
3967
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
3507
3968
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -3535,6 +3996,7 @@ setRailingStyle(railingStyle: string): void;
3535
3996
  }, _NotCustomized, _NotCustomized>, [undefined]>;
3536
3997
  layers: IArrayType<ISimpleType<string>>;
3537
3998
  }, {
3999
+ readonly json: JsonWallOpening;
3538
4000
  readonly segment: IWallSegment;
3539
4001
  } & {
3540
4002
  readonly feature: IWall;
@@ -3557,7 +4019,9 @@ declare const WallOpeningDimensions: IModelType< {
3557
4019
  width: IMaybe<ISimpleType<number>>;
3558
4020
  height: IMaybe<ISimpleType<number>>;
3559
4021
  baseHeight: IMaybe<ISimpleType<number>>;
3560
- }, {}, _NotCustomized, _NotCustomized>;
4022
+ }, {
4023
+ readonly json: JsonWallOpeningDimensions;
4024
+ }, _NotCustomized, _NotCustomized>;
3561
4025
 
3562
4026
  declare const WallOpeningOptions: IModelType< {
3563
4027
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
@@ -3594,7 +4058,9 @@ setRailingStyle(railingStyle: string): void;
3594
4058
  declare const WallOpeningPosition: IModelType< {
3595
4059
  from: ISimpleType<"start" | "end">;
3596
4060
  distance: ISimpleType<number>;
3597
- }, {}, _NotCustomized, _NotCustomized>;
4061
+ }, {
4062
+ readonly json: JsonWallOpeningPosition;
4063
+ }, _NotCustomized, _NotCustomized>;
3598
4064
 
3599
4065
  declare const WallSegment: IModelType< {
3600
4066
  start: IModelType< {
@@ -3603,6 +4069,8 @@ t: ISimpleType<number>;
3603
4069
  } & {
3604
4070
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3605
4071
  }, {
4072
+ readonly json: CanvasCoordWithId;
4073
+ } & {
3606
4074
  regenerateId(randomizer: string): void;
3607
4075
  }, _NotCustomized, _NotCustomized>;
3608
4076
  end: IModelType< {
@@ -3611,6 +4079,8 @@ t: ISimpleType<number>;
3611
4079
  } & {
3612
4080
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3613
4081
  }, {
4082
+ readonly json: CanvasCoordWithId;
4083
+ } & {
3614
4084
  regenerateId(randomizer: string): void;
3615
4085
  }, _NotCustomized, _NotCustomized>;
3616
4086
  } & {
@@ -3623,11 +4093,15 @@ dimensions: IOptionalIType<IModelType< {
3623
4093
  width: IMaybe<ISimpleType<number>>;
3624
4094
  height: IMaybe<ISimpleType<number>>;
3625
4095
  baseHeight: IMaybe<ISimpleType<number>>;
3626
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
4096
+ }, {
4097
+ readonly json: JsonWallOpeningDimensions;
4098
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
3627
4099
  position: IMaybe<IModelType< {
3628
4100
  from: ISimpleType<"start" | "end">;
3629
4101
  distance: ISimpleType<number>;
3630
- }, {}, _NotCustomized, _NotCustomized>>;
4102
+ }, {
4103
+ readonly json: JsonWallOpeningPosition;
4104
+ }, _NotCustomized, _NotCustomized>>;
3631
4105
  options: IOptionalIType<IModelType< {
3632
4106
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
3633
4107
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -3661,6 +4135,7 @@ setRailingStyle(railingStyle: string): void;
3661
4135
  }, _NotCustomized, _NotCustomized>, [undefined]>;
3662
4136
  layers: IArrayType<ISimpleType<string>>;
3663
4137
  }, {
4138
+ readonly json: JsonWallOpening;
3664
4139
  readonly segment: IWallSegment;
3665
4140
  } & {
3666
4141
  readonly feature: IWall;
@@ -3679,8 +4154,11 @@ remove(): void;
3679
4154
  setLayers(layers: string[]): void;
3680
4155
  }, _NotCustomized, _NotCustomized>>;
3681
4156
  }, {
4157
+ readonly superJson: JsonAbstractSegment;
4158
+ } & {
3682
4159
  readonly centerPoint: SOCanvasPoint;
3683
4160
  } & {
4161
+ readonly json: JsonWallSegment;
3684
4162
  readonly centerPoint: SOCanvasPoint;
3685
4163
  } & {
3686
4164
  addOpening(opening: SIWallOpening): void;
@@ -3688,4 +4166,6 @@ removeOpening(id: string): void;
3688
4166
  regenerateIds(randomizer: string): void;
3689
4167
  }, _NotCustomized, _NotCustomized>;
3690
4168
 
4169
+ declare type WallType = 'normal' | 'structural' | 'shell' | 'norender';
4170
+
3691
4171
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplrspace/smplr-loader",
3
- "version": "2.42.1-beta.2",
3
+ "version": "2.42.1-beta.20",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [