UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 2.45 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{JSONMap as r}from"../../core/jsonMap.js";import t from"../../core/JSONSupport.js";import{lengthUnitsJSONMap as s,areaUnitsJSONMap as o,angleUnitsJSONMap as i}from"../../core/unitUtils.js";import{property as n}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as a}from"../../core/accessorSupport/decorators/subclass.js";const u=new r({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let p=class extends t{constructor(){super(...arguments),this.value=null,this.displayValue=null,this.uncertainty=null}};e([n({type:Number,json:{read:!0,write:!0}})],p.prototype,"value",void 0),e([n({type:String,json:{read:!0,write:!0}})],p.prototype,"displayValue",void 0),e([n({type:Number,json:{read:!0,write:!0}})],p.prototype,"uncertainty",void 0),p=e([a("esri.rest.support.imageMeasureUtils.BaseImageMeasureResultValue")],p);let d=class extends p{constructor(){super(...arguments),this.unit=null}};e([n({type:String,json:{read:s.read,write:s.write}})],d.prototype,"unit",void 0),d=e([a("esri.rest.support.imageMeasureUtils.ImageMeasureResultLengthValue")],d);let l=class extends p{constructor(){super(...arguments),this.unit=null}};e([n({type:String,json:{read:o.read,write:o.write}})],l.prototype,"unit",void 0),l=e([a("esri.rest.support.imageMeasureUtils.ImageMeasureResultAreaValue")],l);let c=class extends p{constructor(){super(...arguments),this.unit=null}};e([n({type:String,json:{read:i.read,write:i.write}})],c.prototype,"unit",void 0),c=e([a("esri.rest.support.imageMeasureUtils.ImageMeasureResultAngleValue")],c);export{c as ImageMeasureResultAngleValue,l as ImageMeasureResultAreaValue,d as ImageMeasureResultLengthValue,u as measureOperationJSONMap};