/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{applyParentTransform as t}from"../../../../../../../symbols/cim/utils.js";const s=96;class i{constructor(i){const{offsetX:o,offsetY:e,postAngle:f,fontSize:h,haloSize:n,outlineSize:l,scaleFactor:z,transforms:a}=i;if(this.offsetX=o,this.offsetY=e,this.postAngle=f,this.fontSize=Math.min(h,s),this.haloSize=n??0,this.outlineSize=l??0,this.transforms=a,a&&a.infos.length>1){const i=t(h,f,!1,o,e,a,!1);this.fontSize=Math.min(i.size,s);const n=i.size/h;this.haloSize*=n,this.outlineSize*=n,this.postAngle=i.rotation,this.offsetX=i.offsetX,this.offsetY=i.offsetY}z&&(this.fontSize*=z,this.offsetX*=z,this.offsetY*=z)}}export{i as TextMeshTransformProps};
