UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.23 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 r}from"../../../chunks/tslib.es6.js";import{clone as s}from"../../../core/lang.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import{subclass as t}from"../../../core/accessorSupport/decorators/subclass.js";import{writer as e}from"../../../core/accessorSupport/decorators/writer.js";import p from"./BaseFunctionArguments.js";var i;let a=i=class extends p{constructor(){super(...arguments),this.rasters=[],this.processAsMultiband=!0}writeRasters(r,s){s.rasters=r.map((r=>"number"==typeof r||"string"==typeof r?r:r.toJSON()))}clone(){return new i({operation:this.operation,processAsMultiband:this.processAsMultiband,rasters:s(this.rasters)})}};r([o({json:{write:!0}})],a.prototype,"operation",void 0),r([o({json:{write:!0}})],a.prototype,"rasters",void 0),r([e("rasters")],a.prototype,"writeRasters",null),r([o({json:{write:!0}})],a.prototype,"processAsMultiband",void 0),a=i=r([t("esri.layers.support.rasterFunctions.LocalFunctionArguments")],a);const c=a;export{c as default};