From cf9986c4124278d921ac9186deaef0e1efb9b198 Mon Sep 17 00:00:00 2001 From: Andrew Somers <42009457+Myndex@users.noreply.github.com> Date: Thu, 25 Aug 2022 22:30:49 -0700 Subject: [PATCH 1/2] Fix missing import Fix missing GET import OOOPS --- src/contrast/deltaPhi.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/contrast/deltaPhi.js b/src/contrast/deltaPhi.js index a53f349c6..fe0cd0667 100644 --- a/src/contrast/deltaPhi.js +++ b/src/contrast/deltaPhi.js @@ -6,6 +6,7 @@ import getColor from "../getColor.js"; import {getLuminance} from "../luminance.js"; +import get from "../get.js"; import lab_d65 from "../spaces/lab-d65.js"; const phi = Math.pow(5, 0.5) * 0.5 + 0.5; // Math.phi can be used if Math.js From e367bc7b35467e2fdab6d74c37725595d6240135 Mon Sep 17 00:00:00 2001 From: Andrew Somers <42009457+Myndex@users.noreply.github.com> Date: Thu, 25 Aug 2022 22:35:35 -0700 Subject: [PATCH 2/2] Also don;t need luminance Also don't need the get luminance import luminance.js as it's done in lab_d65 --- src/contrast/deltaPhi.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/contrast/deltaPhi.js b/src/contrast/deltaPhi.js index fe0cd0667..55ac4d14e 100644 --- a/src/contrast/deltaPhi.js +++ b/src/contrast/deltaPhi.js @@ -5,7 +5,6 @@ import getColor from "../getColor.js"; -import {getLuminance} from "../luminance.js"; import get from "../get.js"; import lab_d65 from "../spaces/lab-d65.js";