UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 1.22 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as e}from"../chunks/tslib.es6.js";import{toPt as t}from"../core/screenUtils.js";import{property as o}from"../core/accessorSupport/decorators/property.js";import{ensureNumber as s}from"../core/accessorSupport/ensureType.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as r}from"../core/accessorSupport/decorators/subclass.js";import p from"./Symbol.js";let i=class extends p{constructor(e){super(e),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}`}};e([o({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],i.prototype,"angle",void 0),e([o({type:["simple-marker","picture-marker"],readOnly:!0})],i.prototype,"type",void 0),e([o({type:Number,cast:t,json:{write:!0}})],i.prototype,"xoffset",void 0),e([o({type:Number,cast:t,json:{write:!0}})],i.prototype,"yoffset",void 0),e([o({cast:e=>"auto"===e?e:s(t(e)),json:{write:!0}})],i.prototype,"size",void 0),i=e([r("esri.symbols.MarkerSymbol")],i);export{i as default};