dragonfly-schema 1.1301.2 → 1.1301.4

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.
Files changed (152) hide show
  1. package/dist/index.cjs +7670 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +735 -0
  4. package/dist/index.d.ts +735 -0
  5. package/dist/index.js +7609 -0
  6. package/dist/index.js.map +1 -0
  7. package/package.json +14 -10
  8. package/dist/src/helpers/class-validator.d.ts +0 -5
  9. package/dist/src/helpers/class-validator.d.ts.map +0 -1
  10. package/dist/src/helpers/class-validator.js +0 -78
  11. package/dist/src/index.d.ts +0 -3
  12. package/dist/src/index.d.ts.map +0 -1
  13. package/dist/src/index.js +0 -18
  14. package/dist/src/models/Building.d.ts +0 -24
  15. package/dist/src/models/Building.d.ts.map +0 -1
  16. package/dist/src/models/Building.js +0 -125
  17. package/dist/src/models/BuildingEnergyPropertiesAbridged.d.ts +0 -18
  18. package/dist/src/models/BuildingEnergyPropertiesAbridged.d.ts.map +0 -1
  19. package/dist/src/models/BuildingEnergyPropertiesAbridged.js +0 -106
  20. package/dist/src/models/BuildingPropertiesAbridged.d.ts +0 -17
  21. package/dist/src/models/BuildingPropertiesAbridged.d.ts.map +0 -1
  22. package/dist/src/models/BuildingPropertiesAbridged.js +0 -94
  23. package/dist/src/models/BuildingRadiancePropertiesAbridged.d.ts +0 -14
  24. package/dist/src/models/BuildingRadiancePropertiesAbridged.d.ts.map +0 -1
  25. package/dist/src/models/BuildingRadiancePropertiesAbridged.js +0 -78
  26. package/dist/src/models/ContextShade.d.ts +0 -21
  27. package/dist/src/models/ContextShade.d.ts.map +0 -1
  28. package/dist/src/models/ContextShade.js +0 -114
  29. package/dist/src/models/ContextShadeEnergyPropertiesAbridged.d.ts +0 -16
  30. package/dist/src/models/ContextShadeEnergyPropertiesAbridged.d.ts.map +0 -1
  31. package/dist/src/models/ContextShadeEnergyPropertiesAbridged.js +0 -93
  32. package/dist/src/models/ContextShadePropertiesAbridged.d.ts +0 -17
  33. package/dist/src/models/ContextShadePropertiesAbridged.d.ts.map +0 -1
  34. package/dist/src/models/ContextShadePropertiesAbridged.js +0 -94
  35. package/dist/src/models/ContextShadeRadiancePropertiesAbridged.d.ts +0 -14
  36. package/dist/src/models/ContextShadeRadiancePropertiesAbridged.d.ts.map +0 -1
  37. package/dist/src/models/ContextShadeRadiancePropertiesAbridged.js +0 -78
  38. package/dist/src/models/DetailedSkylights.d.ts +0 -16
  39. package/dist/src/models/DetailedSkylights.d.ts.map +0 -1
  40. package/dist/src/models/DetailedSkylights.js +0 -92
  41. package/dist/src/models/DetailedWindows.d.ts +0 -16
  42. package/dist/src/models/DetailedWindows.d.ts.map +0 -1
  43. package/dist/src/models/DetailedWindows.js +0 -92
  44. package/dist/src/models/ExteriorApertureGridParameter.d.ts +0 -17
  45. package/dist/src/models/ExteriorApertureGridParameter.d.ts.map +0 -1
  46. package/dist/src/models/ExteriorApertureGridParameter.js +0 -93
  47. package/dist/src/models/ExteriorApertureType.d.ts +0 -7
  48. package/dist/src/models/ExteriorApertureType.d.ts.map +0 -1
  49. package/dist/src/models/ExteriorApertureType.js +0 -11
  50. package/dist/src/models/ExteriorFaceGridParameter.d.ts +0 -19
  51. package/dist/src/models/ExteriorFaceGridParameter.d.ts.map +0 -1
  52. package/dist/src/models/ExteriorFaceGridParameter.js +0 -105
  53. package/dist/src/models/ExteriorFaceType.d.ts +0 -8
  54. package/dist/src/models/ExteriorFaceType.d.ts.map +0 -1
  55. package/dist/src/models/ExteriorFaceType.js +0 -12
  56. package/dist/src/models/ExtrudedBorder.d.ts +0 -14
  57. package/dist/src/models/ExtrudedBorder.d.ts.map +0 -1
  58. package/dist/src/models/ExtrudedBorder.js +0 -78
  59. package/dist/src/models/GriddedSkylightArea.d.ts +0 -17
  60. package/dist/src/models/GriddedSkylightArea.d.ts.map +0 -1
  61. package/dist/src/models/GriddedSkylightArea.js +0 -90
  62. package/dist/src/models/GriddedSkylightRatio.d.ts +0 -17
  63. package/dist/src/models/GriddedSkylightRatio.d.ts.map +0 -1
  64. package/dist/src/models/GriddedSkylightRatio.js +0 -90
  65. package/dist/src/models/LouversByCount.d.ts +0 -14
  66. package/dist/src/models/LouversByCount.d.ts.map +0 -1
  67. package/dist/src/models/LouversByCount.js +0 -78
  68. package/dist/src/models/LouversByDistance.d.ts +0 -14
  69. package/dist/src/models/LouversByDistance.d.ts.map +0 -1
  70. package/dist/src/models/LouversByDistance.js +0 -78
  71. package/dist/src/models/Model.d.ts +0 -30
  72. package/dist/src/models/Model.d.ts.map +0 -1
  73. package/dist/src/models/Model.js +0 -164
  74. package/dist/src/models/ModelEnergyProperties.d.ts +0 -79
  75. package/dist/src/models/ModelEnergyProperties.d.ts.map +0 -1
  76. package/dist/src/models/ModelEnergyProperties.js +0 -769
  77. package/dist/src/models/ModelProperties.d.ts +0 -17
  78. package/dist/src/models/ModelProperties.d.ts.map +0 -1
  79. package/dist/src/models/ModelProperties.js +0 -94
  80. package/dist/src/models/ModelRadianceProperties.d.ts +0 -30
  81. package/dist/src/models/ModelRadianceProperties.d.ts.map +0 -1
  82. package/dist/src/models/ModelRadianceProperties.js +0 -306
  83. package/dist/src/models/Overhang.d.ts +0 -16
  84. package/dist/src/models/Overhang.d.ts.map +0 -1
  85. package/dist/src/models/Overhang.js +0 -92
  86. package/dist/src/models/RectangularWindows.d.ts +0 -20
  87. package/dist/src/models/RectangularWindows.d.ts.map +0 -1
  88. package/dist/src/models/RectangularWindows.js +0 -116
  89. package/dist/src/models/RepeatingWindowRatio.d.ts +0 -22
  90. package/dist/src/models/RepeatingWindowRatio.d.ts.map +0 -1
  91. package/dist/src/models/RepeatingWindowRatio.js +0 -125
  92. package/dist/src/models/RoofSpecification.d.ts +0 -15
  93. package/dist/src/models/RoofSpecification.d.ts.map +0 -1
  94. package/dist/src/models/RoofSpecification.js +0 -82
  95. package/dist/src/models/Room2D.d.ts +0 -63
  96. package/dist/src/models/Room2D.d.ts.map +0 -1
  97. package/dist/src/models/Room2D.js +0 -328
  98. package/dist/src/models/Room2DEnergyPropertiesAbridged.d.ts +0 -29
  99. package/dist/src/models/Room2DEnergyPropertiesAbridged.d.ts.map +0 -1
  100. package/dist/src/models/Room2DEnergyPropertiesAbridged.js +0 -162
  101. package/dist/src/models/Room2DPropertiesAbridged.d.ts +0 -17
  102. package/dist/src/models/Room2DPropertiesAbridged.d.ts.map +0 -1
  103. package/dist/src/models/Room2DPropertiesAbridged.js +0 -94
  104. package/dist/src/models/Room2DRadiancePropertiesAbridged.d.ts +0 -20
  105. package/dist/src/models/Room2DRadiancePropertiesAbridged.d.ts.map +0 -1
  106. package/dist/src/models/Room2DRadiancePropertiesAbridged.js +0 -105
  107. package/dist/src/models/RoomGridParameter.d.ts +0 -16
  108. package/dist/src/models/RoomGridParameter.d.ts.map +0 -1
  109. package/dist/src/models/RoomGridParameter.js +0 -91
  110. package/dist/src/models/RoomRadialGridParameter.d.ts +0 -19
  111. package/dist/src/models/RoomRadialGridParameter.d.ts.map +0 -1
  112. package/dist/src/models/RoomRadialGridParameter.js +0 -103
  113. package/dist/src/models/SimpleWindowArea.d.ts +0 -16
  114. package/dist/src/models/SimpleWindowArea.d.ts.map +0 -1
  115. package/dist/src/models/SimpleWindowArea.js +0 -90
  116. package/dist/src/models/SimpleWindowRatio.d.ts +0 -16
  117. package/dist/src/models/SimpleWindowRatio.d.ts.map +0 -1
  118. package/dist/src/models/SimpleWindowRatio.js +0 -90
  119. package/dist/src/models/SingleWindow.d.ts +0 -18
  120. package/dist/src/models/SingleWindow.d.ts.map +0 -1
  121. package/dist/src/models/SingleWindow.js +0 -101
  122. package/dist/src/models/Story.d.ts +0 -31
  123. package/dist/src/models/Story.d.ts.map +0 -1
  124. package/dist/src/models/Story.js +0 -160
  125. package/dist/src/models/StoryEnergyPropertiesAbridged.d.ts +0 -14
  126. package/dist/src/models/StoryEnergyPropertiesAbridged.d.ts.map +0 -1
  127. package/dist/src/models/StoryEnergyPropertiesAbridged.js +0 -80
  128. package/dist/src/models/StoryPropertiesAbridged.d.ts +0 -17
  129. package/dist/src/models/StoryPropertiesAbridged.d.ts.map +0 -1
  130. package/dist/src/models/StoryPropertiesAbridged.js +0 -94
  131. package/dist/src/models/StoryRadiancePropertiesAbridged.d.ts +0 -14
  132. package/dist/src/models/StoryRadiancePropertiesAbridged.d.ts.map +0 -1
  133. package/dist/src/models/StoryRadiancePropertiesAbridged.js +0 -78
  134. package/dist/src/models/StoryType.d.ts +0 -7
  135. package/dist/src/models/StoryType.d.ts.map +0 -1
  136. package/dist/src/models/StoryType.js +0 -11
  137. package/dist/src/models/_GridParameterBase.d.ts +0 -16
  138. package/dist/src/models/_GridParameterBase.d.ts.map +0 -1
  139. package/dist/src/models/_GridParameterBase.js +0 -90
  140. package/dist/src/models/_LouversBase.d.ts +0 -22
  141. package/dist/src/models/_LouversBase.d.ts.map +0 -1
  142. package/dist/src/models/_LouversBase.js +0 -130
  143. package/dist/src/models/_OpenAPIGenBaseModel.d.ts +0 -9
  144. package/dist/src/models/_OpenAPIGenBaseModel.d.ts.map +0 -1
  145. package/dist/src/models/_OpenAPIGenBaseModel.js +0 -53
  146. package/dist/src/models/_WindowParameterBase.d.ts +0 -14
  147. package/dist/src/models/_WindowParameterBase.d.ts.map +0 -1
  148. package/dist/src/models/_WindowParameterBase.js +0 -77
  149. package/dist/src/models/index.d.ts +0 -46
  150. package/dist/src/models/index.d.ts.map +0 -1
  151. package/dist/src/models/index.js +0 -62
  152. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,116 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RectangularWindows = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const class_validator_2 = require("./../helpers/class-validator");
16
- const _WindowParameterBase_1 = require("./_WindowParameterBase");
17
- /** Several rectangular windows, defined by origin, width and height. */
18
- class RectangularWindows extends _WindowParameterBase_1._WindowParameterBase {
19
- /** An array of 2D points within the plane of the wall for the origin of each window. Each point should be a list of 2 (x, y) values. The wall plane is assumed to have an origin at the first point of the wall segment and an X-axis extending along the length of the segment. The wall plane Y-axis always points upwards. Therefore, both X and Y values of each origin point should be positive. */
20
- origins;
21
- /** An array of positive numbers for the window widths. The length of this list must match the length of the origins. */
22
- widths;
23
- /** An array of positive numbers for the window heights. The length of this list must match the length of the origins. */
24
- heights;
25
- /** Type */
26
- type;
27
- /** An array of booleans that align with the origins and note whether each of the geometries represents a door (True) or a window (False). If None, it will be assumed that all geometries represent windows and they will be translated to Apertures in any resulting Honeybee model. */
28
- are_doors;
29
- constructor() {
30
- super();
31
- this.type = "RectangularWindows";
32
- }
33
- init(_data) {
34
- super.init(_data);
35
- if (_data) {
36
- const obj = (0, class_transformer_1.plainToClass)(RectangularWindows, _data, { enableImplicitConversion: true });
37
- this.origins = obj.origins;
38
- this.widths = obj.widths;
39
- this.heights = obj.heights;
40
- this.type = obj.type;
41
- this.are_doors = obj.are_doors;
42
- }
43
- }
44
- static fromJS(data) {
45
- data = typeof data === 'object' ? data : {};
46
- if (Array.isArray(data)) {
47
- const obj = {};
48
- for (var property in data) {
49
- obj[property] = data[property];
50
- }
51
- data = obj;
52
- }
53
- let result = new RectangularWindows();
54
- result.init(data);
55
- return result;
56
- }
57
- toJSON(data) {
58
- data = typeof data === 'object' ? data : {};
59
- data["origins"] = this.origins;
60
- data["widths"] = this.widths;
61
- data["heights"] = this.heights;
62
- data["type"] = this.type;
63
- data["are_doors"] = this.are_doors;
64
- data = super.toJSON(data);
65
- return (0, class_transformer_1.instanceToPlain)(data);
66
- }
67
- async validate() {
68
- const errors = await (0, class_validator_1.validate)(this);
69
- if (errors.length > 0) {
70
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
71
- throw new Error(`Validation failed: ${errorMessages}`);
72
- }
73
- return true;
74
- }
75
- }
76
- exports.RectangularWindows = RectangularWindows;
77
- __decorate([
78
- (0, class_validator_1.IsArray)(),
79
- (0, class_validator_2.IsNestedNumberArray)(),
80
- (0, class_validator_1.IsDefined)()
81
- /** An array of 2D points within the plane of the wall for the origin of each window. Each point should be a list of 2 (x, y) values. The wall plane is assumed to have an origin at the first point of the wall segment and an X-axis extending along the length of the segment. The wall plane Y-axis always points upwards. Therefore, both X and Y values of each origin point should be positive. */
82
- ,
83
- __metadata("design:type", Array)
84
- ], RectangularWindows.prototype, "origins", void 0);
85
- __decorate([
86
- (0, class_validator_1.IsArray)(),
87
- (0, class_validator_1.IsNumber)({}, { each: true }),
88
- (0, class_validator_1.IsDefined)()
89
- /** An array of positive numbers for the window widths. The length of this list must match the length of the origins. */
90
- ,
91
- __metadata("design:type", Array)
92
- ], RectangularWindows.prototype, "widths", void 0);
93
- __decorate([
94
- (0, class_validator_1.IsArray)(),
95
- (0, class_validator_1.IsNumber)({}, { each: true }),
96
- (0, class_validator_1.IsDefined)()
97
- /** An array of positive numbers for the window heights. The length of this list must match the length of the origins. */
98
- ,
99
- __metadata("design:type", Array)
100
- ], RectangularWindows.prototype, "heights", void 0);
101
- __decorate([
102
- (0, class_validator_1.IsString)(),
103
- (0, class_validator_1.IsOptional)(),
104
- (0, class_validator_1.Matches)(/^RectangularWindows$/)
105
- /** Type */
106
- ,
107
- __metadata("design:type", String)
108
- ], RectangularWindows.prototype, "type", void 0);
109
- __decorate([
110
- (0, class_validator_1.IsArray)(),
111
- (0, class_validator_1.IsBoolean)({ each: true }),
112
- (0, class_validator_1.IsOptional)()
113
- /** An array of booleans that align with the origins and note whether each of the geometries represents a door (True) or a window (False). If None, it will be assumed that all geometries represent windows and they will be translated to Apertures in any resulting Honeybee model. */
114
- ,
115
- __metadata("design:type", Array)
116
- ], RectangularWindows.prototype, "are_doors", void 0);
@@ -1,22 +0,0 @@
1
- import { _WindowParameterBase } from "./_WindowParameterBase";
2
- /** Repeating windows derived from an area ratio with the base wall. */
3
- export declare class RepeatingWindowRatio extends _WindowParameterBase {
4
- /** A number between 0 and 1 for the ratio between the window area and the parent wall surface area. */
5
- window_ratio: number;
6
- /** A number for the target height of the windows. Note that, if the window ratio is too large for the height, the ratio will take precedence and the actual window_height will be larger than this value. */
7
- window_height: number;
8
- /** A number for the target height above the bottom edge of the wall to start the windows. Note that, if the ratio is too large for the height, the ratio will take precedence and the sill_height will be smaller than this value. */
9
- sill_height: number;
10
- /** A number for the target separation between individual window centerlines. If this number is larger than the parent rectangle base, only one window will be produced. */
11
- horizontal_separation: number;
12
- /** Type */
13
- type?: string;
14
- /** An optional number to create a single vertical separation between top and bottom windows. */
15
- vertical_separation?: number;
16
- constructor();
17
- init(_data?: any): void;
18
- static fromJS(data: any): RepeatingWindowRatio;
19
- toJSON(data?: any): Record<string, any>;
20
- validate(): Promise<boolean>;
21
- }
22
- //# sourceMappingURL=RepeatingWindowRatio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepeatingWindowRatio.d.ts","sourceRoot":"","sources":["../../../src/models/RepeatingWindowRatio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,uEAAuE;AACvE,qBAAa,oBAAqB,SAAQ,oBAAoB;IAG1D,uGAAuG;IACvG,YAAY,EAAG,MAAM,CAAC;IAItB,6MAA6M;IAC7M,aAAa,EAAG,MAAM,CAAC;IAIvB,sOAAsO;IACtO,WAAW,EAAG,MAAM,CAAC;IAKrB,4KAA4K;IAC5K,qBAAqB,EAAG,MAAM,CAAC;IAK/B,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,gGAAgG;IAChG,mBAAmB,CAAC,EAAE,MAAM,CAAC;;IAUpB,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAcT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB;IAejD,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAYpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,125 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RepeatingWindowRatio = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const _WindowParameterBase_1 = require("./_WindowParameterBase");
16
- /** Repeating windows derived from an area ratio with the base wall. */
17
- class RepeatingWindowRatio extends _WindowParameterBase_1._WindowParameterBase {
18
- /** A number between 0 and 1 for the ratio between the window area and the parent wall surface area. */
19
- window_ratio;
20
- /** A number for the target height of the windows. Note that, if the window ratio is too large for the height, the ratio will take precedence and the actual window_height will be larger than this value. */
21
- window_height;
22
- /** A number for the target height above the bottom edge of the wall to start the windows. Note that, if the ratio is too large for the height, the ratio will take precedence and the sill_height will be smaller than this value. */
23
- sill_height;
24
- /** A number for the target separation between individual window centerlines. If this number is larger than the parent rectangle base, only one window will be produced. */
25
- horizontal_separation;
26
- /** Type */
27
- type;
28
- /** An optional number to create a single vertical separation between top and bottom windows. */
29
- vertical_separation;
30
- constructor() {
31
- super();
32
- this.type = "RepeatingWindowRatio";
33
- this.vertical_separation = 0;
34
- }
35
- init(_data) {
36
- super.init(_data);
37
- if (_data) {
38
- const obj = (0, class_transformer_1.plainToClass)(RepeatingWindowRatio, _data, { enableImplicitConversion: true });
39
- this.window_ratio = obj.window_ratio;
40
- this.window_height = obj.window_height;
41
- this.sill_height = obj.sill_height;
42
- this.horizontal_separation = obj.horizontal_separation;
43
- this.type = obj.type;
44
- this.vertical_separation = obj.vertical_separation;
45
- }
46
- }
47
- static fromJS(data) {
48
- data = typeof data === 'object' ? data : {};
49
- if (Array.isArray(data)) {
50
- const obj = {};
51
- for (var property in data) {
52
- obj[property] = data[property];
53
- }
54
- data = obj;
55
- }
56
- let result = new RepeatingWindowRatio();
57
- result.init(data);
58
- return result;
59
- }
60
- toJSON(data) {
61
- data = typeof data === 'object' ? data : {};
62
- data["window_ratio"] = this.window_ratio;
63
- data["window_height"] = this.window_height;
64
- data["sill_height"] = this.sill_height;
65
- data["horizontal_separation"] = this.horizontal_separation;
66
- data["type"] = this.type;
67
- data["vertical_separation"] = this.vertical_separation;
68
- data = super.toJSON(data);
69
- return (0, class_transformer_1.instanceToPlain)(data);
70
- }
71
- async validate() {
72
- const errors = await (0, class_validator_1.validate)(this);
73
- if (errors.length > 0) {
74
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
75
- throw new Error(`Validation failed: ${errorMessages}`);
76
- }
77
- return true;
78
- }
79
- }
80
- exports.RepeatingWindowRatio = RepeatingWindowRatio;
81
- __decorate([
82
- (0, class_validator_1.IsNumber)(),
83
- (0, class_validator_1.IsDefined)()
84
- /** A number between 0 and 1 for the ratio between the window area and the parent wall surface area. */
85
- ,
86
- __metadata("design:type", Number)
87
- ], RepeatingWindowRatio.prototype, "window_ratio", void 0);
88
- __decorate([
89
- (0, class_validator_1.IsNumber)(),
90
- (0, class_validator_1.IsDefined)()
91
- /** A number for the target height of the windows. Note that, if the window ratio is too large for the height, the ratio will take precedence and the actual window_height will be larger than this value. */
92
- ,
93
- __metadata("design:type", Number)
94
- ], RepeatingWindowRatio.prototype, "window_height", void 0);
95
- __decorate([
96
- (0, class_validator_1.IsNumber)(),
97
- (0, class_validator_1.IsDefined)()
98
- /** A number for the target height above the bottom edge of the wall to start the windows. Note that, if the ratio is too large for the height, the ratio will take precedence and the sill_height will be smaller than this value. */
99
- ,
100
- __metadata("design:type", Number)
101
- ], RepeatingWindowRatio.prototype, "sill_height", void 0);
102
- __decorate([
103
- (0, class_validator_1.IsNumber)(),
104
- (0, class_validator_1.IsDefined)(),
105
- (0, class_validator_1.Min)(0)
106
- /** A number for the target separation between individual window centerlines. If this number is larger than the parent rectangle base, only one window will be produced. */
107
- ,
108
- __metadata("design:type", Number)
109
- ], RepeatingWindowRatio.prototype, "horizontal_separation", void 0);
110
- __decorate([
111
- (0, class_validator_1.IsString)(),
112
- (0, class_validator_1.IsOptional)(),
113
- (0, class_validator_1.Matches)(/^RepeatingWindowRatio$/)
114
- /** Type */
115
- ,
116
- __metadata("design:type", String)
117
- ], RepeatingWindowRatio.prototype, "type", void 0);
118
- __decorate([
119
- (0, class_validator_1.IsNumber)(),
120
- (0, class_validator_1.IsOptional)(),
121
- (0, class_validator_1.Min)(0)
122
- /** An optional number to create a single vertical separation between top and bottom windows. */
123
- ,
124
- __metadata("design:type", Number)
125
- ], RepeatingWindowRatio.prototype, "vertical_separation", void 0);
@@ -1,15 +0,0 @@
1
- import { _OpenAPIGenBaseModel } from "./_OpenAPIGenBaseModel";
2
- import { Face3D } from "honeybee-schema";
3
- /** Geometry for specifying sloped roofs over a Story. */
4
- export declare class RoofSpecification extends _OpenAPIGenBaseModel {
5
- /** An array of Face3D objects representing the geometry of the Roof. None of these geometries should overlap in plan and, together, these Face3D should either completely cover or skip each Room2D of the Story to which the RoofSpecification is assigned. */
6
- geometry: Face3D[];
7
- /** Type */
8
- type?: string;
9
- constructor();
10
- init(_data?: any): void;
11
- static fromJS(data: any): RoofSpecification;
12
- toJSON(data?: any): Record<string, any>;
13
- validate(): Promise<boolean>;
14
- }
15
- //# sourceMappingURL=RoofSpecification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RoofSpecification.d.ts","sourceRoot":"","sources":["../../../src/models/RoofSpecification.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,yDAAyD;AACzD,qBAAa,iBAAkB,SAAQ,oBAAoB;IAMvD,gQAAgQ;IAChQ,QAAQ,EAAG,MAAM,EAAG,CAAC;IAKrB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;;IASL,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAUT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB;IAe9C,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAQpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,82 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RoofSpecification = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const _OpenAPIGenBaseModel_1 = require("./_OpenAPIGenBaseModel");
16
- const honeybee_schema_1 = require("honeybee-schema");
17
- /** Geometry for specifying sloped roofs over a Story. */
18
- class RoofSpecification extends _OpenAPIGenBaseModel_1._OpenAPIGenBaseModel {
19
- /** An array of Face3D objects representing the geometry of the Roof. None of these geometries should overlap in plan and, together, these Face3D should either completely cover or skip each Room2D of the Story to which the RoofSpecification is assigned. */
20
- geometry;
21
- /** Type */
22
- type;
23
- constructor() {
24
- super();
25
- this.type = "RoofSpecification";
26
- }
27
- init(_data) {
28
- super.init(_data);
29
- if (_data) {
30
- const obj = (0, class_transformer_1.plainToClass)(RoofSpecification, _data, { enableImplicitConversion: true });
31
- this.geometry = obj.geometry;
32
- this.type = obj.type;
33
- }
34
- }
35
- static fromJS(data) {
36
- data = typeof data === 'object' ? data : {};
37
- if (Array.isArray(data)) {
38
- const obj = {};
39
- for (var property in data) {
40
- obj[property] = data[property];
41
- }
42
- data = obj;
43
- }
44
- let result = new RoofSpecification();
45
- result.init(data);
46
- return result;
47
- }
48
- toJSON(data) {
49
- data = typeof data === 'object' ? data : {};
50
- data["geometry"] = this.geometry;
51
- data["type"] = this.type;
52
- data = super.toJSON(data);
53
- return (0, class_transformer_1.instanceToPlain)(data);
54
- }
55
- async validate() {
56
- const errors = await (0, class_validator_1.validate)(this);
57
- if (errors.length > 0) {
58
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
59
- throw new Error(`Validation failed: ${errorMessages}`);
60
- }
61
- return true;
62
- }
63
- }
64
- exports.RoofSpecification = RoofSpecification;
65
- __decorate([
66
- (0, class_validator_1.IsArray)(),
67
- (0, class_validator_1.IsInstance)(honeybee_schema_1.Face3D, { each: true }),
68
- (0, class_transformer_1.Type)(() => honeybee_schema_1.Face3D),
69
- (0, class_validator_1.ValidateNested)({ each: true }),
70
- (0, class_validator_1.IsDefined)()
71
- /** An array of Face3D objects representing the geometry of the Roof. None of these geometries should overlap in plan and, together, these Face3D should either completely cover or skip each Room2D of the Story to which the RoofSpecification is assigned. */
72
- ,
73
- __metadata("design:type", Array)
74
- ], RoofSpecification.prototype, "geometry", void 0);
75
- __decorate([
76
- (0, class_validator_1.IsString)(),
77
- (0, class_validator_1.IsOptional)(),
78
- (0, class_validator_1.Matches)(/^RoofSpecification$/)
79
- /** Type */
80
- ,
81
- __metadata("design:type", String)
82
- ], RoofSpecification.prototype, "type", void 0);
@@ -1,63 +0,0 @@
1
- import { Adiabatic } from "honeybee-schema";
2
- import { DetailedSkylights } from "./DetailedSkylights";
3
- import { DetailedWindows } from "./DetailedWindows";
4
- import { ExtrudedBorder } from "./ExtrudedBorder";
5
- import { GriddedSkylightArea } from "./GriddedSkylightArea";
6
- import { GriddedSkylightRatio } from "./GriddedSkylightRatio";
7
- import { Ground } from "honeybee-schema";
8
- import { IDdBaseModel } from "honeybee-schema";
9
- import { LouversByCount } from "./LouversByCount";
10
- import { LouversByDistance } from "./LouversByDistance";
11
- import { OtherSideTemperature } from "honeybee-schema";
12
- import { Outdoors } from "honeybee-schema";
13
- import { Overhang } from "./Overhang";
14
- import { RectangularWindows } from "./RectangularWindows";
15
- import { RepeatingWindowRatio } from "./RepeatingWindowRatio";
16
- import { Room2DPropertiesAbridged } from "./Room2DPropertiesAbridged";
17
- import { SimpleWindowArea } from "./SimpleWindowArea";
18
- import { SimpleWindowRatio } from "./SimpleWindowRatio";
19
- import { SingleWindow } from "./SingleWindow";
20
- import { Surface } from "honeybee-schema";
21
- /** Base class for all objects requiring a identifiers acceptable for all engines. */
22
- export declare class Room2D extends IDdBaseModel {
23
- /** A list of 2D points representing the outer boundary vertices of the Room2D. The list should include at least 3 points and each point should be a list of 2 (x, y) values. */
24
- floor_boundary: number[][];
25
- /** A number to indicate the height of the floor plane in the Z axis. */
26
- floor_height: number;
27
- /** A number for the distance between the floor and the ceiling. */
28
- floor_to_ceiling_height: number;
29
- /** Extension properties for particular simulation engines (Radiance, EnergyPlus). */
30
- properties: Room2DPropertiesAbridged;
31
- /** Type */
32
- type?: string;
33
- /** Optional list of lists with one list for each hole in the floor plate. Each hole should be a list of at least 2 points and each point a list of 2 (x, y) values. If None, it will be assumed that there are no holes in the floor plate. */
34
- floor_holes?: number[][][];
35
- /** A boolean noting whether this Room2D has its floor in contact with the ground. */
36
- is_ground_contact?: boolean;
37
- /** A boolean noting whether this Room2D has its ceiling exposed to the outdoors. */
38
- is_top_exposed?: boolean;
39
- /** A boolean for whether the room has a Floor (True) or an AirBoundary (False). If False, this property will only be meaningful if the model is translated to Honeybee with ceiling adjacency solved and there is a Room2D below this one with a has_ceiling property set to False. */
40
- has_floor?: boolean;
41
- /** A boolean for whether the room has a RoofCeiling (True) or an AirBoundary (False). If False, this property will only be meaningful if the model is translated to Honeybee with ceiling adjacency solved and there is a Room2D above this one with a has_floor property set to False. */
42
- has_ceiling?: boolean;
43
- /** A number for the depth that a ceiling plenum extends into the room. Setting this to a positive value will result in a separate plenum room being split off of the Room2D volume during translation from Dragonfly to Honeybee. The bottom of this ceiling plenum will always be at this Room2D ceiling height minus the value specified here. Setting this to zero indicates that the room has no ceiling plenum. */
44
- ceiling_plenum_depth?: number;
45
- /** A number for the depth that a floor plenum extends into the room. Setting this to a positive value will result in a separate plenum room being split off of the Room2D volume during translation from Dragonfly to Honeybee. The top of this floor plenum will always be at this Room2D floor height plus the value specified here. Setting this to zero indicates that the room has no floor plenum. */
46
- floor_plenum_depth?: number;
47
- /** A list of boundary conditions that match the number of segments in the input floor_geometry + floor_holes. These will be used to assign boundary conditions to each of the walls of the Room in the resulting model. Their order should align with the order of segments in the floor_boundary and then with each hole segment. If None, all boundary conditions will be Outdoors or Ground depending on whether ceiling height of the room is at or below 0 (the assumed ground plane). */
48
- boundary_conditions?: (Ground | Outdoors | Surface | Adiabatic | OtherSideTemperature)[];
49
- /** A list of WindowParameter objects that dictate how the window geometries will be generated for each of the walls. If None, no windows will exist over the entire Room2D. */
50
- window_parameters?: (SingleWindow | SimpleWindowArea | SimpleWindowRatio | RepeatingWindowRatio | RectangularWindows | DetailedWindows)[];
51
- /** A list of ShadingParameter objects that dictate how the shade geometries will be generated for each of the walls. If None, no shades will exist over the entire Room2D. */
52
- shading_parameters?: (ExtrudedBorder | Overhang | LouversByDistance | LouversByCount)[];
53
- /** A list of booleans for whether each wall has an air boundary type. False values indicate a standard opaque type while True values indicate an AirBoundary type. All walls will be False by default. Note that any walls with a True air boundary must have a Surface boundary condition without any windows. */
54
- air_boundaries?: boolean[];
55
- /** A SkylightParameter object describing how to generate skylights. If None, no skylights will exist on the Room2D. */
56
- skylight_parameters?: (GriddedSkylightArea | GriddedSkylightRatio | DetailedSkylights);
57
- constructor();
58
- init(_data?: any): void;
59
- static fromJS(data: any): Room2D;
60
- toJSON(data?: any): Record<string, any>;
61
- validate(): Promise<boolean>;
62
- }
63
- //# sourceMappingURL=Room2D.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Room2D.d.ts","sourceRoot":"","sources":["../../../src/models/Room2D.ts"],"names":[],"mappings":"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"}