@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.12 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as t}from"tslib";import{Loadable as s}from"../../../../core/Loadable.js";import{LRUCache as r}from"../../../../core/LRUCache.js";import{property as e,subclass as a}from"../../../../core/accessorSupport/decorators.js";let o=class extends s{constructor(){super(...arguments),this.type="raster-layer-adapter",this._statsCache=new r(20)}get serviceRasterInfo(){return this.rasterInfo}async updateRasterInfo(t){this.rasterInfo=await this.generateRasterInfo(t),this.rasterFunction=t?.rasterFunction}async updateRasterInfoWithEstimatedStats(t,s){const r=await this.estimateStatisticsHistograms(s);r?.statistics&&(t.statistics=r.statistics),r?.histograms&&(t.histograms=r.histograms)}};t([e()],o.prototype,"layer",void 0),t([e()],o.prototype,"serviceRasterInfo",null),t([e()],o.prototype,"rasterInfo",void 0),t([e()],o.prototype,"rasterFunction",void 0),t([e({readOnly:!0})],o.prototype,"type",void 0),t([e()],o.prototype,"version",void 0),o=t([a("esri.smartMapping.raster.support.adapters.RasterLayerAdapter")],o);const i=o;export{i as default};