UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 978 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as e}from"tslib";import{JSONSupport as r}from"../../core/JSONSupport.js";import{property as o,subclass as t}from"../../core/accessorSupport/decorators.js";import{Integer as s}from"../../core/accessorSupport/ensureType.js";import i from"../../geometry/Point.js";import{writer as p}from"../../core/accessorSupport/decorators/writer.js";var m;let a=m=class extends r{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,r,o){r.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new m({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};e([o({type:[i],json:{write:!0}})],a.prototype,"geometries",void 0),e([p("geometries")],a.prototype,"writeGeometry",null),e([o({type:s,json:{write:!0}})],a.prototype,"rasterId",void 0),a=m=e([t("esri.rest.support.ImagePixelLocationParameters")],a);export{a as default};