Reuse blendColors util
This CL extracts blendColors into a new utils file (more lightweight
function utils compared to Color.js) and reuses it in the overlay code.
Also, it adds an exception to eslint module import rules for the
inspector overlay folder because inspector overlay benefits from
granular imports instead of complete namespace imports.
Bug: 1078267
Change-Id: I01ec8f295da8bfac0b57b9dd2661ca9f798de869
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2228514
Commit-Queue: Alex Rudenko <[email protected]>
Reviewed-by: Tim van der Lippe <[email protected]>
Reviewed-by: Mathias Bynens <[email protected]>
Reviewed-by: Changhao Han <[email protected]>
diff --git a/BUILD.gn b/BUILD.gn
index 49a0129..64b72dc 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1068,6 +1068,7 @@
"common/AppProvider.js",
"common/CharacterIdMap.js",
"common/Color.js",
+ "common/ColorUtils.js",
"common/Console.js",
"common/EventTarget.js",
"common/JavaScriptMetaData.js",