UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 1.09 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as r}from"tslib";import{ClonableMixin as o}from"../../core/Clonable.js";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as e,subclass as s}from"../../core/accessorSupport/decorators.js";import{getJsonType as p}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as i}from"../../geometry/support/jsonUtils.js";import{geometryTypes as m}from"../../geometry/support/typeUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";let y=class extends(o(t)){constructor(r){super(r),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(r,o,t){null!=r&&(o.geometryType=p(r),o[t]=JSON.stringify(r))}};r([e({types:m,json:{read:i,write:!0}})],y.prototype,"geometry",void 0),r([l("geometry")],y.prototype,"writeGeometry",null),r([e({json:{write:!0}})],y.prototype,"rasterId",void 0),r([e({json:{name:"options.VisibleOnly",write:!0}})],y.prototype,"visibleOnly",void 0),y=r([s("esri.rest.support.MapToImageParameters")],y);export{y as default};