import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { ISrcType } from './avatar.interface'; import { SafeUrl } from '@angular/platform-browser'; import { UofxFileDownloadHelper } from '@uofx/app-components/file-helper'; import * as i0 from "@angular/core"; export declare class UofxAvatarComponent implements OnInit, OnChanges { downloadService: UofxFileDownloadHelper; icon: string; /** https://stackoverflow.com/questions/37432609/how-can-i-avoid-adding-prefix-unsafe-to-a-link-by-angular-2 */ src: string | SafeUrl; name: string; slot: '' | 'start'; size: number; shape: 'circle' | 'square'; hostAvatarClass: any; convertUrl: any; sizeClassList: {}; /** 頭像內字體的大小 */ fontSize: number; /** 頭像本身的大小 */ avatarSize: number; /** 頭像圖片來源類型 */ avatarSrctype: keyof ISrcType; /** 文字顯示的比例 */ private readonly fontMagnification; setAvatarUrlType(): void; get firstChar(): string; constructor(downloadService: UofxFileDownloadHelper); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; /** 轉換 src 來源,加上 server url */ transSrc(src: any): SafeUrl; /** 無法取得圖片錯誤處理 */ onLoadError(): "" | "assets/img/u-icon-unknown.png"; /** 設定頭像的形狀 */ private setShape; /** * 設置頭像大小和頭像內的字體大小 */ private setSize; /** * 設置背景顏色 */ private setBackgroundColor; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }