MCPcopy
hub / github.com/hakimel/reveal.js / syncSlide

Function syncSlide

js/reveal.js:1599–1616  ·  view source on GitHub ↗

* Updates reveal.js to keep in sync with new slide attributes. For * example, if you add a new `data-background-image` you can call * this to have reveal.js render the new background image. * * Similar to #sync() but more efficient when you only need to * refresh a specific slide. * *

( slide = currentSlide )

Source from the content-addressed store, hash-verified

1597 * @param {HTMLElement} slide
1598 */
1599 function syncSlide( slide = currentSlide ) {
1600
1601 backgrounds.sync( slide );
1602 fragments.sync( slide );
1603
1604 slideContent.load( slide );
1605
1606 backgrounds.update();
1607 notes.update();
1608
1609 dispatchEvent({
1610 type: 'slidesync',
1611 data: {
1612 slide
1613 }
1614 });
1615
1616 }
1617
1618 /**
1619 * Resets all vertical slides so that only the first

Callers

nothing calls this directly

Calls 4

dispatchEventFunction · 0.85
syncMethod · 0.65
loadMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…