import { ElementRef, EventEmitter, OnInit, Renderer2 } from '@angular/core'; import { ImageLoader } from '../services/image-loader'; import { ImageLoaderConfig } from '../services/image-loader-config'; export declare class ImgLoaderComponent implements OnInit { private _eRef; private _renderer; private _imageLoader; private _config; /** * Fallback URL to load when the image url fails to load or does not exist. */ fallbackUrl: string; /** * Whether to show a spinner while the image loads */ spinner: boolean; /** * Whether to show the fallback image instead of a spinner while the image loads */ fallbackAsPlaceholder: boolean; /** * Enable/Disable caching */ cache: boolean; /** * Width of the image. This will be ignored if using useImg. */ width: string; /** * Height of the image. This will be ignored if using useImg. */ height: string; /** * Display type of the image. This will be ignored if using useImg. */ display: string; /** * Background size. This will be ignored if using useImg. */ backgroundSize: string; /** * Background repeat. This will be ignored if using useImg. */ backgroundRepeat: string; /** * Name of the spinner */ spinnerName: string; /** * Color of the spinner */ spinnerColor: string; /** * Notify on image load.. */ load: EventEmitter; /** * Indicates if the image is still loading */ isLoading: boolean; element: HTMLElement; constructor(_eRef: ElementRef, _renderer: Renderer2, _imageLoader: ImageLoader, _config: ImageLoaderConfig); private _src; /** * The URL of the image to load. */ src: string; private _useImg; /** * Use tag */ useImg: boolean; /** * Convenience attribute to disable caching * @param val */ noCache: boolean; ngOnInit(): void; private updateImage; /** * Gets the image URL to be loaded and disables caching if necessary */ private processImageUrl; /** * Set the image to be displayed * @param imageUrl {string} image src * @param stopLoading {boolean} set to true to mark the image as loaded */ private setImage; }