/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as r}from"tslib";import o from"../Color.js";import{JSONSupport as e}from"../core/JSONSupport.js";import{clone as t}from"../core/lang.js";import{property as s,subclass as l}from"../core/accessorSupport/decorators.js";import{lineMarkerStyles as p}from"./support/lineMarkers.js";import{enumeration as i}from"../core/accessorSupport/decorators/enumeration.js";import{writer as n}from"../core/accessorSupport/decorators/writer.js";import{reader as a}from"../core/accessorSupport/decorators/reader.js";var c;let m=c=class extends e{constructor(r){super(r),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(r,o,e,t){o[e]="web-map"===t?.origin?"arrow":r}set color(r){this._set("color",r)}readColor(r){return null!=r?.[0]?[r[0],r[1],r[2],r[3]/255]:r}writeColor(r,o,e,t){"web-map"===t?.origin||(o[e]=r)}clone(){return new c({color:t(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};r([s({type:["begin","end","begin-end"],json:{write:!0}})],m.prototype,"placement",void 0),r([i({"line-marker":"line-marker"},{readOnly:!0}),s({json:{origins:{"web-map":{write:!1}}}})],m.prototype,"type",void 0),r([s({type:p})],m.prototype,"style",void 0),r([n("style")],m.prototype,"writeStyle",null),r([s({type:o,value:null,json:{write:{allowNull:!0}}})],m.prototype,"color",null),r([a("color")],m.prototype,"readColor",null),r([n("color")],m.prototype,"writeColor",null),m=c=r([l("esri.symbols.LineSymbolMarker")],m);const y=m;export{y as default};
