mirror of
https://github.com/VisActor/VChart
synced 2024-11-22 17:26:19 +00:00
fix: type error fix
This commit is contained in:
parent
b4f9ce3c93
commit
938efb686e
@ -164,7 +164,7 @@ function getLabelStyle(
|
||||
styleObj.fontSize = getPixelPropertyStr(labelFontSize);
|
||||
styleObj.color = labelColor as string;
|
||||
styleObj.textAlign = textAlign as TextAlign;
|
||||
styleObj.lineHeight = getPixelPropertyStr(lineHeight);
|
||||
styleObj.lineHeight = getPixelPropertyStr(lineHeight as number);
|
||||
styleObj.fontWeight = fontWeight as FontWeight;
|
||||
styleObj.whiteSpace = multiLine ? 'initial' : 'nowrap';
|
||||
styleObj.wordBreak = multiLine ? wordBreak ?? 'break-word' : 'normal';
|
||||
|
Loading…
Reference in New Issue
Block a user