Commit graph

27 commits

Author SHA1 Message Date
tim h
02bf04c257 kinda janky identical pixel removal?
surprise

"manual scripts" has kinda become inadequate for all this branch is doing now lol
2023-01-29 16:39:00 -06:00
Victor Seiji Hariki
643f79fb84 Optimize background drawing by leveraging CSS
We now use CSS to background tile the grid

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2023-01-18 20:55:04 -03:00
Victor Seiji Hariki
35a62ae9fe back to original transform tool state
But way more flexible implementation

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2023-01-12 01:00:06 -03:00
Victor Seiji Hariki
d7e20f87dc putting back selection 1
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2023-01-11 00:36:14 -03:00
Victor Seiji Hariki
8d88ca6632 Merge branch 'transform-vp' into rotate
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2023-01-10 01:08:48 -03:00
Victor Seiji Hariki
857cb29c12 migrates vp to DOMMatrix implementation
breaks select, but it was broken anyway.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2023-01-10 01:03:28 -03:00
Victor Seiji Hariki
b056f81155 test
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2023-01-08 18:21:08 -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
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
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
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
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
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
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
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
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
Renamed from js/util.js (Browse further)