/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as s}from"tslib";import{uniform as t,UniformGroup as e}from"../../GraphShaderModule.js";import{FixedArray as i,Float as r,cond as o,greaterThan as a,mix as l,greaterThanEqual as h,lessThanEqual as p}from"../../graph/glsl.js";class u extends e{getSizeForViewScale(s){return o([p(s,this.values.first()),this.sizes.first()],[h(s,this.values.last()),this.sizes.last()],[!0,()=>{const t=this.values.findIndex(t=>a(t,s)),e=this.values.get(t),i=t.subtract(1),r=this.values.get(i),o=s.subtract(r).divide(e.subtract(r));return l(this.sizes.get(i),this.sizes.get(t),o)}])}}s([t(i.ofType(r,8))],u.prototype,"sizes",void 0),s([t(i.ofType(r,8))],u.prototype,"values",void 0);export{u as VisualVariableSizeScaleStops};
