From bbea4851708111ea71a06d88cf2d0a11d7aaa4b8 Mon Sep 17 00:00:00 2001 From: Xiaohan Zhang Date: Wed, 16 Sep 2015 21:45:26 -0400 Subject: [PATCH] update photoswipe typings to 4.0.8 --- photoswipe/photoswipe-tests.ts | 3 ++- photoswipe/photoswipe.d.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/photoswipe/photoswipe-tests.ts b/photoswipe/photoswipe-tests.ts index ca136f3a2e..e4006d5c13 100644 --- a/photoswipe/photoswipe-tests.ts +++ b/photoswipe/photoswipe-tests.ts @@ -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; diff --git a/photoswipe/photoswipe.d.ts b/photoswipe/photoswipe.d.ts index 16ce87a68c..bf1cf701ba 100644 --- a/photoswipe/photoswipe.d.ts +++ b/photoswipe/photoswipe.d.ts @@ -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 // 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 {