/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import t from"../Color.js";import{Clonable as o}from"../core/Clonable.js";import{JSONSupportMixin as r}from"../core/JSONSupport.js";import{toPt as i,px2pt as s}from"../core/screenUtils.js";import{property as l,subclass as n}from"../core/accessorSupport/decorators.js";import{Integer as p}from"../core/accessorSupport/ensureType.js";let u=class extends(r(o)){constructor(e){super(e),this.type="simple",this.color=new t("black"),this.textColor=new t("black"),this.textBackgroundColor=new t([255,255,255,.6])}get lineSize(){return this._get("lineSize")??2}set lineSize(e){this._set("lineSize",e)}get fontSize(){return this._get("fontSize")??10}set fontSize(e){this._set("fontSize",e)}equals(e){return this===e||this.color.equals(e.color)&&this.lineSize===e.lineSize&&this.fontSize===e.fontSize&&this.textColor.equals(e.textColor)&&this.textBackgroundColor.equals(e.textBackgroundColor)}};e([l({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),e([l({type:t,nonNullable:!0,json:{type:[p],write:{isRequired:!0}}})],u.prototype,"color",void 0),e([l({type:Number,cast:i,nonNullable:!0,range:{min:s(1)},json:{write:{isRequired:!0}}})],u.prototype,"lineSize",null),e([l({type:Number,cast:i,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"fontSize",null),e([l({type:t,nonNullable:!0,json:{type:[p],write:{isRequired:!0}}})],u.prototype,"textColor",void 0),e([l({type:t,nonNullable:!0,json:{type:[p],write:{isRequired:!0}}})],u.prototype,"textBackgroundColor",void 0),u=e([n("esri.analysis.DimensionSimpleStyle")],u);export{u as default};
