UNPKG

isoxml

Version:

JavaScript library to parse and generate ISOXML (ISO11783-10) files

24 lines (23 loc) 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExtendedTreatmentZone = void 0; const baseEntities_1 = require("../baseEntities"); const constants_1 = require("../baseEntities/constants"); const classRegistry_1 = require("../classRegistry"); const Polygon_1 = require("./Polygon"); class ExtendedTreatmentZone extends baseEntities_1.TreatmentZone { constructor(attributes, isoxmlManager) { super(attributes, isoxmlManager); this.tag = constants_1.TAGS.TreatmentZone; } static fromXML(xml, isoxmlManager, internalId) { return baseEntities_1.TreatmentZone.fromXML(xml, isoxmlManager, internalId, ExtendedTreatmentZone); } toXML() { this.attributes.PolygonTreatmentZoneonly = Polygon_1.ExtendedPolygon.normalizePolygons(this.attributes.PolygonTreatmentZoneonly); return super.toXML(); } } exports.ExtendedTreatmentZone = ExtendedTreatmentZone; (0, classRegistry_1.registerEntityClass)('main', constants_1.TAGS.TreatmentZone, ExtendedTreatmentZone);