@fnxone/ngx-photoswipe
Version:
[](https://www.npmjs.com/package/@fnxone/ngx-photoswipe) [](https://www.npmjs.com/package/@fnxone/n
64 lines • 1.94 kB
TypeScript
import { LightboxMethods } from './lightbox-options';
import * as PhotoSwipe from 'photoswipe';
export declare function ngxPhotoSwipeFactory(): DefaultLightboxAdapter;
export declare abstract class LightboxAdapter implements LightboxMethods, PhotoSwipe.Options {
getThumbBoundsFn: (index: number) => {
x: number;
y: number;
w: number;
};
getDoubleTapZoom: (isMouseClick: boolean, item: PhotoSwipe.Item) => number;
isClickableElement: (el: HTMLElement) => boolean;
addCaptionHTMLFn: () => boolean;
index: number;
showHideOpacity: boolean;
showAnimationDuration: number;
hideAnimationDuration: number;
bgOpacity: number;
spacing: number;
allowPanToNext: boolean;
maxSpreadZoom: number;
loop: boolean;
pinchToClose: boolean;
closeOnScroll: boolean;
closeOnVerticalDrag: boolean;
mouseUsed: boolean;
escKey: boolean;
arrowKeys: boolean;
history: boolean;
galleryUID: number;
galleryPIDs: boolean;
errorMsg: string;
timeToIdle: number;
timeToIdleOutside: number;
loadingIndicatorDelay: number;
closeEl: boolean;
captionEl: boolean;
fullscreenEl: boolean;
zoomEl: boolean;
shareEl: boolean;
counterEl: boolean;
arrowEl: boolean;
preloaderEl: boolean;
tapToClose: boolean;
tapToToggleControls: boolean;
clickToCloseNonZoomable: boolean;
closeElClasses: string[];
indexIndicatorSep: string;
}
export declare class DefaultLightboxAdapter extends LightboxAdapter {
allowPanToNext: boolean;
spacing: number;
bgOpacity: number;
mouseUsed: boolean;
loop: boolean;
pinchToClose: boolean;
closeOnScroll: boolean;
closeOnVerticalDrag: boolean;
hideAnimationDuration: number;
showAnimationDuration: number;
showHideOpacity: boolean;
escKey: boolean;
arrowKeys: boolean;
}
//# sourceMappingURL=lightbox-adapter.d.ts.map