UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.23 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as t}from"../../../../chunks/tslib.es6.js";import{property as o}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as e}from"../../../../core/accessorSupport/decorators/subclass.js";import{makeAreaField as s,makeTotalLengthField as r}from"../fields/fields.js";import{SketchTooltipInfo as i}from"./SketchTooltipInfo.js";import{TooltipInfoWithCoordinates as l}from"./TooltipInfoWithCoordinates.js";let p=class extends(l(i)){constructor(t){super(t),this.type="selected-vertex",this.area=s(),this.totalLength=r(),this.geometryType="polyline",this.allFields.forEach((t=>{t.lockable=!1,t.setActual(null)}))}get allFields(){return[this.longitude,this.latitude,this.x,this.y,this.elevation,"polygon"===this.geometryType?this.area:this.totalLength]}};t([o()],p.prototype,"geometryType",void 0),t([o()],p.prototype,"allFields",null),p=t([e("esri.views.interactive.tooltip.infos.SelectedVertexTooltipInfo")],p);export{p as SelectedVertexTooltipInfo};