/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as t}from"tslib";import e from"../../../core/Accessor.js";import{watch as o,sync as r}from"../../../core/reactiveUtils.js";import{property as s,subclass as i}from"../../../core/accessorSupport/decorators.js";import{getConfig as l}from"./constants.js";import n from"./ElevationProfileResult.js";let p=class extends e{constructor(t){super(t),this.result=new n({computation:this}),this.numSamplesForPreview=30,this.numSamplesPerChunk=200}initialize(){this.addHandles([o(()=>{const{geometry:t,elevationInfo:e}=this.controller.analysis;return[t,e]},()=>this.onInvalidate(this),r)])}setResult(t){this.result.rawResult=t}clearResult(){this.setResult(null)}get progress(){return this.result.progress}get hoveredPoint(){return this.result.hoveredPoint}get available(){return!0}get minDemResolution(){return l().defaultDemResolution}};t([s({constructOnly:!0})],p.prototype,"controller",void 0),t([s({constructOnly:!0})],p.prototype,"profile",void 0),t([s({constructOnly:!0})],p.prototype,"onInvalidate",void 0),t([s()],p.prototype,"result",void 0),t([s({readOnly:!0})],p.prototype,"progress",null),t([s()],p.prototype,"hoveredPoint",null),t([s()],p.prototype,"available",null),t([s()],p.prototype,"numSamplesForPreview",void 0),t([s()],p.prototype,"numSamplesPerChunk",void 0),t([s({readOnly:!0})],p.prototype,"minDemResolution",null),p=t([i("esri.views.analysis.ElevationProfile.ElevationProfileLineComputation")],p);export{p as ElevationProfileLineComputation};
