Commit Graph

13021 Commits

Author SHA1 Message Date
35b483b83a feat(ui): rough out undo/redo on canvas UNDO ME? 2024-08-26 22:45:11 +10:00
217b2759c3 fix(ui): handle error from internal konva method
We are dipping into konva's private API for preview images and it appears to be unsafe (got an error once). Wrapped in a try/catch.
2024-08-26 22:44:47 +10:00
7d528dc03d feat(ui): split out loras state from canvas rendering state 2024-08-26 22:29:28 +10:00
bc40c1a99f feat(ui): split out session state from canvas rendering state 2024-08-26 22:20:04 +10:00
a2b508016e feat(ui): split out settings state from canvas rendering state 2024-08-26 22:02:56 +10:00
3ce8294379 feat(ui): split out tool state from canvas rendering state 2024-08-26 21:52:43 +10:00
9c3da8de8e feat(ui): split out params/compositing state from canvas rendering state
First step to restoring undo/redo - the undoable state must be in its own slice. So params and settings must be isolated.
2024-08-26 21:41:47 +10:00
ccba597e58 feat(ui): add CanvasModuleBase class to standardize canvas APIs
I did this ages ago but undid it for some reason, not sure why. Caught a few issues related to subscriptions.
2024-08-26 21:12:31 +10:00
8028943cdd feat(ui): move selected tool and tool buffer out of redux
This ephemeral state can live in the canvas classes.
2024-08-26 19:59:06 +10:00
cdd8b60fd0 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-08-26 19:14:56 +10:00
c624754404 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-08-26 18:52:28 +10:00
0505634296 feat(ui): move events into modules who care about them 2024-08-26 10:34:59 +10:00
e06ea5d595 fix(ui): color picker resets brush opacity 2024-08-26 08:58:16 +10:00
838a0574a5 fix(ui): scaled bbox loses sync 2024-08-26 08:55:33 +10:00
ed3581c70c feat(ui): add context menu to entity list 2024-08-24 19:50:36 +10:00
522cae6a42 chore(ui): bump @invoke-ai/ui-library 2024-08-24 19:49:43 +10:00
a9032a34f2 fix(ui): missing vae precision in graph builders 2024-08-24 18:35:30 +10:00
6af5a22d3a chore: release v4.2.9.dev3
Instead of using dates, just going to increment.
v4.2.9.dev3
2024-08-24 15:03:43 +10:00
8cf4321010 feat(ui): use new Result utils for enqueueing 2024-08-24 14:49:17 +10:00
aa7f2b096a fix(ui): graph building issue w/ controlnet 2024-08-24 14:48:18 +10:00
bf0824b56d 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-08-24 14:46:58 +10:00
056c56d322 chore: release v4.2.9.dev20240824 v4.2.9.dev20240824 2024-08-24 12:36:25 +10:00
afc6f83d72 fix(ui): lint & fix issues with adding regional ip adapters 2024-08-24 12:32:38 +10:00
c776ac3af2 feat(ui): add knipignore tag
I'm not ready to delete some things but still want to build the app.
2024-08-24 12:32:00 +10:00
b7b3683bef feat(ui): duplicate entity 2024-08-24 12:20:35 +10:00
fb26b6824a feat(ui): autocomplete on getPrefixeId 2024-08-24 12:20:26 +10:00
63d8ad912f feat(ui): paste canvas gens back on source in generate mode 2024-08-24 11:56:24 +10:00
bbd7d7fc17 chore(ui): typegen 2024-08-24 11:55:50 +10:00
6507a78182 feat(nodes): CanvasV2MaskAndCropInvocation can paste generated image back on source
This is needed for `Generate` mode.
2024-08-24 11:55:43 +10:00
22f46517f4 fix(ui): extraneous entity preview updates 2024-08-24 11:28:05 +10:00
45596e1f94 fix(ui): newly-added entities are selected 2024-08-24 11:14:58 +10:00
6de0dbe854 feat(ui): add crosshair to color picker 2024-08-24 10:51:34 +10:00
011827fa29 fix(ui): color picker ignores alpha 2024-08-24 10:16:27 +10:00
fc6d244071 fix(ui): calculate renderable entities correctly in tool module 2024-08-24 10:10:21 +10:00
cd3da886d6 feat(ui): better color picker 2024-08-24 10:10:04 +10:00
c013c55d92 feat(ui): colored mask preview image 2024-08-24 08:54:20 +10:00
cd3dd7db0d fix(ui): new rectangles don't trigger rerender 2024-08-23 23:24:16 +10:00
1fdcce9429 chore: bump version v4.2.9.dev20240823 v4.2.9.dev20240823 2024-08-23 20:52:16 +10:00
181e40926d feat(ui): disable most interaction while filtering 2024-08-23 20:32:49 +10:00
c62ede5878 fix(ui): filter preview offset 2024-08-23 20:24:40 +10:00
a2ad5f1a9a feat(ui): tweak layout of staging area toolbar 2024-08-23 19:55:02 +10:00
ff74a5356f chore(ui): typegen 2024-08-23 19:52:37 +10:00
92dc30dace tidy(app): clean up app changes for canvas v2 2024-08-23 19:52:04 +10:00
3af577b210 feat(ui): use singleton for clear q confirm dialog 2024-08-23 19:47:51 +10:00
d0464330f7 fix(ui): rip out broken recall logic, NO TS ERRORS 2024-08-23 19:47:51 +10:00
dd3ef4a80f chore(ui): lint 2024-08-23 19:47:51 +10:00
0ced891944 fix(ui): staging area interaction scopes 2024-08-23 19:47:51 +10:00
10a5452df9 fix(ui): staging area actions 2024-08-23 19:47:51 +10:00
cb97969bbc tidy(ui): more cleanup 2024-08-23 19:47:51 +10:00
71e742e238 fix(ui): upscale tab graph 2024-08-23 19:47:51 +10:00