For types/chart.js, added lineHeight/padding to ScaleTitleOptions

This commit is contained in:
alex2wong 2019-03-23 16:58:37 +08:00
parent 7d91d6eb32
commit 0a3dbd08d2
2 changed files with 5 additions and 1 deletions

View File

@ -115,7 +115,9 @@ const scaleOptions: Chart.RadialLinearScale = {
lineArc: false,
display: false,
scaleLabel: {
display: false
display: false,
lineHeight: 1,
padding: 0,
},
};
const radarChartOptions: Chart.RadialChartOptions = {

View File

@ -426,10 +426,12 @@ declare namespace Chart {
interface ScaleTitleOptions {
display?: boolean;
labelString?: string;
lineHeight?: number | string;
fontColor?: ChartColor;
fontFamily?: string;
fontSize?: number;
fontStyle?: string;
padding?: ChartLayoutPaddingObject | number;
}
interface TickOptions extends NestedTickOptions {