@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.39 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{_ as t}from"../../../../chunks/tslib.es6.js";import s from"../../../../core/Loadable.js";import{LRUCache as r}from"../../../../core/LRUCache.js";import{property as o}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as e}from"../../../../core/accessorSupport/decorators/subclass.js";let a=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([o()],a.prototype,"layer",void 0),t([o()],a.prototype,"serviceRasterInfo",null),t([o()],a.prototype,"rasterInfo",void 0),t([o()],a.prototype,"rasterFunction",void 0),t([o({readOnly:!0})],a.prototype,"type",void 0),t([o()],a.prototype,"version",void 0),a=t([e("esri.smartMapping.raster.support.adapters.RasterLayerAdapter")],a);const i=a;export{i as default};