UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.44 kB
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 o}from"../../../../core/accessorSupport/decorators/subclass.js";import{CONTENT as s}from"../css.js";import{TooltipContent as r}from"./TooltipContent.js";import{TooltipContentWithHelpMessage as i}from"../support/TooltipContentWithHelpMessage.js";import{TooltipField as a}from"../support/TooltipField.js";import"../../../../widgets/support/widgetUtils.js";import{tsx as p}from"../../../../widgets/support/jsxFactory.js";const l={base:`${s} ${`${s}--translate-vertex`}`};let n=class extends r{render(){const{area:t,distance:o,elevation:s,totalLength:r,tooltipOptions:n}=this.info,{visibleElements:m}=n,c=this._messagesTooltip.sketch;return p(i,{className:l.base,helpMessage:this._getHelpMessage()},m.distance&&p(a,{title:c.distance,value:this._formatRelativeLength(o)}),m.elevation&&e(s)&&p(a,{title:c.elevation,value:this._formatVerticalLength(s)}),m.area&&e(t)&&p(a,{title:c.area,value:this._formatArea(t)}),m.totalLength&&e(r)&&p(a,{title:c.totalLength,value:this._formatLength(r)}))}};n=t([o("esri.views.interactive.tooltip.content.TooltipContentTranslateVertexXY")],n);export{n as TooltipContentTranslateVertexXY};