UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.53 kB
/* 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{property as e}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import o from"./BaseFunctionArguments.js";import{NoDataInterpretation as n}from"./pixelUtils.js";var s;let a=s=class extends o{constructor(){super(...arguments),this.includedRanges=null,this.noDataValues=null,this.noDataInterpretation=n.matchAny}get normalizedNoDataValues(){const{noDataValues:t}=this;if(!t?.length)return null;let e=!1;const r=t.map((t=>{if("number"==typeof t)return e=!0,[t];if("string"==typeof t){const r=t.trim().split(" ").filter((t=>""!==t.trim())).map((t=>Number(t)));return e=e||r.length>0,0===r.length?null:r}return null}));return e?r:null}clone(){return new s({includedRanges:this.includedRanges?.slice()??[],noDataValues:this.noDataValues?.slice()??[],noDataInterpretation:this.noDataInterpretation})}};t([e({json:{write:!0}})],a.prototype,"includedRanges",void 0),t([e({json:{write:!0}})],a.prototype,"noDataValues",void 0),t([e()],a.prototype,"normalizedNoDataValues",null),t([e({json:{write:!0}})],a.prototype,"noDataInterpretation",void 0),a=s=t([r("esri.layers.support.rasterFunctions.MaskFunctionArguments")],a);const i=a;export{i as default};