update photoswipe typings to 4.0.8

This commit is contained in:
Xiaohan Zhang
2015-09-16 21:45:26 -04:00
parent 5f48028783
commit bbea485170
2 changed files with 10 additions and 2 deletions

View File

@@ -51,7 +51,8 @@ function test_defaultUI() {
return el.tagName === 'A';
},
mainScrollEndFriction: 0.35,
panEndFriction: 0.35
panEndFriction: 0.35,
modal: true
};
var photoSwipe: PhotoSwipe<PhotoSwipeUI_Default.Options>;

View File

@@ -1,4 +1,4 @@
// Type definitions for PhotoSwipe 4.0.7
// Type definitions for PhotoSwipe 4.0.8
// Project: http://photoswipe.com/
// Definitions by: Xiaohan Zhang <https://github.com/hellochar>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -308,6 +308,13 @@ declare module PhotoSwipe {
* }
*/
isClickableElement?: (el: HTMLElement) => boolean;
/**
* Controls whether PhotoSwipe should expand to take up the entire viewport.
* If false, the PhotoSwipe element will take the size of the positioned parent of the template. Take a look at the FAQ for more
* information.
*/
modal?: boolean;
}
interface UIFramework {