UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.29 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 o from"../../core/Clonable.js";import e from"../../core/JSONSupport.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import{writer as p}from"../../core/accessorSupport/decorators/writer.js";import{getJsonType as i,fromJSON as m}from"../../geometry/support/jsonUtils.js";import{geometryTypes as l}from"../../geometry/support/typeUtils.js";let a=class extends(o.ClonableMixin(e)){constructor(){super(...arguments),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(r,o,e){null!=r&&(o.geometryType=i(r),o[e]=JSON.stringify(r))}};r([t({types:l,json:{read:m,write:!0}})],a.prototype,"geometry",void 0),r([p("geometry")],a.prototype,"writeGeometry",null),r([t({json:{write:!0}})],a.prototype,"rasterId",void 0),r([t({json:{name:"options.VisibleOnly",write:!0}})],a.prototype,"visibleOnly",void 0),a=r([s("esri.rest.support.MapToImageParameters")],a);const c=a;export{c as default};