@@ -69,20 +69,26 @@ Because MODULARIZATION, this module doesn't come with debounce functionality inc
69
69
module .config ([' fitTextConfigProvider' , function (fitTextConfigProvider ) {
70
70
fitTextConfigProvider .config = {
71
71
debounce: _ .debounce , // include a vender function like underscore or lodash
72
- debounce : function (a ,b ,c ) { // specify your own function
72
+ debounce : function (a ,b ,c ) { // OR specify your own function
73
73
var d;return function (){var e= this ,f= arguments ;clearTimeout (d),d= setTimeout (function (){d= null ,c|| a .apply (e,f)},b),c&&! d&& a .apply (e,f)}
74
74
},
75
75
delay: 1000 , // debounce delay
76
76
loadDelay: 10 , // global default delay before initial calculation
77
77
compressor: 1 , // global default calculation multiplier
78
78
min: 0 , // global default min
79
+ min: ' inherit' , // OR inherit CSS values globally
79
80
max: Number .POSITIVE_INFINITY // global default max
81
+ max: ' inherit' // OR inherit CSS values globally
80
82
};
81
83
}]);
82
84
```
83
85
84
86
### Changelog
85
87
88
+ #### [ v4.2.0] ( https://github.com/patrickmarabeas/ng-FitText.js/releases/tag/v4.2.0 )
89
+ + Globally ` inherit ` CSS values with ` min ` and ` max ` parameters in ` fitTextConfigProvider `
90
+
91
+
86
92
#### [ v4.1.0] ( https://github.com/patrickmarabeas/ng-FitText.js/releases/tag/v4.1.0 )
87
93
+ Replace ` 'initial' ` value with more semantic ` 'inherit' `
88
94
+ Both ` data-fittext-min ` and ` data-fittext-max ` can use the inherited CSS value by using ` 'inherit' `
0 commit comments