@@ -21,44 +21,44 @@ import {
21
21
NUMBER_OR_NAN ,
22
22
POSITIVE_NUMBER ,
23
23
STRING ,
24
- Validate ,
24
+ TempValidate ,
25
25
} from '../../util/validation' ;
26
26
import type { ChartAxisLabel , ChartAxisLabelFlipFlag } from '../chartAxis' ;
27
27
28
28
export class AxisLabel extends BaseProperties implements ChartAxisLabel {
29
- @Validate ( BOOLEAN )
29
+ @TempValidate ( BOOLEAN )
30
30
enabled = true ;
31
31
32
- @Validate ( FONT_STYLE , { optional : true } )
32
+ @TempValidate ( FONT_STYLE , { optional : true } )
33
33
fontStyle ?: FontStyle ;
34
34
35
- @Validate ( FONT_WEIGHT , { optional : true } )
35
+ @TempValidate ( FONT_WEIGHT , { optional : true } )
36
36
fontWeight ?: FontWeight ;
37
37
38
- @Validate ( NUMBER . restrict ( { min : 1 } ) )
38
+ @TempValidate ( NUMBER . restrict ( { min : 1 } ) )
39
39
fontSize ! : number ;
40
40
41
- @Validate ( STRING )
41
+ @TempValidate ( STRING )
42
42
fontFamily ! : string ;
43
43
44
44
/**
45
45
* The padding between the labels and the ticks.
46
46
*/
47
- @Validate ( POSITIVE_NUMBER )
47
+ @TempValidate ( POSITIVE_NUMBER )
48
48
spacing : number = 5 ;
49
49
50
50
/**
51
51
* Minimum gap in pixels between the axis labels before being removed to avoid collisions.
52
52
*/
53
- @Validate ( NUMBER_OR_NAN )
53
+ @TempValidate ( NUMBER_OR_NAN )
54
54
@Default ( NaN )
55
55
minSpacing : number = NaN ;
56
56
57
57
/**
58
58
* The color of the labels.
59
59
* Use `undefined` rather than `rgba(0, 0, 0, 0)` to make labels invisible.
60
60
*/
61
- @Validate ( COLOR_STRING , { optional : true } )
61
+ @TempValidate ( COLOR_STRING , { optional : true } )
62
62
color ?: string = '#575757' ;
63
63
64
64
/**
@@ -68,13 +68,13 @@ export class AxisLabel extends BaseProperties implements ChartAxisLabel {
68
68
* The value of this config is used as the angular offset/deflection
69
69
* from the default rotation.
70
70
*/
71
- @Validate ( NUMBER , { optional : true } )
71
+ @TempValidate ( NUMBER , { optional : true } )
72
72
rotation ?: number ;
73
73
74
74
/**
75
75
* Avoid axis label collision by automatically reducing the number of ticks displayed. If set to `false`, axis labels may collide.
76
76
*/
77
- @Validate ( BOOLEAN )
77
+ @TempValidate ( BOOLEAN )
78
78
avoidCollisions : boolean = true ;
79
79
80
80
/**
@@ -90,7 +90,7 @@ export class AxisLabel extends BaseProperties implements ChartAxisLabel {
90
90
* from north-west to south-east, _starting_ at the tick to the right
91
91
* of the axis line.
92
92
*/
93
- @Validate ( BOOLEAN )
93
+ @TempValidate ( BOOLEAN )
94
94
mirrored : boolean = false ;
95
95
96
96
/**
@@ -107,10 +107,10 @@ export class AxisLabel extends BaseProperties implements ChartAxisLabel {
107
107
* Setting this config to `true` makes labels render parallel to the axis line
108
108
* and center aligns labels' text at the ticks.
109
109
*/
110
- @Validate ( BOOLEAN )
110
+ @TempValidate ( BOOLEAN )
111
111
parallel : boolean = false ;
112
112
113
- @Validate ( FUNCTION , { optional : true } )
113
+ @TempValidate ( FUNCTION , { optional : true } )
114
114
itemStyler ?: Styler < AgAxisLabelStylerParams , AgBaseAxisLabelStyleOptions > ;
115
115
116
116
/**
@@ -119,10 +119,10 @@ export class AxisLabel extends BaseProperties implements ChartAxisLabel {
119
119
* digits used by the tick step. For example, if the tick step is `0.0005`,
120
120
* the `fractionDigits` is 4.
121
121
*/
122
- @Validate ( FUNCTION , { optional : true } )
122
+ @TempValidate ( FUNCTION , { optional : true } )
123
123
formatter ?: Formatter < AgAxisLabelFormatterParams > ;
124
124
125
- @Validate ( STRING , { optional : true } )
125
+ @TempValidate ( STRING , { optional : true } )
126
126
format ?: string ;
127
127
128
128
getFont ( ) : string {
0 commit comments