ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
47 lines (46 loc) • 1.82 kB
TypeScript
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { NzConfigKey, NzConfigService } from 'ng-zorro-antd/core/config';
import { ImagePreloadService } from 'ng-zorro-antd/core/services';
import { BooleanInput } from 'ng-zorro-antd/core/types';
import { NzImageSrcLoader } from './typings';
export declare const NZ_CONFIG_MODULE_NAME: NzConfigKey;
export declare class NzImageViewComponent implements OnInit, OnChanges, OnDestroy {
private cdr;
nzConfigService: NzConfigService;
private imagePreloadService;
readonly _nzModuleName: NzConfigKey;
static ngAcceptInputType_nzAutoSrcset: BooleanInput;
static ngAcceptInputType_nzPriority: BooleanInput;
static ngAcceptInputType_nzDisablePreview: BooleanInput;
nzSrc: string;
nzAlt: string;
nzWidth: string | number;
nzHeight: string | number;
nzSrcLoader: NzImageSrcLoader;
nzAutoSrcset: boolean;
nzPriority: boolean;
nzFallback: string | null;
nzPlaceholder: string | null;
nzDisablePreview: boolean;
imageRef: ElementRef<HTMLImageElement>;
src: string;
width: string | number;
height: string | number;
srcset: string;
internalImage: HTMLImageElement;
private destroy$;
private reloadDisposeHandler;
constructor(cdr: ChangeDetectorRef, nzConfigService: NzConfigService, imagePreloadService: ImagePreloadService);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
private preload;
private optimizable;
private composeImageAttrs;
private getLoader;
private convertWidths;
}