From 729f21ce8f0e4265976c7d7698c4bf231ebd4216 Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Fri, 13 Oct 2023 14:20:37 +0100 Subject: [PATCH] Fix: _highContrastLuminanceThreshold as string (fixes #99) --- js/ColorTransformations.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ColorTransformations.js b/js/ColorTransformations.js index 51056b5..7228d74 100644 --- a/js/ColorTransformations.js +++ b/js/ColorTransformations.js @@ -2,6 +2,7 @@ import Color from './Color'; import FILTERS from './COLOR_FILTERS'; const HIGH_CONTRAST = ({ _highContrastLuminanceThreshold }) => { + _highContrastLuminanceThreshold = parseFloat(_highContrastLuminanceThreshold); return [ [0, 10, 0], // Move 0-10 to 0 [10, _highContrastLuminanceThreshold + 1, 10, 30, false], // For 10-71 (not inclusive) move towards 10 not more than 30