forked from extern/easydiffusion
formatting
This commit is contained in:
parent
34de4fe8fe
commit
01c1c77564
@ -2797,10 +2797,12 @@ let recentResolutionsValues = []
|
||||
})
|
||||
}
|
||||
|
||||
enlargeButtons.querySelectorAll("button").forEach( button => button.addEventListener("click", e => {
|
||||
enlargeButtons.querySelectorAll("button").forEach((button) =>
|
||||
button.addEventListener("click", (e) => {
|
||||
enlargeImageSize(parseFloat(button.dataset["factor"]))
|
||||
hidePopup()
|
||||
}))
|
||||
})
|
||||
)
|
||||
|
||||
customWidthField.addEventListener("change", () => {
|
||||
let w = customWidthField.value
|
||||
@ -2842,7 +2844,7 @@ let recentResolutionsValues = []
|
||||
]
|
||||
let _jsonstring = localStorage.recentResolutionsValues
|
||||
if (_jsonstring == undefined) {
|
||||
recentResolutionsValues = defaultResolutionsValues;
|
||||
recentResolutionsValues = defaultResolutionsValues
|
||||
localStorage.recentResolutionsValues = JSON.stringify(recentResolutionsValues)
|
||||
} else {
|
||||
recentResolutionsValues = JSON.parse(localStorage.recentResolutionsValues)
|
||||
@ -2887,7 +2889,7 @@ let recentResolutionsValues = []
|
||||
}
|
||||
})
|
||||
|
||||
resizeSlider.addEventListener("input", e => {
|
||||
resizeSlider.addEventListener("input", (e) => {
|
||||
let w = parseInt(resizeSlider.dataset["w"])
|
||||
let h = parseInt(resizeSlider.dataset["h"])
|
||||
let factor = parseFloat(resizeSlider.value)
|
||||
@ -2897,7 +2899,7 @@ let recentResolutionsValues = []
|
||||
customHeightField.value = roundToMultiple(h * factor * factor, step)
|
||||
})
|
||||
|
||||
resizeSlider.addEventListener("change", e => {
|
||||
resizeSlider.addEventListener("change", (e) => {
|
||||
hidePopup()
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user