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