psychedelicious
13bb45934c
chore(ui): lint
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
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
5fc0bc5136
refactor(ui): port remaining canvasV1 rendering logic to V2, remove old code
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
7cdea43a37
refactor(ui): add adapterType to ControlAdapterData
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
acc1fefa77
refactor(ui): update size/prompts state
2024-09-06 22:56:24 +10:00
psychedelicious
94fc73ed95
refactor(ui): canvas v2 (wip)
...
delete unused file
2024-09-06 22:56:24 +10:00
psychedelicious
df9f998671
refactor(ui): canvas v2 (wip)
...
merge all canvas state reducers into one big slice (but with the logic split across files so it's not hell)
2024-09-06 22:56:24 +10:00
psychedelicious
be3ad43a07
refactor(ui): canvas v2 (wip)
...
Fix a few more components
2024-09-06 22:56:24 +10:00
psychedelicious
5aa155c39f
refactor(ui): canvas v2 (wip)
...
missed a spot
2024-09-06 22:56:24 +10:00
psychedelicious
c21a21c2aa
refactor(ui): canvas v2 (wip)
...
Redo all UI components for different canvas entity types
2024-09-06 22:56:24 +10:00
psychedelicious
91bcdc10eb
refactor(ui): canvas v2 (wip)
2024-09-06 22:56:24 +10:00
psychedelicious
f18c8e2239
refactor(ui): canvas v2 (wip)
2024-09-06 22:56:24 +10:00
psychedelicious
2db7608401
refactor(ui): canvas v2 (wip)
2024-09-06 22:56:24 +10:00
psychedelicious
506632206c
refactor(ui): canvas v2 (wip)
2024-09-06 22:56:24 +10:00
psychedelicious
234a1b6571
feat(ui): bbox tool
2024-09-06 22:56:24 +10:00
psychedelicious
c0177516f2
fix(ui): multiple stages
2024-09-06 22:56:24 +10:00
psychedelicious
accf2b5831
feat(ui): decouple konva logic from nanostores
2024-09-06 22:56:24 +10:00
psychedelicious
2f14f83a9a
feat(ui): store all stage attrs in nanostores
2024-09-06 22:56:24 +10:00
psychedelicious
262968d0c9
feat(ui): round stage scale
2024-09-06 22:56:24 +10:00
psychedelicious
b919bcfc8c
feat(ui): generation bbox transformation working
...
whew
2024-09-06 22:56:24 +10:00
psychedelicious
c21e44cf6b
feat(ui): wip generation bbox
2024-09-06 22:56:24 +10:00
psychedelicious
593ff0be75
feat(ui): wip generation bbox
2024-09-06 22:56:24 +10:00
psychedelicious
6fd042df96
feat(ui): CL zoom and pan, some rendering optimizations
2024-09-06 22:56:24 +10:00
psychedelicious
5b3d86ab14
feat(ui): layers manage their own bbox
2024-09-06 22:56:24 +10:00
psychedelicious
d10954f47a
fix(ui): show color picker when using rect tool
2024-09-06 22:56:24 +10:00
psychedelicious
32e86ba72d
feat(ui): do not fill brush preview when drawing
2024-09-06 22:56:24 +10:00
psychedelicious
699fbb4e55
feat(ui): wip raster layers
...
I meant to split this up into smaller commits and undo some of it, but I committed afterwards and it's tedious to undo.
2024-09-06 22:56:24 +10:00
psychedelicious
5fa93de8c4
feat(ui): support image objects on raster layers
...
Just the UI and internal state, not rendering yet.
2024-09-06 22:56:24 +10:00
psychedelicious
dd829e9d6a
feat(ui): raster layer reset, object group util
2024-09-06 22:56:24 +10:00
psychedelicious
d0572730a8
feat(ui): cancel shape drawing on esc
2024-09-06 22:56:24 +10:00
psychedelicious
e1b9cac1df
feat(ui): raster layer logic
...
- Deduplicate shared logic
- Split up giant renderers file into separate cohesive files
- Tons of cleanup
- Progress on raster layer functionality
2024-09-06 22:56:24 +10:00
psychedelicious
d927b631c5
feat(ui): add raster layer rendering and interaction (WIP)
2024-09-06 22:56:24 +10:00
psychedelicious
17dc5d98d1
feat(ui): scaffold out raster layers
...
Raster layers may have images, lines and shapes. These will replace initial image layers and provide sketching functionality like we have on canvas.
2024-09-06 22:56:24 +10:00
blessedcoolant
13fb2d1f49
fix: Add Depth Anything V2 as a new option
...
It is also now the default in the UI replacing Depth Anything V1 small
2024-07-31 23:29:43 +05:30
psychedelicious
6dcdc87eb1
fix(ui): control adapter image preview
2024-06-27 13:48:40 +10:00
Mary Hipp
f01df49128
lint fix
2024-06-27 13:48:40 +10:00
Mary Hipp
98c77a3ed1
pull in spencers work
2024-06-27 13:48:40 +10:00
psychedelicious
6d067e56f2
fix(ui): on page load, if CA processed image no longer exists, re-process it
2024-06-07 10:32:28 +10:00
psychedelicious
1c5c3cdbd6
tidy(ui): organize control layers konva logic
...
- More comments, docstrings
- Move things into saner, less-coupled locations
2024-06-06 07:45:13 +10:00
psychedelicious
3db69af220
refactor(ui): generalize stage event handlers
...
Create intermediary nanostores for values required by the event handlers. This allows the event handlers to be purely imperative, with no reactivity: instead of recreating/setting the handlers when a dependent piece of state changes, we use nanostores' imperative API to access dependent state.
For example, some handlers depend on brush size. If we used the standard declarative `useSelector` API, we'd need to recreate the event handler callback each time the brush size changed. This can be costly.
An intermediate `$brushSize` nanostore is set in a `useLayoutEffect()`, which responds to changes to the redux store. Then, in the event handler, we use the imperative API to access the brush size: `$brushSize.get()`.
This change allows the event handler logic to be shared with the pending canvas v2, and also more easily tested. It's a noticeable perf improvement, too, especially when changing brush size.
2024-06-06 07:45:13 +10:00
psychedelicious
311e44ad19
tidy(ui): clean up control layers renderers, docstrings
2024-06-06 07:45:13 +10:00
psychedelicious
70487f0c2e
fix(ui): layers are "enabled", not "visible"
2024-05-23 10:14:34 +10:00
psychedelicious
f31f0cf733
feat(ui): restore spellcheck on prompt boxes
2024-05-22 08:52:25 +10:00
blessedcoolant
52d8efa892
Merge branch 'main' into psyche/fix/ui/depth-anything-select
2024-05-13 04:00:07 +05:30
psychedelicious
8dd0bfb068
feat(ui): use new model type grouping for control adapters in control layers
2024-05-13 08:29:31 +10:00