@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 2.71 kB
JavaScript
import{isNone as t}from"../../../../core/maybe.js";import{TooltipContentDrawCircle as o}from"./TooltipContentDrawCircle.js";import{TooltipContentDrawPoint as n}from"./TooltipContentDrawPoint.js";import{TooltipContentDrawPolygon as e}from"./TooltipContentDrawPolygon.js";import{TooltipContentDrawPolyline as r}from"./TooltipContentDrawPolyline.js";import{TooltipContentDrawRectangle as i}from"./TooltipContentDrawRectangle.js";import{TooltipContentExtentRotate as a}from"./TooltipContentExtentRotate.js";import{TooltipContentExtentScale as l}from"./TooltipContentExtentScale.js";import{TooltipContentReshapeEdgeOffset as p}from"./TooltipContentReshapeEdgeOffset.js";import{TooltipContentTransformAbsolute as s}from"./TooltipContentTransformAbsolute.js";import{TooltipContentTransformRotate as c}from"./TooltipContentTransformRotate.js";import{TooltipContentTransformScale as f}from"./TooltipContentTransformScale.js";import{TooltipContentTranslateGraphic as m}from"./TooltipContentTranslateGraphic.js";import{TooltipContentTranslateGraphicXY as w}from"./TooltipContentTranslateGraphicXY.js";import{TooltipContentTranslateGraphicZ as T}from"./TooltipContentTranslateGraphicZ.js";import{TooltipContentTranslateVertex as u}from"./TooltipContentTranslateVertex.js";import{TooltipContentTranslateVertexXY as j}from"./TooltipContentTranslateVertexXY.js";import{TooltipContentTranslateVertexZ as C}from"./TooltipContentTranslateVertexZ.js";function x(x,d){if(t(d))return null;const g=document.createElement("div");switch(d.type){case"draw-point":return new n({tooltip:x,info:d,container:g});case"draw-polygon":return new e({tooltip:x,info:d,container:g});case"draw-polyline":return new r({tooltip:x,info:d,container:g});case"draw-rectangle":return new i({tooltip:x,info:d,container:g});case"draw-circle":return new o({tooltip:x,info:d,container:g});case"extent-rotate":return new a({tooltip:x,info:d,container:g});case"extent-scale":return new l({tooltip:x,info:d,container:g});case"transform-absolute":return new s({tooltip:x,info:d,container:g});case"transform-rotate":return new c({tooltip:x,info:d,container:g});case"transform-scale":return new f({tooltip:x,info:d,container:g});case"translate-graphic":return new m({tooltip:x,info:d,container:g});case"translate-graphic-z":return new T({tooltip:x,info:d,container:g});case"translate-graphic-xy":return new w({tooltip:x,info:d,container:g});case"translate-vertex":return new u({tooltip:x,info:d,container:g});case"translate-vertex-z":return new C({tooltip:x,info:d,container:g});case"translate-vertex-xy":return new j({tooltip:x,info:d,container:g});case"reshape-edge-offset":return new p({tooltip:x,info:d,container:g})}}export{x as tooltipContentFactory};