From 479909d5fae96af6f8fbaee4992c4764df3563d7 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 31 Jan 2020 11:22:08 -0500 Subject: [PATCH 1/2] * API: Expose getComputedSlideSize for plugin developers --- js/reveal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/reveal.js b/js/reveal.js index 28fb35a..455cdd8 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -6206,6 +6206,7 @@ getScale: function() { return scale; }, + getComputedSlideSize: getComputedSlideSize, // Returns the current configuration object getConfig: function() { From f0c2d558b7f0e418ac44163a732d9f25af536c35 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 31 Jan 2020 11:24:23 -0500 Subject: [PATCH 2/2] * API: document getComputedSlideSize --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7f78d97..0f11c33 100644 --- a/README.md +++ b/README.md @@ -638,6 +638,8 @@ Reveal.getConfig(); // Fetch the current scale of the presentation Reveal.getScale(); +Reveal.getComputedSlideSize(); // Returns object with width, height keys, and (scaled) presentationWidth and presentationHeight. + // Retrieves the previous and current slide elements Reveal.getPreviousSlide(); Reveal.getCurrentSlide();