/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as t}from"tslib";import{uniform as r,UniformGroup as e}from"../../GraphShaderModule.js";import{Vec4 as i,ifElse as s,clamp as o,Float as a}from"../../graph/glsl.js";import{isNan as n}from"./utils.js";class m extends e{getSize(t,r){const e=this.minMaxValueAndSize.xy,i=this.minMaxValueAndSize.zw;return s(n(t),r,()=>{const r=t.subtract(e.x).divide(e.y.subtract(e.x)),s=o(r,new a(0),new a(1));return i.x.add(s.multiply(i.y.subtract(i.x)))})}}t([r(i)],m.prototype,"minMaxValueAndSize",void 0);export{m as VisualVariableSizeMinMaxValue};
