Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to select color for big number #5694

Merged
merged 8 commits into from
Aug 22, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove module
hughhhh committed Aug 22, 2018
commit f7d5fdbce6791f2dd5e001ce1760d171132a59d3
9 changes: 0 additions & 9 deletions superset/assets/src/modules/colors.js
Original file line number Diff line number Diff line change
@@ -593,12 +593,3 @@ export function hexToRGB(hex, alpha = 255) {
const b = parseInt(hex.slice(5, 7), 16);
return [r, g, b, alpha];
}


export const rgbToHex = function (color) {
console.log(color);
return (color && Object.keys(color).length === 4) ?
'#' + ('0' + parseInt(color.r, 10).toString(16)).slice(-2) +
('0' + parseInt(color.g, 10).toString(16)).slice(-2) +
('0' + parseInt(color.b, 10).toString(16)).slice(-2) : '';
};