catboxanon
25f636cb3a
Merge branch 'dev' into gradio4
2024-03-24 16:26:38 -04:00
Andray
c3f75d1d85
little fixes zoom.js
2024-03-17 10:30:11 +04:00
Andray
e9b8a89b3c
allow use zoom.js outside webui context
2024-03-17 09:29:11 +04:00
AUTOMATIC1111
93c7b9d7fc
linter for #15262
2024-03-17 07:02:31 +03:00
AUTOMATIC1111
0283826179
prevent make alt key from opening main menu if it's used for brush size also
2024-03-16 18:44:36 +03:00
AUTOMATIC1111
2f9d1c33e2
Merge pull request #15267 from light-and-ray/prevent_alt_menu_on_firefox
...
prevent alt menu for firefox
2024-03-16 18:31:55 +03:00
Andray
c364b60776
handle 0 wheel deltaX
2024-03-16 18:08:02 +04:00
Andray
7598a92436
use e.key instead of e.code
2024-03-16 17:49:05 +04:00
Andray
eb2ea8df1d
check e.key in up event
2024-03-16 17:42:25 +04:00
Andray
9142ce8188
fix linter and do not require reload page if option was changed
2024-03-16 16:14:57 +04:00
Andray
79514e5b8e
prevent defaults for alt only if mouse inside image
2024-03-16 16:06:21 +04:00
Andray
6f51e05553
prevent alt menu for firefox
2024-03-15 12:12:37 +04:00
Aarni Koskela
e3fa46f26f
Fix various typos with crate-ci/typos
2024-03-04 08:42:07 +02:00
Danil Boldyrev
7af009deb5
moved the part of code to a more suitable place, lint
2024-02-02 02:14:54 +03:00
Danil Boldyrev
9ccdbe2f84
fix caused unnecessary borders when the cursor leaves the drawing area
2024-02-02 01:40:25 +03:00
Danil Boldyrev
02e9c79ec5
Fixed a bug with the cursor size when scrolling
...
When scrolling there is a bug, a gradio bug, because of which a parameter breaks the cursor size and it becomes bigger, so I made a solution that gets rid of this problem
2024-02-02 01:32:13 +03:00
Danil Boldyrev
b389727e31
place the cursor next to the original
2024-02-01 16:00:23 +03:00
Danil Boldyrev
7eda3319de
Remove unused code and lint
2024-02-01 15:43:01 +03:00
Danil Boldyrev
c2ab058897
Made the zoom functionality work, both for drawing and erasing
2024-02-01 15:20:21 +03:00
Danil Boldyrev
a08eff391e
Temporary fix that returns functionality when sending via buttons
2024-02-01 12:13:25 +03:00
Danil Boldyrev
733f8c7c51
fix fitToScreen and adjustBrushSize funcs in zoom.js
2024-02-01 11:46:20 +03:00
Danil Boldyrev
ca7ba7d394
Fix the startup zoom error
2024-02-01 11:29:06 +03:00
WebDev
30f31d23c6
Update hotkey_config.py
2024-01-19 16:39:33 -08:00
WebDev
bcdcc8be7d
Update hotkey_config.py
2024-01-19 16:39:07 -08:00
WebDev
4dde96109b
Update zoom.js
2024-01-19 16:38:34 -08:00
WebDev
39db1d09d1
Update zoom.js
2024-01-14 01:43:23 -08:00
WebDev
92032f2da8
Update hotkey_config.py
2024-01-14 01:42:03 -08:00
WebDev
541881e318
Adjust brush size with hotkeys.
2024-01-13 02:11:06 -08:00
Danil Boldyrev
c39efa6ba6
Zoom and Pan: Resize handler
2023-08-24 17:30:35 +03:00
Danil Boldyrev
fa68d66c98
remove console.log
2023-08-24 01:42:37 +03:00
Danil Boldyrev
32e790a47e
Fixing and improving integration
2023-08-24 01:40:06 +03:00
Danil Boldyrev
6a87e35bef
lint
2023-08-23 03:35:09 +03:00
Danil Boldyrev
8fd1558179
Removed the old code
2023-08-23 03:21:28 +03:00
Danil Boldyrev
54fbdcf467
Improve integration, fix for new gradio
2023-08-22 16:43:23 +03:00
Danil Boldyrev
045f740892
Height fix
2023-08-10 16:17:52 +03:00
Danil Boldyrev
ed01d2ee3b
a another fix, a different approach
2023-08-10 13:45:25 +03:00
Danil Boldyrev
4a64d34001
fix auto-expand
2023-08-09 18:40:45 +03:00
Danil Boldyrev
e12a1be1ca
auto-expand enable by default for js
2023-08-09 00:14:19 +03:00
Danil Boldyrev
a74c014425
auto-expand enable by default
2023-08-09 00:06:51 +03:00
Danil Boldyrev
bc7906e6d6
Ability to automatically expand a picture that does not fit in the screen
2023-08-08 21:28:16 +03:00
Danil Boldyrev
f325783abd
made the blur function optional, added exclusion buttons
2023-07-04 22:26:43 +03:00
Danil Boldyrev
8519d52ef5
fixing the copy/paste function, correct code
2023-07-02 19:20:49 +03:00
gshawn3
8a07c59baa
fix for #11534 : canvas zoom and pan extension hijacking shortcut keys
2023-06-30 03:49:26 -07:00
Danil Boldyrev
3a41d7c551
Formatting code with Prettier
2023-06-14 00:31:36 +03:00
Danil Boldyrev
9b687f013d
Reworked the disabling of functions, refactored part of the code
2023-06-14 00:24:25 +03:00
Danil Boldyrev
9a2da597c5
remove console.log
2023-06-12 22:21:42 +03:00
Danil Boldyrev
ee029a8cad
Improved error output, improved settings menu
2023-06-12 22:19:22 +03:00
Aarni Koskela
2d4c66f7b5
Zoom and Pan: simplify waitForOpts
2023-06-05 10:40:42 +03:00
Aarni Koskela
6163b38ad9
Zoom and Pan: use for instead of forEach
2023-06-05 10:37:00 +03:00
Aarni Koskela
afbb0b5f86
Zoom and Pan: simplify getElements (it's not actually async)
2023-06-05 10:37:00 +03:00