psychedelicious
e5e59bf801
feat(ui): move ephemeral state into canvas classes
...
Things like `$lastCursorPos` are now created within the canvas drawing classes. Consumers in react access them via `useCanvasManager`.
For example:
```tsx
const canvasManager = useCanvasManager();
const lastCursorPos = useStore(canvasManager.stateApi.$lastCursorPos);
```
2024-09-06 22:56:24 +10:00
psychedelicious
dd7d4da5e3
feat(ui): normalize all actions to accept an entityIdentifier
...
Previously, canvas actions specific to an entity type only needed the id of that entity type. This allowed you to pass in the id of an entity of the wrong type.
All actions for a specific entity now take a full entity identifier, and the entity identifier type can be narrowed.
`selectEntity` and `selectEntityOrThrow` now need a full entity identifier, and narrow their return values to a specific entity type _if_ the entity identifier is narrowed.
The types for canvas entities are updated with optional type parameters for this purpose.
All reducers, actions and components have been updated.
2024-09-06 22:56:24 +10:00
psychedelicious
f394584dff
feat(ui): move events into modules who care about them
2024-09-06 22:56:24 +10:00
psychedelicious
1a06b5f1c6
fix(ui): color picker resets brush opacity
2024-09-06 22:56:24 +10:00
psychedelicious
9a089495a1
fix(ui): scaled bbox loses sync
2024-09-06 22:56:24 +10:00
psychedelicious
c5c8859463
feat(ui): add context menu to entity list
2024-09-06 22:56:24 +10:00
psychedelicious
6a6efc4574
chore(ui): bump @invoke-ai/ui-library
2024-09-06 22:56:24 +10:00
psychedelicious
e6bc861ebf
fix(ui): missing vae precision in graph builders
2024-09-06 22:56:24 +10:00
psychedelicious
f55282f9bf
feat(ui): use new Result utils for enqueueing
2024-09-06 22:56:24 +10:00
psychedelicious
452784068b
fix(ui): graph building issue w/ controlnet
2024-09-06 22:56:24 +10:00
psychedelicious
e6b841126b
feat(ui): add Result type & helpers
...
Wrappers to capture errors and turn into results:
- `withResult` wraps a sync function
- `withResultAsync` wraps an async function
Comments, tests.
2024-09-06 22:56:24 +10:00
psychedelicious
60b3dc846e
fix(ui): lint & fix issues with adding regional ip adapters
2024-09-06 22:56:24 +10:00
psychedelicious
7bb2dc0075
feat(ui): add knipignore tag
...
I'm not ready to delete some things but still want to build the app.
2024-09-06 22:56:24 +10:00
psychedelicious
7f437adaba
feat(ui): duplicate entity
2024-09-06 22:56:24 +10:00
psychedelicious
5a1309cf6e
feat(ui): autocomplete on getPrefixeId
2024-09-06 22:56:24 +10:00
psychedelicious
f56648be3c
feat(ui): paste canvas gens back on source in generate mode
2024-09-06 22:56:24 +10:00
psychedelicious
15735dda6e
chore(ui): typegen
2024-09-06 22:56:24 +10:00
psychedelicious
167c8ba4ec
fix(ui): extraneous entity preview updates
2024-09-06 22:56:24 +10:00
psychedelicious
cc7ae42baa
fix(ui): newly-added entities are selected
2024-09-06 22:56:24 +10:00
psychedelicious
5fe844c5d9
feat(ui): add crosshair to color picker
2024-09-06 22:56:24 +10:00
psychedelicious
23248dad90
fix(ui): color picker ignores alpha
2024-09-06 22:56:24 +10:00
psychedelicious
caeefdf2ed
fix(ui): calculate renderable entities correctly in tool module
2024-09-06 22:56:24 +10:00
psychedelicious
d40d6291a0
feat(ui): better color picker
2024-09-06 22:56:24 +10:00
psychedelicious
fd38668f55
feat(ui): colored mask preview image
2024-09-06 22:56:24 +10:00
psychedelicious
583654d176
fix(ui): new rectangles don't trigger rerender
2024-09-06 22:56:24 +10:00
psychedelicious
772f0b80a1
feat(ui): disable most interaction while filtering
2024-09-06 22:56:24 +10:00
psychedelicious
8d8272ee53
fix(ui): filter preview offset
2024-09-06 22:56:24 +10:00
psychedelicious
fef1dddd50
feat(ui): tweak layout of staging area toolbar
2024-09-06 22:56:24 +10:00
psychedelicious
725da6e875
chore(ui): typegen
2024-09-06 22:56:24 +10:00
psychedelicious
a8de6406c5
feat(ui): use singleton for clear q confirm dialog
2024-09-06 22:56:24 +10:00
psychedelicious
dd2e68bf00
fix(ui): rip out broken recall logic, NO TS ERRORS
2024-09-06 22:56:24 +10:00
psychedelicious
7825e325df
chore(ui): lint
2024-09-06 22:56:24 +10:00
psychedelicious
33b3268f83
fix(ui): staging area interaction scopes
2024-09-06 22:56:24 +10:00
psychedelicious
3dbd8212aa
fix(ui): staging area actions
2024-09-06 22:56:24 +10:00
psychedelicious
3694f337bc
tidy(ui): more cleanup
2024-09-06 22:56:24 +10:00
psychedelicious
ab77997746
fix(ui): upscale tab graph
2024-09-06 22:56:24 +10:00
psychedelicious
5fa7910664
fix(ui): sdxl graph builder
2024-09-06 22:56:24 +10:00
psychedelicious
8dbb473fde
fix(ui): select next entity in the list when deleting
2024-09-06 22:56:24 +10:00
psychedelicious
4a1240a709
feat(ui): fix delete layer hotkey
2024-09-06 22:56:24 +10:00
psychedelicious
664987f2aa
tidy(ui): "eye dropper" -> "color picker"
2024-09-06 22:56:24 +10:00
psychedelicious
9e391ec431
tidy(ui): regional guidance buttons
2024-09-06 22:56:24 +10:00
psychedelicious
06944b3ea7
feat(ui): update entity list menu
2024-09-06 22:56:24 +10:00
psychedelicious
f48b949aa8
feat(ui): add log debug button
2024-09-06 22:56:24 +10:00
psychedelicious
b4166083c5
chore(ui): lint
2024-09-06 22:56:24 +10:00
psychedelicious
56d53b18f0
chore(ui): prettier
2024-09-06 22:56:24 +10:00
psychedelicious
20961215e7
chore(ui): eslint
2024-09-06 22:56:24 +10:00
psychedelicious
49c75ca381
tidy(ui): remove unused stuff 4
2024-09-06 22:56:24 +10:00
psychedelicious
cf6751cc06
tidy(ui): remove unused stuff 3
2024-09-06 22:56:24 +10:00
psychedelicious
6cc828b628
tidy(ui): remove unused pkg @chakra-ui/react-use-size
2024-09-06 22:56:24 +10:00
psychedelicious
ddeffb3ef1
feat(ui): revise graph building for control layers, fix issues w/ invocation complete events
2024-09-06 22:56:24 +10:00