MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / imageModalParameter

Function imageModalParameter

ui/media/js/main.js:492–501  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

490 }
491
492 function imageModalParameter(img) {
493 const previousImg = previousImage(img)
494 const nextImg = nextImage(img)
495
496 return {
497 src: img.src,
498 previous: previousImg ? () => imageModalParameter(previousImg) : undefined,
499 next: nextImg ? () => imageModalParameter(nextImg) : undefined,
500 }
501 }
502
503 imageModal(imageModalParameter(imageElem))
504 })

Callers 1

showImagesFunction · 0.85

Calls 2

previousImageFunction · 0.85
nextImageFunction · 0.85

Tested by

no test coverage detected