@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.26 kB
JavaScript
/*
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"../../../../core/Logger.js";import"../../../../core/has.js";import"../../../../core/RandomLCG.js";import"../../../../core/Error.js";import{subclass as e}from"../../../../core/accessorSupport/decorators/subclass.js";import{TooltipField as o}from"../components/TooltipField.js";import{TooltipContent as l}from"./TooltipContent.js";import"../../../../widgets/support/widgetUtils.js";import{tsx as s,tsxFragment as r}from"../../../../widgets/support/jsxFactory.js";let i=class extends l{_renderContent(){const{distance:t,elevation:e,area:l,totalLength:i,visibleElements:n}=this.info,a=this._messagesTooltip.sketch,c=this._formatters;return s(r,null,n.distance?s(o,{title:a.distance,value:c.length(t)}):null,n.elevation&&null!=e?.actual?s(o,{title:a.elevation,value:c.verticalLength(e.actual)}):null,n.area&&null!=l?s(o,{title:a.area,value:c.area(l)}):null,n.totalLength&&null!=i?s(o,{title:a.totalLength,value:c.length(i)}):null)}};i=t([e("esri.views.interactive.tooltip.content.TooltipContentTranslateVertex")],i);export{i as TooltipContentTranslateVertex};