// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./support/stretchRendererUtils ../rest/support/colorRamps".split(" "),function(b,a,f,d,t,u,n,l,p,q,e,m){var h;a=h=class extends a.JSONSupport{constructor(c){super(c);this.colorRamp=null;this.dynamicRangeAdjustment= this.computeGamma=!1;this.gamma=[];this.sigmoidStrengthLevel=this.outputMin=this.outputMax=this.numberOfStandardDeviations=this.minPercent=this.maxPercent=null;this.statistics=[];this.histograms=null;this.useGamma=!1;this.stretchType="none";this.type="raster-stretch"}readColorRamp(c){if(c)return m.fromJSON(c)}writeStatistics(c,k,r){c?.length&&(Array.isArray(c[0])||(c=c.map(g=>[g.min,g.max,g.avg,g.stddev])),k[r]=c)}readStretchType(c,k){c=k.stretchType;"number"===typeof c&&(c=e.stretchTypeFunctionEnum[c]); return e.stretchTypeJSONDict.read(c)}clone(){return new h({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:f.clone(this.statistics),gamma:f.clone(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:f.clone(this.colorRamp),histograms:f.clone(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}}; b.__decorate([d.property({types:m.types,json:{write:!0}})],a.prototype,"colorRamp",void 0);b.__decorate([l.reader("colorRamp")],a.prototype,"readColorRamp",null);b.__decorate([d.property({type:Boolean,json:{write:!0}})],a.prototype,"computeGamma",void 0);b.__decorate([d.property({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],a.prototype,"dynamicRangeAdjustment",void 0);b.__decorate([d.property({type:[Number],json:{write:!0}})],a.prototype,"gamma",void 0);b.__decorate([d.property({type:Number, json:{write:!0}})],a.prototype,"maxPercent",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],a.prototype,"minPercent",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],a.prototype,"numberOfStandardDeviations",void 0);b.__decorate([d.property({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],a.prototype,"outputMax",void 0);b.__decorate([d.property({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],a.prototype,"outputMin",void 0);b.__decorate([d.property({type:Number, json:{write:!0}})],a.prototype,"sigmoidStrengthLevel",void 0);b.__decorate([d.property({json:{type:[[Number]],write:!0}})],a.prototype,"statistics",void 0);b.__decorate([d.property()],a.prototype,"histograms",void 0);b.__decorate([q.writer("statistics")],a.prototype,"writeStatistics",null);b.__decorate([d.property({type:Boolean,json:{write:!0}})],a.prototype,"useGamma",void 0);b.__decorate([d.property({type:e.stretchTypeJSONDict.apiValues,json:{type:e.stretchTypeJSONDict.jsonValues,write:e.stretchTypeJSONDict.write}})], a.prototype,"stretchType",void 0);b.__decorate([l.reader("stretchType",["stretchType"])],a.prototype,"readStretchType",null);b.__decorate([n.enumeration({rasterStretch:"raster-stretch"})],a.prototype,"type",void 0);return a=h=b.__decorate([p.subclass("esri.renderers.RasterStretchRenderer")],a)});