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/round.js
// From: https://github.com/d3/d3-format/issues/32
const r = (value, precision) =>
Math.round(value * (precision = Math.pow(10, precision))) / precision;
const round =
(precision = 4) =>
value =>
typeof value === 'number' ? r(value, precision) : value;
export default round;