/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as t}from"tslib";import{JSONSupport as e}from"../core/JSONSupport.js";import{toPt as o}from"../core/screenUtils.js";import{property as i,cast as s,subclass as r}from"../core/accessorSupport/decorators.js";import{fontDecorations as n,fontStyles as l,fontWeights as p}from"./support/textUtils.js";var a;let y=a=class extends e{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(t){this._set("size",t)}castSize(t){return o(t)}clone(){return new a({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};t([i({type:n,json:{default:"none",write:!0}})],y.prototype,"decoration",void 0),t([i({type:String,json:{write:!0}})],y.prototype,"family",void 0),t([i({type:Number,json:{write:{overridePolicy:(t,e,o)=>({enabled:!o||!o.textSymbol3D})}}})],y.prototype,"size",null),t([s("size")],y.prototype,"castSize",null),t([i({type:l,json:{default:"normal",write:!0}})],y.prototype,"style",void 0),t([i({type:p,json:{default:"normal",write:!0}})],y.prototype,"weight",void 0),y=a=t([r("esri.symbols.Font")],y);export{y as default};
