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
navbuddy assets node_modules culori src lchuv convertLchuvToLuv.js
Raw

assets/node_modules/culori/src/lchuv/convertLchuvToLuv.js

const convertLchuvToLuv = ({ l, c, h, alpha }) => {
let res = {
mode: 'luv',
l: l,
u: c ? c * Math.cos((h / 180) * Math.PI) : 0,
v: c ? c * Math.sin((h / 180) * Math.PI) : 0
};
if (alpha !== undefined) {
res.alpha = alpha;
}
return res;
};
export default convertLchuvToLuv;