UNPKG

@macrostrat/column-components

Version:

React rendering primitives for stratigraphic columns

13 lines (12 loc) 361 B
"use strict"; const index = require("../../utils/index.cjs"); const unpack = require("../../utils/unpack.cjs"); const { sin, cos } = Math; const lch2lab = (...args) => { let [l, c, h] = unpack(args, "lch"); if (isNaN(h)) h = 0; h = h * index.DEG2RAD; return [l, cos(h) * c, sin(h) * c]; }; module.exports = lch2lab; //# sourceMappingURL=lch2lab.cjs.map