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,20 +0,0 @@
1
- import { _OpenAPIGenBaseModel } from "./_OpenAPIGenBaseModel";
2
- import { ExteriorApertureGridParameter } from "./ExteriorApertureGridParameter";
3
- import { ExteriorFaceGridParameter } from "./ExteriorFaceGridParameter";
4
- import { RoomGridParameter } from "./RoomGridParameter";
5
- import { RoomRadialGridParameter } from "./RoomRadialGridParameter";
6
- /** Base class for all objects that are not extensible with additional keys.\n\nThis effectively includes all objects except for the Properties classes\nthat are assigned to geometry objects. */
7
- export declare class Room2DRadiancePropertiesAbridged extends _OpenAPIGenBaseModel {
8
- /** Type */
9
- type?: string;
10
- /** Identifier of a ModifierSet to specify all modifiers for the Room2D. If None, the Room2D will use the Story or Building modifier_set or the Model global_modifier_set. Any ModifierSet assigned here will override those assigned to the parent objects. */
11
- modifier_set?: string;
12
- /** An optional list of GridParameter objects to describe how sensor grids should be generated for the Room2D. */
13
- grid_parameters?: (RoomGridParameter | RoomRadialGridParameter | ExteriorFaceGridParameter | ExteriorApertureGridParameter)[];
14
- constructor();
15
- init(_data?: any): void;
16
- static fromJS(data: any): Room2DRadiancePropertiesAbridged;
17
- toJSON(data?: any): Record<string, any>;
18
- validate(): Promise<boolean>;
19
- }
20
- //# sourceMappingURL=Room2DRadiancePropertiesAbridged.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Room2DRadiancePropertiesAbridged.d.ts","sourceRoot":"","sources":["../../../src/models/Room2DRadiancePropertiesAbridged.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,kMAAkM;AAClM,qBAAa,gCAAiC,SAAQ,oBAAoB;IAItE,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,+PAA+P;IAC/P,YAAY,CAAC,EAAE,MAAM,CAAC;IAWtB,iHAAiH;IACjH,eAAe,CAAC,EAAE,CAAC,iBAAiB,GAAG,uBAAuB,GAAG,yBAAyB,GAAG,6BAA6B,CAAC,EAAG,CAAC;;IAStH,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAWT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC;IAe7D,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IASpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,105 +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.Room2DRadiancePropertiesAbridged = 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 ExteriorApertureGridParameter_1 = require("./ExteriorApertureGridParameter");
17
- const ExteriorFaceGridParameter_1 = require("./ExteriorFaceGridParameter");
18
- const RoomGridParameter_1 = require("./RoomGridParameter");
19
- const RoomRadialGridParameter_1 = require("./RoomRadialGridParameter");
20
- /** Base class for all objects that are not extensible with additional keys.\n\nThis effectively includes all objects except for the Properties classes\nthat are assigned to geometry objects. */
21
- class Room2DRadiancePropertiesAbridged extends _OpenAPIGenBaseModel_1._OpenAPIGenBaseModel {
22
- /** Type */
23
- type;
24
- /** Identifier of a ModifierSet to specify all modifiers for the Room2D. If None, the Room2D will use the Story or Building modifier_set or the Model global_modifier_set. Any ModifierSet assigned here will override those assigned to the parent objects. */
25
- modifier_set;
26
- /** An optional list of GridParameter objects to describe how sensor grids should be generated for the Room2D. */
27
- grid_parameters;
28
- constructor() {
29
- super();
30
- this.type = "Room2DRadiancePropertiesAbridged";
31
- }
32
- init(_data) {
33
- super.init(_data);
34
- if (_data) {
35
- const obj = (0, class_transformer_1.plainToClass)(Room2DRadiancePropertiesAbridged, _data, { enableImplicitConversion: true });
36
- this.type = obj.type;
37
- this.modifier_set = obj.modifier_set;
38
- this.grid_parameters = obj.grid_parameters;
39
- }
40
- }
41
- static fromJS(data) {
42
- data = typeof data === 'object' ? data : {};
43
- if (Array.isArray(data)) {
44
- const obj = {};
45
- for (var property in data) {
46
- obj[property] = data[property];
47
- }
48
- data = obj;
49
- }
50
- let result = new Room2DRadiancePropertiesAbridged();
51
- result.init(data);
52
- return result;
53
- }
54
- toJSON(data) {
55
- data = typeof data === 'object' ? data : {};
56
- data["type"] = this.type;
57
- data["modifier_set"] = this.modifier_set;
58
- data["grid_parameters"] = this.grid_parameters;
59
- data = super.toJSON(data);
60
- return (0, class_transformer_1.instanceToPlain)(data);
61
- }
62
- async validate() {
63
- const errors = await (0, class_validator_1.validate)(this);
64
- if (errors.length > 0) {
65
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
66
- throw new Error(`Validation failed: ${errorMessages}`);
67
- }
68
- return true;
69
- }
70
- }
71
- exports.Room2DRadiancePropertiesAbridged = Room2DRadiancePropertiesAbridged;
72
- __decorate([
73
- (0, class_validator_1.IsString)(),
74
- (0, class_validator_1.IsOptional)(),
75
- (0, class_validator_1.Matches)(/^Room2DRadiancePropertiesAbridged$/)
76
- /** Type */
77
- ,
78
- __metadata("design:type", String)
79
- ], Room2DRadiancePropertiesAbridged.prototype, "type", void 0);
80
- __decorate([
81
- (0, class_validator_1.IsString)(),
82
- (0, class_validator_1.IsOptional)()
83
- /** Identifier of a ModifierSet to specify all modifiers for the Room2D. If None, the Room2D will use the Story or Building modifier_set or the Model global_modifier_set. Any ModifierSet assigned here will override those assigned to the parent objects. */
84
- ,
85
- __metadata("design:type", String)
86
- ], Room2DRadiancePropertiesAbridged.prototype, "modifier_set", void 0);
87
- __decorate([
88
- (0, class_validator_1.IsArray)(),
89
- (0, class_validator_1.IsOptional)(),
90
- (0, class_transformer_1.Transform)(({ value }) => value.map((item) => {
91
- if (item?.type === 'RoomGridParameter')
92
- return RoomGridParameter_1.RoomGridParameter.fromJS(item);
93
- else if (item?.type === 'RoomRadialGridParameter')
94
- return RoomRadialGridParameter_1.RoomRadialGridParameter.fromJS(item);
95
- else if (item?.type === 'ExteriorFaceGridParameter')
96
- return ExteriorFaceGridParameter_1.ExteriorFaceGridParameter.fromJS(item);
97
- else if (item?.type === 'ExteriorApertureGridParameter')
98
- return ExteriorApertureGridParameter_1.ExteriorApertureGridParameter.fromJS(item);
99
- else
100
- return item;
101
- }))
102
- /** An optional list of GridParameter objects to describe how sensor grids should be generated for the Room2D. */
103
- ,
104
- __metadata("design:type", Array)
105
- ], Room2DRadiancePropertiesAbridged.prototype, "grid_parameters", void 0);
@@ -1,16 +0,0 @@
1
- import { _GridParameterBase } from "./_GridParameterBase";
2
- /** Instructions for a SensorGrid generated from a Room2D's floors. */
3
- export declare class RoomGridParameter extends _GridParameterBase {
4
- /** Type */
5
- type?: string;
6
- /** A number for how far to offset the grid from the Room2D floors. (Default: 1.0, suitable for Models in Meters). */
7
- offset?: number;
8
- /** A number for the distance at which sensors close to walls should be removed. Note that this option has no effect unless the value is more than half of the dimension. */
9
- wall_offset?: number;
10
- constructor();
11
- init(_data?: any): void;
12
- static fromJS(data: any): RoomGridParameter;
13
- toJSON(data?: any): Record<string, any>;
14
- validate(): Promise<boolean>;
15
- }
16
- //# sourceMappingURL=RoomGridParameter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RoomGridParameter.d.ts","sourceRoot":"","sources":["../../../src/models/RoomGridParameter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,sEAAsE;AACtE,qBAAa,iBAAkB,SAAQ,kBAAkB;IAIrD,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,qHAAqH;IACrH,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,4KAA4K;IAC5K,WAAW,CAAC,EAAE,MAAM,CAAC;;IAWZ,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAWT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB;IAe9C,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IASpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,91 +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.RoomGridParameter = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const _GridParameterBase_1 = require("./_GridParameterBase");
16
- /** Instructions for a SensorGrid generated from a Room2D's floors. */
17
- class RoomGridParameter extends _GridParameterBase_1._GridParameterBase {
18
- /** Type */
19
- type;
20
- /** A number for how far to offset the grid from the Room2D floors. (Default: 1.0, suitable for Models in Meters). */
21
- offset;
22
- /** A number for the distance at which sensors close to walls should be removed. Note that this option has no effect unless the value is more than half of the dimension. */
23
- wall_offset;
24
- constructor() {
25
- super();
26
- this.type = "RoomGridParameter";
27
- this.offset = 1;
28
- this.wall_offset = 0;
29
- }
30
- init(_data) {
31
- super.init(_data);
32
- if (_data) {
33
- const obj = (0, class_transformer_1.plainToClass)(RoomGridParameter, _data, { enableImplicitConversion: true });
34
- this.type = obj.type;
35
- this.offset = obj.offset;
36
- this.wall_offset = obj.wall_offset;
37
- }
38
- }
39
- static fromJS(data) {
40
- data = typeof data === 'object' ? data : {};
41
- if (Array.isArray(data)) {
42
- const obj = {};
43
- for (var property in data) {
44
- obj[property] = data[property];
45
- }
46
- data = obj;
47
- }
48
- let result = new RoomGridParameter();
49
- result.init(data);
50
- return result;
51
- }
52
- toJSON(data) {
53
- data = typeof data === 'object' ? data : {};
54
- data["type"] = this.type;
55
- data["offset"] = this.offset;
56
- data["wall_offset"] = this.wall_offset;
57
- data = super.toJSON(data);
58
- return (0, class_transformer_1.instanceToPlain)(data);
59
- }
60
- async validate() {
61
- const errors = await (0, class_validator_1.validate)(this);
62
- if (errors.length > 0) {
63
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
64
- throw new Error(`Validation failed: ${errorMessages}`);
65
- }
66
- return true;
67
- }
68
- }
69
- exports.RoomGridParameter = RoomGridParameter;
70
- __decorate([
71
- (0, class_validator_1.IsString)(),
72
- (0, class_validator_1.IsOptional)(),
73
- (0, class_validator_1.Matches)(/^RoomGridParameter$/)
74
- /** Type */
75
- ,
76
- __metadata("design:type", String)
77
- ], RoomGridParameter.prototype, "type", void 0);
78
- __decorate([
79
- (0, class_validator_1.IsNumber)(),
80
- (0, class_validator_1.IsOptional)()
81
- /** A number for how far to offset the grid from the Room2D floors. (Default: 1.0, suitable for Models in Meters). */
82
- ,
83
- __metadata("design:type", Number)
84
- ], RoomGridParameter.prototype, "offset", void 0);
85
- __decorate([
86
- (0, class_validator_1.IsNumber)(),
87
- (0, class_validator_1.IsOptional)()
88
- /** A number for the distance at which sensors close to walls should be removed. Note that this option has no effect unless the value is more than half of the dimension. */
89
- ,
90
- __metadata("design:type", Number)
91
- ], RoomGridParameter.prototype, "wall_offset", void 0);
@@ -1,19 +0,0 @@
1
- import { Autocalculate } from "honeybee-schema";
2
- import { RoomGridParameter } from "./RoomGridParameter";
3
- /** Instructions for a SensorGrid of radial directions around positions from floors.\n\nThis type of sensor grid is particularly helpful for studies of multiple\nview directions, such as imageless glare studies. */
4
- export declare class RoomRadialGridParameter extends RoomGridParameter {
5
- /** A positive integer for the number of radial directions to be generated around each position. */
6
- dir_count?: number;
7
- /** A vector as 3 (x, y, z) values to set the start direction of the generated directions. This can be used to orient the resulting sensors to specific parts of the scene. It can also change the elevation of the resulting directions since this start vector will always be rotated in the XY plane to generate the resulting directions. */
8
- start_vector?: number[];
9
- /** An optional number to override the radius of the meshes generated around each sensor. If Autocalculate, it will be equal to 45 percent of the grid dimension. */
10
- mesh_radius?: (Autocalculate | number);
11
- /** Type */
12
- type?: string;
13
- constructor();
14
- init(_data?: any): void;
15
- static fromJS(data: any): RoomRadialGridParameter;
16
- toJSON(data?: any): Record<string, any>;
17
- validate(): Promise<boolean>;
18
- }
19
- //# sourceMappingURL=RoomRadialGridParameter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RoomRadialGridParameter.d.ts","sourceRoot":"","sources":["../../../src/models/RoomRadialGridParameter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,sNAAsN;AACtN,qBAAa,uBAAwB,SAAQ,iBAAiB;IAG1D,mGAAmG;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,gVAAgV;IAChV,YAAY,CAAC,EAAE,MAAM,EAAG,CAAC;IAGzB,oKAAoK;IACpK,WAAW,CAAC,EAAE,CAAC,aAAa,GAAG,MAAM,CAAC,CAAC;IAKvC,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;;IAWL,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAYT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB;IAepD,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAUpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,103 +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.RoomRadialGridParameter = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const honeybee_schema_1 = require("honeybee-schema");
16
- const RoomGridParameter_1 = require("./RoomGridParameter");
17
- /** Instructions for a SensorGrid of radial directions around positions from floors.\n\nThis type of sensor grid is particularly helpful for studies of multiple\nview directions, such as imageless glare studies. */
18
- class RoomRadialGridParameter extends RoomGridParameter_1.RoomGridParameter {
19
- /** A positive integer for the number of radial directions to be generated around each position. */
20
- dir_count;
21
- /** A vector as 3 (x, y, z) values to set the start direction of the generated directions. This can be used to orient the resulting sensors to specific parts of the scene. It can also change the elevation of the resulting directions since this start vector will always be rotated in the XY plane to generate the resulting directions. */
22
- start_vector;
23
- /** An optional number to override the radius of the meshes generated around each sensor. If Autocalculate, it will be equal to 45 percent of the grid dimension. */
24
- mesh_radius;
25
- /** Type */
26
- type;
27
- constructor() {
28
- super();
29
- this.dir_count = 8;
30
- this.mesh_radius = new honeybee_schema_1.Autocalculate();
31
- this.type = "RoomRadialGridParameter";
32
- }
33
- init(_data) {
34
- super.init(_data);
35
- if (_data) {
36
- const obj = (0, class_transformer_1.plainToClass)(RoomRadialGridParameter, _data, { enableImplicitConversion: true });
37
- this.dir_count = obj.dir_count;
38
- this.start_vector = obj.start_vector;
39
- this.mesh_radius = obj.mesh_radius;
40
- this.type = obj.type;
41
- }
42
- }
43
- static fromJS(data) {
44
- data = typeof data === 'object' ? data : {};
45
- if (Array.isArray(data)) {
46
- const obj = {};
47
- for (var property in data) {
48
- obj[property] = data[property];
49
- }
50
- data = obj;
51
- }
52
- let result = new RoomRadialGridParameter();
53
- result.init(data);
54
- return result;
55
- }
56
- toJSON(data) {
57
- data = typeof data === 'object' ? data : {};
58
- data["dir_count"] = this.dir_count;
59
- data["start_vector"] = this.start_vector;
60
- data["mesh_radius"] = this.mesh_radius;
61
- data["type"] = this.type;
62
- data = super.toJSON(data);
63
- return (0, class_transformer_1.instanceToPlain)(data);
64
- }
65
- async validate() {
66
- const errors = await (0, class_validator_1.validate)(this);
67
- if (errors.length > 0) {
68
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
69
- throw new Error(`Validation failed: ${errorMessages}`);
70
- }
71
- return true;
72
- }
73
- }
74
- exports.RoomRadialGridParameter = RoomRadialGridParameter;
75
- __decorate([
76
- (0, class_validator_1.IsInt)(),
77
- (0, class_validator_1.IsOptional)()
78
- /** A positive integer for the number of radial directions to be generated around each position. */
79
- ,
80
- __metadata("design:type", Number)
81
- ], RoomRadialGridParameter.prototype, "dir_count", void 0);
82
- __decorate([
83
- (0, class_validator_1.IsArray)(),
84
- (0, class_validator_1.IsNumber)({}, { each: true }),
85
- (0, class_validator_1.IsOptional)()
86
- /** A vector as 3 (x, y, z) values to set the start direction of the generated directions. This can be used to orient the resulting sensors to specific parts of the scene. It can also change the elevation of the resulting directions since this start vector will always be rotated in the XY plane to generate the resulting directions. */
87
- ,
88
- __metadata("design:type", Array)
89
- ], RoomRadialGridParameter.prototype, "start_vector", void 0);
90
- __decorate([
91
- (0, class_validator_1.IsOptional)()
92
- /** An optional number to override the radius of the meshes generated around each sensor. If Autocalculate, it will be equal to 45 percent of the grid dimension. */
93
- ,
94
- __metadata("design:type", Object)
95
- ], RoomRadialGridParameter.prototype, "mesh_radius", void 0);
96
- __decorate([
97
- (0, class_validator_1.IsString)(),
98
- (0, class_validator_1.IsOptional)(),
99
- (0, class_validator_1.Matches)(/^RoomRadialGridParameter$/)
100
- /** Type */
101
- ,
102
- __metadata("design:type", String)
103
- ], RoomRadialGridParameter.prototype, "type", void 0);
@@ -1,16 +0,0 @@
1
- import { _WindowParameterBase } from "./_WindowParameterBase";
2
- /** A single window defined by an absolute area. */
3
- export declare class SimpleWindowArea extends _WindowParameterBase {
4
- /** A number for the window area in current model units. If this area is larger than the area of the Wall that it is appliedto, the window will fill the parent Wall at a 99 percent ratio. */
5
- window_area: number;
6
- /** Type */
7
- type?: string;
8
- /** Boolean to note whether rectangular portions of base Face should be extracted before scaling them to create apertures. For pentagonal gabled geometries, this results in one rectangle and one triangle, which can often look more realistic and is a better input for engines like EnergyPlus that cannot model windows with more than 4 vertices. However, if a single pentagonal window is desired for such a gabled shape, this input can be set to False to produce such a result. */
9
- rect_split?: boolean;
10
- constructor();
11
- init(_data?: any): void;
12
- static fromJS(data: any): SimpleWindowArea;
13
- toJSON(data?: any): Record<string, any>;
14
- validate(): Promise<boolean>;
15
- }
16
- //# sourceMappingURL=SimpleWindowArea.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleWindowArea.d.ts","sourceRoot":"","sources":["../../../src/models/SimpleWindowArea.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,mDAAmD;AACnD,qBAAa,gBAAiB,SAAQ,oBAAoB;IAGtD,8LAA8L;IAC9L,WAAW,EAAG,MAAM,CAAC;IAKrB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,8dAA8d;IAC9d,UAAU,CAAC,EAAE,OAAO,CAAC;;IAUZ,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAWT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB;IAe7C,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IASpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,90 +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.SimpleWindowArea = 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
- /** A single window defined by an absolute area. */
17
- class SimpleWindowArea extends _WindowParameterBase_1._WindowParameterBase {
18
- /** A number for the window area in current model units. If this area is larger than the area of the Wall that it is appliedto, the window will fill the parent Wall at a 99 percent ratio. */
19
- window_area;
20
- /** Type */
21
- type;
22
- /** Boolean to note whether rectangular portions of base Face should be extracted before scaling them to create apertures. For pentagonal gabled geometries, this results in one rectangle and one triangle, which can often look more realistic and is a better input for engines like EnergyPlus that cannot model windows with more than 4 vertices. However, if a single pentagonal window is desired for such a gabled shape, this input can be set to False to produce such a result. */
23
- rect_split;
24
- constructor() {
25
- super();
26
- this.type = "SimpleWindowArea";
27
- this.rect_split = true;
28
- }
29
- init(_data) {
30
- super.init(_data);
31
- if (_data) {
32
- const obj = (0, class_transformer_1.plainToClass)(SimpleWindowArea, _data, { enableImplicitConversion: true });
33
- this.window_area = obj.window_area;
34
- this.type = obj.type;
35
- this.rect_split = obj.rect_split;
36
- }
37
- }
38
- static fromJS(data) {
39
- data = typeof data === 'object' ? data : {};
40
- if (Array.isArray(data)) {
41
- const obj = {};
42
- for (var property in data) {
43
- obj[property] = data[property];
44
- }
45
- data = obj;
46
- }
47
- let result = new SimpleWindowArea();
48
- result.init(data);
49
- return result;
50
- }
51
- toJSON(data) {
52
- data = typeof data === 'object' ? data : {};
53
- data["window_area"] = this.window_area;
54
- data["type"] = this.type;
55
- data["rect_split"] = this.rect_split;
56
- data = super.toJSON(data);
57
- return (0, class_transformer_1.instanceToPlain)(data);
58
- }
59
- async validate() {
60
- const errors = await (0, class_validator_1.validate)(this);
61
- if (errors.length > 0) {
62
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
63
- throw new Error(`Validation failed: ${errorMessages}`);
64
- }
65
- return true;
66
- }
67
- }
68
- exports.SimpleWindowArea = SimpleWindowArea;
69
- __decorate([
70
- (0, class_validator_1.IsNumber)(),
71
- (0, class_validator_1.IsDefined)()
72
- /** A number for the window area in current model units. If this area is larger than the area of the Wall that it is appliedto, the window will fill the parent Wall at a 99 percent ratio. */
73
- ,
74
- __metadata("design:type", Number)
75
- ], SimpleWindowArea.prototype, "window_area", void 0);
76
- __decorate([
77
- (0, class_validator_1.IsString)(),
78
- (0, class_validator_1.IsOptional)(),
79
- (0, class_validator_1.Matches)(/^SimpleWindowArea$/)
80
- /** Type */
81
- ,
82
- __metadata("design:type", String)
83
- ], SimpleWindowArea.prototype, "type", void 0);
84
- __decorate([
85
- (0, class_validator_1.IsBoolean)(),
86
- (0, class_validator_1.IsOptional)()
87
- /** Boolean to note whether rectangular portions of base Face should be extracted before scaling them to create apertures. For pentagonal gabled geometries, this results in one rectangle and one triangle, which can often look more realistic and is a better input for engines like EnergyPlus that cannot model windows with more than 4 vertices. However, if a single pentagonal window is desired for such a gabled shape, this input can be set to False to produce such a result. */
88
- ,
89
- __metadata("design:type", Boolean)
90
- ], SimpleWindowArea.prototype, "rect_split", void 0);
@@ -1,16 +0,0 @@
1
- import { _WindowParameterBase } from "./_WindowParameterBase";
2
- /** A single window defined by an area ratio with the base surface. */
3
- export declare class SimpleWindowRatio 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
- /** Type */
7
- type?: string;
8
- /** Boolean to note whether rectangular portions of base Face should be extracted before scaling them to create apertures. For pentagonal gabled geometries, this results in one rectangle and one triangle, which can often look more realistic and is a better input for engines like EnergyPlus that cannot model windows with more than 4 vertices. However, if a single pentagonal window is desired for such a gabled shape, this input can be set to False to produce such a result. */
9
- rect_split?: boolean;
10
- constructor();
11
- init(_data?: any): void;
12
- static fromJS(data: any): SimpleWindowRatio;
13
- toJSON(data?: any): Record<string, any>;
14
- validate(): Promise<boolean>;
15
- }
16
- //# sourceMappingURL=SimpleWindowRatio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleWindowRatio.d.ts","sourceRoot":"","sources":["../../../src/models/SimpleWindowRatio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,sEAAsE;AACtE,qBAAa,iBAAkB,SAAQ,oBAAoB;IAGvD,uGAAuG;IACvG,YAAY,EAAG,MAAM,CAAC;IAKtB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,8dAA8d;IAC9d,UAAU,CAAC,EAAE,OAAO,CAAC;;IAUZ,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAWT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB;IAe9C,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IASpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
@@ -1,90 +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.SimpleWindowRatio = 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
- /** A single window defined by an area ratio with the base surface. */
17
- class SimpleWindowRatio 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
- /** Type */
21
- type;
22
- /** Boolean to note whether rectangular portions of base Face should be extracted before scaling them to create apertures. For pentagonal gabled geometries, this results in one rectangle and one triangle, which can often look more realistic and is a better input for engines like EnergyPlus that cannot model windows with more than 4 vertices. However, if a single pentagonal window is desired for such a gabled shape, this input can be set to False to produce such a result. */
23
- rect_split;
24
- constructor() {
25
- super();
26
- this.type = "SimpleWindowRatio";
27
- this.rect_split = true;
28
- }
29
- init(_data) {
30
- super.init(_data);
31
- if (_data) {
32
- const obj = (0, class_transformer_1.plainToClass)(SimpleWindowRatio, _data, { enableImplicitConversion: true });
33
- this.window_ratio = obj.window_ratio;
34
- this.type = obj.type;
35
- this.rect_split = obj.rect_split;
36
- }
37
- }
38
- static fromJS(data) {
39
- data = typeof data === 'object' ? data : {};
40
- if (Array.isArray(data)) {
41
- const obj = {};
42
- for (var property in data) {
43
- obj[property] = data[property];
44
- }
45
- data = obj;
46
- }
47
- let result = new SimpleWindowRatio();
48
- result.init(data);
49
- return result;
50
- }
51
- toJSON(data) {
52
- data = typeof data === 'object' ? data : {};
53
- data["window_ratio"] = this.window_ratio;
54
- data["type"] = this.type;
55
- data["rect_split"] = this.rect_split;
56
- data = super.toJSON(data);
57
- return (0, class_transformer_1.instanceToPlain)(data);
58
- }
59
- async validate() {
60
- const errors = await (0, class_validator_1.validate)(this);
61
- if (errors.length > 0) {
62
- const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
63
- throw new Error(`Validation failed: ${errorMessages}`);
64
- }
65
- return true;
66
- }
67
- }
68
- exports.SimpleWindowRatio = SimpleWindowRatio;
69
- __decorate([
70
- (0, class_validator_1.IsNumber)(),
71
- (0, class_validator_1.IsDefined)()
72
- /** A number between 0 and 1 for the ratio between the window area and the parent wall surface area. */
73
- ,
74
- __metadata("design:type", Number)
75
- ], SimpleWindowRatio.prototype, "window_ratio", void 0);
76
- __decorate([
77
- (0, class_validator_1.IsString)(),
78
- (0, class_validator_1.IsOptional)(),
79
- (0, class_validator_1.Matches)(/^SimpleWindowRatio$/)
80
- /** Type */
81
- ,
82
- __metadata("design:type", String)
83
- ], SimpleWindowRatio.prototype, "type", void 0);
84
- __decorate([
85
- (0, class_validator_1.IsBoolean)(),
86
- (0, class_validator_1.IsOptional)()
87
- /** Boolean to note whether rectangular portions of base Face should be extracted before scaling them to create apertures. For pentagonal gabled geometries, this results in one rectangle and one triangle, which can often look more realistic and is a better input for engines like EnergyPlus that cannot model windows with more than 4 vertices. However, if a single pentagonal window is desired for such a gabled shape, this input can be set to False to produce such a result. */
88
- ,
89
- __metadata("design:type", Boolean)
90
- ], SimpleWindowRatio.prototype, "rect_split", void 0);
@@ -1,18 +0,0 @@
1
- import { _WindowParameterBase } from "./_WindowParameterBase";
2
- /** A single window in the wall center defined by a width * height. */
3
- export declare class SingleWindow extends _WindowParameterBase {
4
- /** A number for the window width. Note that, if this width is applied to a wall that is too narrow for this width, the generated window will automatically be shortened when it is applied to the wall. In this way, setting the width to be `float(""inf"")` will create parameters that always generate a ribbon window. */
5
- width: number;
6
- /** A number for the window height. Note that, if this height is applied to a wall that is too short for this height, the generated window will automatically be shortened when it is applied to the wall. */
7
- height: number;
8
- /** Type */
9
- type?: string;
10
- /** A number for the window sill height. */
11
- sill_height?: number;
12
- constructor();
13
- init(_data?: any): void;
14
- static fromJS(data: any): SingleWindow;
15
- toJSON(data?: any): Record<string, any>;
16
- validate(): Promise<boolean>;
17
- }
18
- //# sourceMappingURL=SingleWindow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SingleWindow.d.ts","sourceRoot":"","sources":["../../../src/models/SingleWindow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,sEAAsE;AACtE,qBAAa,YAAa,SAAQ,oBAAoB;IAGlD,8TAA8T;IAC9T,KAAK,EAAG,MAAM,CAAC;IAIf,6MAA6M;IAC7M,MAAM,EAAG,MAAM,CAAC;IAKhB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;;IAUZ,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAYT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY;IAezC,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAUpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}