@tenphi/glaze 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -361,6 +361,12 @@ const oklabToOkhsl = (lab) => {
|
|
|
361
361
|
0,
|
|
362
362
|
toe(L)
|
|
363
363
|
];
|
|
364
|
+
const L_EXTREME_EPSILON = 1e-6;
|
|
365
|
+
if (L >= 1 - L_EXTREME_EPSILON || L <= L_EXTREME_EPSILON) return [
|
|
366
|
+
0,
|
|
367
|
+
0,
|
|
368
|
+
toe(L)
|
|
369
|
+
];
|
|
364
370
|
const a_ = a / C;
|
|
365
371
|
const b_ = b / C;
|
|
366
372
|
let h = Math.atan2(b, a) * (180 / Math.PI);
|