/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as o}from"tslib";import r from"../Color.js";import{JSONMap as e}from"../core/jsonMap.js";import{clone as s}from"../core/lang.js";import{property as t,subclass as i}from"../core/accessorSupport/decorators.js";import l from"./FillSymbol.js";import a from"./SimpleLineSymbol.js";import{enumeration as n}from"../core/accessorSupport/decorators/enumeration.js";var p;const c=new e({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let m=p=class extends l{constructor(...o){super(...o),this.color=new r([0,0,0,.25]),this.outline=new a,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(o,r,e){if(o&&"string"!=typeof o)return o;const s={};return o&&(s.style=o),r&&(s.outline=r),e&&(s.color=e),s}clone(){return new p({color:s(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};o([t({type:r})],m.prototype,"color",void 0),o([t()],m.prototype,"outline",void 0),o([n({esriSFS:"simple-fill"},{readOnly:!0})],m.prototype,"type",void 0),o([t({type:c.apiValues,json:{read:c.read,write:c.write}})],m.prototype,"style",void 0),m=p=o([i("esri.symbols.SimpleFillSymbol")],m);export{m as default};
