mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-26 23:26:15 +00:00
Fix turning off colors
This commit is contained in:
@@ -14,8 +14,8 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
expect: {
|
expect: {
|
||||||
toHaveScreenshot: {
|
toHaveScreenshot: {
|
||||||
maxDiffPixelRatio: 0.05,
|
maxDiffPixelRatio: 0.02,
|
||||||
threshold: 0.2,
|
threshold: 0.05,
|
||||||
animations: 'disabled',
|
animations: 'disabled',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -393,7 +393,10 @@ class ChartWrapper {
|
|||||||
props.onSelection(info);
|
props.onSelection(info);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
colors: (props.colors && chartColors.get(props.colors)) || undefined,
|
colors:
|
||||||
|
props.colors !== undefined
|
||||||
|
? chartColors.get(props.colors)
|
||||||
|
: undefined,
|
||||||
animate: true,
|
animate: true,
|
||||||
updateSvgSize: false,
|
updateSvgSize: false,
|
||||||
locale: intl.locale,
|
locale: intl.locale,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 56 KiB |
Reference in New Issue
Block a user