/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as o}from"tslib";import{maxMapSizeGpu as r}from"../../../../../../../../layers/raster/functions/pixelUtils.js";import{uniform as t,UniformGroup as e}from"../../../GraphShaderModule.js";import{sign as i,FixedArray as s,Float as p,Mat3 as a,Vec4 as l}from"../../../graph/glsl.js";import{BaseRasterHighlightShader as g}from"./BaseRasterHighlightShader.js";import{computeSingleBandRangeFactor as h}from"./processor/math.js";class m extends e{}o([t(s.ofType(p,2*r))],m.prototype,"ranges",void 0),o([t(a)],m.prototype,"bandSwap",void 0),o([t(l)],m.prototype,"color",void 0);class n extends g{constructor(){super(...arguments),this.type="RasterRangeHighlightShader"}_colorize(o,r){const t=this._getPixel(o),{ranges:e,color:s,bandSwap:p}=this.rangeHighlightConfig,a=p.multiply(t.rgb).x,l=h(a,e).multiply(i(t.a));return this._computeHighlightedColor(l,s,r)}}o([t(m)],n.prototype,"rangeHighlightConfig",void 0);export{m as RangeHighlightConfig,n as RasterRangeHighlightShader};
