Packages
Advanced configurable navigation component for Phoenix LiveView with native DaisyUI integration, Tailwind CSS support, permissions filtering, dropdowns, mega menus, and modern responsive design. Optimized for Phoenix 1.8+ and LiveView 1.1+.
Current section
Files
Jump to
Current section
Files
assets/node_modules/culori/src/util/hue.js
const hueToDeg = (val, unit) => {
switch (unit) {
case 'deg':
return +val;
case 'rad':
return (val / Math.PI) * 180;
case 'grad':
return (val / 10) * 9;
case 'turn':
return val * 360;
}
};
export default hueToDeg;