@smplrspace/smplr-loader 2.42.1-beta.5 → 2.42.1-beta.7

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
  } & {
@@ -1610,12 +1909,15 @@ rotation: IOptionalIType<IModelType< {
1610
1909
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
1611
1910
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
1612
1911
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
1613
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
1912
+ }, {
1913
+ readonly json: JsonObjectRotation;
1914
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
1614
1915
  dimensions: IOptionalIType<IModelType< {
1615
1916
  length: IMaybe<ISimpleType<number>>;
1616
1917
  width: IMaybe<ISimpleType<number>>;
1617
1918
  height: IMaybe<ISimpleType<number>>;
1618
1919
  }, {
1920
+ readonly json: JsonObjectDimensions;
1619
1921
  readonly safeValues: {
1620
1922
  length: number;
1621
1923
  width: number;
@@ -1626,6 +1928,8 @@ configuration: IMaybe<IType<Partial<ParametricObjectConfiguration>, Partial<Para
1626
1928
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
1627
1929
  layers: IArrayType<ISimpleType<string>>;
1628
1930
  }, {
1931
+ readonly json: Furniture;
1932
+ } & {
1629
1933
  rename(name: string): void;
1630
1934
  moveTo(position: Partial<SILevelCoord3d>): void;
1631
1935
  setLevelIndex(levelIndex: number): void;
@@ -1643,6 +1947,7 @@ length: IMaybe<ISimpleType<number>>;
1643
1947
  width: IMaybe<ISimpleType<number>>;
1644
1948
  height: IMaybe<ISimpleType<number>>;
1645
1949
  }, {
1950
+ readonly json: JsonObjectDimensions;
1646
1951
  readonly safeValues: {
1647
1952
  length: number;
1648
1953
  width: number;
@@ -1654,7 +1959,9 @@ declare const ObjectRotation: IModelType< {
1654
1959
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
1655
1960
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
1656
1961
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
1657
- }, {}, _NotCustomized, _NotCustomized>;
1962
+ }, {
1963
+ readonly json: JsonObjectRotation;
1964
+ }, _NotCustomized, _NotCustomized>;
1658
1965
 
1659
1966
  declare type OmitOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
1660
1967
 
@@ -2147,6 +2454,8 @@ t: ISimpleType<number>;
2147
2454
  } & {
2148
2455
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2149
2456
  }, {
2457
+ readonly json: CanvasCoordWithId;
2458
+ } & {
2150
2459
  regenerateId(randomizer: string): void;
2151
2460
  }, _NotCustomized, _NotCustomized>;
2152
2461
  end: IModelType< {
@@ -2155,17 +2464,23 @@ t: ISimpleType<number>;
2155
2464
  } & {
2156
2465
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2157
2466
  }, {
2467
+ readonly json: CanvasCoordWithId;
2468
+ } & {
2158
2469
  regenerateId(randomizer: string): void;
2159
2470
  }, _NotCustomized, _NotCustomized>;
2160
2471
  } & {
2161
2472
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2162
2473
  base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2163
2474
  }, {
2475
+ readonly superJson: JsonAbstractSegment;
2476
+ } & {
2164
2477
  readonly centerPoint: SOCanvasPoint;
2165
2478
  } & {
2166
2479
  regenerateIds(randomizer: string): void;
2167
2480
  }, _NotCustomized, _NotCustomized>>;
2168
2481
  }, {
2482
+ readonly json: JsonRoof;
2483
+ } & {
2169
2484
  newInParent(): void;
2170
2485
  removeInParent(): void;
2171
2486
  clearInEditor(id: string): void;
@@ -2187,6 +2502,48 @@ removePoint(id: string): void;
2187
2502
  movePoint(id: string, { r, t }: SICanvasPoint): void;
2188
2503
  }, _NotCustomized, _NotCustomized>;
2189
2504
 
2505
+ declare const RoofOptions: IModelType< {
2506
+ baseHeight: IMaybe<ISimpleType<number>>;
2507
+ topHeight: IMaybe<ISimpleType<number>>;
2508
+ angle: IMaybe<ISimpleType<number>>;
2509
+ }, {
2510
+ setBaseHeight(baseHeight: number): void;
2511
+ setTopHeight(topHeight: number): void;
2512
+ setAngle(angle: number): void;
2513
+ }, _NotCustomized, _NotCustomized>;
2514
+
2515
+ declare const RoofSegment: IModelType< {
2516
+ start: IModelType< {
2517
+ r: ISimpleType<number>;
2518
+ t: ISimpleType<number>;
2519
+ } & {
2520
+ id: IOptionalIType<ISimpleType<string>, [undefined]>;
2521
+ }, {
2522
+ readonly json: CanvasCoordWithId;
2523
+ } & {
2524
+ regenerateId(randomizer: string): void;
2525
+ }, _NotCustomized, _NotCustomized>;
2526
+ end: IModelType< {
2527
+ r: ISimpleType<number>;
2528
+ t: ISimpleType<number>;
2529
+ } & {
2530
+ id: IOptionalIType<ISimpleType<string>, [undefined]>;
2531
+ }, {
2532
+ readonly json: CanvasCoordWithId;
2533
+ } & {
2534
+ regenerateId(randomizer: string): void;
2535
+ }, _NotCustomized, _NotCustomized>;
2536
+ } & {
2537
+ id: IOptionalIType<ISimpleType<string>, [undefined]>;
2538
+ base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2539
+ }, {
2540
+ readonly superJson: JsonAbstractSegment;
2541
+ } & {
2542
+ readonly centerPoint: SOCanvasPoint;
2543
+ } & {
2544
+ regenerateIds(randomizer: string): void;
2545
+ }, _NotCustomized, _NotCustomized>;
2546
+
2190
2547
  export declare interface RoomWithHoles {
2191
2548
  room: SmplrCoord2d[];
2192
2549
  holes: SmplrCoord2d[][];
@@ -2339,9 +2696,21 @@ declare interface SOAbstractSegment extends SnapshotOut<typeof AbstractSegment>
2339
2696
  declare interface SOCanvasPoint extends SnapshotOut<typeof CanvasPoint> {
2340
2697
  }
2341
2698
 
2699
+ declare interface SOFacade extends SnapshotOut<typeof Facade> {
2700
+ }
2701
+
2702
+ declare interface SOFloorplan extends SnapshotOut<typeof Floorplan> {
2703
+ }
2704
+
2342
2705
  declare interface SOGroundSegment extends SnapshotOut<typeof GroundSegment> {
2343
2706
  }
2344
2707
 
2708
+ declare interface SORoofOptions extends SnapshotOut<typeof RoofOptions> {
2709
+ }
2710
+
2711
+ declare interface SORoofSegment extends SnapshotOut<typeof RoofSegment> {
2712
+ }
2713
+
2345
2714
  declare interface SOSpace extends SnapshotOut<typeof Space_2> {
2346
2715
  }
2347
2716
 
@@ -2441,6 +2810,8 @@ contour: IMaybe<ISimpleType<number>>;
2441
2810
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
2442
2811
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2443
2812
  }, {
2813
+ readonly json: JsonGroundOptions;
2814
+ } & {
2444
2815
  setType(type: "normal" | "shell" | "norender"): void;
2445
2816
  setBaseHeight(baseHeight: number): void;
2446
2817
  setThickness(thickness: number): void;
@@ -2455,6 +2826,8 @@ t: ISimpleType<number>;
2455
2826
  } & {
2456
2827
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2457
2828
  }, {
2829
+ readonly json: CanvasCoordWithId;
2830
+ } & {
2458
2831
  regenerateId(randomizer: string): void;
2459
2832
  }, _NotCustomized, _NotCustomized>;
2460
2833
  end: IModelType< {
@@ -2463,12 +2836,18 @@ t: ISimpleType<number>;
2463
2836
  } & {
2464
2837
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2465
2838
  }, {
2839
+ readonly json: CanvasCoordWithId;
2840
+ } & {
2466
2841
  regenerateId(randomizer: string): void;
2467
2842
  }, _NotCustomized, _NotCustomized>;
2468
2843
  }, {
2844
+ readonly superJson: JsonAbstractSegment;
2845
+ } & {
2469
2846
  readonly centerPoint: SOCanvasPoint;
2470
2847
  } & {
2471
2848
  regenerateIds(randomizer: string): void;
2849
+ } & {
2850
+ readonly json: JsonAbstractSegment;
2472
2851
  }, _NotCustomized, _NotCustomized>>;
2473
2852
  holes: IArrayType<IModelType< {
2474
2853
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
@@ -2481,6 +2860,8 @@ t: ISimpleType<number>;
2481
2860
  } & {
2482
2861
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2483
2862
  }, {
2863
+ readonly json: CanvasCoordWithId;
2864
+ } & {
2484
2865
  regenerateId(randomizer: string): void;
2485
2866
  }, _NotCustomized, _NotCustomized>;
2486
2867
  end: IModelType< {
@@ -2489,14 +2870,21 @@ t: ISimpleType<number>;
2489
2870
  } & {
2490
2871
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2491
2872
  }, {
2873
+ readonly json: CanvasCoordWithId;
2874
+ } & {
2492
2875
  regenerateId(randomizer: string): void;
2493
2876
  }, _NotCustomized, _NotCustomized>;
2494
2877
  }, {
2878
+ readonly superJson: JsonAbstractSegment;
2879
+ } & {
2495
2880
  readonly centerPoint: SOCanvasPoint;
2496
2881
  } & {
2497
2882
  regenerateIds(randomizer: string): void;
2883
+ } & {
2884
+ readonly json: JsonAbstractSegment;
2498
2885
  }, _NotCustomized, _NotCustomized>>;
2499
2886
  }, {
2887
+ readonly json: JsonHole;
2500
2888
  getGround(): IGround;
2501
2889
  } & {
2502
2890
  newInParent(): void;
@@ -2520,6 +2908,8 @@ movePoint(id: string, { r, t }: SICanvasPoint): void;
2520
2908
  }, _NotCustomized, _NotCustomized>>;
2521
2909
  layers: IArrayType<ISimpleType<string>>;
2522
2910
  }, {
2911
+ readonly json: JsonGround;
2912
+ } & {
2523
2913
  newInParent(): void;
2524
2914
  removeInParent(): void;
2525
2915
  clearInEditor(id: string): void;
@@ -2557,6 +2947,8 @@ thickness: IMaybe<ISimpleType<number>>;
2557
2947
  autoFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2558
2948
  partOfFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2559
2949
  }, {
2950
+ readonly json: JsonWallOptions;
2951
+ } & {
2560
2952
  setType(type: "normal" | "shell" | "norender" | "structural"): void;
2561
2953
  setCap(cap: "flat" | "round"): void;
2562
2954
  setHeight(height: number): void;
@@ -2571,6 +2963,8 @@ t: ISimpleType<number>;
2571
2963
  } & {
2572
2964
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2573
2965
  }, {
2966
+ readonly json: CanvasCoordWithId;
2967
+ } & {
2574
2968
  regenerateId(randomizer: string): void;
2575
2969
  }, _NotCustomized, _NotCustomized>;
2576
2970
  end: IModelType< {
@@ -2579,6 +2973,8 @@ t: ISimpleType<number>;
2579
2973
  } & {
2580
2974
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2581
2975
  }, {
2976
+ readonly json: CanvasCoordWithId;
2977
+ } & {
2582
2978
  regenerateId(randomizer: string): void;
2583
2979
  }, _NotCustomized, _NotCustomized>;
2584
2980
  } & {
@@ -2591,11 +2987,15 @@ dimensions: IOptionalIType<IModelType< {
2591
2987
  width: IMaybe<ISimpleType<number>>;
2592
2988
  height: IMaybe<ISimpleType<number>>;
2593
2989
  baseHeight: IMaybe<ISimpleType<number>>;
2594
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
2990
+ }, {
2991
+ readonly json: JsonWallOpeningDimensions;
2992
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
2595
2993
  position: IMaybe<IModelType< {
2596
2994
  from: ISimpleType<"start" | "end">;
2597
2995
  distance: ISimpleType<number>;
2598
- }, {}, _NotCustomized, _NotCustomized>>;
2996
+ }, {
2997
+ readonly json: JsonWallOpeningPosition;
2998
+ }, _NotCustomized, _NotCustomized>>;
2599
2999
  options: IOptionalIType<IModelType< {
2600
3000
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
2601
3001
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -2629,6 +3029,7 @@ setRailingStyle(railingStyle: string): void;
2629
3029
  }, _NotCustomized, _NotCustomized>, [undefined]>;
2630
3030
  layers: IArrayType<ISimpleType<string>>;
2631
3031
  }, {
3032
+ readonly json: JsonWallOpening;
2632
3033
  readonly segment: IWallSegment;
2633
3034
  } & {
2634
3035
  readonly feature: IWall;
@@ -2647,8 +3048,11 @@ remove(): void;
2647
3048
  setLayers(layers: string[]): void;
2648
3049
  }, _NotCustomized, _NotCustomized>>;
2649
3050
  }, {
3051
+ readonly superJson: JsonAbstractSegment;
3052
+ } & {
2650
3053
  readonly centerPoint: SOCanvasPoint;
2651
3054
  } & {
3055
+ readonly json: JsonWallSegment;
2652
3056
  readonly centerPoint: SOCanvasPoint;
2653
3057
  } & {
2654
3058
  addOpening(opening: SIWallOpening): void;
@@ -2657,6 +3061,8 @@ regenerateIds(randomizer: string): void;
2657
3061
  }, _NotCustomized, _NotCustomized>>;
2658
3062
  layers: IArrayType<ISimpleType<string>>;
2659
3063
  }, {
3064
+ readonly json: JsonWall;
3065
+ } & {
2660
3066
  newInParent(): void;
2661
3067
  removeInParent(): void;
2662
3068
  clearInEditor(id: string): void;
@@ -2697,6 +3103,8 @@ t: ISimpleType<number>;
2697
3103
  } & {
2698
3104
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2699
3105
  }, {
3106
+ readonly json: CanvasCoordWithId;
3107
+ } & {
2700
3108
  regenerateId(randomizer: string): void;
2701
3109
  }, _NotCustomized, _NotCustomized>;
2702
3110
  end: IModelType< {
@@ -2705,17 +3113,23 @@ t: ISimpleType<number>;
2705
3113
  } & {
2706
3114
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2707
3115
  }, {
3116
+ readonly json: CanvasCoordWithId;
3117
+ } & {
2708
3118
  regenerateId(randomizer: string): void;
2709
3119
  }, _NotCustomized, _NotCustomized>;
2710
3120
  } & {
2711
3121
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2712
3122
  base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2713
3123
  }, {
3124
+ readonly superJson: JsonAbstractSegment;
3125
+ } & {
2714
3126
  readonly centerPoint: SOCanvasPoint;
2715
3127
  } & {
2716
3128
  regenerateIds(randomizer: string): void;
2717
3129
  }, _NotCustomized, _NotCustomized>>;
2718
3130
  }, {
3131
+ readonly json: JsonRoof;
3132
+ } & {
2719
3133
  newInParent(): void;
2720
3134
  removeInParent(): void;
2721
3135
  clearInEditor(id: string): void;
@@ -2745,6 +3159,8 @@ t: ISimpleType<number>;
2745
3159
  } & {
2746
3160
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2747
3161
  }, {
3162
+ readonly json: CanvasCoordWithId;
3163
+ } & {
2748
3164
  regenerateId(randomizer: string): void;
2749
3165
  }, _NotCustomized, _NotCustomized>>;
2750
3166
  topSegment: IArrayType<IModelType< {
@@ -2753,14 +3169,18 @@ t: ISimpleType<number>;
2753
3169
  } & {
2754
3170
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
2755
3171
  }, {
3172
+ readonly json: CanvasCoordWithId;
3173
+ } & {
2756
3174
  regenerateId(randomizer: string): void;
2757
3175
  }, _NotCustomized, _NotCustomized>>;
2758
3176
  baseHeight: IMaybe<ISimpleType<number>>;
2759
3177
  height: IMaybe<ISimpleType<number>>;
2760
3178
  style: IOptionalIType<ISimpleType<"slope" | "thin" | "thick" | "block">, [undefined]>;
2761
- color: IOptionalIType<ISimpleType<string>, [undefined]>;
3179
+ color: IOptionalIType<ISimpleType<"white" | "grey" | "darkgrey">, [undefined]>;
2762
3180
  layers: IArrayType<ISimpleType<string>>;
2763
3181
  }, {
3182
+ readonly json: JsonStair;
3183
+ } & {
2764
3184
  rename(name: string): void;
2765
3185
  setBaseHeight(baseHeight: number): void;
2766
3186
  setHeight(height: number): void;
@@ -2787,6 +3207,8 @@ is360: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2787
3207
  direction: IMaybe<ISimpleType<number>>;
2788
3208
  layers: IArrayType<ISimpleType<string>>;
2789
3209
  }, {
3210
+ readonly json: JsonAnnotation;
3211
+ } & {
2790
3212
  setType(type: AnnotationType): void;
2791
3213
  rename(name: string): void;
2792
3214
  moveTo({ r, t }: CanvasCoord): void;
@@ -2814,12 +3236,15 @@ rotation: IOptionalIType<IModelType< {
2814
3236
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
2815
3237
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
2816
3238
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
2817
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
3239
+ }, {
3240
+ readonly json: JsonObjectRotation;
3241
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
2818
3242
  dimensions: IOptionalIType<IModelType< {
2819
3243
  length: IMaybe<ISimpleType<number>>;
2820
3244
  width: IMaybe<ISimpleType<number>>;
2821
3245
  height: IMaybe<ISimpleType<number>>;
2822
3246
  }, {
3247
+ readonly json: JsonObjectDimensions;
2823
3248
  readonly safeValues: {
2824
3249
  length: number;
2825
3250
  width: number;
@@ -2830,6 +3255,8 @@ configuration: IMaybe<IType<Partial<ParametricObjectConfiguration>, Partial<Para
2830
3255
  external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
2831
3256
  layers: IArrayType<ISimpleType<string>>;
2832
3257
  }, {
3258
+ readonly json: Furniture;
3259
+ } & {
2833
3260
  rename(name: string): void;
2834
3261
  moveTo(position: Partial<SILevelCoord3d>): void;
2835
3262
  setLevelIndex(levelIndex: number): void;
@@ -2861,6 +3288,7 @@ remove(): void;
2861
3288
  rescaleByFactor(factor: number, imageOnly?: boolean): void;
2862
3289
  }, _NotCustomized, _NotCustomized>, [undefined]>;
2863
3290
  }, {
3291
+ readonly json: JsonLevel;
2864
3292
  readonly hash: string;
2865
3293
  readonly points: ICanvasPoint[];
2866
3294
  } & {
@@ -2925,12 +3353,15 @@ rotation: IOptionalIType<IModelType< {
2925
3353
  pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
2926
3354
  yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
2927
3355
  roll: IOptionalIType<ISimpleType<number>, [undefined]>;
2928
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
3356
+ }, {
3357
+ readonly json: JsonObjectRotation;
3358
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
2929
3359
  dimensions: IOptionalIType<IModelType< {
2930
3360
  length: IMaybe<ISimpleType<number>>;
2931
3361
  width: IMaybe<ISimpleType<number>>;
2932
3362
  height: IMaybe<ISimpleType<number>>;
2933
3363
  }, {
3364
+ readonly json: JsonObjectDimensions;
2934
3365
  readonly safeValues: {
2935
3366
  length: number;
2936
3367
  width: number;
@@ -2976,6 +3407,7 @@ setAnnotationHeight(annotationHeight: number): void;
2976
3407
  setAnnotationSize(annotationSize: number): void;
2977
3408
  }, _NotCustomized, _NotCustomized>, [undefined]>;
2978
3409
  }, {
3410
+ readonly json: JsonSpace;
2979
3411
  readonly hash: string;
2980
3412
  } & {
2981
3413
  getHash({ only, ignore }: {
@@ -3184,6 +3616,8 @@ t: ISimpleType<number>;
3184
3616
  } & {
3185
3617
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3186
3618
  }, {
3619
+ readonly json: CanvasCoordWithId;
3620
+ } & {
3187
3621
  regenerateId(randomizer: string): void;
3188
3622
  }, _NotCustomized, _NotCustomized>>;
3189
3623
  topSegment: IArrayType<IModelType< {
@@ -3192,14 +3626,18 @@ t: ISimpleType<number>;
3192
3626
  } & {
3193
3627
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3194
3628
  }, {
3629
+ readonly json: CanvasCoordWithId;
3630
+ } & {
3195
3631
  regenerateId(randomizer: string): void;
3196
3632
  }, _NotCustomized, _NotCustomized>>;
3197
3633
  baseHeight: IMaybe<ISimpleType<number>>;
3198
3634
  height: IMaybe<ISimpleType<number>>;
3199
3635
  style: IOptionalIType<ISimpleType<Style>, [undefined]>;
3200
- color: IOptionalIType<ISimpleType<string>, [undefined]>;
3636
+ color: IOptionalIType<ISimpleType<Color_2>, [undefined]>;
3201
3637
  layers: IArrayType<ISimpleType<string>>;
3202
3638
  }, {
3639
+ readonly json: JsonStair;
3640
+ } & {
3203
3641
  rename(name: string): void;
3204
3642
  setBaseHeight(baseHeight: number): void;
3205
3643
  setHeight(height: number): void;
@@ -3322,7 +3760,7 @@ declare interface Vector3Coord extends Vector2Coord {
3322
3760
  z: number;
3323
3761
  }
3324
3762
 
3325
- export declare const version = "2.42.1-beta.5";
3763
+ export declare const version = "2.42.1-beta.7";
3326
3764
 
3327
3765
  declare interface ViewerRendererHandle {
3328
3766
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -3368,6 +3806,8 @@ thickness: IMaybe<ISimpleType<number>>;
3368
3806
  autoFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
3369
3807
  partOfFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
3370
3808
  }, {
3809
+ readonly json: JsonWallOptions;
3810
+ } & {
3371
3811
  setType(type: "normal" | "shell" | "norender" | "structural"): void;
3372
3812
  setCap(cap: "flat" | "round"): void;
3373
3813
  setHeight(height: number): void;
@@ -3382,6 +3822,8 @@ t: ISimpleType<number>;
3382
3822
  } & {
3383
3823
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3384
3824
  }, {
3825
+ readonly json: CanvasCoordWithId;
3826
+ } & {
3385
3827
  regenerateId(randomizer: string): void;
3386
3828
  }, _NotCustomized, _NotCustomized>;
3387
3829
  end: IModelType< {
@@ -3390,6 +3832,8 @@ t: ISimpleType<number>;
3390
3832
  } & {
3391
3833
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3392
3834
  }, {
3835
+ readonly json: CanvasCoordWithId;
3836
+ } & {
3393
3837
  regenerateId(randomizer: string): void;
3394
3838
  }, _NotCustomized, _NotCustomized>;
3395
3839
  } & {
@@ -3402,11 +3846,15 @@ dimensions: IOptionalIType<IModelType< {
3402
3846
  width: IMaybe<ISimpleType<number>>;
3403
3847
  height: IMaybe<ISimpleType<number>>;
3404
3848
  baseHeight: IMaybe<ISimpleType<number>>;
3405
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
3849
+ }, {
3850
+ readonly json: JsonWallOpeningDimensions;
3851
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
3406
3852
  position: IMaybe<IModelType< {
3407
3853
  from: ISimpleType<"start" | "end">;
3408
3854
  distance: ISimpleType<number>;
3409
- }, {}, _NotCustomized, _NotCustomized>>;
3855
+ }, {
3856
+ readonly json: JsonWallOpeningPosition;
3857
+ }, _NotCustomized, _NotCustomized>>;
3410
3858
  options: IOptionalIType<IModelType< {
3411
3859
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
3412
3860
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -3440,6 +3888,7 @@ setRailingStyle(railingStyle: string): void;
3440
3888
  }, _NotCustomized, _NotCustomized>, [undefined]>;
3441
3889
  layers: IArrayType<ISimpleType<string>>;
3442
3890
  }, {
3891
+ readonly json: JsonWallOpening;
3443
3892
  readonly segment: IWallSegment;
3444
3893
  } & {
3445
3894
  readonly feature: IWall;
@@ -3458,8 +3907,11 @@ remove(): void;
3458
3907
  setLayers(layers: string[]): void;
3459
3908
  }, _NotCustomized, _NotCustomized>>;
3460
3909
  }, {
3910
+ readonly superJson: JsonAbstractSegment;
3911
+ } & {
3461
3912
  readonly centerPoint: SOCanvasPoint;
3462
3913
  } & {
3914
+ readonly json: JsonWallSegment;
3463
3915
  readonly centerPoint: SOCanvasPoint;
3464
3916
  } & {
3465
3917
  addOpening(opening: SIWallOpening): void;
@@ -3468,6 +3920,8 @@ regenerateIds(randomizer: string): void;
3468
3920
  }, _NotCustomized, _NotCustomized>>;
3469
3921
  layers: IArrayType<ISimpleType<string>>;
3470
3922
  }, {
3923
+ readonly json: JsonWall;
3924
+ } & {
3471
3925
  newInParent(): void;
3472
3926
  removeInParent(): void;
3473
3927
  clearInEditor(id: string): void;
@@ -3497,11 +3951,15 @@ dimensions: IOptionalIType<IModelType< {
3497
3951
  width: IMaybe<ISimpleType<number>>;
3498
3952
  height: IMaybe<ISimpleType<number>>;
3499
3953
  baseHeight: IMaybe<ISimpleType<number>>;
3500
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
3954
+ }, {
3955
+ readonly json: JsonWallOpeningDimensions;
3956
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
3501
3957
  position: IMaybe<IModelType< {
3502
3958
  from: ISimpleType<"start" | "end">;
3503
3959
  distance: ISimpleType<number>;
3504
- }, {}, _NotCustomized, _NotCustomized>>;
3960
+ }, {
3961
+ readonly json: JsonWallOpeningPosition;
3962
+ }, _NotCustomized, _NotCustomized>>;
3505
3963
  options: IOptionalIType<IModelType< {
3506
3964
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
3507
3965
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -3535,6 +3993,7 @@ setRailingStyle(railingStyle: string): void;
3535
3993
  }, _NotCustomized, _NotCustomized>, [undefined]>;
3536
3994
  layers: IArrayType<ISimpleType<string>>;
3537
3995
  }, {
3996
+ readonly json: JsonWallOpening;
3538
3997
  readonly segment: IWallSegment;
3539
3998
  } & {
3540
3999
  readonly feature: IWall;
@@ -3557,7 +4016,9 @@ declare const WallOpeningDimensions: IModelType< {
3557
4016
  width: IMaybe<ISimpleType<number>>;
3558
4017
  height: IMaybe<ISimpleType<number>>;
3559
4018
  baseHeight: IMaybe<ISimpleType<number>>;
3560
- }, {}, _NotCustomized, _NotCustomized>;
4019
+ }, {
4020
+ readonly json: JsonWallOpeningDimensions;
4021
+ }, _NotCustomized, _NotCustomized>;
3561
4022
 
3562
4023
  declare const WallOpeningOptions: IModelType< {
3563
4024
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
@@ -3594,7 +4055,9 @@ setRailingStyle(railingStyle: string): void;
3594
4055
  declare const WallOpeningPosition: IModelType< {
3595
4056
  from: ISimpleType<"start" | "end">;
3596
4057
  distance: ISimpleType<number>;
3597
- }, {}, _NotCustomized, _NotCustomized>;
4058
+ }, {
4059
+ readonly json: JsonWallOpeningPosition;
4060
+ }, _NotCustomized, _NotCustomized>;
3598
4061
 
3599
4062
  declare const WallSegment: IModelType< {
3600
4063
  start: IModelType< {
@@ -3603,6 +4066,8 @@ t: ISimpleType<number>;
3603
4066
  } & {
3604
4067
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3605
4068
  }, {
4069
+ readonly json: CanvasCoordWithId;
4070
+ } & {
3606
4071
  regenerateId(randomizer: string): void;
3607
4072
  }, _NotCustomized, _NotCustomized>;
3608
4073
  end: IModelType< {
@@ -3611,6 +4076,8 @@ t: ISimpleType<number>;
3611
4076
  } & {
3612
4077
  id: IOptionalIType<ISimpleType<string>, [undefined]>;
3613
4078
  }, {
4079
+ readonly json: CanvasCoordWithId;
4080
+ } & {
3614
4081
  regenerateId(randomizer: string): void;
3615
4082
  }, _NotCustomized, _NotCustomized>;
3616
4083
  } & {
@@ -3623,11 +4090,15 @@ dimensions: IOptionalIType<IModelType< {
3623
4090
  width: IMaybe<ISimpleType<number>>;
3624
4091
  height: IMaybe<ISimpleType<number>>;
3625
4092
  baseHeight: IMaybe<ISimpleType<number>>;
3626
- }, {}, _NotCustomized, _NotCustomized>, [undefined]>;
4093
+ }, {
4094
+ readonly json: JsonWallOpeningDimensions;
4095
+ }, _NotCustomized, _NotCustomized>, [undefined]>;
3627
4096
  position: IMaybe<IModelType< {
3628
4097
  from: ISimpleType<"start" | "end">;
3629
4098
  distance: ISimpleType<number>;
3630
- }, {}, _NotCustomized, _NotCustomized>>;
4099
+ }, {
4100
+ readonly json: JsonWallOpeningPosition;
4101
+ }, _NotCustomized, _NotCustomized>>;
3631
4102
  options: IOptionalIType<IModelType< {
3632
4103
  style: IOptionalIType<ISimpleType<string>, [undefined]>;
3633
4104
  nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
@@ -3661,6 +4132,7 @@ setRailingStyle(railingStyle: string): void;
3661
4132
  }, _NotCustomized, _NotCustomized>, [undefined]>;
3662
4133
  layers: IArrayType<ISimpleType<string>>;
3663
4134
  }, {
4135
+ readonly json: JsonWallOpening;
3664
4136
  readonly segment: IWallSegment;
3665
4137
  } & {
3666
4138
  readonly feature: IWall;
@@ -3679,8 +4151,11 @@ remove(): void;
3679
4151
  setLayers(layers: string[]): void;
3680
4152
  }, _NotCustomized, _NotCustomized>>;
3681
4153
  }, {
4154
+ readonly superJson: JsonAbstractSegment;
4155
+ } & {
3682
4156
  readonly centerPoint: SOCanvasPoint;
3683
4157
  } & {
4158
+ readonly json: JsonWallSegment;
3684
4159
  readonly centerPoint: SOCanvasPoint;
3685
4160
  } & {
3686
4161
  addOpening(opening: SIWallOpening): void;
@@ -3688,4 +4163,6 @@ removeOpening(id: string): void;
3688
4163
  regenerateIds(randomizer: string): void;
3689
4164
  }, _NotCustomized, _NotCustomized>;
3690
4165
 
4166
+ declare type WallType = 'normal' | 'structural' | 'shell' | 'norender';
4167
+
3691
4168
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplrspace/smplr-loader",
3
- "version": "2.42.1-beta.5",
3
+ "version": "2.42.1-beta.7",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [