/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as t}from"tslib";import{toPt as e}from"../core/screenUtils.js";import{property as s,subclass as r}from"../core/accessorSupport/decorators.js";import{ensureNumber as o}from"../core/accessorSupport/ensureType.js";import i from"./Symbol.js";let p=class extends i{constructor(t){super(t),this.angle=0,this.type=null}get xoffset(){return this._get("xoffset")??0}set xoffset(t){this._set("xoffset",t)}get yoffset(){return this._get("yoffset")??0}set yoffset(t){this._set("yoffset",t)}get size(){return this._get("size")??9}set size(t){this._set("size",t)}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};t([s({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],p.prototype,"angle",void 0),t([s({type:["simple-marker","picture-marker"],readOnly:!0})],p.prototype,"type",void 0),t([s({type:Number,cast:e,json:{write:!0}})],p.prototype,"xoffset",null),t([s({type:Number,cast:e,json:{write:!0}})],p.prototype,"yoffset",null),t([s({cast:t=>"auto"===t?t:o(e(t)),json:{write:!0}})],p.prototype,"size",null),p=t([r("esri.symbols.MarkerSymbol")],p);export{p as default};
