UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.38 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 e}from"../../chunks/tslib.es6.js";import r from"../../core/JSONSupport.js";import{property as o}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{reader as t}from"../../core/accessorSupport/decorators/reader.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import p from"../../geometry/Point.js";import{fromJSON as a}from"../../geometry/support/jsonUtils.js";import{geometryTypes as n}from"../../geometry/support/typeUtils.js";let m=class extends r{constructor(){super(...arguments),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,r){return e.spatialReference||(e={...e,spatialReference:r.Shape.spatialReference}),p.fromJSON(e)}};e([o({types:n,json:{name:"Shape",read:a,write:!0}})],m.prototype,"geometry",void 0),e([o({json:{name:"Length",write:!0}})],m.prototype,"length",void 0),e([o({json:{name:"Area",write:!0}})],m.prototype,"area",void 0),e([o({type:p,json:{name:"Center",write:!0}})],m.prototype,"center",void 0),e([t("center")],m.prototype,"readCenter",null),m=e([s("esri.rest.support.MeasureAreaFromImageResult")],m);const i=m;export{i as default};