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
20 lines (19 loc) • 540 B
TypeScript
import { AsyncSource } from './async-source';
import { AvatarSource } from './avatar-source.enum';
export declare class Vkontakte extends AsyncSource {
readonly sourceType: AvatarSource;
constructor(sourceId: string);
getAvatar(size: number): string;
/**
* extract vkontakte avatar from json data
*/
processResponse(data: {
response: {
[key: string]: string;
}[];
}): string | null;
/**
* Returns image size related to vkontakte API
*/
private getImageSize;
}