// 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 ../../geometry/Point".split(" "),function(b,a,l,d,c,r,t,m,n,p,e,h){var f;a=f=class extends e.BaseImageMeasureParameters{constructor(){super(...arguments);this.type="distance-angle";this.toGeometry= this.fromGeometry=null;this.is3D=!1;this.linearUnit="meters";this.angularUnit="degrees"}writeFromGeometry(g,k,q){null!=g&&(k.geometryType=p.getJsonType(g),k[q]=g.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new f(l.clone({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};b.__decorate([c.property({type:h, json:{read:!0,write:!0}})],a.prototype,"fromGeometry",void 0);b.__decorate([n.writer("fromGeometry")],a.prototype,"writeFromGeometry",null);b.__decorate([c.property({type:h,json:{read:!0,write:!0}})],a.prototype,"toGeometry",void 0);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.angleUnitsJSONMap.read,write:d.angleUnitsJSONMap.write}})],a.prototype,"angularUnit",void 0);return a=f=b.__decorate([m.subclass("esri.rest.support.ImageDistanceParameters")],a)});