Scriptable tick colours (#8222)

This commit is contained in:
Evert Timberg 2020-12-22 12:11:00 -05:00 committed by GitHub
parent da0535e1ff
commit 1b0ed0c8c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1385,6 +1385,7 @@ export default class Scale extends Element {
lineHeight = font.lineHeight;
lineCount = isArray(label) ? label.length : 1;
const halfCount = lineCount / 2;
const color = resolve([optionTicks.color], me.getContext(i), i);
if (isHorizontal) {
x = pixel;
@ -1421,7 +1422,7 @@ export default class Scale extends Element {
rotation,
label,
font,
color: optionTicks.color,
color,
textOffset,
textAlign,
textBaseline,