Text color in the report #184
Answered
by
btd
ratelChief
asked this question in
Q&A
|
|
Answered by
btd
Dec 19, 2023
Replies: 1 comment
|
Yes, it is for better readability. See there https://github.com/btd/rollup-plugin-visualizer/blob/master/src/treemap/color.ts#L19C20-L19C20 |
0 replies
Answer selected by
btd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Yes, it is for better readability. See there https://github.com/btd/rollup-plugin-visualizer/blob/master/src/treemap/color.ts#L19C20-L19C20
It checks luminance of background and tries to select either white or black.