// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol3DLayer ./support/materialUtils ./support/Symbol3DHalo ./support/Symbol3DMaterial ./support/Symbol3DTextBackground ./support/textUtils".split(" "),function(c,f,d,b,y,t,u,v,m,w,x,n,p,q,k){var g;b=g=class extends w{constructor(a){super(a);this._userSize= void 0;this.halo=null;this.horizontalAlignment="center";this.lineHeight=1;this.text=this.background=this.material=null;this.type="text";this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(a){null!=a&&null!=this._userSize&&(a.size=this._userSize);this._set("font",a)}writeFont(a,h,r,e){h.font=a.write({},{...e,textSymbol3D:!0});delete h.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font?.size?this.font.size:9}set size(a){this._userSize=a; null!=this.font&&(this.font.size=this._userSize);this.notifyChange("size")}clone(){const a=new g({enabled:this.enabled,font:this.font&&f.clone(this.font),halo:this.halo&&f.clone(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:f.clone(this.background)});a._userSize=this._userSize;return a}static fromTextSymbol(a){var h=g,r=null!=a.font?a.font.clone(): new m;var e=a.haloColor;var l=a.haloSize;e=e&&null!=l&&0