Update defaults and types for tick stroke (#8195)

This commit is contained in:
Jukka Kurkela 2020-12-18 19:36:18 +02:00 committed by GitHub
parent 92646a973d
commit b2d5a5fa97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -59,8 +59,8 @@ defaults.set('scale', {
minRotation: 0,
maxRotation: 50,
mirror: false,
lineWidth: 0,
strokeStyle: '',
textStrokeWidth: 0,
textStrokeColor: '',
padding: 0,
display: true,
autoSkip: true,

View File

@ -69,6 +69,16 @@ export interface TickOptions {
* Sets the offset of the tick labels from the axis
*/
padding: number;
/**
* The color of the stroke around the text.
* @default undefined
*/
textStrokeColor: Color;
/**
* Stroke width around the text.
* @default 0
*/
textStrokeWidth: number;
/**
* z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.
* @default 0