mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-26 15:16:14 +00:00
Fix turning off colors
This commit is contained in:
@@ -14,8 +14,8 @@ export default defineConfig({
|
||||
},
|
||||
expect: {
|
||||
toHaveScreenshot: {
|
||||
maxDiffPixelRatio: 0.05,
|
||||
threshold: 0.2,
|
||||
maxDiffPixelRatio: 0.02,
|
||||
threshold: 0.05,
|
||||
animations: 'disabled',
|
||||
},
|
||||
},
|
||||
|
||||
@@ -393,7 +393,10 @@ class ChartWrapper {
|
||||
props.onSelection(info);
|
||||
}
|
||||
},
|
||||
colors: (props.colors && chartColors.get(props.colors)) || undefined,
|
||||
colors:
|
||||
props.colors !== undefined
|
||||
? chartColors.get(props.colors)
|
||||
: undefined,
|
||||
animate: true,
|
||||
updateSvgSize: false,
|
||||
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