Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce alternate pacing timer, based on total presentation time
The current pacing timer operates on the assumption that there is a default amount of time to be allocated to each slide, and that individual slides can deviate from that default by specifying their own data-timing attribute. This patch introduces an alternate pacing method: by specifying the totalTime configuration option, the presenter can set the total time available to present. The pacing timer will then continue to allocate the exact pacing time for slides that do have data-timing set, as before. However, rather than applying the defaultTiming constant to all others, it will - Add up the time already allocated to slides via data-timing; - subtract that from totalTime; - divide the difference by the number of slides without data-timing set; - apply the thus-calculated average to those slides. In order to maintain backward compatibility, defaultTiming overrides totalTime. That is to say, if both defaultTiming and totalTime are set to nonzero, non-null values, defaultTiming wins and totalTime is ignored. Only if defaultTiming is 0 or null, and totalTime is set, the totalTime pacing calculation applies.
- Loading branch information