feat: Added calculateFontSize method test
This commit is contained in:
parent
b3aab20ac2
commit
afa67c729b
2 changed files with 9 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ export class Ng2FittextDirective
|
|||
return this.fontSize;
|
||||
}
|
||||
|
||||
calculateFontSize(fontSize: number, speed: number) {
|
||||
calculateFontSize(fontSize: number, speed: number): number {
|
||||
return Math.floor(fontSize / speed);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue