/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{JSONSupport as o}from"../../../core/JSONSupport.js";import{lerp as i}from"../../../core/mathUtils.js";import{property as r,subclass as e}from"../../../core/accessorSupport/decorators.js";import{enumeration as p}from"../../../core/accessorSupport/decorators/enumeration.js";var s;let a=class extends o{static{s=this}constructor(t){super(t),this.type="rainy",this.cloudCover=.5,this.precipitation=.5}clone(){return new s({cloudCover:this.cloudCover,precipitation:this.precipitation})}get fogOpacity(){return i(s.minFogOpacity,s.maxFogOpacity,this.precipitation**3)}static{this.minFogOpacity=4e-6}static{this.maxFogOpacity=2e-4}};t([p({rainy:"rainy"}),r({json:{write:{isRequired:!0}}})],a.prototype,"type",void 0),t([r({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],a.prototype,"cloudCover",void 0),t([r({type:Number,nonNullable:!0,range:{min:0,max:1},json:{write:!0}})],a.prototype,"precipitation",void 0),a=s=t([e("esri.views.3d.environment.RainyWeather")],a);const n=a;export{n as default};
