UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.56 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 o}from"../../chunks/tslib.es6.js";import e from"../../core/Clonable.js";import t from"../../core/JSONSupport.js";import{property as r}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 i from"../../geometry/SpatialReference.js";import{getJsonType as m,fromJSON as a}from"../../geometry/support/jsonUtils.js";import{geometryTypes as n}from"../../geometry/support/typeUtils.js";let c=class extends(e.ClonableMixin(t)){constructor(){super(...arguments),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(o,e,t){null!=o&&(e.geometryType=m(o),e[t]={...o.toJSON(),spatialReference:void 0})}};o([r({types:n,json:{read:a,write:!0}})],c.prototype,"geometry",void 0),o([p("geometry")],c.prototype,"writeGeometry",null),o([r({json:{write:!0}})],c.prototype,"rasterId",void 0),o([r({type:i,json:{name:"outSR",write:!0}})],c.prototype,"outSpatialReference",void 0),o([r({json:{name:"options.DOff",write:!0}})],c.prototype,"depthOffset",void 0),o([r({json:{name:"options.Adjust",write:!0}})],c.prototype,"adjust",void 0),c=o([s("esri.rest.support.ImageToMapParameters")],c);const l=c;export{l as default};