1
0
Fork 0

Expose preview management functions

This commit is contained in:
Stéphane Este-Gracias 2021-02-13 01:20:37 +01:00
parent 9c83edbf13
commit 2d050f83c1
No known key found for this signature in database
GPG Key ID: B92297E2A4048C9B
1 changed files with 4 additions and 3 deletions

View File

@ -2461,9 +2461,6 @@ export default function( revealElement, options ) {
// Randomizes the order of slides // Randomizes the order of slides
shuffle, shuffle,
// Opens a preview window for the target URL
showPreview,
// Returns an object with the available routes as booleans (left/right/top/bottom) // Returns an object with the available routes as booleans (left/right/top/bottom)
availableRoutes, availableRoutes,
@ -2503,6 +2500,10 @@ export default function( revealElement, options ) {
loadSlide: slideContent.load.bind( slideContent ), loadSlide: slideContent.load.bind( slideContent ),
unloadSlide: slideContent.unload.bind( slideContent ), unloadSlide: slideContent.unload.bind( slideContent ),
// Preview management
showPreview,
hidePreview: closeOverlay,
// Adds or removes all internal event listeners // Adds or removes all internal event listeners
addEventListeners, addEventListeners,
removeEventListeners, removeEventListeners,