/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{Float as a,Bool as i,Mat3 as e}from"../../graph/glsl.js";function l(a){return null!=a.visualVariableSizeMinMaxValue||null!=a.visualVariableSizeScaleStops||null!=a.visualVariableSizeStops||null!=a.visualVariableSizeUnitValue}function t(a,i,e){if(l(a)){const l=a.getSizeValue(i);return a.visualVariableSizeMinMaxValue?.getSize(l,e)??a.visualVariableSizeScaleStops?.getSizeForViewScale(a.view.currentScale)??a.visualVariableSizeStops?.getSize(l,e)??a.visualVariableSizeUnitValue?.getSize(l,e)}return e}function n(a,e,l,t=new i(!1)){if(null==a.visualVariableColor)return l;const n=a.getColorValue(e);return a.visualVariableColor.getColor(n,l,t)}function u(i,e){if(null==i.visualVariableOpacity)return new a(1);const l=i.getOpacityValue(e);return i.visualVariableOpacity.getOpacity(l)}function r(a,i){if(null==a.visualVariableRotation)return e.identity();const l=a.getRotationValue(i);return a.visualVariableRotation.getVVRotationMat3(l)}function o(i,e){if(null==i.visualVariableRotation)return new a(0);const l=i.getRotationValue(e);return i.visualVariableRotation.getNormalizedAngle(l)}export{o as getVisualVariableAngle,n as getVisualVariableColor,u as getVisualVariableOpacity,r as getVisualVariableRotation,t as getVisualVariableSize,l as hasVisualVariableSize};
