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
22 lines (21 loc) • 583 B
TypeScript
import { AsyncSource } from './async-source';
import { AvatarSource } from './avatar-source.enum';
/**
* Instagram source implementation.
* Fetch avatar source based on instagram identifier
*/
export declare class Instagram extends AsyncSource {
readonly sourceType: AvatarSource;
constructor(sourceId: string);
getAvatar(): string;
/**
* extract instagram avatar from json data
*/
processResponse(data: {
graphql: {
user: {
profile_pic_url_hd: string;
};
};
}, size?: number): string;
}