/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../chunks/vec2f64","../../webgl-engine/lib/TextRenderer"],(function(t,e,r){"use strict";const o={left:0,center:.5,right:1},n={"bottom-left":e.fromValues(0,0),bottom:e.fromValues(.5,0),"bottom-right":e.fromValues(1,0),left:e.fromValues(0,.5),center:e.fromValues(.5,.5),right:e.fromValues(1,.5),"top-left":e.fromValues(0,1),top:e.fromValues(.5,1),"top-right":e.fromValues(1,1)};function c(t){switch(t){case"left":return r.TextRenderAlignment.Left;case"right":return r.TextRenderAlignment.Right;default:return r.TextRenderAlignment.Center}}function a(t){switch(t){case"bottom-left":case"left":case"top-left":return"left";case"bottom":case"center":case"top":return"center";case"bottom-right":case"right":case"top-right":return"right"}}function l(t){switch(t){case"bottom-left":case"bottom":case"bottom-right":return"bottom";case"left":case"center":case"right":return"center";case"top-left":case"top":case"top-right":return"top"}}function i(t,e){switch(e){case"bottom":return"left"===t?"bottom-left":"right"===t?"bottom-right":"bottom";case"center":return t;case"top":return"left"===t?"top-left":"right"===t?"top-right":"top"}}function s(t){return"middle"===t?"center":t}t.anchorFromPlacements=i,t.horizontalPlacementFromAnchor=a,t.horizontalPlacementToAnchorX=o,t.namedAnchorToHUDMaterialAnchorPos=n,t.textRenderAlignmentFromHorizontalPlacement=c,t.verticalPlacementFromAlignment=s,t.verticalPlacementFromAnchor=l,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
