Commit graph

45 commits

Author SHA1 Message Date
Victor Seiji Hariki
b186ef4c22 some space-saving measures for checkboxes
Some eye-candy as well

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2023-01-02 21:12:18 -03:00
tim h
5fbf9c37f2 marginally less ugly inpaint mode selector
really don't think it has any need to be a full-on autocomplete fancy thingy
2023-01-01 10:31:49 -06:00
tim h
370994a5d2 extremely ugly WIP implementation of img2img inpaint fill modes 2022-12-31 13:31:31 -06:00
Victor Seiji Hariki
77f40a7928
Merge branch 'main' into testing 2022-12-30 16:25:53 -03:00
Victor Seiji Hariki
4ebdd9ffa6
Only consider text input focus as active
This resolves comment on #116

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-30 16:17:29 -03:00
Victor Seiji Hariki
81e3cc984a add color indication for inpainting models
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-30 08:26:28 -03:00
Victor Seiji Hariki
a95906dc8a sync should now work a bit better; #116
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-29 02:39:32 -03:00
Victor Seiji Hariki
61da4b9d58 fix some errors/better dragging + evaluate
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-27 18:05:09 -03:00
Victor Seiji Hariki
a47fc3ee25 fix wheel validate() handling
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-27 17:59:45 -03:00
Victor Seiji Hariki
3d298473b7 An easy fix for mouse wheel scrolling
Relates to #116

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-25 23:29:03 -03:00
Victor Seiji Hariki
42967f0a9a make cursors less finicky
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-21 18:29:11 -03:00
Victor Seiji Hariki
518e60f44a fix select interaction with layers and wrong sampler
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-21 14:30:35 -03:00
Victor Seiji Hariki
d571eca7b0
some quick fixes for older browsers/documentation
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-18 11:26:47 -03:00
Victor Seiji Hariki
8a0b9d2e8d fix saving canvas negative images
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-17 02:07:10 -03:00
Victor Seiji Hariki
fc7302f8fa fix snapping for negative i values
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-17 01:20:51 -03:00
Victor Seiji Hariki
701e1573bc fix fully negative values on cropCanvas
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-17 00:43:36 -03:00
Victor Seiji Hariki
ea68e25cf0 canvas scaling?
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-17 00:21:28 -03:00
Victor Seiji Hariki
9a81946eef now selection dream compatible with mouse functions
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-15 09:57:41 -03:00
Victor Seiji Hariki
5e6b18503b Should mostly solve #94
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-14 15:12:44 -03:00
Victor Seiji Hariki
7a96d77a7e fix autocomplete value reader and now use blob
It should fix #93

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-13 23:54:38 -03:00
Victor Seiji Hariki
fb83b126c7 supports drag and drop for non-square resolutions
Has a lot of duplicate code... will try refactoring someday. Adding
mouse wheel on selection to scale generation resolution is also a
possibility.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-13 15:17:02 -03:00
Victor Seiji Hariki
0a73687556 add prompt history as suggested in #87
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-12 18:25:32 -03:00
Victor Seiji Hariki
34b995998b fix cropCanvas bounding box
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-12 10:54:26 -03:00
Victor Seiji Hariki
bf025d2ab8 multiselect now also custom autocomplete
This is mainly to free space for the prompt history on #87

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-11 16:01:22 -03:00
Victor Seiji Hariki
f8687e9bac Seems like fix didn't work
performance optimization for firefox seems to have broken chrome after
today's changes. Seems like we will have to accept the slower method of
calculating coordinates. At least it is more flexible.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-08 19:42:14 -03:00
Victor Seiji Hariki
dc914d9243 removing debug calls as always
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-08 19:04:41 -03:00
Victor Seiji Hariki
2cda410b41 add custom select element with autocomplete
Same as a select, but you can kind of search for the item you want. Good
for when you have a lot of models.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-08 18:23:17 -03:00
Victor Seiji Hariki
c2e0cf4615 expand input field relative to drawable canvas
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-08 12:17:59 -03:00
Victor Seiji Hariki
9a08408456 this might fix some of our pixel-alignment issues
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-07 17:05:14 -03:00
Victor Seiji Hariki
3c0eed68ce fix slider strange behavior when mouse left
also added / to all res references

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-07 13:32:33 -03:00
Victor Seiji Hariki
55de66a127 fix some console debug messages
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-06 12:32:37 -03:00
Victor Seiji Hariki
207921978b selection now uses ui canvas
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-06 12:25:06 -03:00
Victor Seiji Hariki
62ddc38f01 layer history and finally layer delete/merge
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-05 23:22:19 -03:00
Victor Seiji Hariki
6222975825 some... i guess performance improvements for chrome
also fixes pixelated view for chrome

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-04 17:02:46 -03:00
Victor Seiji Hariki
14df643326 layers?
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-04 16:22:35 -03:00
Victor Seiji Hariki
aec096b856 layers... now exist?
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-04 08:00:39 -03:00
Victor Seiji Hariki
583f9245b6 fix eyedropper interactions and remove unused code
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-04 00:22:29 -03:00
Victor Seiji Hariki
4549e21293 fix chrome giant icon/add pipette tool (shift)
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-03 20:00:10 -03:00
Victor Seiji Hariki
59e783d159 no more scale factor, support for dream cursor size
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-03 10:05:14 -03:00
Victor Seiji Hariki
4681113f81 finer sliders
Now sliders can have a better precision when editing text than when
dragging.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-03 07:56:48 -03:00
Victor Seiji Hariki
51c90f0466
split settingsbar.js file
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-03 01:13:13 -03:00
Victor Seiji Hariki
c63003e1cf
a quick try at a tool for painting
From yesterday night, just finished some final touches; should be
enough for some cool things.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-01 18:22:12 -03:00
Victor Seiji Hariki
9dcef66c21
some optimization
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-01 18:05:14 -03:00
Victor Seiji Hariki
77380a7b53 remove debug dot in the cursor
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-29 18:23:35 -03:00
Victor Seiji Hariki
44cf9c0e70 Layers.
Been working on this when I could the last few days.
Not quite infinity. Middle mouse button drag, ctrl mouse wheel zoom.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-11-29 17:55:25 -03:00