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
23 lines (22 loc) • 591 B
TypeScript
import { AsyncSource } from './async-source';
import { AvatarSource } from './avatar-source.enum';
/**
* Google source implementation.
* Fetch avatar source based on google identifier
* and image size
*/
export declare class Google extends AsyncSource {
readonly sourceType: AvatarSource;
constructor(sourceId: string);
getAvatar(): string;
/**
* Extract google avatar from json data
*/
processResponse(data: {
entry: {
gphoto$thumbnail: {
$t: string;
};
};
}, size?: number): string | null;
}