UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.35 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 s}from"../../../../core/accessorSupport/decorators/subclass.js";import{CONTENT as o}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:`${o} ${`${o}--reshape-edge-offset`}`};let m=class extends r{render(){const{area:t,distance:s,totalLength:o,tooltipOptions:r}=this.info,{visibleElements:m}=r,n=this._messagesTooltip.sketch;return p(i,{className:l.base,helpMessage:this._getHelpMessage()},m.distance&&p(a,{title:n.distance,value:this._formatRelativeLength(s)}),m.area&&e(t)&&p(a,{title:n.area,value:this._formatArea(t)}),m.totalLength&&e(o)&&p(a,{title:n.totalLength,value:this._formatLength(o)}))}};m=t([s("esri.views.interactive.tooltip.content.TooltipContentReshapeEdgeOffset")],m);export{m as TooltipContentReshapeEdgeOffset};