@opendata-ai/openchart-engine 6.28.5 → 6.28.6
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/tables/__tests__/heatmap.test.ts +4 -27
- package/src/tables/heatmap.ts +6 -2
package/dist/index.js
CHANGED
|
@@ -11329,7 +11329,7 @@ function computeHeatmapColors(data, column, theme, darkMode) {
|
|
|
11329
11329
|
domain = [min4, max4];
|
|
11330
11330
|
}
|
|
11331
11331
|
let stops = resolvePalette(config.palette, theme);
|
|
11332
|
-
if (darkMode) {
|
|
11332
|
+
if (darkMode && !Array.isArray(config.palette)) {
|
|
11333
11333
|
const lightBg = "#ffffff";
|
|
11334
11334
|
const darkBg = theme.colors.background;
|
|
11335
11335
|
stops = stops.map((c) => adaptColorForDarkMode2(c, lightBg, darkBg));
|