1
0
Fork 0

expose getPastSlideCount() via public API

This can be used by plugins which are concerned with helping the
presenter with their pace.
This commit is contained in:
Adam Spiers 2016-04-16 14:02:21 +01:00
parent eac37990e1
commit d75afd6108
2 changed files with 4 additions and 0 deletions

View File

@ -495,6 +495,7 @@ Reveal.getPreviousSlide();
Reveal.getCurrentSlide(); Reveal.getCurrentSlide();
Reveal.getIndices(); // { h: 0, v: 0 } } Reveal.getIndices(); // { h: 0, v: 0 } }
Reveal.getPastSlideCount();
Reveal.getProgress(); // (0 == first slide, 1 == last slide) Reveal.getProgress(); // (0 == first slide, 1 == last slide)
Reveal.getTotalSlides(); Reveal.getTotalSlides();

View File

@ -4975,6 +4975,9 @@
getState: getState, getState: getState,
setState: setState, setState: setState,
// Presentation progress
getSlidePastCount: getSlidePastCount,
// Presentation progress on range of 0-1 // Presentation progress on range of 0-1
getProgress: getProgress, getProgress: getProgress,