mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-05-08 12:59:00 +08:00
eslint
This commit is contained in:
parent
96eaca6153
commit
3a1497aaf1
@ -483,7 +483,7 @@ onUiLoaded(async() => {
|
|||||||
(deltaY > 0 ? -changeAmount : changeAmount);
|
(deltaY > 0 ? -changeAmount : changeAmount);
|
||||||
input.value = Math.min(Math.max(newValue, 0), maxValue);
|
input.value = Math.min(Math.max(newValue, 0), maxValue);
|
||||||
} else {
|
} else {
|
||||||
const brush_factor = deltaY > 0 ? 1 - opts.canvas_hotkey_brush_factor : 1 + opts.canvas_hotkey_brush_factor
|
const brush_factor = deltaY > 0 ? 1 - opts.canvas_hotkey_brush_factor : 1 + opts.canvas_hotkey_brush_factor;
|
||||||
const currentRadius = parseFloat(input.value);
|
const currentRadius = parseFloat(input.value);
|
||||||
let delta = Math.sqrt(currentRadius ** 2 * brush_factor) - currentRadius;
|
let delta = Math.sqrt(currentRadius ** 2 * brush_factor) - currentRadius;
|
||||||
// gradio seems to have a minimum brush size step of 1
|
// gradio seems to have a minimum brush size step of 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user