UNPKG

ng-hub-ui-avatar

Version:

A powerful, flexible, and standalone Angular avatar component that generates and fetches user avatars from multiple sources including social media, Gravatar, or custom images with intelligent fallback system

21 lines (20 loc) 590 B
import { Source } from './source'; import { AvatarSource } from './avatar-source.enum'; /** * Initials source implementation. * return the initials of the given value */ export declare class Initials implements Source { sourceId: string; readonly sourceType: AvatarSource; constructor(sourceId: string); getAvatar(size: number): string; /** * Returns the initial letters of a name in a string. */ private getInitials; /** * Iterates a person's name string to get the initials of each word in uppercase. */ private constructInitials; }