jalhyd
Version:
JaLHyd, a Javascript Library for Hydraulics
32 lines • 1.53 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParamsSectionTrapez = void 0;
const internal_modules_1 = require("../../internal_modules");
const internal_modules_2 = require("../../internal_modules");
const internal_modules_3 = require("../../internal_modules");
class ParamsSectionTrapez extends internal_modules_3.ParamsSection {
constructor(rLargeurFond, rFruit, rY, rKs, rQ, rIf, rYB, nullParams = false) {
// set LargeurBerge to default value so that it is not undefined when changing section type
super(rY, 2.5, rKs, rQ, rIf, rYB, nullParams);
this._LargeurFond = new internal_modules_1.ParamDefinition(this, "LargeurFond", internal_modules_2.ParamDomainValue.POS_NULL, "m", rLargeurFond, internal_modules_1.ParamFamily.WIDTHS, undefined, nullParams);
this._Fruit = new internal_modules_1.ParamDefinition(this, "Fruit", internal_modules_2.ParamDomainValue.POS_NULL, "m/m", rFruit, undefined, undefined, nullParams);
this.addParamDefinition(this._LargeurFond);
this.addParamDefinition(this._Fruit);
// hide params
this.LargeurBerge.visible = false; // or else something might get linked to it although it is undefined
}
/**
* Largeur au fond
*/
get LargeurFond() {
return this._LargeurFond;
}
/**
* Fruit des berges
*/
get Fruit() {
return this._Fruit;
}
}
exports.ParamsSectionTrapez = ParamsSectionTrapez;
//# sourceMappingURL=section_trapez_params.js.map