diff --git a/README.md b/README.md index b2557652..5f94e70c 100644 --- a/README.md +++ b/README.md @@ -682,6 +682,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(); diff --git a/js/reveal.js b/js/reveal.js index cba1d288..71f5e275 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -6576,6 +6576,7 @@ getScale: function() { return scale; }, + getComputedSlideSize: getComputedSlideSize, // Returns the current configuration object getConfig: function() {