概览模式

¥Overview Mode

按 »ESC« 或 »O« 键可切换概览模式。在此模式下,你仍然可以在幻灯片之间导航,如同置身于演示文稿上方 1,000 英尺的高空。

¥Press the »ESC« or »O« keys to toggle the overview mode on and off. While you're in this mode, you can still navigate between slides, as if you were at 1,000 feet above your presentation.

带有垂直幻灯片的幻灯片布局

¥Slide layout with vertical slides

API

你可以使用 toggleOverview() API 方法在 JavaScript 中启用或停用概览模式。

¥You can use the toggleOverview() API method to activate or deactivate the overview mode from JavaScript.

// Switch to the opposite of the current state
Reveal.toggleOverview();

// Activate the overview mode
Reveal.toggleOverview(true);

// Deactivate the overview mode
Reveal.toggleOverview(false);

活动

¥Events

当概览模式激活和停用时,我们会触发事件。

¥We fire events when the overview mode is activated and deactivated.

Reveal.on('overviewshown', (event) => {
  /* ... */
});
Reveal.on('overviewhidden', (event) => {
  /* ... */
});