@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.41 kB
JavaScript
import{_ as t}from"../../../../chunks/tslib.es6.js";import{isSome as e}from"../../../../core/maybe.js";import"../../../../core/Logger.js";import"../../../../core/accessorSupport/ensureType.js";import"../../../../core/arrayUtils.js";import"../../../../core/Error.js";import"../../../../core/has.js";import{subclass as s}from"../../../../core/accessorSupport/decorators/subclass.js";import{CONTENT as r}from"../css.js";import{TooltipContent as o}from"./TooltipContent.js";import{TooltipContentWithHelpMessage as i}from"../support/TooltipContentWithHelpMessage.js";import{TooltipField as a}from"../support/TooltipField.js";import{ValueByValue as p}from"../support/ValueByValue.js";import"../../../../widgets/support/widgetUtils.js";import{tsx as m}from"../../../../widgets/support/jsxFactory.js";const l={base:`${r} ${`${r}--draw-rectangle`}`};let c=class extends o{render(){const{area:t,radius:s,xSize:r,ySize:o,tooltipOptions:c}=this.info,{visibleElements:n}=c,u=this._messagesTooltip.sketch;return m(i,{className:l.base,helpMessage:this._getHelpMessage()},n.radius&&e(s)&&m(a,{title:u.radius,value:this._formatLength(s)}),n.size&&e(r)&&e(o)&&m(a,{title:u.size,value:m(p,{left:this._formatLength(r),right:this._formatLength(o)})}),n.area&&m(a,{title:u.area,value:this._formatArea(t)}))}};c=t([s("esri.views.interactive.tooltip.content.TooltipContentDrawCircle")],c);export{c as TooltipContentDrawCircle};