Skip to content

Commit

Permalink
align range better
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkeller committed Mar 17, 2023
1 parent 60ff563 commit 4fe0f3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/helpers/printDebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ function printScale(s, scale, acc) {
console.log(`${indent}${indent}Accessor: "${acc.toString()}"`);
console.log(`${indent}${indent}Type: ${scaleName}`);
printValues(scale, 'domain');
printValues(scale, 'range');
printValues(scale, 'range', ' ');
}

function printValues(scale, method) {
function printValues(scale, method, extraSpace = '') {
const values = scale[method]();
const colorValues = colorizeArray(values);
if (colorValues) {
printColorArray(colorValues, method, values);
} else {
console.log(`${indent}${indent}${t(method)}:`, values);
console.log(`${indent}${indent}${t(method)}:${extraSpace}`, values);
}
}

Expand Down

0 comments on commit 4fe0f3b

Please sign in to comment.