Merge pull request #2574 from christian-classics-ethereal-library/getComputedSlideSize

API: Expose getComputedSlideSize so plugin developers can get width and height.
This commit is contained in:
Hakim El Hattab 2020-02-24 09:04:02 +01:00 committed by GitHub
commit a2155e4fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -682,6 +682,8 @@ Reveal.getConfig();
// Fetch the current scale of the presentation // Fetch the current scale of the presentation
Reveal.getScale(); Reveal.getScale();
Reveal.getComputedSlideSize(); // Returns object with width, height keys, and (scaled) presentationWidth and presentationHeight.
// Retrieves the previous and current slide elements // Retrieves the previous and current slide elements
Reveal.getPreviousSlide(); Reveal.getPreviousSlide();
Reveal.getCurrentSlide(); Reveal.getCurrentSlide();

View File

@ -6576,6 +6576,7 @@
getScale: function() { getScale: function() {
return scale; return scale;
}, },
getComputedSlideSize: getComputedSlideSize,
// Returns the current configuration object // Returns the current configuration object
getConfig: function() { getConfig: function() {