@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.59 kB
JavaScript
/*
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 o from"../Color.js";import{clone as t}from"../core/lang.js";import{property as r}from"../core/accessorSupport/decorators/property.js";import{Integer as s}from"../core/accessorSupport/ensureType.js";import{enumeration as a}from"../core/accessorSupport/decorators/enumeration.js";import{subclass as i}from"../core/accessorSupport/decorators/subclass.js";import p from"./Symbol3DLayer.js";var l;let c=class extends p{static{l=this}constructor(e){super(e),this.color=m.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new l({color:t(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};e([r({type:o,nonNullable:!0,json:{type:[s],write:(e,t,r)=>t[r]=e.toArray(o.AlphaMode.UNLESS_OPAQUE),default:()=>m.clone(),defaultEquals:e=>e.toCss(!0)===m.toCss(!0)}})],c.prototype,"color",void 0),e([a({Water:"water"},{readOnly:!0})],c.prototype,"type",void 0),e([r({type:["small","medium","large"],json:{write:!0,default:"medium"}})],c.prototype,"waterbodySize",void 0),e([r({type:Number,json:{write:!0,default:null}})],c.prototype,"waveDirection",void 0),e([r({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],c.prototype,"waveStrength",void 0),c=l=e([i("esri.symbols.WaterSymbol3DLayer")],c);const m=new o([0,119,190]);export{c as default};