// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./patterns/LineStylePattern3D ./patterns/StylePattern3D ./patterns/utils ./support/colors ./support/Symbol3DFillMaterial ./support/Symbol3DOutline".split(" "),function(c,d,b,v,w,l,m,n,p,q,r,t,f,g,u){var e;b=e=class extends n{constructor(a){super(a);this.type="fill"; this.pattern=this.material=null;this.castShadows=!0;this.edges=this.outline=null}clone(){const a={edges:null!=this.edges?this.edges.clone():null,enabled:this.enabled,material:null!=this.material?this.material.clone():null,pattern:null!=this.pattern?this.pattern.clone():null,castShadows:this.castShadows,outline:null!=this.outline?this.outline.clone():null};return new e(a)}static fromSimpleFillSymbol(a){const h=a.outline&&a.outline.style&&"solid"!==a.outline.style?new q({style:a.outline.style}):null, k={size:a.outline?.width??0,color:(a.outline?.color??f.white).clone(),pattern:h};h&&a.outline?.cap&&(k.patternCap=a.outline.cap);return new e({material:new g.Symbol3DFillMaterial({color:(a.color??f.transparentWhite).clone()}),pattern:a.style&&"solid"!==a.style?new r({style:a.style}):null,outline:k})}};c.__decorate([l.enumeration({Fill:"fill"},{readOnly:!0})],b.prototype,"type",void 0);c.__decorate([d.property({type:g.Symbol3DFillMaterial,json:{write:!0}})],b.prototype,"material",void 0);c.__decorate([d.property(t.symbol3dPatternProperty)], b.prototype,"pattern",void 0);c.__decorate([d.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],b.prototype,"castShadows",void 0);c.__decorate([d.property({type:u.Symbol3DOutline,json:{write:!0}})],b.prototype,"outline",void 0);c.__decorate([d.property(p.symbol3dEdgesProperty)],b.prototype,"edges",void 0);return b=e=c.__decorate([m.subclass("esri.symbols.FillSymbol3DLayer")],b)});