Commit Graph

126 Commits (94ece4bfd1787707229e7d3eef2e42f12ef5bd70)

Author SHA1 Message Date
richrobber2 94ece4bfd1 Converted the createTooltip function to an arrow function.
Used destructuring in the map and filter callbacks to simplify the access to properties.
Removed the redundant return keyword in the map callback by using implicit return.
2024-06-12 03:18:51 -07:00
richrobber2 698544c974 Used array destructuring to simplify the assignment of canvas, img, and imgUpload.
Used the spread operator (...) to simplify the assignment of rangeWidth, rangeHeight, inputWidth, and inputHeight.
Used array destructuring to simplify the assignment of rangeWidth.value, inputWidth.value, rangeHeight.value, and inputHeight.value.
Converted the for...of loop to a forEach loop for better readability.
2024-06-12 03:15:43 -07:00
richrobber2 504c69040a Converted the forEach callback to an arrow function.
Used optional chaining (?.) to simplify the addition of event listeners to sendToInpainBtn and sendToInpainBtnT2I. This avoids the need for separate if statements.
Used the logical OR operator (||) to simplify the assignment of sendToInpainBtn and sendToInpainBtnT2I. This avoids the need for a separate else block.
2024-06-12 03:13:02 -07:00
richrobber2 9ed3e36193 Converted the setImgDisplayToNone function to an arrow function.
Used optional chaining (?.) to simplify the setting of the display style. This avoids the need for an explicit check if img is truthy before setting its style.
2024-06-12 03:07:54 -07:00
richrobber2 47c4810521 Converted getSendButtons to an arrow function.
Used Boolean() to convert the result of document.querySelector() to a boolean.
Removed the commented out console.log statement.
Used the logical OR operator (||) to simplify the assignment of brush_color and sketch_brush_color in localStorage. This avoids the need for separate if statements.
2024-06-12 03:06:09 -07:00
richrobber2 c51f6bf0f2 Used optional chaining (?.) to simplify the extraction of the zoom level from the scaleMatch array. This avoids the need for an explicit check if scaleMatch is truthy before accessing its second element. 2024-06-12 02:59:08 -07:00
richrobber2 e00b3f58a4 Replaced the multiple equality checks with a single Array.prototype.includes call for better readability.
Used the nullish coalescing operator (??) to simplify the assignment of result[key] when userValue is undefined.
2024-06-12 02:56:04 -07:00
richrobber2 260be2a9cc Used Object.entries and Array.prototype.reduce to iterate over defaultHotkeysConfig and build the result object. This approach is more functional and avoids the need for a separate result object and for...in loop. 2024-06-12 02:51:14 -07:00
richrobber2 333521d2ec minor refactoring 2024-06-12 02:48:08 -07:00
Danil Boldyrev b221123739 fix for inc and dec buttons 2024-03-01 22:01:37 +03:00
Danil Boldyrev 736268215d Fixed an bug when changing brush size via buttons 2024-02-01 10:51:11 +03:00
Danil Boldyrev 26450143c5 Added the ability to change the % of change in brush size 2023-12-12 23:26:16 +03:00
Danil Boldyrev 36762c013e Added hotkeys for change brush size, increased the maximum brush size fixed the bug 2023-09-26 19:08:17 +03:00
Danil Boldyrev 96125f540b remove console.log 2023-09-01 20:41:51 +03:00
Danil Boldyrev 74828c4495 fix button color 2023-09-01 20:15:33 +03:00
Danil Boldyrev edf5f981d2 remove console.log 2023-08-24 21:14:06 +03:00
Danil Boldyrev f776de54c9 Fixes for gradio 3.41 2023-08-24 21:03:35 +03:00
Danil Boldyrev 17369a8ba6 fix auto-expand for extensions 2023-08-24 18:32:46 +03:00
Danil Boldyrev 668f958ba1 Synchronized the changes with version 1.6 2023-08-24 18:23:52 +03:00
Danil Boldyrev 439c414c6c Added the ability to control the level of transparency
in new webui
2023-08-16 21:51:45 +03:00
Danil Boldyrev 910a12a6b5 fix for new webui 2023-08-16 20:53:11 +03:00
Danil Boldyrev e2cf341d1d Fix auto-expand again 2023-08-16 11:32:44 +03:00
richrobber2 a2592b6ccc change formating 2023-08-11 21:44:07 -07:00
richrobber2 60b8034d38 make it use else because its easier to read 2023-08-11 21:37:05 -07:00
richrobber2 57be391c58 added a error msg cause there is no reason not to 2023-08-11 21:24:28 -07:00
richrobber2 9b12edaa74 removed a useless comment that i made 2023-08-11 21:20:58 -07:00
richrobber2 27284e1f8f reduced nesting 2023-08-11 21:20:44 -07:00
Danil Boldyrev 44c13878c4 fix auto-expand 2023-08-09 18:29:27 +03:00
Danil Boldyrev c5b0591cdf Enabled a couple of default settings, 1 tab in controlNet works too 2023-08-09 13:38:12 +03:00
Danil Boldyrev a65dcd0b2f Update Readme 2023-08-05 20:23:41 +03:00
Danil Boldyrev 4af4fbc10c Fix bug with controlnet 2023-08-05 20:18:43 +03:00
Danil Boldyrev 75141da35f Update versions for upcoming 1.6, fix bug with auto expand 2023-08-05 19:18:12 +03:00
Danil Boldyrev 9d5757d2c5 Added the ability to automatically expand the canvas 2023-08-04 22:43:36 +03:00
Danil Boldyrev 5d2c423ba3 Add integration with Inpaint Anything extension 2023-08-04 21:22:44 +03:00
Danil Boldyrev be66fb61f5 Fix "Undo" on Aux buttons 2023-07-29 15:55:22 +03:00
Danil Boldyrev d39a4ebc0b Fix "Fit to screen" func
For some reason a recent optimization was causing this function to misbehave, I rolled back the changes
2023-07-29 15:27:15 +03:00
Danil Boldyrev 398c8cb04c Improved the cancel button function, can be configured
Also fix minor bug
2023-07-24 11:03:17 +03:00
Danil Boldyrev 48f8258690 Small improvments, Fixed code bugs 2023-07-21 13:47:24 +03:00
richrobber2 c5d48edc89 docs & small optimizations to dom ops 2023-07-21 02:22:36 -07:00
Danil Boldyrev 883504305f Fix bug with zoom 2023-07-21 00:40:35 +03:00
Danil Boldyrev 45c805fda9 Improve mask clearing func 2023-07-21 00:19:45 +03:00
Danil Boldyrev 68237087a6 Refactored and simplified the code for integrations 2023-07-20 17:57:49 +03:00
Danil Boldyrev 45619b3256 Fix for zoom in controlNet now you can now not disable the built-in extension 2023-07-20 17:23:21 +03:00
Danil Boldyrev 836deaecd7 Additional trigger for buttons 2023-07-20 11:08:01 +03:00
Danil Boldyrev 2d10f43bac fix for Extra network 2023-07-20 11:01:05 +03:00
Danil Boldyrev cb7a3d5e75 Fix bug with reset zoom 2023-07-18 19:47:11 +03:00
Danil Boldyrev 402912b5ff Small improvements for working on the phone 2023-07-17 16:30:24 +03:00
Danil Boldyrev 648a614177 fix for SD.Next 2023-07-16 13:20:01 +03:00
Danil Boldyrev 2ecb43edeb Now the buttons are hidden while drawing 2023-07-16 11:43:00 +03:00
Danil Boldyrev eab9ddec9e Fixed the inpaint color change when loading 2023-07-05 13:29:56 +03:00