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.
- package/dist/index.cjs +7670 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +735 -0
- package/dist/index.d.ts +735 -0
- package/dist/index.js +7609 -0
- package/dist/index.js.map +1 -0
- package/package.json +14 -10
- package/dist/src/helpers/class-validator.d.ts +0 -5
- package/dist/src/helpers/class-validator.d.ts.map +0 -1
- package/dist/src/helpers/class-validator.js +0 -78
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -18
- package/dist/src/models/Building.d.ts +0 -24
- package/dist/src/models/Building.d.ts.map +0 -1
- package/dist/src/models/Building.js +0 -125
- package/dist/src/models/BuildingEnergyPropertiesAbridged.d.ts +0 -18
- package/dist/src/models/BuildingEnergyPropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/BuildingEnergyPropertiesAbridged.js +0 -106
- package/dist/src/models/BuildingPropertiesAbridged.d.ts +0 -17
- package/dist/src/models/BuildingPropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/BuildingPropertiesAbridged.js +0 -94
- package/dist/src/models/BuildingRadiancePropertiesAbridged.d.ts +0 -14
- package/dist/src/models/BuildingRadiancePropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/BuildingRadiancePropertiesAbridged.js +0 -78
- package/dist/src/models/ContextShade.d.ts +0 -21
- package/dist/src/models/ContextShade.d.ts.map +0 -1
- package/dist/src/models/ContextShade.js +0 -114
- package/dist/src/models/ContextShadeEnergyPropertiesAbridged.d.ts +0 -16
- package/dist/src/models/ContextShadeEnergyPropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/ContextShadeEnergyPropertiesAbridged.js +0 -93
- package/dist/src/models/ContextShadePropertiesAbridged.d.ts +0 -17
- package/dist/src/models/ContextShadePropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/ContextShadePropertiesAbridged.js +0 -94
- package/dist/src/models/ContextShadeRadiancePropertiesAbridged.d.ts +0 -14
- package/dist/src/models/ContextShadeRadiancePropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/ContextShadeRadiancePropertiesAbridged.js +0 -78
- package/dist/src/models/DetailedSkylights.d.ts +0 -16
- package/dist/src/models/DetailedSkylights.d.ts.map +0 -1
- package/dist/src/models/DetailedSkylights.js +0 -92
- package/dist/src/models/DetailedWindows.d.ts +0 -16
- package/dist/src/models/DetailedWindows.d.ts.map +0 -1
- package/dist/src/models/DetailedWindows.js +0 -92
- package/dist/src/models/ExteriorApertureGridParameter.d.ts +0 -17
- package/dist/src/models/ExteriorApertureGridParameter.d.ts.map +0 -1
- package/dist/src/models/ExteriorApertureGridParameter.js +0 -93
- package/dist/src/models/ExteriorApertureType.d.ts +0 -7
- package/dist/src/models/ExteriorApertureType.d.ts.map +0 -1
- package/dist/src/models/ExteriorApertureType.js +0 -11
- package/dist/src/models/ExteriorFaceGridParameter.d.ts +0 -19
- package/dist/src/models/ExteriorFaceGridParameter.d.ts.map +0 -1
- package/dist/src/models/ExteriorFaceGridParameter.js +0 -105
- package/dist/src/models/ExteriorFaceType.d.ts +0 -8
- package/dist/src/models/ExteriorFaceType.d.ts.map +0 -1
- package/dist/src/models/ExteriorFaceType.js +0 -12
- package/dist/src/models/ExtrudedBorder.d.ts +0 -14
- package/dist/src/models/ExtrudedBorder.d.ts.map +0 -1
- package/dist/src/models/ExtrudedBorder.js +0 -78
- package/dist/src/models/GriddedSkylightArea.d.ts +0 -17
- package/dist/src/models/GriddedSkylightArea.d.ts.map +0 -1
- package/dist/src/models/GriddedSkylightArea.js +0 -90
- package/dist/src/models/GriddedSkylightRatio.d.ts +0 -17
- package/dist/src/models/GriddedSkylightRatio.d.ts.map +0 -1
- package/dist/src/models/GriddedSkylightRatio.js +0 -90
- package/dist/src/models/LouversByCount.d.ts +0 -14
- package/dist/src/models/LouversByCount.d.ts.map +0 -1
- package/dist/src/models/LouversByCount.js +0 -78
- package/dist/src/models/LouversByDistance.d.ts +0 -14
- package/dist/src/models/LouversByDistance.d.ts.map +0 -1
- package/dist/src/models/LouversByDistance.js +0 -78
- package/dist/src/models/Model.d.ts +0 -30
- package/dist/src/models/Model.d.ts.map +0 -1
- package/dist/src/models/Model.js +0 -164
- package/dist/src/models/ModelEnergyProperties.d.ts +0 -79
- package/dist/src/models/ModelEnergyProperties.d.ts.map +0 -1
- package/dist/src/models/ModelEnergyProperties.js +0 -769
- package/dist/src/models/ModelProperties.d.ts +0 -17
- package/dist/src/models/ModelProperties.d.ts.map +0 -1
- package/dist/src/models/ModelProperties.js +0 -94
- package/dist/src/models/ModelRadianceProperties.d.ts +0 -30
- package/dist/src/models/ModelRadianceProperties.d.ts.map +0 -1
- package/dist/src/models/ModelRadianceProperties.js +0 -306
- package/dist/src/models/Overhang.d.ts +0 -16
- package/dist/src/models/Overhang.d.ts.map +0 -1
- package/dist/src/models/Overhang.js +0 -92
- package/dist/src/models/RectangularWindows.d.ts +0 -20
- package/dist/src/models/RectangularWindows.d.ts.map +0 -1
- package/dist/src/models/RectangularWindows.js +0 -116
- package/dist/src/models/RepeatingWindowRatio.d.ts +0 -22
- package/dist/src/models/RepeatingWindowRatio.d.ts.map +0 -1
- package/dist/src/models/RepeatingWindowRatio.js +0 -125
- package/dist/src/models/RoofSpecification.d.ts +0 -15
- package/dist/src/models/RoofSpecification.d.ts.map +0 -1
- package/dist/src/models/RoofSpecification.js +0 -82
- package/dist/src/models/Room2D.d.ts +0 -63
- package/dist/src/models/Room2D.d.ts.map +0 -1
- package/dist/src/models/Room2D.js +0 -328
- package/dist/src/models/Room2DEnergyPropertiesAbridged.d.ts +0 -29
- package/dist/src/models/Room2DEnergyPropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/Room2DEnergyPropertiesAbridged.js +0 -162
- package/dist/src/models/Room2DPropertiesAbridged.d.ts +0 -17
- package/dist/src/models/Room2DPropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/Room2DPropertiesAbridged.js +0 -94
- package/dist/src/models/Room2DRadiancePropertiesAbridged.d.ts +0 -20
- package/dist/src/models/Room2DRadiancePropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/Room2DRadiancePropertiesAbridged.js +0 -105
- package/dist/src/models/RoomGridParameter.d.ts +0 -16
- package/dist/src/models/RoomGridParameter.d.ts.map +0 -1
- package/dist/src/models/RoomGridParameter.js +0 -91
- package/dist/src/models/RoomRadialGridParameter.d.ts +0 -19
- package/dist/src/models/RoomRadialGridParameter.d.ts.map +0 -1
- package/dist/src/models/RoomRadialGridParameter.js +0 -103
- package/dist/src/models/SimpleWindowArea.d.ts +0 -16
- package/dist/src/models/SimpleWindowArea.d.ts.map +0 -1
- package/dist/src/models/SimpleWindowArea.js +0 -90
- package/dist/src/models/SimpleWindowRatio.d.ts +0 -16
- package/dist/src/models/SimpleWindowRatio.d.ts.map +0 -1
- package/dist/src/models/SimpleWindowRatio.js +0 -90
- package/dist/src/models/SingleWindow.d.ts +0 -18
- package/dist/src/models/SingleWindow.d.ts.map +0 -1
- package/dist/src/models/SingleWindow.js +0 -101
- package/dist/src/models/Story.d.ts +0 -31
- package/dist/src/models/Story.d.ts.map +0 -1
- package/dist/src/models/Story.js +0 -160
- package/dist/src/models/StoryEnergyPropertiesAbridged.d.ts +0 -14
- package/dist/src/models/StoryEnergyPropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/StoryEnergyPropertiesAbridged.js +0 -80
- package/dist/src/models/StoryPropertiesAbridged.d.ts +0 -17
- package/dist/src/models/StoryPropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/StoryPropertiesAbridged.js +0 -94
- package/dist/src/models/StoryRadiancePropertiesAbridged.d.ts +0 -14
- package/dist/src/models/StoryRadiancePropertiesAbridged.d.ts.map +0 -1
- package/dist/src/models/StoryRadiancePropertiesAbridged.js +0 -78
- package/dist/src/models/StoryType.d.ts +0 -7
- package/dist/src/models/StoryType.d.ts.map +0 -1
- package/dist/src/models/StoryType.js +0 -11
- package/dist/src/models/_GridParameterBase.d.ts +0 -16
- package/dist/src/models/_GridParameterBase.d.ts.map +0 -1
- package/dist/src/models/_GridParameterBase.js +0 -90
- package/dist/src/models/_LouversBase.d.ts +0 -22
- package/dist/src/models/_LouversBase.d.ts.map +0 -1
- package/dist/src/models/_LouversBase.js +0 -130
- package/dist/src/models/_OpenAPIGenBaseModel.d.ts +0 -9
- package/dist/src/models/_OpenAPIGenBaseModel.d.ts.map +0 -1
- package/dist/src/models/_OpenAPIGenBaseModel.js +0 -53
- package/dist/src/models/_WindowParameterBase.d.ts +0 -14
- package/dist/src/models/_WindowParameterBase.d.ts.map +0 -1
- package/dist/src/models/_WindowParameterBase.js +0 -77
- package/dist/src/models/index.d.ts +0 -46
- package/dist/src/models/index.d.ts.map +0 -1
- package/dist/src/models/index.js +0 -62
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,92 +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.DetailedSkylights = 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 _OpenAPIGenBaseModel_1 = require("./_OpenAPIGenBaseModel");
|
|
17
|
-
/** Several detailed skylights defined by 2D Polygons (lists of 2D vertices). */
|
|
18
|
-
class DetailedSkylights extends _OpenAPIGenBaseModel_1._OpenAPIGenBaseModel {
|
|
19
|
-
/** An array of arrays with each sub-array representing a polygonal boundary of a skylight. Each sub-array should consist of arrays representing points, which contain 2 values for 2D coordinates in the world XY system. These coordinate values should lie within the parent Room2D Polygon. */
|
|
20
|
-
polygons;
|
|
21
|
-
/** Type */
|
|
22
|
-
type;
|
|
23
|
-
/** An array of booleans that align with the polygons and note whether each of the polygons represents an overhead door (True) or a skylight (False). If None, it will be assumed that all polygons represent skylights and they will be translated to Apertures in any resulting Honeybee model. */
|
|
24
|
-
are_doors;
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
this.type = "DetailedSkylights";
|
|
28
|
-
}
|
|
29
|
-
init(_data) {
|
|
30
|
-
super.init(_data);
|
|
31
|
-
if (_data) {
|
|
32
|
-
const obj = (0, class_transformer_1.plainToClass)(DetailedSkylights, _data, { enableImplicitConversion: true });
|
|
33
|
-
this.polygons = obj.polygons;
|
|
34
|
-
this.type = obj.type;
|
|
35
|
-
this.are_doors = obj.are_doors;
|
|
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 DetailedSkylights();
|
|
48
|
-
result.init(data);
|
|
49
|
-
return result;
|
|
50
|
-
}
|
|
51
|
-
toJSON(data) {
|
|
52
|
-
data = typeof data === 'object' ? data : {};
|
|
53
|
-
data["polygons"] = this.polygons;
|
|
54
|
-
data["type"] = this.type;
|
|
55
|
-
data["are_doors"] = this.are_doors;
|
|
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.DetailedSkylights = DetailedSkylights;
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsArray)(),
|
|
71
|
-
(0, class_validator_2.IsNestedNumberArray)(),
|
|
72
|
-
(0, class_validator_1.IsDefined)()
|
|
73
|
-
/** An array of arrays with each sub-array representing a polygonal boundary of a skylight. Each sub-array should consist of arrays representing points, which contain 2 values for 2D coordinates in the world XY system. These coordinate values should lie within the parent Room2D Polygon. */
|
|
74
|
-
,
|
|
75
|
-
__metadata("design:type", Array)
|
|
76
|
-
], DetailedSkylights.prototype, "polygons", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, class_validator_1.IsString)(),
|
|
79
|
-
(0, class_validator_1.IsOptional)(),
|
|
80
|
-
(0, class_validator_1.Matches)(/^DetailedSkylights$/)
|
|
81
|
-
/** Type */
|
|
82
|
-
,
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], DetailedSkylights.prototype, "type", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsArray)(),
|
|
87
|
-
(0, class_validator_1.IsBoolean)({ each: true }),
|
|
88
|
-
(0, class_validator_1.IsOptional)()
|
|
89
|
-
/** An array of booleans that align with the polygons and note whether each of the polygons represents an overhead door (True) or a skylight (False). If None, it will be assumed that all polygons represent skylights and they will be translated to Apertures in any resulting Honeybee model. */
|
|
90
|
-
,
|
|
91
|
-
__metadata("design:type", Array)
|
|
92
|
-
], DetailedSkylights.prototype, "are_doors", void 0);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { _WindowParameterBase } from "./_WindowParameterBase";
|
|
2
|
-
/** Several detailed windows defined by 2D Polygons (lists of 2D vertices). */
|
|
3
|
-
export declare class DetailedWindows extends _WindowParameterBase {
|
|
4
|
-
/** An array of arrays with each sub-array representing a polygonal boundary of a window. Each sub-array should consist of arrays representing points, which can either contain 2 values (indicating they are 2D vertices within the plane of a parent wall segment) or they can contain 3 values (indicating they are 3D world coordinates). For 2D points, 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 point in the polygon should always be positive. Some sample code to convert from 2D vertices to 2D vertices in the plane of the wall can be found here: https://www.ladybug.tools/dragonfly-core/docs/dragonfly.windowparameter.html#dragonfly.windowparameter.DetailedWindows */
|
|
5
|
-
polygons: number[][][];
|
|
6
|
-
/** Type */
|
|
7
|
-
type?: string;
|
|
8
|
-
/** An array of booleans that align with the polygons and note whether each of the polygons represents a door (True) or a window (False). If None, it will be assumed that all polygons represent windows and they will be translated to Apertures in any resulting Honeybee model. */
|
|
9
|
-
are_doors?: boolean[];
|
|
10
|
-
constructor();
|
|
11
|
-
init(_data?: any): void;
|
|
12
|
-
static fromJS(data: any): DetailedWindows;
|
|
13
|
-
toJSON(data?: any): Record<string, any>;
|
|
14
|
-
validate(): Promise<boolean>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=DetailedWindows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DetailedWindows.d.ts","sourceRoot":"","sources":["../../../src/models/DetailedWindows.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,8EAA8E;AAC9E,qBAAa,eAAgB,SAAQ,oBAAoB;IAIrD,80BAA80B;IAC90B,QAAQ,EAAG,MAAM,EAAG,EAAG,EAAG,CAAC;IAK3B,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,sRAAsR;IACtR,SAAS,CAAC,EAAE,OAAO,EAAG,CAAC;;IASd,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAWT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe;IAe5C,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IASpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
|
|
@@ -1,92 +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.DetailedWindows = 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 detailed windows defined by 2D Polygons (lists of 2D vertices). */
|
|
18
|
-
class DetailedWindows extends _WindowParameterBase_1._WindowParameterBase {
|
|
19
|
-
/** An array of arrays with each sub-array representing a polygonal boundary of a window. Each sub-array should consist of arrays representing points, which can either contain 2 values (indicating they are 2D vertices within the plane of a parent wall segment) or they can contain 3 values (indicating they are 3D world coordinates). For 2D points, 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 point in the polygon should always be positive. Some sample code to convert from 2D vertices to 2D vertices in the plane of the wall can be found here: https://www.ladybug.tools/dragonfly-core/docs/dragonfly.windowparameter.html#dragonfly.windowparameter.DetailedWindows */
|
|
20
|
-
polygons;
|
|
21
|
-
/** Type */
|
|
22
|
-
type;
|
|
23
|
-
/** An array of booleans that align with the polygons and note whether each of the polygons represents a door (True) or a window (False). If None, it will be assumed that all polygons represent windows and they will be translated to Apertures in any resulting Honeybee model. */
|
|
24
|
-
are_doors;
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
this.type = "DetailedWindows";
|
|
28
|
-
}
|
|
29
|
-
init(_data) {
|
|
30
|
-
super.init(_data);
|
|
31
|
-
if (_data) {
|
|
32
|
-
const obj = (0, class_transformer_1.plainToClass)(DetailedWindows, _data, { enableImplicitConversion: true });
|
|
33
|
-
this.polygons = obj.polygons;
|
|
34
|
-
this.type = obj.type;
|
|
35
|
-
this.are_doors = obj.are_doors;
|
|
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 DetailedWindows();
|
|
48
|
-
result.init(data);
|
|
49
|
-
return result;
|
|
50
|
-
}
|
|
51
|
-
toJSON(data) {
|
|
52
|
-
data = typeof data === 'object' ? data : {};
|
|
53
|
-
data["polygons"] = this.polygons;
|
|
54
|
-
data["type"] = this.type;
|
|
55
|
-
data["are_doors"] = this.are_doors;
|
|
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.DetailedWindows = DetailedWindows;
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsArray)(),
|
|
71
|
-
(0, class_validator_2.IsNestedNumberArray)(),
|
|
72
|
-
(0, class_validator_1.IsDefined)()
|
|
73
|
-
/** An array of arrays with each sub-array representing a polygonal boundary of a window. Each sub-array should consist of arrays representing points, which can either contain 2 values (indicating they are 2D vertices within the plane of a parent wall segment) or they can contain 3 values (indicating they are 3D world coordinates). For 2D points, 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 point in the polygon should always be positive. Some sample code to convert from 2D vertices to 2D vertices in the plane of the wall can be found here: https://www.ladybug.tools/dragonfly-core/docs/dragonfly.windowparameter.html#dragonfly.windowparameter.DetailedWindows */
|
|
74
|
-
,
|
|
75
|
-
__metadata("design:type", Array)
|
|
76
|
-
], DetailedWindows.prototype, "polygons", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, class_validator_1.IsString)(),
|
|
79
|
-
(0, class_validator_1.IsOptional)(),
|
|
80
|
-
(0, class_validator_1.Matches)(/^DetailedWindows$/)
|
|
81
|
-
/** Type */
|
|
82
|
-
,
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], DetailedWindows.prototype, "type", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsArray)(),
|
|
87
|
-
(0, class_validator_1.IsBoolean)({ each: true }),
|
|
88
|
-
(0, class_validator_1.IsOptional)()
|
|
89
|
-
/** An array of booleans that align with the polygons and note whether each of the polygons represents a door (True) or a window (False). If None, it will be assumed that all polygons represent windows and they will be translated to Apertures in any resulting Honeybee model. */
|
|
90
|
-
,
|
|
91
|
-
__metadata("design:type", Array)
|
|
92
|
-
], DetailedWindows.prototype, "are_doors", void 0);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { _GridParameterBase } from "./_GridParameterBase";
|
|
2
|
-
import { ExteriorApertureType } from "./ExteriorApertureType";
|
|
3
|
-
/** Instructions for a SensorGrid generated from exterior Aperture. */
|
|
4
|
-
export declare class ExteriorApertureGridParameter extends _GridParameterBase {
|
|
5
|
-
/** Type */
|
|
6
|
-
type?: string;
|
|
7
|
-
/** A number for how far to offset the grid from the Apertures. (Default: 0.1, suitable for Models in Meters). */
|
|
8
|
-
offset?: number;
|
|
9
|
-
/** Text to specify the type of Aperture that will be used to generate grids. Window indicates Apertures in Walls. Skylights are in parent Roof faces. */
|
|
10
|
-
aperture_type?: ExteriorApertureType;
|
|
11
|
-
constructor();
|
|
12
|
-
init(_data?: any): void;
|
|
13
|
-
static fromJS(data: any): ExteriorApertureGridParameter;
|
|
14
|
-
toJSON(data?: any): Record<string, any>;
|
|
15
|
-
validate(): Promise<boolean>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=ExteriorApertureGridParameter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExteriorApertureGridParameter.d.ts","sourceRoot":"","sources":["../../../src/models/ExteriorApertureGridParameter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,sEAAsE;AACtE,qBAAa,6BAA8B,SAAQ,kBAAkB;IAIjE,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,iHAAiH;IACjH,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,yJAAyJ;IACzJ,aAAa,CAAC,EAAE,oBAAoB,CAAC;;IAW5B,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAWT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B;IAe1D,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IASpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
|
|
@@ -1,93 +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.ExteriorApertureGridParameter = 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
|
-
const ExteriorApertureType_1 = require("./ExteriorApertureType");
|
|
17
|
-
/** Instructions for a SensorGrid generated from exterior Aperture. */
|
|
18
|
-
class ExteriorApertureGridParameter extends _GridParameterBase_1._GridParameterBase {
|
|
19
|
-
/** Type */
|
|
20
|
-
type;
|
|
21
|
-
/** A number for how far to offset the grid from the Apertures. (Default: 0.1, suitable for Models in Meters). */
|
|
22
|
-
offset;
|
|
23
|
-
/** Text to specify the type of Aperture that will be used to generate grids. Window indicates Apertures in Walls. Skylights are in parent Roof faces. */
|
|
24
|
-
aperture_type;
|
|
25
|
-
constructor() {
|
|
26
|
-
super();
|
|
27
|
-
this.type = "ExteriorApertureGridParameter";
|
|
28
|
-
this.offset = 0.1;
|
|
29
|
-
this.aperture_type = ExteriorApertureType_1.ExteriorApertureType.All;
|
|
30
|
-
}
|
|
31
|
-
init(_data) {
|
|
32
|
-
super.init(_data);
|
|
33
|
-
if (_data) {
|
|
34
|
-
const obj = (0, class_transformer_1.plainToClass)(ExteriorApertureGridParameter, _data, { enableImplicitConversion: true });
|
|
35
|
-
this.type = obj.type;
|
|
36
|
-
this.offset = obj.offset;
|
|
37
|
-
this.aperture_type = obj.aperture_type;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
static fromJS(data) {
|
|
41
|
-
data = typeof data === 'object' ? data : {};
|
|
42
|
-
if (Array.isArray(data)) {
|
|
43
|
-
const obj = {};
|
|
44
|
-
for (var property in data) {
|
|
45
|
-
obj[property] = data[property];
|
|
46
|
-
}
|
|
47
|
-
data = obj;
|
|
48
|
-
}
|
|
49
|
-
let result = new ExteriorApertureGridParameter();
|
|
50
|
-
result.init(data);
|
|
51
|
-
return result;
|
|
52
|
-
}
|
|
53
|
-
toJSON(data) {
|
|
54
|
-
data = typeof data === 'object' ? data : {};
|
|
55
|
-
data["type"] = this.type;
|
|
56
|
-
data["offset"] = this.offset;
|
|
57
|
-
data["aperture_type"] = this.aperture_type;
|
|
58
|
-
data = super.toJSON(data);
|
|
59
|
-
return (0, class_transformer_1.instanceToPlain)(data);
|
|
60
|
-
}
|
|
61
|
-
async validate() {
|
|
62
|
-
const errors = await (0, class_validator_1.validate)(this);
|
|
63
|
-
if (errors.length > 0) {
|
|
64
|
-
const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
|
|
65
|
-
throw new Error(`Validation failed: ${errorMessages}`);
|
|
66
|
-
}
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.ExteriorApertureGridParameter = ExteriorApertureGridParameter;
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_validator_1.IsString)(),
|
|
73
|
-
(0, class_validator_1.IsOptional)(),
|
|
74
|
-
(0, class_validator_1.Matches)(/^ExteriorApertureGridParameter$/)
|
|
75
|
-
/** Type */
|
|
76
|
-
,
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], ExteriorApertureGridParameter.prototype, "type", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, class_validator_1.IsNumber)(),
|
|
81
|
-
(0, class_validator_1.IsOptional)()
|
|
82
|
-
/** A number for how far to offset the grid from the Apertures. (Default: 0.1, suitable for Models in Meters). */
|
|
83
|
-
,
|
|
84
|
-
__metadata("design:type", Number)
|
|
85
|
-
], ExteriorApertureGridParameter.prototype, "offset", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_validator_1.IsEnum)(ExteriorApertureType_1.ExteriorApertureType),
|
|
88
|
-
(0, class_transformer_1.Type)(() => String),
|
|
89
|
-
(0, class_validator_1.IsOptional)()
|
|
90
|
-
/** Text to specify the type of Aperture that will be used to generate grids. Window indicates Apertures in Walls. Skylights are in parent Roof faces. */
|
|
91
|
-
,
|
|
92
|
-
__metadata("design:type", String)
|
|
93
|
-
], ExteriorApertureGridParameter.prototype, "aperture_type", void 0);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExteriorApertureType.d.ts","sourceRoot":"","sources":["../../../src/models/ExteriorApertureType.ts"],"names":[],"mappings":"AAEA,sBAAsB;AACtB,oBAAY,oBAAoB;IAC5B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,GAAG,QAAQ;CACd"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Auto-generated
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ExteriorApertureType = void 0;
|
|
5
|
-
/** An enumeration. */
|
|
6
|
-
var ExteriorApertureType;
|
|
7
|
-
(function (ExteriorApertureType) {
|
|
8
|
-
ExteriorApertureType["Window"] = "Window";
|
|
9
|
-
ExteriorApertureType["Skylight"] = "Skylight";
|
|
10
|
-
ExteriorApertureType["All"] = "All";
|
|
11
|
-
})(ExteriorApertureType || (exports.ExteriorApertureType = ExteriorApertureType = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { _GridParameterBase } from "./_GridParameterBase";
|
|
2
|
-
import { ExteriorFaceType } from "./ExteriorFaceType";
|
|
3
|
-
/** Instructions for a SensorGrid generated from exterior Faces. */
|
|
4
|
-
export declare class ExteriorFaceGridParameter extends _GridParameterBase {
|
|
5
|
-
/** Type */
|
|
6
|
-
type?: string;
|
|
7
|
-
/** A number for how far to offset the grid from the Faces. (Default: 0.1, suitable for Models in Meters). */
|
|
8
|
-
offset?: number;
|
|
9
|
-
/** Text to specify the type of face that will be used to generate grids. Note that only Faces with Outdoors boundary conditions will be used, meaning that most Floors will typically be excluded unless they represent the underside of a cantilever. */
|
|
10
|
-
face_type?: ExteriorFaceType;
|
|
11
|
-
/** A boolean to note whether the punched_geometry of the faces should be used (True) with the areas of sub-faces removed from the grid or the full geometry should be used (False). */
|
|
12
|
-
punched_geometry?: boolean;
|
|
13
|
-
constructor();
|
|
14
|
-
init(_data?: any): void;
|
|
15
|
-
static fromJS(data: any): ExteriorFaceGridParameter;
|
|
16
|
-
toJSON(data?: any): Record<string, any>;
|
|
17
|
-
validate(): Promise<boolean>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=ExteriorFaceGridParameter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExteriorFaceGridParameter.d.ts","sourceRoot":"","sources":["../../../src/models/ExteriorFaceGridParameter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,mEAAmE;AACnE,qBAAa,yBAA0B,SAAQ,kBAAkB;IAI7D,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,6GAA6G;IAC7G,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,0PAA0P;IAC1P,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAI7B,uLAAuL;IACvL,gBAAgB,CAAC,EAAE,OAAO,CAAC;;IAYlB,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAYT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB;IAetD,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAUpB,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.ExteriorFaceGridParameter = 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
|
-
const ExteriorFaceType_1 = require("./ExteriorFaceType");
|
|
17
|
-
/** Instructions for a SensorGrid generated from exterior Faces. */
|
|
18
|
-
class ExteriorFaceGridParameter extends _GridParameterBase_1._GridParameterBase {
|
|
19
|
-
/** Type */
|
|
20
|
-
type;
|
|
21
|
-
/** A number for how far to offset the grid from the Faces. (Default: 0.1, suitable for Models in Meters). */
|
|
22
|
-
offset;
|
|
23
|
-
/** Text to specify the type of face that will be used to generate grids. Note that only Faces with Outdoors boundary conditions will be used, meaning that most Floors will typically be excluded unless they represent the underside of a cantilever. */
|
|
24
|
-
face_type;
|
|
25
|
-
/** A boolean to note whether the punched_geometry of the faces should be used (True) with the areas of sub-faces removed from the grid or the full geometry should be used (False). */
|
|
26
|
-
punched_geometry;
|
|
27
|
-
constructor() {
|
|
28
|
-
super();
|
|
29
|
-
this.type = "ExteriorFaceGridParameter";
|
|
30
|
-
this.offset = 0.1;
|
|
31
|
-
this.face_type = ExteriorFaceType_1.ExteriorFaceType.Wall;
|
|
32
|
-
this.punched_geometry = false;
|
|
33
|
-
}
|
|
34
|
-
init(_data) {
|
|
35
|
-
super.init(_data);
|
|
36
|
-
if (_data) {
|
|
37
|
-
const obj = (0, class_transformer_1.plainToClass)(ExteriorFaceGridParameter, _data, { enableImplicitConversion: true });
|
|
38
|
-
this.type = obj.type;
|
|
39
|
-
this.offset = obj.offset;
|
|
40
|
-
this.face_type = obj.face_type;
|
|
41
|
-
this.punched_geometry = obj.punched_geometry;
|
|
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 ExteriorFaceGridParameter();
|
|
54
|
-
result.init(data);
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
toJSON(data) {
|
|
58
|
-
data = typeof data === 'object' ? data : {};
|
|
59
|
-
data["type"] = this.type;
|
|
60
|
-
data["offset"] = this.offset;
|
|
61
|
-
data["face_type"] = this.face_type;
|
|
62
|
-
data["punched_geometry"] = this.punched_geometry;
|
|
63
|
-
data = super.toJSON(data);
|
|
64
|
-
return (0, class_transformer_1.instanceToPlain)(data);
|
|
65
|
-
}
|
|
66
|
-
async validate() {
|
|
67
|
-
const errors = await (0, class_validator_1.validate)(this);
|
|
68
|
-
if (errors.length > 0) {
|
|
69
|
-
const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
|
|
70
|
-
throw new Error(`Validation failed: ${errorMessages}`);
|
|
71
|
-
}
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
exports.ExteriorFaceGridParameter = ExteriorFaceGridParameter;
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, class_validator_1.IsString)(),
|
|
78
|
-
(0, class_validator_1.IsOptional)(),
|
|
79
|
-
(0, class_validator_1.Matches)(/^ExteriorFaceGridParameter$/)
|
|
80
|
-
/** Type */
|
|
81
|
-
,
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], ExteriorFaceGridParameter.prototype, "type", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, class_validator_1.IsNumber)(),
|
|
86
|
-
(0, class_validator_1.IsOptional)()
|
|
87
|
-
/** A number for how far to offset the grid from the Faces. (Default: 0.1, suitable for Models in Meters). */
|
|
88
|
-
,
|
|
89
|
-
__metadata("design:type", Number)
|
|
90
|
-
], ExteriorFaceGridParameter.prototype, "offset", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, class_validator_1.IsEnum)(ExteriorFaceType_1.ExteriorFaceType),
|
|
93
|
-
(0, class_transformer_1.Type)(() => String),
|
|
94
|
-
(0, class_validator_1.IsOptional)()
|
|
95
|
-
/** Text to specify the type of face that will be used to generate grids. Note that only Faces with Outdoors boundary conditions will be used, meaning that most Floors will typically be excluded unless they represent the underside of a cantilever. */
|
|
96
|
-
,
|
|
97
|
-
__metadata("design:type", String)
|
|
98
|
-
], ExteriorFaceGridParameter.prototype, "face_type", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, class_validator_1.IsBoolean)(),
|
|
101
|
-
(0, class_validator_1.IsOptional)()
|
|
102
|
-
/** A boolean to note whether the punched_geometry of the faces should be used (True) with the areas of sub-faces removed from the grid or the full geometry should be used (False). */
|
|
103
|
-
,
|
|
104
|
-
__metadata("design:type", Boolean)
|
|
105
|
-
], ExteriorFaceGridParameter.prototype, "punched_geometry", void 0);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExteriorFaceType.d.ts","sourceRoot":"","sources":["../../../src/models/ExteriorFaceType.ts"],"names":[],"mappings":"AAEA,sBAAsB;AACtB,oBAAY,gBAAgB;IACxB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;CACd"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Auto-generated
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ExteriorFaceType = void 0;
|
|
5
|
-
/** An enumeration. */
|
|
6
|
-
var ExteriorFaceType;
|
|
7
|
-
(function (ExteriorFaceType) {
|
|
8
|
-
ExteriorFaceType["Wall"] = "Wall";
|
|
9
|
-
ExteriorFaceType["Roof"] = "Roof";
|
|
10
|
-
ExteriorFaceType["Floor"] = "Floor";
|
|
11
|
-
ExteriorFaceType["All"] = "All";
|
|
12
|
-
})(ExteriorFaceType || (exports.ExteriorFaceType = ExteriorFaceType = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { _OpenAPIGenBaseModel } from "./_OpenAPIGenBaseModel";
|
|
2
|
-
/** Extruded borders over all windows in the wall. */
|
|
3
|
-
export declare class ExtrudedBorder extends _OpenAPIGenBaseModel {
|
|
4
|
-
/** A number for the depth of the border. */
|
|
5
|
-
depth: number;
|
|
6
|
-
/** Type */
|
|
7
|
-
type?: string;
|
|
8
|
-
constructor();
|
|
9
|
-
init(_data?: any): void;
|
|
10
|
-
static fromJS(data: any): ExtrudedBorder;
|
|
11
|
-
toJSON(data?: any): Record<string, any>;
|
|
12
|
-
validate(): Promise<boolean>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=ExtrudedBorder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExtrudedBorder.d.ts","sourceRoot":"","sources":["../../../src/models/ExtrudedBorder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,qDAAqD;AACrD,qBAAa,cAAe,SAAQ,oBAAoB;IAGpD,4CAA4C;IAC5C,KAAK,EAAG,MAAM,CAAC;IAKf,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;;IASL,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAUT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc;IAe3C,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IAQpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
|
|
@@ -1,78 +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.ExtrudedBorder = 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
|
-
/** Extruded borders over all windows in the wall. */
|
|
17
|
-
class ExtrudedBorder extends _OpenAPIGenBaseModel_1._OpenAPIGenBaseModel {
|
|
18
|
-
/** A number for the depth of the border. */
|
|
19
|
-
depth;
|
|
20
|
-
/** Type */
|
|
21
|
-
type;
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
this.type = "ExtrudedBorder";
|
|
25
|
-
}
|
|
26
|
-
init(_data) {
|
|
27
|
-
super.init(_data);
|
|
28
|
-
if (_data) {
|
|
29
|
-
const obj = (0, class_transformer_1.plainToClass)(ExtrudedBorder, _data, { enableImplicitConversion: true });
|
|
30
|
-
this.depth = obj.depth;
|
|
31
|
-
this.type = obj.type;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
static fromJS(data) {
|
|
35
|
-
data = typeof data === 'object' ? data : {};
|
|
36
|
-
if (Array.isArray(data)) {
|
|
37
|
-
const obj = {};
|
|
38
|
-
for (var property in data) {
|
|
39
|
-
obj[property] = data[property];
|
|
40
|
-
}
|
|
41
|
-
data = obj;
|
|
42
|
-
}
|
|
43
|
-
let result = new ExtrudedBorder();
|
|
44
|
-
result.init(data);
|
|
45
|
-
return result;
|
|
46
|
-
}
|
|
47
|
-
toJSON(data) {
|
|
48
|
-
data = typeof data === 'object' ? data : {};
|
|
49
|
-
data["depth"] = this.depth;
|
|
50
|
-
data["type"] = this.type;
|
|
51
|
-
data = super.toJSON(data);
|
|
52
|
-
return (0, class_transformer_1.instanceToPlain)(data);
|
|
53
|
-
}
|
|
54
|
-
async validate() {
|
|
55
|
-
const errors = await (0, class_validator_1.validate)(this);
|
|
56
|
-
if (errors.length > 0) {
|
|
57
|
-
const errorMessages = errors.map((error) => Object.values(error.constraints || [error]).join(', ')).join('; ');
|
|
58
|
-
throw new Error(`Validation failed: ${errorMessages}`);
|
|
59
|
-
}
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.ExtrudedBorder = ExtrudedBorder;
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_validator_1.IsNumber)(),
|
|
66
|
-
(0, class_validator_1.IsDefined)()
|
|
67
|
-
/** A number for the depth of the border. */
|
|
68
|
-
,
|
|
69
|
-
__metadata("design:type", Number)
|
|
70
|
-
], ExtrudedBorder.prototype, "depth", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_validator_1.IsString)(),
|
|
73
|
-
(0, class_validator_1.IsOptional)(),
|
|
74
|
-
(0, class_validator_1.Matches)(/^ExtrudedBorder$/)
|
|
75
|
-
/** Type */
|
|
76
|
-
,
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], ExtrudedBorder.prototype, "type", void 0);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { _OpenAPIGenBaseModel } from "./_OpenAPIGenBaseModel";
|
|
2
|
-
import { Autocalculate } from "honeybee-schema";
|
|
3
|
-
/** Gridded skylights defined by an absolute area. */
|
|
4
|
-
export declare class GriddedSkylightArea extends _OpenAPIGenBaseModel {
|
|
5
|
-
/** A number for the skylight area in current model units. If this area is larger than the area of the roof that it is applied to, the skylight will fill the parent roof at a 99 percent ratio. */
|
|
6
|
-
skylight_area: number;
|
|
7
|
-
/** Type */
|
|
8
|
-
type?: string;
|
|
9
|
-
/** A number for the spacing between the centers of each grid cell. This should be less than a third of the dimension of the Roof geometry if multiple, evenly-spaced skylights are desired. If Autocalculate, a spacing of one third the smaller dimension of the parent Roof will be automatically assumed. */
|
|
10
|
-
spacing?: (Autocalculate | number);
|
|
11
|
-
constructor();
|
|
12
|
-
init(_data?: any): void;
|
|
13
|
-
static fromJS(data: any): GriddedSkylightArea;
|
|
14
|
-
toJSON(data?: any): Record<string, any>;
|
|
15
|
-
validate(): Promise<boolean>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=GriddedSkylightArea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GriddedSkylightArea.d.ts","sourceRoot":"","sources":["../../../src/models/GriddedSkylightArea.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qDAAqD;AACrD,qBAAa,mBAAoB,SAAQ,oBAAoB;IAGzD,mMAAmM;IACnM,aAAa,EAAG,MAAM,CAAC;IAKvB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,gTAAgT;IAChT,OAAO,CAAC,EAAE,CAAC,aAAa,GAAG,MAAM,CAAC,CAAC;;IAU1B,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG;WAWT,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB;IAehD,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG;IASpB,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAQlC"}
|