913873623c
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-08-27 11:01:20 +10:00
5d81e7dd4d
perf(ui): fix lag w/ region rendering
...
Needed to memoize these selectors
2024-08-27 11:01:20 +10:00
418650fdf3
feat(ui): move canvas fill color picker to right
2024-08-27 11:01:20 +10:00
7c24e56d9f
refactor(ui): remove unused ellipse & polygon objects
2024-08-27 11:01:20 +10:00
f6faed46c3
fix(ui): incorrect rect/brush/eraser positions
2024-08-27 11:01:20 +10:00
1d393eecf1
refactor(ui): enable global debugging flag
2024-08-27 11:01:20 +10:00
03a72240c0
refactor(ui): disable the preview renderer for now
2024-08-27 11:01:20 +10:00
acf62450fb
tweak(ui): canvas editor layout
2024-08-27 11:01:20 +10:00
d0269310cf
perf(ui): memoize layeractionsmenu valid actions
2024-08-27 11:01:20 +10:00
43618a74e7
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-08-27 11:01:20 +10:00
56fed637ec
feat(ui): clip lines to bbox
2024-08-27 11:01:20 +10:00
944ae4a604
fix(ui): document fit positioning
2024-08-27 11:01:20 +10:00
f3da609102
feat(ui): document bounds overlay
2024-08-27 11:01:20 +10:00
11c8a8cf72
tidy(ui): background layer
2024-08-27 11:01:20 +10:00
656978676f
refactor(ui): use "entity" instead of "data" for canvas
2024-08-27 11:01:20 +10:00
d216e6519f
feat(ui): brush size border radius = 1
2024-08-27 11:01:20 +10:00
0a2bcae0e3
fix(ui): canvas HUD doesn't interrupt tool
2024-08-27 11:01:20 +10:00
31cf244420
refactor(ui): split up canvas entity renderers, temp disable preview
2024-08-27 11:01:20 +10:00
d761effac1
fix(ui): delete all layers button
2024-08-27 11:01:20 +10:00
5efaf2c661
fix(ui): ignore keyboard shortcuts in input/textarea elements
2024-08-27 11:01:20 +10:00
b79161fbec
fix(ui): canvas entity ids getting clobbered
2024-08-27 11:01:20 +10:00
89a2f2134b
fix(ui): move lora followup fixes
2024-08-27 11:01:20 +10:00
343c3b19b1
chore(ui): lint
2024-08-27 11:01:20 +10:00
e6ec646b2c
refactor(ui): move loras to canvas slice
2024-08-27 11:01:20 +10:00
b557fe4e40
fix(ui): layer is selected when added
2024-08-27 11:01:20 +10:00
45908dfbd2
feat(ui): r to center & fit stage on document
2024-08-27 11:01:20 +10:00
1cf0673a22
feat(ui): better HUD
2024-08-27 11:01:20 +10:00
189847f8a5
fix(ui): always use current brush width when making straight lines
2024-08-27 11:01:20 +10:00
b27929f702
feat(ui): hold shift w/ brush to draw straight line
2024-08-27 11:01:20 +10:00
b1a6a9835d
fix(ui): update bg on canvas resize
2024-08-27 11:01:20 +10:00
5564a16d4b
refactor(ui): better hud
2024-08-27 11:01:20 +10:00
b2aa447d50
refactor(ui): scaled tool preview border
2024-08-27 11:01:20 +10:00
8666f9a848
refactor(ui): port remaining canvasV1 rendering logic to V2, remove old code
2024-08-27 11:01:20 +10:00
e7dc7c4917
refactor(ui): fix more types
2024-08-27 11:01:20 +10:00
513d0f1e5c
refactor(ui): metadata recall (wip)
...
just enough let the app run
2024-08-27 11:01:20 +10:00
c6ce7618cf
refactor(ui): undo/redo button temp fix
2024-08-27 11:01:20 +10:00
9b78b8dc91
refactor(ui): fix renderer stuff
2024-08-27 11:01:20 +10:00
3bae233f40
refactor(ui): fix misc types
2024-08-27 11:01:20 +10:00
0a305c4291
refactor(ui): fix gallery stuff
2024-08-27 11:01:20 +10:00
54fe4ddf3e
refactor(ui): fix delete image stuff
2024-08-27 11:01:20 +10:00
aa877b981c
refactor(ui): fix useIsReadyToEnqueue for new adapterType field
2024-08-27 11:01:20 +10:00
b8ec4348a5
refactor(ui): update generation tab graphs
2024-08-27 11:01:20 +10:00
0e3e27668c
refactor(ui): add adapterType
to ControlAdapterData
2024-08-27 11:01:20 +10:00
e8c8025119
refactor(ui): update components & logic to use new unified slice (again)
2024-08-27 11:01:20 +10:00
6a72eda5d2
refactor(ui): update components & logic to use new unified slice
2024-08-27 11:01:20 +10:00
35c8c54466
refactor(ui): merge compositing, params into canvasV2 slice
2024-08-27 10:59:24 +10:00
2eda45ca5b
refactor(ui): add scaled bbox state
2024-08-27 10:59:24 +10:00
ecd6e7960c
refactor(ui): update dnd/image upload
2024-08-27 10:59:24 +10:00
0d3a61cbdb
refactor(ui): update size/prompts state
2024-08-27 10:59:24 +10:00
6737c275d7
refactor(ui): rip out old control adapter implementation
2024-08-27 10:59:24 +10:00