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