dragonfly-schema 1.1501.2 → 1.1501.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +443 -428
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +156 -141
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36,7 +36,26 @@ import "reflect-metadata";
|
|
|
36
36
|
|
|
37
37
|
// src/models/_GridParameterBase.ts
|
|
38
38
|
import { IsNumber, IsDefined, IsBoolean, IsOptional as IsOptional2, IsString as IsString2, Matches, validate as validate2 } from "class-validator";
|
|
39
|
-
import {
|
|
39
|
+
import { instanceToPlain as instanceToPlain2, Expose as Expose2 } from "class-transformer";
|
|
40
|
+
|
|
41
|
+
// src/deepTransform.ts
|
|
42
|
+
import { plainToInstance } from "class-transformer";
|
|
43
|
+
function deepTransform(cls, plain) {
|
|
44
|
+
let instance;
|
|
45
|
+
try {
|
|
46
|
+
instance = plainToInstance(cls, plain, { enableImplicitConversion: true, exposeUnsetFields: false, exposeDefaultValues: true });
|
|
47
|
+
} catch (e) {
|
|
48
|
+
instance = plain;
|
|
49
|
+
}
|
|
50
|
+
for (const key of Object.keys(instance)) {
|
|
51
|
+
const value = instance[key];
|
|
52
|
+
const metadataType = Reflect.getMetadata("design:type", instance, key);
|
|
53
|
+
if (value && typeof value === "object" && metadataType && typeof metadataType === "function" && metadataType !== Object && !(value instanceof metadataType)) {
|
|
54
|
+
instance[key] = deepTransform(metadataType, value);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return instance;
|
|
58
|
+
}
|
|
40
59
|
|
|
41
60
|
// src/models/_OpenAPIGenBaseModel.ts
|
|
42
61
|
import { IsString, IsOptional, validate } from "class-validator";
|
|
@@ -91,9 +110,8 @@ var __GridParameterBase = class __GridParameterBase extends _OpenAPIGenBaseModel
|
|
|
91
110
|
}
|
|
92
111
|
init(_data) {
|
|
93
112
|
var _a, _b;
|
|
94
|
-
super.init(_data);
|
|
95
113
|
if (_data) {
|
|
96
|
-
const obj =
|
|
114
|
+
const obj = deepTransform(__GridParameterBase, _data);
|
|
97
115
|
this.dimension = obj.dimension;
|
|
98
116
|
this.includeMesh = (_a = obj.includeMesh) != null ? _a : true;
|
|
99
117
|
this.type = (_b = obj.type) != null ? _b : "_GridParameterBase";
|
|
@@ -152,7 +170,7 @@ var _GridParameterBase = __GridParameterBase;
|
|
|
152
170
|
|
|
153
171
|
// src/models/_LouversBase.ts
|
|
154
172
|
import { IsNumber as IsNumber2, IsDefined as IsDefined2, IsOptional as IsOptional3, Min, Max, IsArray, IsBoolean as IsBoolean2, IsString as IsString3, Matches as Matches2, validate as validate3 } from "class-validator";
|
|
155
|
-
import {
|
|
173
|
+
import { instanceToPlain as instanceToPlain3, Expose as Expose3 } from "class-transformer";
|
|
156
174
|
var __LouversBase = class __LouversBase extends _OpenAPIGenBaseModel {
|
|
157
175
|
constructor() {
|
|
158
176
|
super();
|
|
@@ -176,9 +194,8 @@ var __LouversBase = class __LouversBase extends _OpenAPIGenBaseModel {
|
|
|
176
194
|
}
|
|
177
195
|
init(_data) {
|
|
178
196
|
var _a, _b, _c, _d, _e;
|
|
179
|
-
super.init(_data);
|
|
180
197
|
if (_data) {
|
|
181
|
-
const obj =
|
|
198
|
+
const obj = deepTransform(__LouversBase, _data);
|
|
182
199
|
this.depth = obj.depth;
|
|
183
200
|
this.offset = (_a = obj.offset) != null ? _a : 0;
|
|
184
201
|
this.angle = (_b = obj.angle) != null ? _b : 0;
|
|
@@ -262,7 +279,7 @@ var _LouversBase = __LouversBase;
|
|
|
262
279
|
|
|
263
280
|
// src/models/_WindowParameterBase.ts
|
|
264
281
|
import { IsOptional as IsOptional4, IsString as IsString4, Matches as Matches3, validate as validate4 } from "class-validator";
|
|
265
|
-
import {
|
|
282
|
+
import { instanceToPlain as instanceToPlain4, Expose as Expose4 } from "class-transformer";
|
|
266
283
|
var __WindowParameterBase = class __WindowParameterBase extends _OpenAPIGenBaseModel {
|
|
267
284
|
constructor() {
|
|
268
285
|
super();
|
|
@@ -274,9 +291,8 @@ var __WindowParameterBase = class __WindowParameterBase extends _OpenAPIGenBaseM
|
|
|
274
291
|
}
|
|
275
292
|
init(_data) {
|
|
276
293
|
var _a;
|
|
277
|
-
super.init(_data);
|
|
278
294
|
if (_data) {
|
|
279
|
-
const obj =
|
|
295
|
+
const obj = deepTransform(__WindowParameterBase, _data);
|
|
280
296
|
this.userData = obj.userData;
|
|
281
297
|
this.type = (_a = obj.type) != null ? _a : "_WindowParameterBase";
|
|
282
298
|
}
|
|
@@ -327,15 +343,15 @@ var _WindowParameterBase = __WindowParameterBase;
|
|
|
327
343
|
|
|
328
344
|
// src/models/Building.ts
|
|
329
345
|
import { IsInstance as IsInstance8, ValidateNested as ValidateNested8, IsDefined as IsDefined19, IsString as IsString36, IsOptional as IsOptional36, Matches as Matches35, IsArray as IsArray12, validate as validate36 } from "class-validator";
|
|
330
|
-
import { Type as Type36,
|
|
346
|
+
import { Type as Type36, instanceToPlain as instanceToPlain36, Expose as Expose36 } from "class-transformer";
|
|
331
347
|
|
|
332
348
|
// src/models/BuildingPropertiesAbridged.ts
|
|
333
349
|
import { IsString as IsString7, IsOptional as IsOptional7, Matches as Matches6, IsInstance, ValidateNested, validate as validate7 } from "class-validator";
|
|
334
|
-
import { Type as Type7,
|
|
350
|
+
import { Type as Type7, instanceToPlain as instanceToPlain7, Expose as Expose7 } from "class-transformer";
|
|
335
351
|
|
|
336
352
|
// src/models/BuildingEnergyPropertiesAbridged.ts
|
|
337
353
|
import { IsString as IsString5, IsOptional as IsOptional5, Matches as Matches4, MinLength, MaxLength, validate as validate5 } from "class-validator";
|
|
338
|
-
import {
|
|
354
|
+
import { instanceToPlain as instanceToPlain5, Expose as Expose5 } from "class-transformer";
|
|
339
355
|
var _BuildingEnergyPropertiesAbridged = class _BuildingEnergyPropertiesAbridged extends _OpenAPIGenBaseModel {
|
|
340
356
|
constructor() {
|
|
341
357
|
super();
|
|
@@ -351,9 +367,8 @@ var _BuildingEnergyPropertiesAbridged = class _BuildingEnergyPropertiesAbridged
|
|
|
351
367
|
}
|
|
352
368
|
init(_data) {
|
|
353
369
|
var _a;
|
|
354
|
-
super.init(_data);
|
|
355
370
|
if (_data) {
|
|
356
|
-
const obj =
|
|
371
|
+
const obj = deepTransform(_BuildingEnergyPropertiesAbridged, _data);
|
|
357
372
|
this.type = (_a = obj.type) != null ? _a : "BuildingEnergyPropertiesAbridged";
|
|
358
373
|
this.constructionSet = obj.constructionSet;
|
|
359
374
|
this.ceilingPlenumConstruction = obj.ceilingPlenumConstruction;
|
|
@@ -425,7 +440,7 @@ var BuildingEnergyPropertiesAbridged = _BuildingEnergyPropertiesAbridged;
|
|
|
425
440
|
|
|
426
441
|
// src/models/BuildingRadiancePropertiesAbridged.ts
|
|
427
442
|
import { IsString as IsString6, IsOptional as IsOptional6, Matches as Matches5, validate as validate6 } from "class-validator";
|
|
428
|
-
import {
|
|
443
|
+
import { instanceToPlain as instanceToPlain6, Expose as Expose6 } from "class-transformer";
|
|
429
444
|
var _BuildingRadiancePropertiesAbridged = class _BuildingRadiancePropertiesAbridged extends _OpenAPIGenBaseModel {
|
|
430
445
|
constructor() {
|
|
431
446
|
super();
|
|
@@ -437,9 +452,8 @@ var _BuildingRadiancePropertiesAbridged = class _BuildingRadiancePropertiesAbrid
|
|
|
437
452
|
}
|
|
438
453
|
init(_data) {
|
|
439
454
|
var _a;
|
|
440
|
-
super.init(_data);
|
|
441
455
|
if (_data) {
|
|
442
|
-
const obj =
|
|
456
|
+
const obj = deepTransform(_BuildingRadiancePropertiesAbridged, _data);
|
|
443
457
|
this.type = (_a = obj.type) != null ? _a : "BuildingRadiancePropertiesAbridged";
|
|
444
458
|
this.modifierSet = obj.modifierSet;
|
|
445
459
|
}
|
|
@@ -503,9 +517,8 @@ var _BuildingPropertiesAbridged = class _BuildingPropertiesAbridged extends _Ope
|
|
|
503
517
|
}
|
|
504
518
|
init(_data) {
|
|
505
519
|
var _a;
|
|
506
|
-
super.init(_data);
|
|
507
520
|
if (_data) {
|
|
508
|
-
const obj =
|
|
521
|
+
const obj = deepTransform(_BuildingPropertiesAbridged, _data);
|
|
509
522
|
this.type = (_a = obj.type) != null ? _a : "BuildingPropertiesAbridged";
|
|
510
523
|
this.energy = obj.energy;
|
|
511
524
|
this.radiance = obj.radiance;
|
|
@@ -571,7 +584,7 @@ import { IDdBaseModel as IDdBaseModel3 } from "honeybee-schema";
|
|
|
571
584
|
|
|
572
585
|
// src/models/RoofSpecification.ts
|
|
573
586
|
import { IsArray as IsArray2, IsInstance as IsInstance2, ValidateNested as ValidateNested2, IsDefined as IsDefined3, IsString as IsString8, IsOptional as IsOptional8, Matches as Matches7, validate as validate8 } from "class-validator";
|
|
574
|
-
import { Type as Type8,
|
|
587
|
+
import { Type as Type8, instanceToPlain as instanceToPlain8, Expose as Expose8 } from "class-transformer";
|
|
575
588
|
import { Face3D } from "honeybee-schema";
|
|
576
589
|
var _RoofSpecification = class _RoofSpecification extends _OpenAPIGenBaseModel {
|
|
577
590
|
constructor() {
|
|
@@ -584,9 +597,8 @@ var _RoofSpecification = class _RoofSpecification extends _OpenAPIGenBaseModel {
|
|
|
584
597
|
}
|
|
585
598
|
init(_data) {
|
|
586
599
|
var _a;
|
|
587
|
-
super.init(_data);
|
|
588
600
|
if (_data) {
|
|
589
|
-
const obj =
|
|
601
|
+
const obj = deepTransform(_RoofSpecification, _data);
|
|
590
602
|
this.geometry = obj.geometry;
|
|
591
603
|
this.type = (_a = obj.type) != null ? _a : "RoofSpecification";
|
|
592
604
|
}
|
|
@@ -644,13 +656,13 @@ import { Room } from "honeybee-schema";
|
|
|
644
656
|
|
|
645
657
|
// src/models/Story.ts
|
|
646
658
|
import { IsArray as IsArray11, IsInstance as IsInstance7, ValidateNested as ValidateNested7, IsDefined as IsDefined18, IsString as IsString35, IsOptional as IsOptional35, Matches as Matches34, IsInt as IsInt3, Min as Min5, IsEnum as IsEnum3, validate as validate35 } from "class-validator";
|
|
647
|
-
import { Type as Type35,
|
|
659
|
+
import { Type as Type35, instanceToPlain as instanceToPlain35, Expose as Expose35 } from "class-transformer";
|
|
648
660
|
import { Autocalculate as Autocalculate5 } from "honeybee-schema";
|
|
649
661
|
import { IDdBaseModel as IDdBaseModel2 } from "honeybee-schema";
|
|
650
662
|
|
|
651
663
|
// src/models/Room2D.ts
|
|
652
664
|
import { IsArray as IsArray10, IsDefined as IsDefined17, IsNumber as IsNumber17, IsInstance as IsInstance5, ValidateNested as ValidateNested5, IsString as IsString31, IsOptional as IsOptional31, Matches as Matches30, IsBoolean as IsBoolean9, Min as Min4, validate as validate31 } from "class-validator";
|
|
653
|
-
import { Type as Type31,
|
|
665
|
+
import { Type as Type31, instanceToPlain as instanceToPlain31, Expose as Expose31, Transform as Transform31 } from "class-transformer";
|
|
654
666
|
|
|
655
667
|
// src/helpers/class-validator.ts
|
|
656
668
|
import { registerDecorator } from "class-validator";
|
|
@@ -738,7 +750,7 @@ import { Adiabatic } from "honeybee-schema";
|
|
|
738
750
|
|
|
739
751
|
// src/models/DetailedSkylights.ts
|
|
740
752
|
import { IsArray as IsArray3, IsDefined as IsDefined4, IsString as IsString9, IsOptional as IsOptional9, Matches as Matches8, IsBoolean as IsBoolean3, validate as validate9 } from "class-validator";
|
|
741
|
-
import {
|
|
753
|
+
import { instanceToPlain as instanceToPlain9, Expose as Expose9 } from "class-transformer";
|
|
742
754
|
var _DetailedSkylights = class _DetailedSkylights extends _OpenAPIGenBaseModel {
|
|
743
755
|
constructor() {
|
|
744
756
|
super();
|
|
@@ -752,9 +764,8 @@ var _DetailedSkylights = class _DetailedSkylights extends _OpenAPIGenBaseModel {
|
|
|
752
764
|
}
|
|
753
765
|
init(_data) {
|
|
754
766
|
var _a;
|
|
755
|
-
super.init(_data);
|
|
756
767
|
if (_data) {
|
|
757
|
-
const obj =
|
|
768
|
+
const obj = deepTransform(_DetailedSkylights, _data);
|
|
758
769
|
this.polygons = obj.polygons;
|
|
759
770
|
this.type = (_a = obj.type) != null ? _a : "DetailedSkylights";
|
|
760
771
|
this.areDoors = obj.areDoors;
|
|
@@ -815,7 +826,7 @@ var DetailedSkylights = _DetailedSkylights;
|
|
|
815
826
|
|
|
816
827
|
// src/models/DetailedWindows.ts
|
|
817
828
|
import { IsArray as IsArray4, IsDefined as IsDefined5, IsString as IsString10, IsOptional as IsOptional10, Matches as Matches9, IsBoolean as IsBoolean4, validate as validate10 } from "class-validator";
|
|
818
|
-
import {
|
|
829
|
+
import { instanceToPlain as instanceToPlain10, Expose as Expose10 } from "class-transformer";
|
|
819
830
|
var _DetailedWindows = class _DetailedWindows extends _WindowParameterBase {
|
|
820
831
|
constructor() {
|
|
821
832
|
super();
|
|
@@ -829,12 +840,12 @@ var _DetailedWindows = class _DetailedWindows extends _WindowParameterBase {
|
|
|
829
840
|
}
|
|
830
841
|
init(_data) {
|
|
831
842
|
var _a;
|
|
832
|
-
super.init(_data);
|
|
833
843
|
if (_data) {
|
|
834
|
-
const obj =
|
|
844
|
+
const obj = deepTransform(_DetailedWindows, _data);
|
|
835
845
|
this.polygons = obj.polygons;
|
|
836
846
|
this.type = (_a = obj.type) != null ? _a : "DetailedWindows";
|
|
837
847
|
this.areDoors = obj.areDoors;
|
|
848
|
+
this.userData = obj.userData;
|
|
838
849
|
}
|
|
839
850
|
}
|
|
840
851
|
static fromJS(data) {
|
|
@@ -892,7 +903,7 @@ var DetailedWindows = _DetailedWindows;
|
|
|
892
903
|
|
|
893
904
|
// src/models/ExtrudedBorder.ts
|
|
894
905
|
import { IsNumber as IsNumber3, IsDefined as IsDefined6, IsString as IsString11, IsOptional as IsOptional11, Matches as Matches10, validate as validate11 } from "class-validator";
|
|
895
|
-
import {
|
|
906
|
+
import { instanceToPlain as instanceToPlain11, Expose as Expose11 } from "class-transformer";
|
|
896
907
|
var _ExtrudedBorder = class _ExtrudedBorder extends _OpenAPIGenBaseModel {
|
|
897
908
|
constructor() {
|
|
898
909
|
super();
|
|
@@ -904,9 +915,8 @@ var _ExtrudedBorder = class _ExtrudedBorder extends _OpenAPIGenBaseModel {
|
|
|
904
915
|
}
|
|
905
916
|
init(_data) {
|
|
906
917
|
var _a;
|
|
907
|
-
super.init(_data);
|
|
908
918
|
if (_data) {
|
|
909
|
-
const obj =
|
|
919
|
+
const obj = deepTransform(_ExtrudedBorder, _data);
|
|
910
920
|
this.depth = obj.depth;
|
|
911
921
|
this.type = (_a = obj.type) != null ? _a : "ExtrudedBorder";
|
|
912
922
|
}
|
|
@@ -958,7 +968,7 @@ var ExtrudedBorder = _ExtrudedBorder;
|
|
|
958
968
|
|
|
959
969
|
// src/models/GriddedSkylightArea.ts
|
|
960
970
|
import { IsNumber as IsNumber4, IsDefined as IsDefined7, IsString as IsString12, IsOptional as IsOptional12, Matches as Matches11, validate as validate12 } from "class-validator";
|
|
961
|
-
import {
|
|
971
|
+
import { instanceToPlain as instanceToPlain12, Expose as Expose12 } from "class-transformer";
|
|
962
972
|
import { Autocalculate } from "honeybee-schema";
|
|
963
973
|
var _GriddedSkylightArea = class _GriddedSkylightArea extends _OpenAPIGenBaseModel {
|
|
964
974
|
constructor() {
|
|
@@ -974,9 +984,8 @@ var _GriddedSkylightArea = class _GriddedSkylightArea extends _OpenAPIGenBaseMod
|
|
|
974
984
|
}
|
|
975
985
|
init(_data) {
|
|
976
986
|
var _a, _b;
|
|
977
|
-
super.init(_data);
|
|
978
987
|
if (_data) {
|
|
979
|
-
const obj =
|
|
988
|
+
const obj = deepTransform(_GriddedSkylightArea, _data);
|
|
980
989
|
this.skylightArea = obj.skylightArea;
|
|
981
990
|
this.type = (_a = obj.type) != null ? _a : "GriddedSkylightArea";
|
|
982
991
|
this.spacing = (_b = obj.spacing) != null ? _b : new Autocalculate();
|
|
@@ -1034,7 +1043,7 @@ var GriddedSkylightArea = _GriddedSkylightArea;
|
|
|
1034
1043
|
|
|
1035
1044
|
// src/models/GriddedSkylightRatio.ts
|
|
1036
1045
|
import { IsNumber as IsNumber5, IsDefined as IsDefined8, IsString as IsString13, IsOptional as IsOptional13, Matches as Matches12, validate as validate13 } from "class-validator";
|
|
1037
|
-
import {
|
|
1046
|
+
import { instanceToPlain as instanceToPlain13, Expose as Expose13 } from "class-transformer";
|
|
1038
1047
|
import { Autocalculate as Autocalculate2 } from "honeybee-schema";
|
|
1039
1048
|
var _GriddedSkylightRatio = class _GriddedSkylightRatio extends _OpenAPIGenBaseModel {
|
|
1040
1049
|
constructor() {
|
|
@@ -1050,9 +1059,8 @@ var _GriddedSkylightRatio = class _GriddedSkylightRatio extends _OpenAPIGenBaseM
|
|
|
1050
1059
|
}
|
|
1051
1060
|
init(_data) {
|
|
1052
1061
|
var _a, _b;
|
|
1053
|
-
super.init(_data);
|
|
1054
1062
|
if (_data) {
|
|
1055
|
-
const obj =
|
|
1063
|
+
const obj = deepTransform(_GriddedSkylightRatio, _data);
|
|
1056
1064
|
this.skylightRatio = obj.skylightRatio;
|
|
1057
1065
|
this.type = (_a = obj.type) != null ? _a : "GriddedSkylightRatio";
|
|
1058
1066
|
this.spacing = (_b = obj.spacing) != null ? _b : new Autocalculate2();
|
|
@@ -1114,7 +1122,7 @@ import { IDdBaseModel } from "honeybee-schema";
|
|
|
1114
1122
|
|
|
1115
1123
|
// src/models/LouversByCount.ts
|
|
1116
1124
|
import { IsInt, IsDefined as IsDefined9, IsString as IsString14, IsOptional as IsOptional14, Matches as Matches13, validate as validate14 } from "class-validator";
|
|
1117
|
-
import {
|
|
1125
|
+
import { instanceToPlain as instanceToPlain14, Expose as Expose14 } from "class-transformer";
|
|
1118
1126
|
var _LouversByCount = class _LouversByCount extends _LouversBase {
|
|
1119
1127
|
constructor() {
|
|
1120
1128
|
super();
|
|
@@ -1125,12 +1133,16 @@ var _LouversByCount = class _LouversByCount extends _LouversBase {
|
|
|
1125
1133
|
this.type = "LouversByCount";
|
|
1126
1134
|
}
|
|
1127
1135
|
init(_data) {
|
|
1128
|
-
var _a;
|
|
1129
|
-
super.init(_data);
|
|
1136
|
+
var _a, _b, _c, _d, _e;
|
|
1130
1137
|
if (_data) {
|
|
1131
|
-
const obj =
|
|
1138
|
+
const obj = deepTransform(_LouversByCount, _data);
|
|
1132
1139
|
this.louverCount = obj.louverCount;
|
|
1133
1140
|
this.type = (_a = obj.type) != null ? _a : "LouversByCount";
|
|
1141
|
+
this.depth = obj.depth;
|
|
1142
|
+
this.offset = (_b = obj.offset) != null ? _b : 0;
|
|
1143
|
+
this.angle = (_c = obj.angle) != null ? _c : 0;
|
|
1144
|
+
this.contourVector = (_d = obj.contourVector) != null ? _d : [0, 1];
|
|
1145
|
+
this.flipStartSide = (_e = obj.flipStartSide) != null ? _e : false;
|
|
1134
1146
|
}
|
|
1135
1147
|
}
|
|
1136
1148
|
static fromJS(data) {
|
|
@@ -1180,7 +1192,7 @@ var LouversByCount = _LouversByCount;
|
|
|
1180
1192
|
|
|
1181
1193
|
// src/models/LouversByDistance.ts
|
|
1182
1194
|
import { IsNumber as IsNumber6, IsDefined as IsDefined10, IsString as IsString15, IsOptional as IsOptional15, Matches as Matches14, validate as validate15 } from "class-validator";
|
|
1183
|
-
import {
|
|
1195
|
+
import { instanceToPlain as instanceToPlain15, Expose as Expose15 } from "class-transformer";
|
|
1184
1196
|
var _LouversByDistance = class _LouversByDistance extends _LouversBase {
|
|
1185
1197
|
constructor() {
|
|
1186
1198
|
super();
|
|
@@ -1191,12 +1203,16 @@ var _LouversByDistance = class _LouversByDistance extends _LouversBase {
|
|
|
1191
1203
|
this.type = "LouversByDistance";
|
|
1192
1204
|
}
|
|
1193
1205
|
init(_data) {
|
|
1194
|
-
var _a;
|
|
1195
|
-
super.init(_data);
|
|
1206
|
+
var _a, _b, _c, _d, _e;
|
|
1196
1207
|
if (_data) {
|
|
1197
|
-
const obj =
|
|
1208
|
+
const obj = deepTransform(_LouversByDistance, _data);
|
|
1198
1209
|
this.distance = obj.distance;
|
|
1199
1210
|
this.type = (_a = obj.type) != null ? _a : "LouversByDistance";
|
|
1211
|
+
this.depth = obj.depth;
|
|
1212
|
+
this.offset = (_b = obj.offset) != null ? _b : 0;
|
|
1213
|
+
this.angle = (_c = obj.angle) != null ? _c : 0;
|
|
1214
|
+
this.contourVector = (_d = obj.contourVector) != null ? _d : [0, 1];
|
|
1215
|
+
this.flipStartSide = (_e = obj.flipStartSide) != null ? _e : false;
|
|
1200
1216
|
}
|
|
1201
1217
|
}
|
|
1202
1218
|
static fromJS(data) {
|
|
@@ -1250,7 +1266,7 @@ import { Outdoors } from "honeybee-schema";
|
|
|
1250
1266
|
|
|
1251
1267
|
// src/models/Overhang.ts
|
|
1252
1268
|
import { IsNumber as IsNumber7, IsDefined as IsDefined11, IsString as IsString16, IsOptional as IsOptional16, Matches as Matches15, Min as Min2, Max as Max2, validate as validate16 } from "class-validator";
|
|
1253
|
-
import {
|
|
1269
|
+
import { instanceToPlain as instanceToPlain16, Expose as Expose16 } from "class-transformer";
|
|
1254
1270
|
var _Overhang = class _Overhang extends _OpenAPIGenBaseModel {
|
|
1255
1271
|
constructor() {
|
|
1256
1272
|
super();
|
|
@@ -1265,9 +1281,8 @@ var _Overhang = class _Overhang extends _OpenAPIGenBaseModel {
|
|
|
1265
1281
|
}
|
|
1266
1282
|
init(_data) {
|
|
1267
1283
|
var _a, _b;
|
|
1268
|
-
super.init(_data);
|
|
1269
1284
|
if (_data) {
|
|
1270
|
-
const obj =
|
|
1285
|
+
const obj = deepTransform(_Overhang, _data);
|
|
1271
1286
|
this.depth = obj.depth;
|
|
1272
1287
|
this.type = (_a = obj.type) != null ? _a : "Overhang";
|
|
1273
1288
|
this.angle = (_b = obj.angle) != null ? _b : 0;
|
|
@@ -1328,7 +1343,7 @@ var Overhang = _Overhang;
|
|
|
1328
1343
|
|
|
1329
1344
|
// src/models/RectangularWindows.ts
|
|
1330
1345
|
import { IsArray as IsArray5, IsDefined as IsDefined12, IsNumber as IsNumber8, IsString as IsString17, IsOptional as IsOptional17, Matches as Matches16, IsBoolean as IsBoolean5, validate as validate17 } from "class-validator";
|
|
1331
|
-
import {
|
|
1346
|
+
import { instanceToPlain as instanceToPlain17, Expose as Expose17 } from "class-transformer";
|
|
1332
1347
|
var _RectangularWindows = class _RectangularWindows extends _WindowParameterBase {
|
|
1333
1348
|
constructor() {
|
|
1334
1349
|
super();
|
|
@@ -1346,14 +1361,14 @@ var _RectangularWindows = class _RectangularWindows extends _WindowParameterBase
|
|
|
1346
1361
|
}
|
|
1347
1362
|
init(_data) {
|
|
1348
1363
|
var _a;
|
|
1349
|
-
super.init(_data);
|
|
1350
1364
|
if (_data) {
|
|
1351
|
-
const obj =
|
|
1365
|
+
const obj = deepTransform(_RectangularWindows, _data);
|
|
1352
1366
|
this.origins = obj.origins;
|
|
1353
1367
|
this.widths = obj.widths;
|
|
1354
1368
|
this.heights = obj.heights;
|
|
1355
1369
|
this.type = (_a = obj.type) != null ? _a : "RectangularWindows";
|
|
1356
1370
|
this.areDoors = obj.areDoors;
|
|
1371
|
+
this.userData = obj.userData;
|
|
1357
1372
|
}
|
|
1358
1373
|
}
|
|
1359
1374
|
static fromJS(data) {
|
|
@@ -1425,7 +1440,7 @@ var RectangularWindows = _RectangularWindows;
|
|
|
1425
1440
|
|
|
1426
1441
|
// src/models/RepeatingWindowRatio.ts
|
|
1427
1442
|
import { IsNumber as IsNumber9, IsDefined as IsDefined13, Min as Min3, IsString as IsString18, IsOptional as IsOptional18, Matches as Matches17, validate as validate18 } from "class-validator";
|
|
1428
|
-
import {
|
|
1443
|
+
import { instanceToPlain as instanceToPlain18, Expose as Expose18 } from "class-transformer";
|
|
1429
1444
|
var _RepeatingWindowRatio = class _RepeatingWindowRatio extends _WindowParameterBase {
|
|
1430
1445
|
constructor() {
|
|
1431
1446
|
super();
|
|
@@ -1446,15 +1461,15 @@ var _RepeatingWindowRatio = class _RepeatingWindowRatio extends _WindowParameter
|
|
|
1446
1461
|
}
|
|
1447
1462
|
init(_data) {
|
|
1448
1463
|
var _a, _b;
|
|
1449
|
-
super.init(_data);
|
|
1450
1464
|
if (_data) {
|
|
1451
|
-
const obj =
|
|
1465
|
+
const obj = deepTransform(_RepeatingWindowRatio, _data);
|
|
1452
1466
|
this.windowRatio = obj.windowRatio;
|
|
1453
1467
|
this.windowHeight = obj.windowHeight;
|
|
1454
1468
|
this.sillHeight = obj.sillHeight;
|
|
1455
1469
|
this.horizontalSeparation = obj.horizontalSeparation;
|
|
1456
1470
|
this.type = (_a = obj.type) != null ? _a : "RepeatingWindowRatio";
|
|
1457
1471
|
this.verticalSeparation = (_b = obj.verticalSeparation) != null ? _b : 0;
|
|
1472
|
+
this.userData = obj.userData;
|
|
1458
1473
|
}
|
|
1459
1474
|
}
|
|
1460
1475
|
static fromJS(data) {
|
|
@@ -1530,15 +1545,15 @@ var RepeatingWindowRatio = _RepeatingWindowRatio;
|
|
|
1530
1545
|
|
|
1531
1546
|
// src/models/Room2DPropertiesAbridged.ts
|
|
1532
1547
|
import { IsString as IsString30, IsOptional as IsOptional30, Matches as Matches29, IsInstance as IsInstance4, ValidateNested as ValidateNested4, validate as validate30 } from "class-validator";
|
|
1533
|
-
import { Type as Type30,
|
|
1548
|
+
import { Type as Type30, instanceToPlain as instanceToPlain30, Expose as Expose30 } from "class-transformer";
|
|
1534
1549
|
|
|
1535
1550
|
// src/models/Room2DComparisonProperties.ts
|
|
1536
1551
|
import { IsString as IsString22, IsOptional as IsOptional22, Matches as Matches21, IsArray as IsArray6, validate as validate22 } from "class-validator";
|
|
1537
|
-
import {
|
|
1552
|
+
import { instanceToPlain as instanceToPlain22, Expose as Expose22, Transform as Transform22 } from "class-transformer";
|
|
1538
1553
|
|
|
1539
1554
|
// src/models/SimpleWindowArea.ts
|
|
1540
1555
|
import { IsNumber as IsNumber10, IsDefined as IsDefined14, IsString as IsString19, IsOptional as IsOptional19, Matches as Matches18, IsBoolean as IsBoolean6, validate as validate19 } from "class-validator";
|
|
1541
|
-
import {
|
|
1556
|
+
import { instanceToPlain as instanceToPlain19, Expose as Expose19 } from "class-transformer";
|
|
1542
1557
|
var _SimpleWindowArea = class _SimpleWindowArea extends _WindowParameterBase {
|
|
1543
1558
|
constructor() {
|
|
1544
1559
|
super();
|
|
@@ -1553,12 +1568,12 @@ var _SimpleWindowArea = class _SimpleWindowArea extends _WindowParameterBase {
|
|
|
1553
1568
|
}
|
|
1554
1569
|
init(_data) {
|
|
1555
1570
|
var _a, _b;
|
|
1556
|
-
super.init(_data);
|
|
1557
1571
|
if (_data) {
|
|
1558
|
-
const obj =
|
|
1572
|
+
const obj = deepTransform(_SimpleWindowArea, _data);
|
|
1559
1573
|
this.windowArea = obj.windowArea;
|
|
1560
1574
|
this.type = (_a = obj.type) != null ? _a : "SimpleWindowArea";
|
|
1561
1575
|
this.rectSplit = (_b = obj.rectSplit) != null ? _b : true;
|
|
1576
|
+
this.userData = obj.userData;
|
|
1562
1577
|
}
|
|
1563
1578
|
}
|
|
1564
1579
|
static fromJS(data) {
|
|
@@ -1614,7 +1629,7 @@ var SimpleWindowArea = _SimpleWindowArea;
|
|
|
1614
1629
|
|
|
1615
1630
|
// src/models/SimpleWindowRatio.ts
|
|
1616
1631
|
import { IsNumber as IsNumber11, IsDefined as IsDefined15, IsString as IsString20, IsOptional as IsOptional20, Matches as Matches19, IsBoolean as IsBoolean7, validate as validate20 } from "class-validator";
|
|
1617
|
-
import {
|
|
1632
|
+
import { instanceToPlain as instanceToPlain20, Expose as Expose20 } from "class-transformer";
|
|
1618
1633
|
var _SimpleWindowRatio = class _SimpleWindowRatio extends _WindowParameterBase {
|
|
1619
1634
|
constructor() {
|
|
1620
1635
|
super();
|
|
@@ -1629,12 +1644,12 @@ var _SimpleWindowRatio = class _SimpleWindowRatio extends _WindowParameterBase {
|
|
|
1629
1644
|
}
|
|
1630
1645
|
init(_data) {
|
|
1631
1646
|
var _a, _b;
|
|
1632
|
-
super.init(_data);
|
|
1633
1647
|
if (_data) {
|
|
1634
|
-
const obj =
|
|
1648
|
+
const obj = deepTransform(_SimpleWindowRatio, _data);
|
|
1635
1649
|
this.windowRatio = obj.windowRatio;
|
|
1636
1650
|
this.type = (_a = obj.type) != null ? _a : "SimpleWindowRatio";
|
|
1637
1651
|
this.rectSplit = (_b = obj.rectSplit) != null ? _b : true;
|
|
1652
|
+
this.userData = obj.userData;
|
|
1638
1653
|
}
|
|
1639
1654
|
}
|
|
1640
1655
|
static fromJS(data) {
|
|
@@ -1690,7 +1705,7 @@ var SimpleWindowRatio = _SimpleWindowRatio;
|
|
|
1690
1705
|
|
|
1691
1706
|
// src/models/SingleWindow.ts
|
|
1692
1707
|
import { IsNumber as IsNumber12, IsDefined as IsDefined16, IsString as IsString21, IsOptional as IsOptional21, Matches as Matches20, validate as validate21 } from "class-validator";
|
|
1693
|
-
import {
|
|
1708
|
+
import { instanceToPlain as instanceToPlain21, Expose as Expose21 } from "class-transformer";
|
|
1694
1709
|
var _SingleWindow = class _SingleWindow extends _WindowParameterBase {
|
|
1695
1710
|
constructor() {
|
|
1696
1711
|
super();
|
|
@@ -1707,13 +1722,13 @@ var _SingleWindow = class _SingleWindow extends _WindowParameterBase {
|
|
|
1707
1722
|
}
|
|
1708
1723
|
init(_data) {
|
|
1709
1724
|
var _a, _b;
|
|
1710
|
-
super.init(_data);
|
|
1711
1725
|
if (_data) {
|
|
1712
|
-
const obj =
|
|
1726
|
+
const obj = deepTransform(_SingleWindow, _data);
|
|
1713
1727
|
this.width = obj.width;
|
|
1714
1728
|
this.height = obj.height;
|
|
1715
1729
|
this.type = (_a = obj.type) != null ? _a : "SingleWindow";
|
|
1716
1730
|
this.sillHeight = (_b = obj.sillHeight) != null ? _b : 1;
|
|
1731
|
+
this.userData = obj.userData;
|
|
1717
1732
|
}
|
|
1718
1733
|
}
|
|
1719
1734
|
static fromJS(data) {
|
|
@@ -1791,9 +1806,8 @@ var _Room2DComparisonProperties = class _Room2DComparisonProperties extends _Ope
|
|
|
1791
1806
|
}
|
|
1792
1807
|
init(_data) {
|
|
1793
1808
|
var _a;
|
|
1794
|
-
super.init(_data);
|
|
1795
1809
|
if (_data) {
|
|
1796
|
-
const obj =
|
|
1810
|
+
const obj = deepTransform(_Room2DComparisonProperties, _data);
|
|
1797
1811
|
this.type = (_a = obj.type) != null ? _a : "Room2DComparisonProperties";
|
|
1798
1812
|
this.floorBoundary = obj.floorBoundary;
|
|
1799
1813
|
this.floorHoles = obj.floorHoles;
|
|
@@ -1883,7 +1897,7 @@ var Room2DComparisonProperties = _Room2DComparisonProperties;
|
|
|
1883
1897
|
|
|
1884
1898
|
// src/models/Room2DDoe2Properties.ts
|
|
1885
1899
|
import { IsString as IsString23, IsOptional as IsOptional23, Matches as Matches22, validate as validate23 } from "class-validator";
|
|
1886
|
-
import {
|
|
1900
|
+
import { instanceToPlain as instanceToPlain23, Expose as Expose23 } from "class-transformer";
|
|
1887
1901
|
import { Autocalculate as Autocalculate3 } from "honeybee-schema";
|
|
1888
1902
|
var _Room2DDoe2Properties = class _Room2DDoe2Properties extends _OpenAPIGenBaseModel {
|
|
1889
1903
|
constructor() {
|
|
@@ -1909,9 +1923,8 @@ var _Room2DDoe2Properties = class _Room2DDoe2Properties extends _OpenAPIGenBaseM
|
|
|
1909
1923
|
}
|
|
1910
1924
|
init(_data) {
|
|
1911
1925
|
var _a, _b, _c, _d, _e, _f;
|
|
1912
|
-
super.init(_data);
|
|
1913
1926
|
if (_data) {
|
|
1914
|
-
const obj =
|
|
1927
|
+
const obj = deepTransform(_Room2DDoe2Properties, _data);
|
|
1915
1928
|
this.type = (_a = obj.type) != null ? _a : "Room2DDoe2Properties";
|
|
1916
1929
|
this.assignedFlow = (_b = obj.assignedFlow) != null ? _b : new Autocalculate3();
|
|
1917
1930
|
this.flowPerArea = (_c = obj.flowPerArea) != null ? _c : new Autocalculate3();
|
|
@@ -1986,7 +1999,7 @@ var Room2DDoe2Properties = _Room2DDoe2Properties;
|
|
|
1986
1999
|
|
|
1987
2000
|
// src/models/Room2DEnergyPropertiesAbridged.ts
|
|
1988
2001
|
import { IsString as IsString24, IsOptional as IsOptional24, Matches as Matches23, MinLength as MinLength2, MaxLength as MaxLength2, IsInstance as IsInstance3, ValidateNested as ValidateNested3, IsArray as IsArray7, validate as validate24 } from "class-validator";
|
|
1989
|
-
import { Type as Type24,
|
|
2002
|
+
import { Type as Type24, instanceToPlain as instanceToPlain24, Expose as Expose24 } from "class-transformer";
|
|
1990
2003
|
import { ProcessAbridged } from "honeybee-schema";
|
|
1991
2004
|
import { VentilationControlAbridged } from "honeybee-schema";
|
|
1992
2005
|
import { VentilationOpening } from "honeybee-schema";
|
|
@@ -2013,9 +2026,8 @@ var _Room2DEnergyPropertiesAbridged = class _Room2DEnergyPropertiesAbridged exte
|
|
|
2013
2026
|
}
|
|
2014
2027
|
init(_data) {
|
|
2015
2028
|
var _a;
|
|
2016
|
-
super.init(_data);
|
|
2017
2029
|
if (_data) {
|
|
2018
|
-
const obj =
|
|
2030
|
+
const obj = deepTransform(_Room2DEnergyPropertiesAbridged, _data);
|
|
2019
2031
|
this.type = (_a = obj.type) != null ? _a : "Room2DEnergyPropertiesAbridged";
|
|
2020
2032
|
this.constructionSet = obj.constructionSet;
|
|
2021
2033
|
this.programType = obj.programType;
|
|
@@ -2124,11 +2136,11 @@ var Room2DEnergyPropertiesAbridged = _Room2DEnergyPropertiesAbridged;
|
|
|
2124
2136
|
|
|
2125
2137
|
// src/models/Room2DRadiancePropertiesAbridged.ts
|
|
2126
2138
|
import { IsString as IsString29, IsOptional as IsOptional29, Matches as Matches28, IsArray as IsArray9, validate as validate29 } from "class-validator";
|
|
2127
|
-
import {
|
|
2139
|
+
import { instanceToPlain as instanceToPlain29, Expose as Expose29, Transform as Transform29 } from "class-transformer";
|
|
2128
2140
|
|
|
2129
2141
|
// src/models/ExteriorApertureGridParameter.ts
|
|
2130
2142
|
import { IsString as IsString25, IsOptional as IsOptional25, Matches as Matches24, IsNumber as IsNumber13, IsEnum, validate as validate25 } from "class-validator";
|
|
2131
|
-
import { Type as Type25,
|
|
2143
|
+
import { Type as Type25, instanceToPlain as instanceToPlain25, Expose as Expose25 } from "class-transformer";
|
|
2132
2144
|
|
|
2133
2145
|
// src/models/ExteriorApertureType.ts
|
|
2134
2146
|
var ExteriorApertureType = /* @__PURE__ */ ((ExteriorApertureType2) => {
|
|
@@ -2153,13 +2165,14 @@ var _ExteriorApertureGridParameter = class _ExteriorApertureGridParameter extend
|
|
|
2153
2165
|
this.apertureType = "All" /* All */;
|
|
2154
2166
|
}
|
|
2155
2167
|
init(_data) {
|
|
2156
|
-
var _a, _b, _c;
|
|
2157
|
-
super.init(_data);
|
|
2168
|
+
var _a, _b, _c, _d;
|
|
2158
2169
|
if (_data) {
|
|
2159
|
-
const obj =
|
|
2170
|
+
const obj = deepTransform(_ExteriorApertureGridParameter, _data);
|
|
2160
2171
|
this.type = (_a = obj.type) != null ? _a : "ExteriorApertureGridParameter";
|
|
2161
2172
|
this.offset = (_b = obj.offset) != null ? _b : 0.1;
|
|
2162
2173
|
this.apertureType = (_c = obj.apertureType) != null ? _c : "All" /* All */;
|
|
2174
|
+
this.dimension = obj.dimension;
|
|
2175
|
+
this.includeMesh = (_d = obj.includeMesh) != null ? _d : true;
|
|
2163
2176
|
}
|
|
2164
2177
|
}
|
|
2165
2178
|
static fromJS(data) {
|
|
@@ -2216,7 +2229,7 @@ var ExteriorApertureGridParameter = _ExteriorApertureGridParameter;
|
|
|
2216
2229
|
|
|
2217
2230
|
// src/models/ExteriorFaceGridParameter.ts
|
|
2218
2231
|
import { IsString as IsString26, IsOptional as IsOptional26, Matches as Matches25, IsNumber as IsNumber14, IsEnum as IsEnum2, IsBoolean as IsBoolean8, validate as validate26 } from "class-validator";
|
|
2219
|
-
import { Type as Type26,
|
|
2232
|
+
import { Type as Type26, instanceToPlain as instanceToPlain26, Expose as Expose26 } from "class-transformer";
|
|
2220
2233
|
|
|
2221
2234
|
// src/models/ExteriorFaceType.ts
|
|
2222
2235
|
var ExteriorFaceType = /* @__PURE__ */ ((ExteriorFaceType2) => {
|
|
@@ -2245,14 +2258,15 @@ var _ExteriorFaceGridParameter = class _ExteriorFaceGridParameter extends _GridP
|
|
|
2245
2258
|
this.punchedGeometry = false;
|
|
2246
2259
|
}
|
|
2247
2260
|
init(_data) {
|
|
2248
|
-
var _a, _b, _c, _d;
|
|
2249
|
-
super.init(_data);
|
|
2261
|
+
var _a, _b, _c, _d, _e;
|
|
2250
2262
|
if (_data) {
|
|
2251
|
-
const obj =
|
|
2263
|
+
const obj = deepTransform(_ExteriorFaceGridParameter, _data);
|
|
2252
2264
|
this.type = (_a = obj.type) != null ? _a : "ExteriorFaceGridParameter";
|
|
2253
2265
|
this.offset = (_b = obj.offset) != null ? _b : 0.1;
|
|
2254
2266
|
this.faceType = (_c = obj.faceType) != null ? _c : "Wall" /* Wall */;
|
|
2255
2267
|
this.punchedGeometry = (_d = obj.punchedGeometry) != null ? _d : false;
|
|
2268
|
+
this.dimension = obj.dimension;
|
|
2269
|
+
this.includeMesh = (_e = obj.includeMesh) != null ? _e : true;
|
|
2256
2270
|
}
|
|
2257
2271
|
}
|
|
2258
2272
|
static fromJS(data) {
|
|
@@ -2315,7 +2329,7 @@ var ExteriorFaceGridParameter = _ExteriorFaceGridParameter;
|
|
|
2315
2329
|
|
|
2316
2330
|
// src/models/RoomGridParameter.ts
|
|
2317
2331
|
import { IsString as IsString27, IsOptional as IsOptional27, Matches as Matches26, IsNumber as IsNumber15, validate as validate27 } from "class-validator";
|
|
2318
|
-
import {
|
|
2332
|
+
import { instanceToPlain as instanceToPlain27, Expose as Expose27 } from "class-transformer";
|
|
2319
2333
|
var _RoomGridParameter = class _RoomGridParameter extends _GridParameterBase {
|
|
2320
2334
|
constructor() {
|
|
2321
2335
|
super();
|
|
@@ -2330,13 +2344,14 @@ var _RoomGridParameter = class _RoomGridParameter extends _GridParameterBase {
|
|
|
2330
2344
|
this.wallOffset = 0;
|
|
2331
2345
|
}
|
|
2332
2346
|
init(_data) {
|
|
2333
|
-
var _a, _b, _c;
|
|
2334
|
-
super.init(_data);
|
|
2347
|
+
var _a, _b, _c, _d;
|
|
2335
2348
|
if (_data) {
|
|
2336
|
-
const obj =
|
|
2349
|
+
const obj = deepTransform(_RoomGridParameter, _data);
|
|
2337
2350
|
this.type = (_a = obj.type) != null ? _a : "RoomGridParameter";
|
|
2338
2351
|
this.offset = (_b = obj.offset) != null ? _b : 1;
|
|
2339
2352
|
this.wallOffset = (_c = obj.wallOffset) != null ? _c : 0;
|
|
2353
|
+
this.dimension = obj.dimension;
|
|
2354
|
+
this.includeMesh = (_d = obj.includeMesh) != null ? _d : true;
|
|
2340
2355
|
}
|
|
2341
2356
|
}
|
|
2342
2357
|
static fromJS(data) {
|
|
@@ -2392,7 +2407,7 @@ var RoomGridParameter = _RoomGridParameter;
|
|
|
2392
2407
|
|
|
2393
2408
|
// src/models/RoomRadialGridParameter.ts
|
|
2394
2409
|
import { IsInt as IsInt2, IsOptional as IsOptional28, IsArray as IsArray8, IsNumber as IsNumber16, IsString as IsString28, Matches as Matches27, validate as validate28 } from "class-validator";
|
|
2395
|
-
import {
|
|
2410
|
+
import { instanceToPlain as instanceToPlain28, Expose as Expose28 } from "class-transformer";
|
|
2396
2411
|
import { Autocalculate as Autocalculate4 } from "honeybee-schema";
|
|
2397
2412
|
var _RoomRadialGridParameter = class _RoomRadialGridParameter extends RoomGridParameter {
|
|
2398
2413
|
constructor() {
|
|
@@ -2410,14 +2425,17 @@ var _RoomRadialGridParameter = class _RoomRadialGridParameter extends RoomGridPa
|
|
|
2410
2425
|
this.type = "RoomRadialGridParameter";
|
|
2411
2426
|
}
|
|
2412
2427
|
init(_data) {
|
|
2413
|
-
var _a, _b, _c;
|
|
2414
|
-
super.init(_data);
|
|
2428
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2415
2429
|
if (_data) {
|
|
2416
|
-
const obj =
|
|
2430
|
+
const obj = deepTransform(_RoomRadialGridParameter, _data);
|
|
2417
2431
|
this.dirCount = (_a = obj.dirCount) != null ? _a : 8;
|
|
2418
2432
|
this.startVector = obj.startVector;
|
|
2419
2433
|
this.meshRadius = (_b = obj.meshRadius) != null ? _b : new Autocalculate4();
|
|
2420
2434
|
this.type = (_c = obj.type) != null ? _c : "RoomRadialGridParameter";
|
|
2435
|
+
this.offset = (_d = obj.offset) != null ? _d : 1;
|
|
2436
|
+
this.wallOffset = (_e = obj.wallOffset) != null ? _e : 0;
|
|
2437
|
+
this.dimension = obj.dimension;
|
|
2438
|
+
this.includeMesh = (_f = obj.includeMesh) != null ? _f : true;
|
|
2421
2439
|
}
|
|
2422
2440
|
}
|
|
2423
2441
|
static fromJS(data) {
|
|
@@ -2491,9 +2509,8 @@ var _Room2DRadiancePropertiesAbridged = class _Room2DRadiancePropertiesAbridged
|
|
|
2491
2509
|
}
|
|
2492
2510
|
init(_data) {
|
|
2493
2511
|
var _a;
|
|
2494
|
-
super.init(_data);
|
|
2495
2512
|
if (_data) {
|
|
2496
|
-
const obj =
|
|
2513
|
+
const obj = deepTransform(_Room2DRadiancePropertiesAbridged, _data);
|
|
2497
2514
|
this.type = (_a = obj.type) != null ? _a : "Room2DRadiancePropertiesAbridged";
|
|
2498
2515
|
this.modifierSet = obj.modifierSet;
|
|
2499
2516
|
this.gridParameters = obj.gridParameters;
|
|
@@ -2575,9 +2592,8 @@ var _Room2DPropertiesAbridged = class _Room2DPropertiesAbridged extends _OpenAPI
|
|
|
2575
2592
|
}
|
|
2576
2593
|
init(_data) {
|
|
2577
2594
|
var _a;
|
|
2578
|
-
super.init(_data);
|
|
2579
2595
|
if (_data) {
|
|
2580
|
-
const obj =
|
|
2596
|
+
const obj = deepTransform(_Room2DPropertiesAbridged, _data);
|
|
2581
2597
|
this.type = (_a = obj.type) != null ? _a : "Room2DPropertiesAbridged";
|
|
2582
2598
|
this.energy = obj.energy;
|
|
2583
2599
|
this.radiance = obj.radiance;
|
|
@@ -2707,9 +2723,8 @@ var _Room2D = class _Room2D extends IDdBaseModel {
|
|
|
2707
2723
|
}
|
|
2708
2724
|
init(_data) {
|
|
2709
2725
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2710
|
-
super.init(_data);
|
|
2711
2726
|
if (_data) {
|
|
2712
|
-
const obj =
|
|
2727
|
+
const obj = deepTransform(_Room2D, _data);
|
|
2713
2728
|
this.floorBoundary = obj.floorBoundary;
|
|
2714
2729
|
this.floorHeight = obj.floorHeight;
|
|
2715
2730
|
this.floorToCeilingHeight = obj.floorToCeilingHeight;
|
|
@@ -2728,6 +2743,9 @@ var _Room2D = class _Room2D extends IDdBaseModel {
|
|
|
2728
2743
|
this.shadingParameters = obj.shadingParameters;
|
|
2729
2744
|
this.airBoundaries = obj.airBoundaries;
|
|
2730
2745
|
this.skylightParameters = obj.skylightParameters;
|
|
2746
|
+
this.identifier = obj.identifier;
|
|
2747
|
+
this.displayName = obj.displayName;
|
|
2748
|
+
this.userData = obj.userData;
|
|
2731
2749
|
}
|
|
2732
2750
|
}
|
|
2733
2751
|
static fromJS(data) {
|
|
@@ -2910,11 +2928,11 @@ var Room2D = _Room2D;
|
|
|
2910
2928
|
|
|
2911
2929
|
// src/models/StoryPropertiesAbridged.ts
|
|
2912
2930
|
import { IsString as IsString34, IsOptional as IsOptional34, Matches as Matches33, IsInstance as IsInstance6, ValidateNested as ValidateNested6, validate as validate34 } from "class-validator";
|
|
2913
|
-
import { Type as Type34,
|
|
2931
|
+
import { Type as Type34, instanceToPlain as instanceToPlain34, Expose as Expose34 } from "class-transformer";
|
|
2914
2932
|
|
|
2915
2933
|
// src/models/StoryEnergyPropertiesAbridged.ts
|
|
2916
2934
|
import { IsString as IsString32, IsOptional as IsOptional32, Matches as Matches31, MinLength as MinLength3, MaxLength as MaxLength3, validate as validate32 } from "class-validator";
|
|
2917
|
-
import {
|
|
2935
|
+
import { instanceToPlain as instanceToPlain32, Expose as Expose32 } from "class-transformer";
|
|
2918
2936
|
var _StoryEnergyPropertiesAbridged = class _StoryEnergyPropertiesAbridged extends _OpenAPIGenBaseModel {
|
|
2919
2937
|
constructor() {
|
|
2920
2938
|
super();
|
|
@@ -2926,9 +2944,8 @@ var _StoryEnergyPropertiesAbridged = class _StoryEnergyPropertiesAbridged extend
|
|
|
2926
2944
|
}
|
|
2927
2945
|
init(_data) {
|
|
2928
2946
|
var _a;
|
|
2929
|
-
super.init(_data);
|
|
2930
2947
|
if (_data) {
|
|
2931
|
-
const obj =
|
|
2948
|
+
const obj = deepTransform(_StoryEnergyPropertiesAbridged, _data);
|
|
2932
2949
|
this.type = (_a = obj.type) != null ? _a : "StoryEnergyPropertiesAbridged";
|
|
2933
2950
|
this.constructionSet = obj.constructionSet;
|
|
2934
2951
|
}
|
|
@@ -2982,7 +2999,7 @@ var StoryEnergyPropertiesAbridged = _StoryEnergyPropertiesAbridged;
|
|
|
2982
2999
|
|
|
2983
3000
|
// src/models/StoryRadiancePropertiesAbridged.ts
|
|
2984
3001
|
import { IsString as IsString33, IsOptional as IsOptional33, Matches as Matches32, validate as validate33 } from "class-validator";
|
|
2985
|
-
import {
|
|
3002
|
+
import { instanceToPlain as instanceToPlain33, Expose as Expose33 } from "class-transformer";
|
|
2986
3003
|
var _StoryRadiancePropertiesAbridged = class _StoryRadiancePropertiesAbridged extends _OpenAPIGenBaseModel {
|
|
2987
3004
|
constructor() {
|
|
2988
3005
|
super();
|
|
@@ -2994,9 +3011,8 @@ var _StoryRadiancePropertiesAbridged = class _StoryRadiancePropertiesAbridged ex
|
|
|
2994
3011
|
}
|
|
2995
3012
|
init(_data) {
|
|
2996
3013
|
var _a;
|
|
2997
|
-
super.init(_data);
|
|
2998
3014
|
if (_data) {
|
|
2999
|
-
const obj =
|
|
3015
|
+
const obj = deepTransform(_StoryRadiancePropertiesAbridged, _data);
|
|
3000
3016
|
this.type = (_a = obj.type) != null ? _a : "StoryRadiancePropertiesAbridged";
|
|
3001
3017
|
this.modifierSet = obj.modifierSet;
|
|
3002
3018
|
}
|
|
@@ -3060,9 +3076,8 @@ var _StoryPropertiesAbridged = class _StoryPropertiesAbridged extends _OpenAPIGe
|
|
|
3060
3076
|
}
|
|
3061
3077
|
init(_data) {
|
|
3062
3078
|
var _a;
|
|
3063
|
-
super.init(_data);
|
|
3064
3079
|
if (_data) {
|
|
3065
|
-
const obj =
|
|
3080
|
+
const obj = deepTransform(_StoryPropertiesAbridged, _data);
|
|
3066
3081
|
this.type = (_a = obj.type) != null ? _a : "StoryPropertiesAbridged";
|
|
3067
3082
|
this.energy = obj.energy;
|
|
3068
3083
|
this.radiance = obj.radiance;
|
|
@@ -3159,9 +3174,8 @@ var _Story = class _Story extends IDdBaseModel2 {
|
|
|
3159
3174
|
}
|
|
3160
3175
|
init(_data) {
|
|
3161
3176
|
var _a, _b, _c, _d, _e;
|
|
3162
|
-
super.init(_data);
|
|
3163
3177
|
if (_data) {
|
|
3164
|
-
const obj =
|
|
3178
|
+
const obj = deepTransform(_Story, _data);
|
|
3165
3179
|
this.room2ds = obj.room2ds;
|
|
3166
3180
|
this.properties = obj.properties;
|
|
3167
3181
|
this.type = (_a = obj.type) != null ? _a : "Story";
|
|
@@ -3170,6 +3184,9 @@ var _Story = class _Story extends IDdBaseModel2 {
|
|
|
3170
3184
|
this.multiplier = (_d = obj.multiplier) != null ? _d : 1;
|
|
3171
3185
|
this.roof = obj.roof;
|
|
3172
3186
|
this.storyType = (_e = obj.storyType) != null ? _e : "Standard" /* Standard */;
|
|
3187
|
+
this.identifier = obj.identifier;
|
|
3188
|
+
this.displayName = obj.displayName;
|
|
3189
|
+
this.userData = obj.userData;
|
|
3173
3190
|
}
|
|
3174
3191
|
}
|
|
3175
3192
|
static fromJS(data) {
|
|
@@ -3278,14 +3295,16 @@ var _Building = class _Building extends IDdBaseModel3 {
|
|
|
3278
3295
|
}
|
|
3279
3296
|
init(_data) {
|
|
3280
3297
|
var _a;
|
|
3281
|
-
super.init(_data);
|
|
3282
3298
|
if (_data) {
|
|
3283
|
-
const obj =
|
|
3299
|
+
const obj = deepTransform(_Building, _data);
|
|
3284
3300
|
this.properties = obj.properties;
|
|
3285
3301
|
this.type = (_a = obj.type) != null ? _a : "Building";
|
|
3286
3302
|
this.uniqueStories = obj.uniqueStories;
|
|
3287
3303
|
this.room3ds = obj.room3ds;
|
|
3288
3304
|
this.roof = obj.roof;
|
|
3305
|
+
this.identifier = obj.identifier;
|
|
3306
|
+
this.displayName = obj.displayName;
|
|
3307
|
+
this.userData = obj.userData;
|
|
3289
3308
|
}
|
|
3290
3309
|
}
|
|
3291
3310
|
static fromJS(data) {
|
|
@@ -3363,15 +3382,15 @@ var Building = _Building;
|
|
|
3363
3382
|
|
|
3364
3383
|
// src/models/ContextShade.ts
|
|
3365
3384
|
import { IsArray as IsArray13, IsDefined as IsDefined20, IsInstance as IsInstance10, ValidateNested as ValidateNested10, IsString as IsString40, IsOptional as IsOptional40, Matches as Matches39, IsBoolean as IsBoolean10, validate as validate40 } from "class-validator";
|
|
3366
|
-
import { Type as Type40,
|
|
3385
|
+
import { Type as Type40, instanceToPlain as instanceToPlain40, Expose as Expose40, Transform as Transform40 } from "class-transformer";
|
|
3367
3386
|
|
|
3368
3387
|
// src/models/ContextShadePropertiesAbridged.ts
|
|
3369
3388
|
import { IsString as IsString39, IsOptional as IsOptional39, Matches as Matches38, IsInstance as IsInstance9, ValidateNested as ValidateNested9, validate as validate39 } from "class-validator";
|
|
3370
|
-
import { Type as Type39,
|
|
3389
|
+
import { Type as Type39, instanceToPlain as instanceToPlain39, Expose as Expose39 } from "class-transformer";
|
|
3371
3390
|
|
|
3372
3391
|
// src/models/ContextShadeEnergyPropertiesAbridged.ts
|
|
3373
3392
|
import { IsString as IsString37, IsOptional as IsOptional37, Matches as Matches36, MinLength as MinLength4, MaxLength as MaxLength4, validate as validate37 } from "class-validator";
|
|
3374
|
-
import {
|
|
3393
|
+
import { instanceToPlain as instanceToPlain37, Expose as Expose37 } from "class-transformer";
|
|
3375
3394
|
var _ContextShadeEnergyPropertiesAbridged = class _ContextShadeEnergyPropertiesAbridged extends _OpenAPIGenBaseModel {
|
|
3376
3395
|
constructor() {
|
|
3377
3396
|
super();
|
|
@@ -3385,9 +3404,8 @@ var _ContextShadeEnergyPropertiesAbridged = class _ContextShadeEnergyPropertiesA
|
|
|
3385
3404
|
}
|
|
3386
3405
|
init(_data) {
|
|
3387
3406
|
var _a;
|
|
3388
|
-
super.init(_data);
|
|
3389
3407
|
if (_data) {
|
|
3390
|
-
const obj =
|
|
3408
|
+
const obj = deepTransform(_ContextShadeEnergyPropertiesAbridged, _data);
|
|
3391
3409
|
this.type = (_a = obj.type) != null ? _a : "ContextShadeEnergyPropertiesAbridged";
|
|
3392
3410
|
this.construction = obj.construction;
|
|
3393
3411
|
this.transmittanceSchedule = obj.transmittanceSchedule;
|
|
@@ -3450,7 +3468,7 @@ var ContextShadeEnergyPropertiesAbridged = _ContextShadeEnergyPropertiesAbridged
|
|
|
3450
3468
|
|
|
3451
3469
|
// src/models/ContextShadeRadiancePropertiesAbridged.ts
|
|
3452
3470
|
import { IsString as IsString38, IsOptional as IsOptional38, Matches as Matches37, validate as validate38 } from "class-validator";
|
|
3453
|
-
import {
|
|
3471
|
+
import { instanceToPlain as instanceToPlain38, Expose as Expose38 } from "class-transformer";
|
|
3454
3472
|
var _ContextShadeRadiancePropertiesAbridged = class _ContextShadeRadiancePropertiesAbridged extends _OpenAPIGenBaseModel {
|
|
3455
3473
|
constructor() {
|
|
3456
3474
|
super();
|
|
@@ -3462,9 +3480,8 @@ var _ContextShadeRadiancePropertiesAbridged = class _ContextShadeRadiancePropert
|
|
|
3462
3480
|
}
|
|
3463
3481
|
init(_data) {
|
|
3464
3482
|
var _a;
|
|
3465
|
-
super.init(_data);
|
|
3466
3483
|
if (_data) {
|
|
3467
|
-
const obj =
|
|
3484
|
+
const obj = deepTransform(_ContextShadeRadiancePropertiesAbridged, _data);
|
|
3468
3485
|
this.type = (_a = obj.type) != null ? _a : "ContextShadeRadiancePropertiesAbridged";
|
|
3469
3486
|
this.modifier = obj.modifier;
|
|
3470
3487
|
}
|
|
@@ -3528,9 +3545,8 @@ var _ContextShadePropertiesAbridged = class _ContextShadePropertiesAbridged exte
|
|
|
3528
3545
|
}
|
|
3529
3546
|
init(_data) {
|
|
3530
3547
|
var _a;
|
|
3531
|
-
super.init(_data);
|
|
3532
3548
|
if (_data) {
|
|
3533
|
-
const obj =
|
|
3549
|
+
const obj = deepTransform(_ContextShadePropertiesAbridged, _data);
|
|
3534
3550
|
this.type = (_a = obj.type) != null ? _a : "ContextShadePropertiesAbridged";
|
|
3535
3551
|
this.energy = obj.energy;
|
|
3536
3552
|
this.radiance = obj.radiance;
|
|
@@ -3611,13 +3627,15 @@ var _ContextShade = class _ContextShade extends IDdBaseModel4 {
|
|
|
3611
3627
|
}
|
|
3612
3628
|
init(_data) {
|
|
3613
3629
|
var _a, _b;
|
|
3614
|
-
super.init(_data);
|
|
3615
3630
|
if (_data) {
|
|
3616
|
-
const obj =
|
|
3631
|
+
const obj = deepTransform(_ContextShade, _data);
|
|
3617
3632
|
this.geometry = obj.geometry;
|
|
3618
3633
|
this.properties = obj.properties;
|
|
3619
3634
|
this.type = (_a = obj.type) != null ? _a : "ContextShade";
|
|
3620
3635
|
this.isDetached = (_b = obj.isDetached) != null ? _b : true;
|
|
3636
|
+
this.identifier = obj.identifier;
|
|
3637
|
+
this.displayName = obj.displayName;
|
|
3638
|
+
this.userData = obj.userData;
|
|
3621
3639
|
}
|
|
3622
3640
|
}
|
|
3623
3641
|
static fromJS(data) {
|
|
@@ -3686,16 +3704,16 @@ var ContextShade = _ContextShade;
|
|
|
3686
3704
|
|
|
3687
3705
|
// src/models/Model.ts
|
|
3688
3706
|
import { IsInstance as IsInstance14, ValidateNested as ValidateNested14, IsDefined as IsDefined21, IsString as IsString46, IsOptional as IsOptional46, Matches as Matches45, IsArray as IsArray16, IsEnum as IsEnum4, IsNumber as IsNumber18, Min as Min6, validate as validate46 } from "class-validator";
|
|
3689
|
-
import { Type as Type46,
|
|
3707
|
+
import { Type as Type46, instanceToPlain as instanceToPlain46, Expose as Expose46 } from "class-transformer";
|
|
3690
3708
|
import { IDdBaseModel as IDdBaseModel5 } from "honeybee-schema";
|
|
3691
3709
|
|
|
3692
3710
|
// src/models/ModelProperties.ts
|
|
3693
3711
|
import { IsString as IsString45, IsOptional as IsOptional45, Matches as Matches44, IsInstance as IsInstance13, ValidateNested as ValidateNested13, validate as validate45 } from "class-validator";
|
|
3694
|
-
import { Type as Type45,
|
|
3712
|
+
import { Type as Type45, instanceToPlain as instanceToPlain45, Expose as Expose45 } from "class-transformer";
|
|
3695
3713
|
|
|
3696
3714
|
// src/models/ModelComparisonProperties.ts
|
|
3697
3715
|
import { IsString as IsString41, IsOptional as IsOptional41, Matches as Matches40, validate as validate41 } from "class-validator";
|
|
3698
|
-
import {
|
|
3716
|
+
import { instanceToPlain as instanceToPlain41, Expose as Expose41 } from "class-transformer";
|
|
3699
3717
|
var _ModelComparisonProperties = class _ModelComparisonProperties extends _OpenAPIGenBaseModel {
|
|
3700
3718
|
constructor() {
|
|
3701
3719
|
super();
|
|
@@ -3705,9 +3723,8 @@ var _ModelComparisonProperties = class _ModelComparisonProperties extends _OpenA
|
|
|
3705
3723
|
}
|
|
3706
3724
|
init(_data) {
|
|
3707
3725
|
var _a;
|
|
3708
|
-
super.init(_data);
|
|
3709
3726
|
if (_data) {
|
|
3710
|
-
const obj =
|
|
3727
|
+
const obj = deepTransform(_ModelComparisonProperties, _data);
|
|
3711
3728
|
this.type = (_a = obj.type) != null ? _a : "ModelComparisonProperties";
|
|
3712
3729
|
}
|
|
3713
3730
|
}
|
|
@@ -3752,7 +3769,7 @@ var ModelComparisonProperties = _ModelComparisonProperties;
|
|
|
3752
3769
|
|
|
3753
3770
|
// src/models/ModelDoe2Properties.ts
|
|
3754
3771
|
import { IsString as IsString42, IsOptional as IsOptional42, Matches as Matches41, validate as validate42 } from "class-validator";
|
|
3755
|
-
import {
|
|
3772
|
+
import { instanceToPlain as instanceToPlain42, Expose as Expose42 } from "class-transformer";
|
|
3756
3773
|
var _ModelDoe2Properties = class _ModelDoe2Properties extends _OpenAPIGenBaseModel {
|
|
3757
3774
|
constructor() {
|
|
3758
3775
|
super();
|
|
@@ -3762,9 +3779,8 @@ var _ModelDoe2Properties = class _ModelDoe2Properties extends _OpenAPIGenBaseMod
|
|
|
3762
3779
|
}
|
|
3763
3780
|
init(_data) {
|
|
3764
3781
|
var _a;
|
|
3765
|
-
super.init(_data);
|
|
3766
3782
|
if (_data) {
|
|
3767
|
-
const obj =
|
|
3783
|
+
const obj = deepTransform(_ModelDoe2Properties, _data);
|
|
3768
3784
|
this.type = (_a = obj.type) != null ? _a : "ModelDoe2Properties";
|
|
3769
3785
|
}
|
|
3770
3786
|
}
|
|
@@ -3809,7 +3825,7 @@ var ModelDoe2Properties = _ModelDoe2Properties;
|
|
|
3809
3825
|
|
|
3810
3826
|
// src/models/ModelEnergyProperties.ts
|
|
3811
3827
|
import { IsString as IsString43, IsOptional as IsOptional43, Matches as Matches42, IsInstance as IsInstance11, ValidateNested as ValidateNested11, IsArray as IsArray14, validate as validate43 } from "class-validator";
|
|
3812
|
-
import { Type as Type43,
|
|
3828
|
+
import { Type as Type43, instanceToPlain as instanceToPlain43, Expose as Expose43, Transform as Transform43 } from "class-transformer";
|
|
3813
3829
|
import { AirBoundaryConstruction } from "honeybee-schema";
|
|
3814
3830
|
import { AirBoundaryConstructionAbridged } from "honeybee-schema";
|
|
3815
3831
|
import { Baseboard } from "honeybee-schema";
|
|
@@ -4745,9 +4761,8 @@ var _ModelEnergyProperties = class _ModelEnergyProperties extends _OpenAPIGenBas
|
|
|
4745
4761
|
}
|
|
4746
4762
|
init(_data) {
|
|
4747
4763
|
var _a, _b;
|
|
4748
|
-
super.init(_data);
|
|
4749
4764
|
if (_data) {
|
|
4750
|
-
const obj =
|
|
4765
|
+
const obj = deepTransform(_ModelEnergyProperties, _data);
|
|
4751
4766
|
this.type = (_a = obj.type) != null ? _a : "ModelEnergyProperties";
|
|
4752
4767
|
this.globalConstructionSet = (_b = obj.globalConstructionSet) != null ? _b : GlobalConstructionSet.fromJS({
|
|
4753
4768
|
"type": "GlobalConstructionSet",
|
|
@@ -5785,7 +5800,7 @@ var ModelEnergyProperties = _ModelEnergyProperties;
|
|
|
5785
5800
|
|
|
5786
5801
|
// src/models/ModelRadianceProperties.ts
|
|
5787
5802
|
import { IsString as IsString44, IsOptional as IsOptional44, Matches as Matches43, IsInstance as IsInstance12, ValidateNested as ValidateNested12, IsArray as IsArray15, validate as validate44 } from "class-validator";
|
|
5788
|
-
import { Type as Type44,
|
|
5803
|
+
import { Type as Type44, instanceToPlain as instanceToPlain44, Expose as Expose44, Transform as Transform44 } from "class-transformer";
|
|
5789
5804
|
import { BSDF } from "honeybee-schema";
|
|
5790
5805
|
import { Glass } from "honeybee-schema";
|
|
5791
5806
|
import { GlobalModifierSet } from "honeybee-schema";
|
|
@@ -6136,9 +6151,8 @@ var _ModelRadianceProperties = class _ModelRadianceProperties extends _OpenAPIGe
|
|
|
6136
6151
|
}
|
|
6137
6152
|
init(_data) {
|
|
6138
6153
|
var _a, _b;
|
|
6139
|
-
super.init(_data);
|
|
6140
6154
|
if (_data) {
|
|
6141
|
-
const obj =
|
|
6155
|
+
const obj = deepTransform(_ModelRadianceProperties, _data);
|
|
6142
6156
|
this.type = (_a = obj.type) != null ? _a : "ModelRadianceProperties";
|
|
6143
6157
|
this.globalModifierSet = (_b = obj.globalModifierSet) != null ? _b : GlobalModifierSet.fromJS({
|
|
6144
6158
|
"type": "GlobalModifierSet",
|
|
@@ -6561,9 +6575,8 @@ var _ModelProperties = class _ModelProperties extends _OpenAPIGenBaseModel {
|
|
|
6561
6575
|
}
|
|
6562
6576
|
init(_data) {
|
|
6563
6577
|
var _a;
|
|
6564
|
-
super.init(_data);
|
|
6565
6578
|
if (_data) {
|
|
6566
|
-
const obj =
|
|
6579
|
+
const obj = deepTransform(_ModelProperties, _data);
|
|
6567
6580
|
this.type = (_a = obj.type) != null ? _a : "ModelProperties";
|
|
6568
6581
|
this.energy = obj.energy;
|
|
6569
6582
|
this.radiance = obj.radiance;
|
|
@@ -6673,9 +6686,8 @@ var _Model = class _Model extends IDdBaseModel5 {
|
|
|
6673
6686
|
}
|
|
6674
6687
|
init(_data) {
|
|
6675
6688
|
var _a, _b, _c, _d, _e;
|
|
6676
|
-
super.init(_data);
|
|
6677
6689
|
if (_data) {
|
|
6678
|
-
const obj =
|
|
6690
|
+
const obj = deepTransform(_Model, _data);
|
|
6679
6691
|
this.properties = obj.properties;
|
|
6680
6692
|
this.type = (_a = obj.type) != null ? _a : "Model";
|
|
6681
6693
|
this.version = (_b = obj.version) != null ? _b : "0.0.0";
|
|
@@ -6685,6 +6697,9 @@ var _Model = class _Model extends IDdBaseModel5 {
|
|
|
6685
6697
|
this.tolerance = (_d = obj.tolerance) != null ? _d : 0.01;
|
|
6686
6698
|
this.angleTolerance = (_e = obj.angleTolerance) != null ? _e : 1;
|
|
6687
6699
|
this.referenceVector = obj.referenceVector;
|
|
6700
|
+
this.identifier = obj.identifier;
|
|
6701
|
+
this.displayName = obj.displayName;
|
|
6702
|
+
this.userData = obj.userData;
|
|
6688
6703
|
}
|
|
6689
6704
|
}
|
|
6690
6705
|
static fromJS(data) {
|