UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.05 kB
import{_ as t}from"../chunks/tslib.es6.js";import{toPt as e}from"../core/screenUtils.js";import{property as s}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import"../core/arrayUtils.js";import{subclass as r}from"../core/accessorSupport/decorators/subclass.js";import o from"./Symbol.js";let p=class extends o{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}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",void 0),t([s({type:Number,cast:e,json:{write:!0}})],p.prototype,"yoffset",void 0),t([s({type:Number,cast:t=>"auto"===t?t:e(t),json:{write:!0}})],p.prototype,"size",void 0),p=t([r("esri.symbols.DOEMarkerSymbol")],p);const i=p;export{i as default};