/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as i}from"tslib";import t from"../../../../core/Accessor.js";import{mapCollection as o}from"../../../../core/mapCollectionUtils.js";import{property as e,subclass as s}from"../../../../core/accessorSupport/decorators.js";import{ElevationProfileGeometryVisualization3D as a}from"./ElevationProfileGeometryVisualization3D.js";import{ElevationProfileLineVisualization3D as r}from"./ElevationProfileLineVisualization3D.js";let l=class extends t{constructor(i){super(i)}initialize(){const{view:i,analysisViewData:t}=this;this._geometryVisualization=new a({view:i,analysisViewData:t}),this._lineVisualizations=o(()=>t.analysis.profiles,o=>new r({view:i,analysisViewData:t,line:o}))}destroy(){this._geometryVisualization.destroy(),this._lineVisualizations.destroy()}get updating(){return this._geometryVisualization.updating||this._lineVisualizations.some(i=>i.updating)}};i([e()],l.prototype,"view",void 0),i([e()],l.prototype,"analysisViewData",void 0),i([e()],l.prototype,"updating",null),l=i([s("esri.views.3d.analysis.ElevationProfile.ElevationProfileVisualization3D")],l);export{l as ElevationProfileVisualization3D};
