// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../../chunks/tslib.es6 ../../geometry ../../core/lang ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./BaseImageMeasureParameters".split(" "),function(b,k,l,d,c,a,r,m,n,p,e){var f;a=f=class extends e.BaseImageMeasureParameters{constructor(){super(...arguments);this.type="area-perimeter";this.geometry=null;this.is3D= !1;this.linearUnit="meters";this.areaUnit="square-meters"}writeGeometry(g,h,q){null!=g&&(h.geometryType=p.getJsonType(g),h[q]=g.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new f(l.clone({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};b.__decorate([c.property({types:k.geometryTypes,json:{name:"fromGeometry",read:!0,write:!0}})], a.prototype,"geometry",void 0);b.__decorate([n.writer("geometry")],a.prototype,"writeGeometry",null);b.__decorate([c.property({type:e.measureOperationJSONMap.apiValues,json:{write:e.measureOperationJSONMap.write}})],a.prototype,"measureOperation",null);b.__decorate([c.property({json:{read:!0}})],a.prototype,"is3D",void 0);b.__decorate([c.property({type:String,json:{read:d.lengthUnitsJSONMap.read,write:d.lengthUnitsJSONMap.write}})],a.prototype,"linearUnit",void 0);b.__decorate([c.property({type:String, json:{read:d.areaUnitsJSONMap.read,write:d.areaUnitsJSONMap.write}})],a.prototype,"areaUnit",void 0);return a=f=b.__decorate([m.subclass("esri.rest.support.ImageAreaParameters")],a)});