/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import e from"./Analysis.js";import{equalsMaybe as i}from"../core/maybe.js";import{measurementLengthUnits as o}from"../core/units.js";import{property as r,subclass as n}from"../core/accessorSupport/decorators.js";import s from"../geometry/Point.js";let l=class extends e{constructor(t){super(t),this.type="direct-line-measurement",this.startPoint=null,this.endPoint=null,this.unit=null}get valid(){return null!=this.startPoint&&null!=this.endPoint}clear(){this.startPoint=null,this.endPoint=null}equals(t){return this===t||super.equals(t)&&this.unit===t.unit&&i(this.startPoint,t.startPoint)&&i(this.endPoint,t.endPoint)}};t([r({type:["direct-line-measurement"]})],l.prototype,"type",void 0),t([r({type:s})],l.prototype,"startPoint",void 0),t([r({type:s})],l.prototype,"endPoint",void 0),t([r({type:o,value:null})],l.prototype,"unit",void 0),t([r({readOnly:!0})],l.prototype,"valid",null),l=t([n("esri.analysis.DirectLineMeasurementAnalysis")],l);const p=l;export{p as default};
