Update to angular 17 #97

Merged
thisloke merged 12 commits from 77-update-to-angular-17 into master 2024-01-09 23:33:32 +00:00
Showing only changes of commit 95adc815fc - Show all commits

View file

@ -143,13 +143,13 @@ export class Ng2FittextDirective
getStartFontSizeFromHeight(): number {
return this.container
? this.container.clientHeight
: this.el.nativeElement.parentElement.clientHeight;
: this.el.nativeElement.parentElement!.clientHeight;
}
private getStartFontSizeFromWeight(): number {
return this.container
? this.container.clientWidth
: this.el.nativeElement.parentElement.clientWidth;
: this.el.nativeElement.parentElement!.clientWidth;
}
isDone(): boolean {
@ -164,7 +164,7 @@ export class Ng2FittextDirective
return this.container
? this.checkOverflow(this.container, this.el.nativeElement)
: this.checkOverflow(
this.el.nativeElement.parentElement,
this.el.nativeElement.parentElement!,
this.el.nativeElement
);
}