psychedelicious
15ad4e3f5e
fix(ui): delete all layers button
2024-08-23 19:46:03 +10:00
psychedelicious
ca9314e077
chore(ui): lint
2024-08-23 19:46:03 +10:00
psychedelicious
e8cdc9ae62
feat(ui): r to center & fit stage on document
2024-08-23 19:46:03 +10:00
psychedelicious
8abfa759a4
feat(ui): better HUD
2024-08-23 19:46:03 +10:00
psychedelicious
091e2fb751
fix(ui): update bg on canvas resize
2024-08-23 19:46:03 +10:00
psychedelicious
d8539daf1f
refactor(ui): better hud
2024-08-23 19:46:03 +10:00
psychedelicious
4f2ecdefd2
refactor(ui): port remaining canvasV1 rendering logic to V2, remove old code
2024-08-23 19:46:03 +10:00
psychedelicious
0e7b10d3d9
refactor(ui): undo/redo button temp fix
2024-08-23 19:46:03 +10:00
psychedelicious
cc3a0b5d6c
refactor(ui): add adapterType
to ControlAdapterData
2024-08-23 19:46:02 +10:00
psychedelicious
6b9e0e6d63
refactor(ui): update components & logic to use new unified slice
2024-08-23 19:46:02 +10:00
psychedelicious
ccceba7565
refactor(ui): update size/prompts state
2024-08-23 19:46:02 +10:00
psychedelicious
f2989885fb
refactor(ui): canvas v2 (wip)
...
delete unused file
2024-08-23 19:46:02 +10:00
psychedelicious
19c66e5c76
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-08-23 19:46:02 +10:00
psychedelicious
8a6690a57c
refactor(ui): canvas v2 (wip)
...
Fix a few more components
2024-08-23 19:46:02 +10:00
psychedelicious
2cc60f253a
refactor(ui): canvas v2 (wip)
...
missed a spot
2024-08-23 19:46:02 +10:00
psychedelicious
cb69872dd3
refactor(ui): canvas v2 (wip)
...
Redo all UI components for different canvas entity types
2024-08-23 19:46:02 +10:00
psychedelicious
ba66d7c9a6
refactor(ui): canvas v2 (wip)
2024-08-23 19:46:02 +10:00
psychedelicious
9fe727c9f8
refactor(ui): canvas v2 (wip)
2024-08-23 19:46:02 +10:00
psychedelicious
58c656224f
refactor(ui): canvas v2 (wip)
2024-08-23 19:46:02 +10:00
psychedelicious
c51253f5f6
refactor(ui): canvas v2 (wip)
2024-08-23 19:46:02 +10:00
psychedelicious
6c1d1588fc
feat(ui): bbox tool
2024-08-23 19:46:02 +10:00
psychedelicious
f4c9facdaf
fix(ui): multiple stages
2024-08-23 19:46:02 +10:00
psychedelicious
a274e6f165
feat(ui): decouple konva logic from nanostores
2024-08-23 19:46:02 +10:00
psychedelicious
154e3e6f64
feat(ui): store all stage attrs in nanostores
2024-08-23 19:46:02 +10:00
psychedelicious
2c3ac972e5
feat(ui): round stage scale
2024-08-23 19:46:02 +10:00
psychedelicious
9d8dd2bf66
feat(ui): generation bbox transformation working
...
whew
2024-08-23 19:46:02 +10:00
psychedelicious
9047f6db30
feat(ui): wip generation bbox
2024-08-23 19:46:02 +10:00
psychedelicious
5ab345ee63
feat(ui): wip generation bbox
2024-08-23 19:46:02 +10:00
psychedelicious
d8a83acd3a
feat(ui): CL zoom and pan, some rendering optimizations
2024-08-23 19:46:02 +10:00
psychedelicious
744acb8f07
feat(ui): layers manage their own bbox
2024-08-23 19:46:02 +10:00
psychedelicious
3fbe65bbcf
fix(ui): show color picker when using rect tool
2024-08-23 19:46:02 +10:00
psychedelicious
37ac7d8ed5
feat(ui): do not fill brush preview when drawing
2024-08-23 19:46:02 +10:00
psychedelicious
1fa8032fdb
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-08-23 19:46:02 +10:00
psychedelicious
5c0676bcc2
feat(ui): support image objects on raster layers
...
Just the UI and internal state, not rendering yet.
2024-08-23 19:46:02 +10:00
psychedelicious
1bce156de1
feat(ui): raster layer reset, object group util
2024-08-23 19:46:02 +10:00
psychedelicious
3c7140cbf3
feat(ui): cancel shape drawing on esc
2024-08-23 19:46:02 +10:00
psychedelicious
d540e2c0d3
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-08-23 19:46:02 +10:00
psychedelicious
d79fafc5f5
feat(ui): add raster layer rendering and interaction (WIP)
2024-08-23 19:46:02 +10:00
psychedelicious
9e93fa2092
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-08-23 19:46:02 +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