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

Function previousImage

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

Source from the content-addressed store, hash-verified

478 const imageExpandBtn = imageItemElem.querySelector(".imgExpandBtn")
479 imageExpandBtn.addEventListener("click", function () {
480 function previousImage(img) {
481 const allImages = Array.from(outputContainer.parentNode.querySelectorAll(".imgItem img"))
482 const index = allImages.indexOf(img)
483 return allImages.slice(0, index).reverse()[0]
484 }
485
486 function nextImage(img) {
487 const allImages = Array.from(outputContainer.parentNode.querySelectorAll(".imgItem img"))

Callers 1

imageModalParameterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected