/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as o}from"tslib";import{property as e,subclass as r}from"../../../core/accessorSupport/decorators.js";import t from"./HillshadeFunctionArguments.js";import{colorRampDict as s,getColorRampJSON as i}from"../../../renderers/support/colorRampUtils.js";import{reader as a}from"../../../core/accessorSupport/decorators/reader.js";var p;let l=p=class extends t{readColorRamp(o){if("string"==typeof o){const e=s.jsonValues.find(e=>e.toLowerCase()===o.toLowerCase());return e?i(s.fromJSON(e)):null}return"toJSON"in o?o.toJSON():o}clone(){return new p({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,slopeType:this.slopeType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,removeEdgeEffect:this.removeEdgeEffect,colorRamp:this.colorRamp,colormap:this.colormap,raster:this.raster})}};o([e({json:{write:!0}})],l.prototype,"colorRamp",void 0),o([a("colorRamp")],l.prototype,"readColorRamp",null),o([e({type:[[Number]],json:{write:!0}})],l.prototype,"colormap",void 0),l=p=o([r("esri.layers.raster.functions.ShadedReliefFunctionArguments")],l);const c=l;export{c as default};
