mirror of
https://github.com/vladmandic/automatic
synced 2026-08-31 01:20:59 +02:00
17b7176e0d
A single handler bound to the AR dropdown, width and height (in the shared create_resolution_inputs and the resize section) wrote both sliders on every change. With a ratio selected it locked one axis and snapped it back on each edit, the two sliders looped, and the math ran server-side one round-trip per keystroke, echoing a value back into the field being typed in and yanking it. Move aspect-ratio linking to the browser (ui/resolutionLock.ts): a debounced edit writes only the partner axis, never the field being edited, and commits immediately on blur, enter, or slider release. Keep the kanvas notify on notifyKanvasResize wired to the resize sliders' gradio .change, so it still fires on programmatic size updates (detect, paste, swap) that client-side listeners miss. Drop the per-change AR wiring, res_apply, and the resolutionChange* helpers.
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
// ui/startup.ts
|
|
// Entrypoint for the SD.Next core UI bundle source tree.
|
|
// This file imports the legacy UI modules and vendor packages without changing runtime loader behavior.
|
|
|
|
import './vendor';
|
|
import './startup';
|
|
import './logger';
|
|
import './script';
|
|
import './ui';
|
|
import './uiConfig';
|
|
import './extensions';
|
|
import './contextMenus';
|
|
import './dragDrop';
|
|
import './inputAccordion';
|
|
import './settings';
|
|
import './imageViewer';
|
|
import './gallery';
|
|
import './generationParams';
|
|
import './civitai';
|
|
import './guidance';
|
|
import './hires';
|
|
import './changelog';
|
|
import './control';
|
|
import './logMonitor';
|
|
import './notification';
|
|
import './promptChecker';
|
|
import './setHints';
|
|
import './monitor';
|
|
import './history';
|
|
import './aspectRatioOverlay';
|
|
import './resolutionLock';
|
|
import './authWrap';
|
|
import './autocomplete';
|
|
import './autocomplete_xn';
|
|
import './editAttention';
|
|
import './extraNetworks';
|
|
import './gpu';
|
|
import './imageParams';
|
|
import './progressBar';
|
|
import './timers';
|
|
import './timesheet';
|
|
import './trainMonitor';
|
|
import './indexdb';
|
|
|
|
// Side-effect-only entrypoint; the generated bundle is separate from hand-authored source.
|