Commit Graph

55 Commits

Author SHA1 Message Date
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
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
Aarni Koskela
68cda4f213 Zoom and Pan: use elementIDs from closure scope 2023-06-05 10:37:00 +03:00
Aarni Koskela
8fd20bd4c3 Zoom and Pan: move helpers into its namespace to avoid littering global scope 2023-06-05 10:36:55 +03:00
Danil Boldyrev
0432e37843 Correct definition zoom level
I changed the regular expression and now I always have to select scale from style.transfo
2023-06-04 04:17:55 +03:00
Danil Boldyrev
ad3d6d9a22 Fixed visual bugs 2023-06-04 03:38:21 +03:00
Danil Boldyrev
1a49178330 Made a function applyZoomAndPan isolated each instance
Isolated each instance of applyZoomAndPan, now if you add another element to the page, they will work correctly
2023-06-04 03:04:46 +03:00
Danil Boldyrev
dc273f7473 Fixed the redmask bug 2023-06-04 01:18:27 +03:00
Danil Boldyrev
3e3635b114 Made the applyZoomAndPan function global for other extensions 2023-06-03 19:24:05 +03:00
Danil Boldyrev
5b682be59a small ui fix
In the error the user will see R instead of KeyR
2023-06-03 02:24:57 +03:00
Danil Boldyrev
1e0ab4015d Added the ability to swap the zoom hotkeys and resize the brush 2023-06-03 02:18:49 +03:00
Danil Boldyrev
d306d25e56 Made tooltip optional.
You can disable it in the settings.
Enabled by default
2023-06-02 19:10:28 +03:00