Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
import { Pipe, PipeTransform } from '@angular/core';
import { FITTING_OPTION } from '../_models/reader-enums';
@Pipe({
name: 'fittingIcon',
pure: true,
standalone: true,
})
export class FittingIconPipe implements PipeTransform {
transform(fit: FITTING_OPTION): string {
switch(fit) {
case FITTING_OPTION.HEIGHT:
return 'fa fa-arrows-alt-v';
case FITTING_OPTION.WIDTH:
return 'fa fa-arrows-alt-h';
case FITTING_OPTION.ORIGINAL:
return 'fa fa-expand-arrows-alt';
}
}
}