/** * View control for rendered reveal.js slideshows. * * A built deck opens as a presentation: one slide at a time, arrow keys to * advance. That is what an audience should see and a poor way to *write* a * deck — an author wants the whole thing at once, scrolling like every other * preview in the editor. reveal.js has exactly that built in (its "scroll * view"), and this module turns it on. * * ## Why a script, and why this one * * Reveal reads `view: 'scroll'` from the config passed to `Reveal.initialize`, * and only there: internally the activation runs once, from the routine that * fires after plugins load, so a later `Reveal.configure({view: 'scroll'})` * sets the value but activates nothing. The URL form (`?view=scroll`) is no * help either — the extension assigns `webview.html` directly, so there is no * query string of ours for reveal to parse. * * That leaves the config object, which PreTeXt writes into the page as a * literal at the end of the document. Rather than rewrite that literal — which * would bind us to its exact emitted text — {@link revealBridgeScript} wraps * `Reveal.initialize` itself and merges the overrides over whatever the deck * passes. The script is injected immediately after reveal.js's own `