12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import{_ as t}from"../chunks/tslib.es6.js";import{isSome as e}from"../core/maybe.js";import{property as o}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/accessorSupport/ensureType.js";import{enumeration as r}from"../core/accessorSupport/decorators/enumeration.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import s from"./Symbol3DLayer.js";import{symbol3dEdgesProperty as i}from"./edges/utils.js";import n from"./patterns/LineStylePattern3D.js";import p from"./patterns/StylePattern3D.js";import{symbol3dPatternProperty as a}from"./patterns/utils.js";import{white as u,transparentWhite as m}from"./support/colors.js";import{Symbol3DFillMaterial as c}from"./support/Symbol3DFillMaterial.js";import{Symbol3DOutline as y}from"./support/Symbol3DOutline.js";var d;let h=d=class extends s{constructor(t){super(t),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const t={edges:e(this.edges)?this.edges.clone():null,enabled:this.enabled,material:e(this.material)?this.material.clone():null,pattern:e(this.pattern)?this.pattern.clone():null,castShadows:this.castShadows,outline:e(this.outline)?this.outline.clone():null};return new d(t)}static fromSimpleFillSymbol(t){const e=t.outline&&t.outline.style&&"inside-frame"!==t.outline.style&&"solid"!==t.outline.style?new n({style:t.outline.style}):null,o={size:t.outline?.width??0,color:(t.outline?.color??u).clone(),pattern:e};return e&&t.outline?.cap&&(o.patternCap=t.outline.cap),new d({material:new c({color:(t.color??m).clone()}),pattern:t.style&&"solid"!==t.style?new p({style:t.style}):null,outline:o})}};t([r({Fill:"fill"},{readOnly:!0})],h.prototype,"type",void 0),t([o({type:c,json:{write:!0}})],h.prototype,"material",void 0),t([o(a)],h.prototype,"pattern",void 0),t([o({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),t([o({type:y,json:{write:!0}})],h.prototype,"outline",void 0),t([o(i)],h.prototype,"edges",void 0),h=d=t([l("esri.symbols.FillSymbol3DLayer")],h);const f=h;export{f as default};
|