image gen has now index 0 to show what was before the image generation.
this is especially useful for img2img
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Seems scroll delta is inconsistent between browsers, so for my chromium
installation it was simply not working at all due to snapping. Made it
so every event is a cursor size change for now. probably bad for smooth
mouse wheels, but for a complete fix we would have to keep track of
pixels scrolled and probably add a mouse wheel sensitivity setting
somewhere.
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Add some shortcuts to dream image selection and fix strange cursor
behavior on resource add from dream. (l/r arrow keys for navigation,
enter for image select; esc for reject)
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
At least temporarily, still want to check what causes smaller canvases
to break pixel perfection
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Been working on this when I could the last few days.
Not quite infinity. Middle mouse button drag, ctrl mouse wheel zoom.
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Moved type definitions to .d.js files to avoid clutter and network
overhead. Added typing to input.js, but still no event typing
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Blue masking means SD will try to keep image as-is under the mask. Red
masking means SD will try to replace whatever is under the mask. (Red is
default masking, Blue is inverted masking)
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Progress check now has a 1.5s timing window (we can update it to wait
for the last update before sending a new progress request in the future)
Fixed dream() call in img2img tool
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Former-commit-id: c137f13e5a71f0b62cc7094bd53f8a4e5f89fcb6
Also updates a lot of other things (brush size now independent from
scale factor, split some files, and a lot other things; removed erase
safeguard as now erase is supported by undo/redo; tried adding github
prettier autoformatting to pull requests;
may have some other things as well
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Former-commit-id: 0ba21f23c69f9dca2c3189a838b945900b01f81d