Commit Graph

  • b9c3cff892
    fix typo main testing_refactoring Danil Boldyrev 2024-08-13 15:02:30 +0300
  • ee84edc040
    Update README.MD Danil Boldyrev 2024-08-13 15:02:12 +0300
  • 6d17d9ff12 Fixed a problem with gradio 4+ Danil Boldyrev 2024-08-13 14:59:48 +0300
  • 63ca81ef1d
    Revert Danil Boldyrev 2024-06-17 13:05:47 +0300
  • 5e5e36cb39
    Update README.MD (#108) richrobber2 2024-06-14 16:09:29 -0700
  • b1fadac08d Destructuring: Instead of accessing e.ctrlKey, e.metaKey, e.target, and e.code separately, we can destructure these properties directly in the function parameters. This makes the code cleaner and easier to read. richrobber2 2024-06-12 04:04:54 -0700
  • 4330e06ebe Destructuring: Instead of accessing e.deltaY multiple times, we can destructure it directly in the function parameters. This makes the code cleaner and easier to read. richrobber2 2024-06-12 04:01:46 -0700
  • 37d49a66b4 Optional Chaining (?.): This operator allows you to read the value of a property located deep within a chain of connected objects without having to check that each reference in the chain is valid. It's used here to safely access img2imgTabs and querySelectorAll properties of elements. If elements or img2imgTabs is null or undefined, it will return undefined instead of throwing an error. richrobber2 2024-06-12 03:58:41 -0700
  • 21299deb69 use object destructuring richrobber2 2024-06-12 03:56:31 -0700
  • 436419230f Logical AND (&&) operator: I've used the logical AND (&&) operator to conditionally execute the addEventListener method. In JavaScript, if the first operand of the && operator is falsy, the second operand is not evaluated. This makes the code more concise and eliminates the need for an if statement. richrobber2 2024-06-12 03:52:10 -0700
  • a6dbceec24 Arrow function: I've used an arrow function instead of a function declaration. Arrow functions are more concise and have simpler syntax. They also have lexical this binding, which can be useful in certain contexts. richrobber2 2024-06-12 03:50:07 -0700
  • b26e9bc5bb toLowerCase(): I've replaced toLocaleLowerCase() with toLowerCase(). While toLocaleLowerCase() considers locale specific rules for converting characters, toLowerCase() does not. In this case, since we're comparing with the string "none", locale specific rules are not necessary. richrobber2 2024-06-12 03:47:34 -0700
  • 842cf475c6 Refactor fitToElement function for better readability and efficiency richrobber2 2024-06-12 03:43:43 -0700
  • a6ec26e03b destructure for ease of reading richrobber2 2024-06-12 03:35:56 -0700
  • a15a3c759a Converted the updateZoom function to an arrow function. Removed the use of Object.assign for targetElement.style as it's not necessary. Directly assigning the properties is more readable and efficient. richrobber2 2024-06-12 03:34:04 -0700
  • 7611b51352 Refactor brush size adjustment function for better readability and maintainability richrobber2 2024-06-12 03:29:10 -0700
  • 92a5bd84d0 Used optional chaining (?.) to simplify the addition of the event listener to closeBtn. This avoids the need for an explicit check if closeBtn is truthy. Combined the three if conditions that call fitToElement() into a single condition using logical OR (||), to avoid code duplication. richrobber2 2024-06-12 03:25:20 -0700
  • c5cc39fe1e Converted the fixCanvas function to an arrow function. Used optional chaining (?.) to simplify the check if img exists and its display style is not "none". This avoids the need for an explicit check if img is truthy. richrobber2 2024-06-12 03:22:45 -0700
  • 41ef5671f9 Converted the createFuncButtons function to an arrow function. Created a helper function createButton to avoid code duplication when creating the buttons. Used template literals to simplify the creation of the button's className and innerHTML. richrobber2 2024-06-12 03:21:15 -0700
  • 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. richrobber2 2024-06-12 03:18:51 -0700
  • 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. richrobber2 2024-06-12 03:15:43 -0700
  • 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. richrobber2 2024-06-12 03:13:02 -0700
  • 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. richrobber2 2024-06-12 03:07:54 -0700
  • 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. richrobber2 2024-06-12 03:06:09 -0700
  • 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. richrobber2 2024-06-12 02:59:08 -0700
  • 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. richrobber2 2024-06-12 02:56:04 -0700
  • 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. richrobber2 2024-06-12 02:51:14 -0700
  • 333521d2ec minor refactoring richrobber2 2024-06-12 02:48:08 -0700
  • 2aec7d6ca8
    add local version of russian to language label richrobber2-readme-updates richrobber2 2024-04-14 12:10:10 -0700
  • 106e796151
    change to a language dir richrobber2 2024-04-14 12:07:04 -0700
  • 88907b287a
    link to russian read me richrobber2 2024-04-14 12:04:45 -0700
  • 969f600cf0
    Update README.MD richrobber2 2024-04-14 12:00:33 -0700
  • 72d4f5de63 console log because its important error-handling-improvements richrobber2 2024-03-30 11:14:32 -0700
  • 7804820e70 useless comments richrobber2 2024-03-30 11:01:40 -0700
  • 897bcad2e7 add some object checks for cases when they have been changed richrobber2 2024-03-30 10:58:05 -0700
  • b221123739 fix for inc and dec buttons main-backup Danil Boldyrev 2024-03-01 22:01:37 +0300
  • fa1acfce2c add back normal support... oops pen-pressure-support richrobber2 2024-02-17 20:59:57 -0800
  • e3e5817a0d mobile zoom and pan support richrobber2 2024-02-17 20:52:39 -0800
  • 33bb2343a3 pen pressure support richrobber2 2024-02-17 19:20:11 -0800
  • 736268215d Fixed an bug when changing brush size via buttons Gradio-v4-updates Danil Boldyrev 2024-02-01 10:51:11 +0300
  • 55cbff67c0 Fix for working with SDNext Danil Boldyrev 2024-02-01 10:29:40 +0300
  • 26450143c5 Added the ability to change the % of change in brush size Danil Boldyrev 2023-12-12 23:26:16 +0300
  • 36762c013e Added hotkeys for change brush size, increased the maximum brush size fixed the bug Danil Boldyrev 2023-09-26 19:08:17 +0300
  • 120f46efe6 Update modifyed gradio Danil Boldyrev 2023-09-26 19:04:24 +0300
  • efba3a949d Improving proper uninstallation Danil Boldyrev 2023-09-06 06:11:55 +0300
  • 96125f540b remove console.log Danil Boldyrev 2023-09-01 20:41:51 +0300
  • 74828c4495 fix button color Danil Boldyrev 2023-09-01 20:15:33 +0300
  • 0029e7c617
    Update info about 1.6 Danil Boldyrev 2023-08-31 22:28:52 +0300
  • efe589f697
    Update README.MD Danil Boldyrev 2023-08-31 22:28:02 +0300
  • de8a02d72d update gradio to 3.41.2, fix for webui 1.6 Danil Boldyrev 2023-08-31 22:22:35 +0300
  • 1bfb259f27 Returned the ability to select a color, added in 1.6 Danil Boldyrev 2023-08-24 21:56:53 +0300
  • edf5f981d2 remove console.log Danil Boldyrev 2023-08-24 21:14:06 +0300
  • f776de54c9 Fixes for gradio 3.41 Danil Boldyrev 2023-08-24 21:03:35 +0300
  • 1407ea50e6 Update modifyed gradio to 3.41 Danil Boldyrev 2023-08-24 19:21:16 +0300
  • 17369a8ba6 fix auto-expand for extensions Danil Boldyrev 2023-08-24 18:32:46 +0300
  • 668f958ba1 Synchronized the changes with version 1.6 Danil Boldyrev 2023-08-24 18:23:52 +0300
  • 439c414c6c Added the ability to control the level of transparency Danil Boldyrev 2023-08-16 21:51:45 +0300
  • 910a12a6b5 fix for new webui Danil Boldyrev 2023-08-16 20:53:11 +0300
  • e2cf341d1d Fix auto-expand again Danil Boldyrev 2023-08-16 11:32:44 +0300
  • a2592b6ccc change formating richrobber2 2023-08-11 21:44:07 -0700
  • 60b8034d38 make it use else because its easier to read richrobber2 2023-08-11 21:37:05 -0700
  • 57be391c58 added a error msg cause there is no reason not to richrobber2 2023-08-11 21:24:28 -0700
  • 9b12edaa74 removed a useless comment that i made richrobber2 2023-08-11 21:20:58 -0700
  • 27284e1f8f reduced nesting richrobber2 2023-08-11 21:20:44 -0700
  • 44c13878c4 fix auto-expand Danil Boldyrev 2023-08-09 18:29:27 +0300
  • c5b0591cdf Enabled a couple of default settings, 1 tab in controlNet works too Danil Boldyrev 2023-08-09 13:38:12 +0300
  • 1cb9207849 quick fix for sd-webui-aki Danil Boldyrev 2023-08-07 07:33:06 +0300
  • f2ae18e986 quick fix for sd-webui-aki Danil Boldyrev 2023-08-07 07:24:37 +0300
  • 4dc3e1963f
    Update README.MD Danil Boldyrev 2023-08-05 20:24:26 +0300
  • a65dcd0b2f Update Readme Danil Boldyrev 2023-08-05 20:23:41 +0300
  • 4af4fbc10c Fix bug with controlnet Danil Boldyrev 2023-08-05 20:18:43 +0300
  • 75141da35f Update versions for upcoming 1.6, fix bug with auto expand Danil Boldyrev 2023-08-05 19:18:12 +0300
  • c0e047e73a
    Update info about upcoming 1.6 Danil Boldyrev 2023-08-05 12:29:12 +0300
  • 9d5757d2c5 Added the ability to automatically expand the canvas Danil Boldyrev 2023-08-04 22:43:36 +0300
  • 5d2c423ba3 Add integration with Inpaint Anything extension Danil Boldyrev 2023-08-04 21:22:44 +0300
  • be66fb61f5 Fix "Undo" on Aux buttons Danil Boldyrev 2023-07-29 15:55:22 +0300
  • d39a4ebc0b Fix "Fit to screen" func Danil Boldyrev 2023-07-29 15:27:15 +0300
  • dd306549b5
    Update info about 1.5 Danil Boldyrev 2023-07-25 19:33:34 +0300
  • 398c8cb04c Improved the cancel button function, can be configured Danil Boldyrev 2023-07-24 11:03:17 +0300
  • 2baed3283c
    Return warning in txt2img mode by default Danil Boldyrev 2023-07-21 14:08:26 +0300
  • 849aff02c9
    Merge pull request #84 from richrobber2/jsdocs Danil Boldyrev 2023-07-21 14:03:46 +0300
  • 48f8258690 Small improvments, Fixed code bugs Danil Boldyrev 2023-07-21 13:47:24 +0300
  • c5d48edc89 docs & small optimizations to dom ops richrobber2 2023-07-21 02:22:36 -0700
  • 883504305f Fix bug with zoom Danil Boldyrev 2023-07-21 00:40:35 +0300
  • 45c805fda9 Improve mask clearing func Danil Boldyrev 2023-07-21 00:19:45 +0300
  • 68237087a6 Refactored and simplified the code for integrations Danil Boldyrev 2023-07-20 17:57:49 +0300
  • 29159a88f7
    Update info about integration Danil Boldyrev 2023-07-20 17:31:57 +0300
  • 45619b3256 Fix for zoom in controlNet now you can now not disable the built-in extension Danil Boldyrev 2023-07-20 17:23:21 +0300
  • 836deaecd7 Additional trigger for buttons Danil Boldyrev 2023-07-20 11:08:01 +0300
  • 2d10f43bac fix for Extra network Danil Boldyrev 2023-07-20 11:01:05 +0300
  • cb7a3d5e75 Fix bug with reset zoom Danil Boldyrev 2023-07-18 19:47:11 +0300
  • 402912b5ff Small improvements for working on the phone Danil Boldyrev 2023-07-17 16:30:24 +0300
  • 66075d5fa9 Disabled inpaint toast warning in txt2img by default Danil Boldyrev 2023-07-17 15:36:13 +0300
  • 215fbc1cba
    Update README.MD Danil Boldyrev 2023-07-17 15:33:23 +0300
  • 648a614177 fix for SD.Next Danil Boldyrev 2023-07-16 13:20:01 +0300
  • 2ecb43edeb Now the buttons are hidden while drawing Danil Boldyrev 2023-07-16 11:43:00 +0300
  • ed596e8039 fix colab bug Danil Boldyrev 2023-07-05 17:41:20 +0300
  • eab9ddec9e Fixed the inpaint color change when loading Danil Boldyrev 2023-07-05 13:29:56 +0300
  • 7c199c7d07 remove debug code Danil Boldyrev 2023-07-05 04:16:08 +0300
  • a8d11f6555 Improved the inpaint warning added the ability to paint a different color button generate Danil Boldyrev 2023-07-05 04:11:36 +0300