mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-09-01 10:42:54 +02:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user