UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 1.55 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{_ as s}from"../../../chunks/tslib.es6.js";import{clone as r}from"../../../core/lang.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import{enumeration as o}from"../../../core/accessorSupport/decorators/enumeration.js";import{subclass as e}from"../../../core/accessorSupport/decorators/subclass.js";import i from"./BaseFunctionArguments.js";import{statisticsTypeMap as a}from"./focalStatUtils.js";var c;let p=c=class extends i{constructor(){super(...arguments),this.rows=3,this.cols=3,this.fillNoDataOnly=!1,this.statisticsType="min"}clone(){return new c({rows:this.rows,cols:this.cols,fillNoDataOnly:this.fillNoDataOnly,statisticsType:this.statisticsType,raster:r(this.raster)})}};s([t({json:{write:!0,read:{source:["kernelRows","rows"],reader:(s,r)=>Number(s??r?.kernelRows??3)}}})],p.prototype,"rows",void 0),s([t({json:{write:!0,read:{source:["kernelCols","cols"],reader:(s,r)=>Number(s??r?.kernelCols??3)}}})],p.prototype,"cols",void 0),s([t({json:{write:!0}})],p.prototype,"fillNoDataOnly",void 0),s([t({json:{read:{source:["statisticsType","type"],reader:(s,r)=>a.fromJSON(r?.statisticsType??r?.type)??"min"},write:{target:"type"}}}),o(a)],p.prototype,"statisticsType",void 0),p=c=s([e("esri.layers.support.rasterFunctions.StatisticsFunctionArguments")],p);const l=p;export{l as default};