UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.16 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"../../../../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{ValueByValue as r}from"../components/ValueByValue.js";import{TooltipContent as s}from"./TooltipContent.js";import"../../../../widgets/support/widgetUtils.js";import{tsx as i,tsxFragment as l}from"../../../../widgets/support/jsxFactory.js";let n=class extends s{_renderContent(){const{area:t,xSize:e,ySize:s,visibleElements:n}=this.info,a=this._messagesTooltip.sketch,p=this._formatters;return i(l,null,n.size&&null!=e&&null!=s?i(o,{title:a.size,value:i(r,{left:p.length(e),right:p.length(s)})}):null,n.area?i(o,{title:a.area,value:p.area(t)}):null)}};n=t([e("esri.views.interactive.tooltip.content.TooltipContentDrawRectangle")],n);export{n as TooltipContentDrawRectangle};