/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{JSONSupport as r}from"../core/JSONSupport.js";import{clone as t}from"../core/lang.js";import{property as o,subclass as i}from"../core/accessorSupport/decorators.js";import{fromJSON as s,types as p}from"../rest/support/colorRamps.js";import{reader as a}from"../core/accessorSupport/decorators/reader.js";import{enumeration as l}from"../core/accessorSupport/decorators/enumeration.js";var d;let c=d=class extends r{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return s(e)}clone(){return new d({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:t(this.colorRamp)})}};e([o({type:Number,json:{write:{isRequired:!0}}})],c.prototype,"altitude",void 0),e([o({type:Number,json:{write:{isRequired:!0}}})],c.prototype,"azimuth",void 0),e([o({types:p,json:{write:!0}})],c.prototype,"colorRamp",void 0),e([a("colorRamp")],c.prototype,"readColorRamp",null),e([o({type:["traditional","multi-directional"],json:{write:{isRequired:!0}}})],c.prototype,"hillshadeType",void 0),e([o({type:Number,json:{write:!0}})],c.prototype,"pixelSizePower",void 0),e([o({type:Number,json:{write:!0}})],c.prototype,"pixelSizeFactor",void 0),e([o({type:["none","adjusted"],json:{write:{isRequired:!0}}})],c.prototype,"scalingType",void 0),e([l({rasterShadedRelief:"raster-shaded-relief"}),o({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),e([o({type:Number,json:{write:{isRequired:!0}}})],c.prototype,"zFactor",void 0),c=d=e([i("esri.renderers.RasterShadedReliefRenderer")],c);export{c as default};
