@smplrspace/smplr-loader 2.42.1-beta.1 → 2.42.1-beta.10

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