psychedelicious
c0bfa07ea7
tidy(ui): type "Dimensions" -> "Size"
2024-09-06 21:27:34 +10:00
psychedelicious
f4fceac372
feat(ui): add updateNode to Graph
2024-09-06 21:27:34 +10:00
psychedelicious
c1f5345987
feat(ui): sdxl graphs
2024-09-06 21:27:34 +10:00
psychedelicious
05992130d0
feat(ui): sd1 outpaint graph
2024-09-06 21:27:34 +10:00
psychedelicious
9c646712e0
tests(ui): add missing tests for Graph class
2024-09-06 21:27:34 +10:00
psychedelicious
0edff49957
feat(ui): add Graph.getid() util
2024-09-06 21:27:34 +10:00
psychedelicious
0f709cb06a
feat(ui): outpaint graph, organize builder a bit
2024-09-06 21:27:34 +10:00
psychedelicious
656dbbb9f1
feat(ui): inpaint sd1 graph
2024-09-06 21:27:34 +10:00
psychedelicious
9497a75c95
feat(ui): temp disable image caching while testing
2024-09-06 21:27:34 +10:00
psychedelicious
30c4ed87b5
feat(ui): txt2img & img2img graphs
2024-09-06 21:27:34 +10:00
psychedelicious
e839765ddc
feat(ui): minor change to canvas bbox state type
2024-09-06 21:27:34 +10:00
psychedelicious
055737a6e8
feat(ui): simplified konva node to blob/imagedata utils
2024-09-06 21:27:34 +10:00
psychedelicious
fbc609230a
feat(ui): node manager getter/setter
2024-09-06 21:27:34 +10:00
psychedelicious
46f86a54c1
feat(ui): generation mode calculation, fudged graphs
2024-09-06 21:27:34 +10:00
psychedelicious
70f5231020
feat(ui): add utils for getting images from canvas
2024-09-06 21:27:34 +10:00
psychedelicious
0ec0feed2c
feat(ui): even more simplified API - lean on the konva node manager to abstract imperative state API & rendering
2024-09-06 21:27:34 +10:00
psychedelicious
60cd505ee1
feat(ui): revised docstrings for renderers & simplified api
2024-09-06 21:27:34 +10:00
psychedelicious
205a719649
feat(ui): inpaint mask UI components
2024-09-06 21:27:34 +10:00
psychedelicious
af7d222a1e
feat(ui): inpaint mask rendering (wip)
2024-09-06 21:27:34 +10:00
psychedelicious
70f430f635
fix(ui): models loaded handler
2024-09-06 21:27:34 +10:00
psychedelicious
2a92a223f6
feat(ui): internal state for inpaint mask
2024-09-06 21:27:34 +10:00
psychedelicious
1ed43614c2
refactor(ui): divvy up canvas state a bit
2024-09-06 21:27:34 +10:00
psychedelicious
3a5295574f
feat(ui): get region and base layer canvas to blob logic working
2024-09-06 21:27:34 +10:00
psychedelicious
475b1cb1b8
refactor(ui): node manager handles more tedious annoying stuff
2024-09-06 21:27:34 +10:00
psychedelicious
55260a886d
feat(ui): use node manager for addRegions
2024-09-06 21:27:34 +10:00
psychedelicious
f77e03ceb0
feat(ui): persist bbox
2024-09-06 21:27:34 +10:00
psychedelicious
4f7bf5ad58
fix(ui): fix generation graphs
2024-09-06 21:27:34 +10:00
psychedelicious
460ea1aa07
feat(ui): add toggle for clipToBbox
2024-09-06 21:27:34 +10:00
psychedelicious
7aa5f5cb80
feat(ui): rename konva node manager
2024-09-06 21:27:34 +10:00
psychedelicious
9cc4133184
refactor(ui): create classes to abstract mgmt of konva nodes
2024-09-06 21:27:34 +10:00
psychedelicious
0d3721324d
tidy(ui): organise renderers
2024-09-06 21:27:34 +10:00
psychedelicious
510249d282
refactor(ui): create entity to konva node map abstraction (wip)
...
Instead of chaining konva `find` and `findOne` methods, all konva nodes are added to a mapping object. Finding and manipulating them is much simpler.
Done for regions and layers, wip for control adapters.
2024-09-06 21:27:34 +10:00
psychedelicious
77d840593b
perf(ui): fix lag w/ region rendering
...
Needed to memoize these selectors
2024-09-06 21:27:34 +10:00
psychedelicious
8c9a5c4ab5
feat(ui): move canvas fill color picker to right
2024-09-06 21:27:34 +10:00
psychedelicious
ce497fff27
refactor(ui): remove unused ellipse & polygon objects
2024-09-06 21:27:34 +10:00
psychedelicious
c3cada6bd5
fix(ui): incorrect rect/brush/eraser positions
2024-09-06 21:27:34 +10:00
psychedelicious
bbacfe403c
refactor(ui): enable global debugging flag
2024-09-06 21:27:34 +10:00
psychedelicious
159031a071
refactor(ui): disable the preview renderer for now
2024-09-06 21:27:34 +10:00
psychedelicious
4067927a23
tweak(ui): canvas editor layout
2024-09-06 21:27:34 +10:00
psychedelicious
d090343083
perf(ui): memoize layeractionsmenu valid actions
2024-09-06 21:27:34 +10:00
psychedelicious
ed130366db
refactor(ui): decouple konva renderer from react
...
Subscribe to redux store directly, skipping all the react overhead.
With react in dev mode, a typical frame while using the brush tool on almost-empty canvas is reduced from ~7.5ms to ~3.5ms. All things considered, this still feels slow, but it's a massive improvement.
2024-09-06 21:27:34 +10:00
psychedelicious
d4ae40fec4
feat(ui): clip lines to bbox
2024-09-06 21:27:34 +10:00
psychedelicious
17c864dba3
fix(ui): document fit positioning
2024-09-06 21:27:34 +10:00
psychedelicious
398d6d1efd
feat(ui): document bounds overlay
2024-09-06 21:27:34 +10:00
psychedelicious
30b46b0f9b
tidy(ui): background layer
2024-09-06 21:27:34 +10:00
psychedelicious
2d123fa11c
refactor(ui): use "entity" instead of "data" for canvas
2024-09-06 21:27:34 +10:00
psychedelicious
352a651ac0
feat(ui): brush size border radius = 1
2024-09-06 21:27:34 +10:00
psychedelicious
26b971978d
fix(ui): canvas HUD doesn't interrupt tool
2024-09-06 21:27:34 +10:00
psychedelicious
478324ea62
refactor(ui): split up canvas entity renderers, temp disable preview
2024-09-06 21:27:34 +10:00
psychedelicious
fa447b2813
fix(ui): delete all layers button
2024-09-06 21:27:34 +10:00