Commit Graph

12926 Commits

Author SHA1 Message Date
81bf52ef37 feat(ui): expose subscribe method for nanostores 2024-08-30 22:18:49 +10:00
8ff92796df tidy(ui): remove layer scaling reducers 2024-08-30 22:18:49 +10:00
68af60e12e fix(ui): pixel-perfect transforms 2024-08-30 22:18:49 +10:00
cce6bf9428 fix(ui): layer visibility toggle 2024-08-30 22:18:49 +10:00
078908fbea fix(nodes): fix canvas mask erode
it wasn't eroding enough and caused incorrect transparency in result images
2024-08-30 22:18:49 +10:00
7275caaf5b fix(ui): do not reset layer on first render 2024-08-30 22:18:49 +10:00
d9487c1df4 feat(ui): revised logging and naming setup, fix staging area 2024-08-30 22:18:49 +10:00
3a9f955388 feat(ui): add repr methods to layer and object classes 2024-08-30 22:18:49 +10:00
e46c7acd2e feat(ui): use nanoid(10) instead of uuidv4 for canvas
Shorter ids makes it much more readable
2024-08-30 22:18:49 +10:00
b771664851 build(ui): add nanoid as explicit dep 2024-08-30 22:18:49 +10:00
7c21819d20 fix(ui): move CanvasImage's konva image to correct object 2024-08-30 22:18:49 +10:00
a57e618d47 fix(ui): prevent flash when applying transform 2024-08-30 22:18:49 +10:00
c9849a79ea build(ui): add eslint rules for async stuff 2024-08-30 22:18:49 +10:00
f1643fec08 feat(ui): trying to fix flicker after transform 2024-08-30 22:18:49 +10:00
951e63ca87 feat(ui): transform cleanup 2024-08-30 22:18:49 +10:00
8e539c8a8c feat(ui): fix transform when rotated 2024-08-30 22:18:49 +10:00
1e689a4902 fix(ui): use pixel bbox when image is in layer 2024-08-30 22:18:49 +10:00
7bbd25b5ec fix(ui): transforming when axes flipped 2024-08-30 22:18:49 +10:00
b1c7236117 feat(ui): hallelujah (???) 2024-08-30 22:18:49 +10:00
ae3e473024 feat(ui): add debug button 2024-08-30 22:18:49 +10:00
fd616f247c fix(ui): transformer padding 2024-08-30 22:18:48 +10:00
45dca2c821 feat(ui): wip transform mode 2 2024-08-30 22:18:48 +10:00
40dc108c84 feat(ui): wip transform mode 2024-08-30 22:18:48 +10:00
a421c25952 feat(ui): wip transform mode 2024-08-30 22:18:48 +10:00
562d0afdbb fix(ui): dnd to canvas broke 2024-08-30 22:18:48 +10:00
2ce4698eef fix(ui): conflicts after rebasing 2024-08-30 22:18:48 +10:00
cb53108041 fix(ui): imageDropped listener 2024-08-30 22:18:48 +10:00
5fa65e5cc6 wip 2024-08-30 22:18:48 +10:00
e8b0b6cef5 fix(ui): transform tool seems to be working 2024-08-30 22:18:48 +10:00
eca2712828 fix(ui): move tool fixes, add transform tool 2024-08-30 22:18:48 +10:00
2804c0aede feat(ui): move tool now only moves 2024-08-30 22:18:48 +10:00
0429f0480d feat(ui): layer bbox calc in worker 2024-08-30 22:18:48 +10:00
024759a0fc feat(ui): tweaked entity & group selection styles 2024-08-30 22:18:48 +10:00
9a94aef2b0 feat(ui): canvas entity list headers 2024-08-30 22:18:48 +10:00
e329cb45cd tidy(ui): CanvasRegion 2024-08-30 22:18:48 +10:00
0dc38bd684 tidy(ui): CanvasRect 2024-08-30 22:18:48 +10:00
98ebca5f8c tidy(ui): CanvasLayer 2024-08-30 22:18:48 +10:00
05cb3e03cf tidy(ui): CanvasInpaintMask 2024-08-30 22:18:48 +10:00
181132c149 tidy(ui): CanvasInitialImage 2024-08-30 22:18:48 +10:00
a69aa00155 tidy(ui): CanvasImage 2024-08-30 22:18:48 +10:00
47d415e31c tidy(ui): CanvasEraserLine 2024-08-30 22:18:48 +10:00
667a156817 tidy(ui): CanvasControlAdapter 2024-08-30 22:18:48 +10:00
00f39b977e tidy(ui): CanvasBrushLine 2024-08-30 22:18:48 +10:00
e5776e2bd6 tidy(ui): CanvasBbox 2024-08-30 22:18:48 +10:00
2b21f54897 tidy(ui): CanvasBackground 2024-08-30 22:18:48 +10:00
678d12fcd5 tidy(ui): update canvas classes, organise location of konva nodes 2024-08-30 22:18:48 +10:00
03f06f611e feat(ui): add names to all konva objects
Makes troubleshooting much simpler
2024-08-30 22:18:48 +10:00
6571e0f814 fix(ui): do not await creating new canvas image
If you await this, it causes a race condition where multiple images are created.
2024-08-30 22:18:48 +10:00
44f91026e1 feat(ui): use position and dimensions instead of separate x,y,width,height attrs 2024-08-30 22:18:48 +10:00
56237328f1 fix(ui): remove weird rtkq hook wrapper
I do not understand why I did that initially but it doesn't work with TS.
2024-08-30 22:18:48 +10:00