@crystalui/angular-lightbox
Version:
Angular library for viewing images in a pop-up window with touch screen support.
60 lines (59 loc) • 1.56 kB
TypeScript
export interface LightboxData {
images?: Images & any;
image?: Image & ImageExtended;
properties?: Properties;
index?: number;
}
export interface Images {
[index: number]: {
path: string;
width?: number;
height?: number;
};
}
export interface Image {
path: string;
width?: number;
height?: number;
}
export interface ImageExtended {
fullImage?: Image;
thumbnailImage?: Image;
nativeElement?: any;
}
export interface Properties {
loop?: boolean;
index?: number;
counter?: false;
imageMaxHeight?: string;
imageMaxWidth?: string;
animationDuration?: number;
animationMode?: 'default' | 'zoom' | 'zoom-blur' | 'zoom-preloader' | 'opacity' | 'none';
animationTimingFunction?: string;
closeButtonText?: string;
counterSeparator?: string;
disable?: boolean;
simpleMode?: boolean;
backgroundColor?: 'black' | 'white';
backgroundOpacity?: number;
hideThumbnail?: boolean;
imagePathError?: string;
gestureEnable?: boolean;
}
export declare const DefaultProperties: {
loop: boolean;
index: number;
counter: boolean;
imageMaxHeight: string;
imageMaxWidth: string;
animationDuration: number;
animationMode: string;
animationTimingFunction: string;
closeButtonText: string;
counterSeparator: string;
disable: boolean;
simpleMode: boolean;
backgroundColor: string;
backgroundOpacity: number;
hideThumbnail: boolean;
};