Fix: added deprecated useMaxFontSize to prevent broken builds

This commit is contained in:
Lorenzo Iovino 2019-05-06 12:48:31 +02:00
parent 62746405ce
commit 2c1ecf394d
8 changed files with 245 additions and 139 deletions

View file

@ -20,6 +20,10 @@ export class Ng2FittextDirective implements AfterViewInit, OnInit, OnChanges, Af
@Input('activateOnInputEvents') activateOnInputEvents: boolean;
@Input('minFontSize') minFontSize = 7;
@Input('maxFontSize') maxFontSize = 1000;
/* Deprecated */
@Input('useMaxFontSize') useMaxFontSize = true;
@Input('modelToWatch') modelToWatch: any;
private fontSize = 1000;
private speed = 1.05;