psychedelicious
543af856de
feat(ui): rename konva node manager
2024-09-06 22:56:24 +10:00
psychedelicious
3e21106336
refactor(ui): create classes to abstract mgmt of konva nodes
2024-09-06 22:56:24 +10:00
psychedelicious
9295985082
tidy(ui): organise renderers
2024-09-06 22:56:24 +10:00
psychedelicious
3ccd58af50
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 22:56:24 +10:00
psychedelicious
3f56c93b8c
perf(ui): fix lag w/ region rendering
...
Needed to memoize these selectors
2024-09-06 22:56:24 +10:00
psychedelicious
1311276a27
feat(ui): move canvas fill color picker to right
2024-09-06 22:56:24 +10:00
psychedelicious
327788b1d6
refactor(ui): remove unused ellipse & polygon objects
2024-09-06 22:56:24 +10:00
psychedelicious
1c6015ca73
fix(ui): incorrect rect/brush/eraser positions
2024-09-06 22:56:24 +10:00
psychedelicious
4eaedbb981
refactor(ui): enable global debugging flag
2024-09-06 22:56:24 +10:00
psychedelicious
2c52b77187
refactor(ui): disable the preview renderer for now
2024-09-06 22:56:24 +10:00
psychedelicious
70527bf931
tweak(ui): canvas editor layout
2024-09-06 22:56:24 +10:00
psychedelicious
2911de8d7b
perf(ui): memoize layeractionsmenu valid actions
2024-09-06 22:56:24 +10:00
psychedelicious
62037ce577
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 22:56:24 +10:00
psychedelicious
e5bff7646a
feat(ui): clip lines to bbox
2024-09-06 22:56:24 +10:00
psychedelicious
ce4b1f7f8d
fix(ui): document fit positioning
2024-09-06 22:56:24 +10:00
psychedelicious
09bf3e7d29
feat(ui): document bounds overlay
2024-09-06 22:56:24 +10:00
psychedelicious
18d61c2408
tidy(ui): background layer
2024-09-06 22:56:24 +10:00
psychedelicious
efac5c8f06
refactor(ui): use "entity" instead of "data" for canvas
2024-09-06 22:56:24 +10:00
psychedelicious
dd9f71203d
feat(ui): brush size border radius = 1
2024-09-06 22:56:24 +10:00
psychedelicious
3b51509f18
fix(ui): canvas HUD doesn't interrupt tool
2024-09-06 22:56:24 +10:00
psychedelicious
324033bdf8
refactor(ui): split up canvas entity renderers, temp disable preview
2024-09-06 22:56:24 +10:00
psychedelicious
d5c32dc2e7
fix(ui): delete all layers button
2024-09-06 22:56:24 +10:00
psychedelicious
b8c8276645
fix(ui): ignore keyboard shortcuts in input/textarea elements
2024-09-06 22:56:24 +10:00
psychedelicious
c6bf9193e2
fix(ui): canvas entity ids getting clobbered
2024-09-06 22:56:24 +10:00
psychedelicious
17911ecf64
fix(ui): move lora followup fixes
2024-09-06 22:56:24 +10:00
psychedelicious
13bb45934c
chore(ui): lint
2024-09-06 22:56:24 +10:00
psychedelicious
54ba852e71
refactor(ui): move loras to canvas slice
2024-09-06 22:56:24 +10:00
psychedelicious
bc85ef6e65
fix(ui): layer is selected when added
2024-09-06 22:56:24 +10:00
psychedelicious
856b0f81d5
feat(ui): r to center & fit stage on document
2024-09-06 22:56:24 +10:00
psychedelicious
060fe11663
feat(ui): better HUD
2024-09-06 22:56:24 +10:00
psychedelicious
9dab54c1ed
fix(ui): always use current brush width when making straight lines
2024-09-06 22:56:24 +10:00
psychedelicious
0f7a422153
feat(ui): hold shift w/ brush to draw straight line
2024-09-06 22:56:24 +10:00
psychedelicious
058bf94c93
fix(ui): update bg on canvas resize
2024-09-06 22:56:24 +10:00
psychedelicious
1a0600772f
refactor(ui): better hud
2024-09-06 22:56:24 +10:00
psychedelicious
d54c18f8c3
refactor(ui): scaled tool preview border
2024-09-06 22:56:24 +10:00
psychedelicious
5fc0bc5136
refactor(ui): port remaining canvasV1 rendering logic to V2, remove old code
2024-09-06 22:56:24 +10:00
psychedelicious
6f0a2d1104
refactor(ui): fix more types
2024-09-06 22:56:24 +10:00
psychedelicious
9be3e0050d
refactor(ui): metadata recall (wip)
...
just enough let the app run
2024-09-06 22:56:24 +10:00
psychedelicious
11596e45d1
refactor(ui): undo/redo button temp fix
2024-09-06 22:56:24 +10:00
psychedelicious
ca3913a3c8
refactor(ui): fix renderer stuff
2024-09-06 22:56:24 +10:00
psychedelicious
a6c900ef83
refactor(ui): fix misc types
2024-09-06 22:56:24 +10:00
psychedelicious
209f9e26a0
refactor(ui): fix gallery stuff
2024-09-06 22:56:24 +10:00
psychedelicious
f9eb25b861
refactor(ui): fix delete image stuff
2024-09-06 22:56:24 +10:00
psychedelicious
a3a5e81fdb
refactor(ui): fix useIsReadyToEnqueue for new adapterType field
2024-09-06 22:56:24 +10:00
psychedelicious
0d73d9dfd3
refactor(ui): update generation tab graphs
2024-09-06 22:56:24 +10:00
psychedelicious
7cdea43a37
refactor(ui): add adapterType to ControlAdapterData
2024-09-06 22:56:24 +10:00
psychedelicious
638d16ce6e
refactor(ui): update components & logic to use new unified slice (again)
2024-09-06 22:56:24 +10:00
psychedelicious
9a860dbab5
refactor(ui): update components & logic to use new unified slice
2024-09-06 22:56:24 +10:00
psychedelicious
5c2a48bba8
refactor(ui): merge compositing, params into canvasV2 slice
2024-09-06 22:56:24 +10:00
psychedelicious
05338bdba3
refactor(ui): add scaled bbox state
2024-09-06 22:56:24 +10:00