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
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
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
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
Danil Boldyrev
38aca6f605
Added a hotkey repeat check to avoid bugs
2023-06-02 01:26:25 +03:00
Danil Boldyrev
68c4beab46
Added the ability to configure hotkeys via webui
...
Now you can configure the hotkeys directly through the settings
JS and Python scripts are tested and code style compliant
2023-06-02 01:04:17 +03:00
Danil Boldyrev
c5d70fe1d3
Fixed the problem with sticking to the mouse, created a tooltip
2023-05-31 23:02:49 +03:00
Danil Boldyrev
c928c228af
a small fix for very wide images, because of the scroll bar was the wrong zoom
2023-05-30 16:35:52 +03:00
Danil Boldyrev
8ab4e55fe3
Moved the script to the extension build-in
2023-05-29 21:39:10 +03:00
Danil Boldyrev
4d7b63f489
changed the document to gradioApp()
2023-05-28 20:32:21 +03:00
Danil Boldyrev
f48bce5f68
Corrected the code according to Code style
2023-05-28 20:22:35 +03:00
Danil Boldyrev
9e69009d1b
Improve reset zoom when toggle tabs
2023-05-28 01:56:48 +03:00
Danil Boldyrev
433c70b403
Formatted Prettier added fullscreen mode canvas expansion function
2023-05-28 01:31:23 +03:00
Danil Boldyrev
662af75973
Ability to zoom and move the canvas
2023-05-27 22:54:45 +03:00