diff --git a/README.md b/README.md index b2557652be10e6df41c1b519255033a4d01e15f9..5f94e70c81f6f672ff33ff0cf51375c8ee454d7f 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 cba1d288dd290665db6d408c73ea922dabbb9a42..71f5e27597788937ae5313d07e4f0c0bf3cd5595 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() {