* 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 )
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…