Files
Andy Hanson 89fa98a712 WIP
WIP

WIP

WIP

WIP

WIP

WIP: Remove trailing newlines

WIP

WIP

WIP

WIP

WIP

WIP

WIP

WIP: All tests pass

WIP

WIP

WIP
2016-11-28 11:16:06 -08:00

52 lines
1.4 KiB
TypeScript

// Type definitions for angular-bootstrap-lightbox
// Project: https://github.com/compact/angular-bootstrap-lightbox
// Definitions by: Roland Zwaga <https://github.com/rolandzwaga>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace angular.bootstrap.lightbox {
export interface ILightboxImageInfo {
url: string;
width: number;
height: number;
thumbUrl?: string;
caption?: string;
}
export interface IImageDimensionLimits {
minWidth?: number;
minHeight?: number;
maxWidth?: number;
maxHeight?: number;
}
export interface IImageDimensionParameter {
windowWidth: number;
windowHeight: number;
imageWidth: number;
imageHeight: number;
}
export interface IModalDimensionsParameter {
windowWidth: number;
windowHeight: number;
imageDisplayWidth: number;
imageDisplayHeight: number;
}
export interface IModalDimensions {
width: number;
height: number;
}
export interface ILightbox {
openModal(images: ILightboxImageInfo[], index: number): void;
}
export interface ILightBoxProvider {
templateUrl: string;
calculateImageDimensionLimits: (dimensions: IImageDimensionParameter) => IImageDimensionLimits;
calculateModalDimensions: (dimensions: IModalDimensionsParameter) => IModalDimensions;
}
}