@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.mjs CHANGED
@@ -359,6 +359,12 @@ const oklabToOkhsl = (lab) => {
359
359
  0,
360
360
  toe(L)
361
361
  ];
362
+ const L_EXTREME_EPSILON = 1e-6;
363
+ if (L >= 1 - L_EXTREME_EPSILON || L <= L_EXTREME_EPSILON) return [
364
+ 0,
365
+ 0,
366
+ toe(L)
367
+ ];
362
368
  const a_ = a / C;
363
369
  const b_ = b / C;
364
370
  let h = Math.atan2(b, a) * (180 / Math.PI);