InvokeAI/frontend
psychedelicious 425d3bc95d Clips lines drawn while canvas locked
When drawing with the locked canvas, if a brush stroke gets too close to the edge of the canvas and its stroke would extend past the edge of the canvas, the edge of that stroke will be seen after unlocking the canvas.

This could cause a problem if you unlock the canvas and now have a bunch of strokes just outside the init image area, which are far back in undo history and you cannot easily erase.

With this change, lines drawn while the canvas is locked get clipped to the initial image bbox, fixing this issue.

Additionally, the merge and save to gallery functions have been updated to respect the initial image bbox so they function how you'd expect.
2022-11-27 03:35:49 +13:00
..
dist Fixes wonky canvas layer ordering & compositing 2022-11-27 03:35:49 +13:00
patches Removes console.log from redux-persist patch 2022-11-27 03:35:49 +13:00
src Clips lines drawn while canvas locked 2022-11-27 03:35:49 +13:00
.eslintrc.cjs React web UI with flask-socketio API (#429) 2022-09-16 13:18:15 -04:00
.gitignore Fix WebUI Not Working 2022-10-07 08:09:55 +13:00
eslintconfig.json Rebases against development 2022-11-27 03:35:49 +13:00
favicon.ico Add New WebUI and Desktop Mode 2022-10-03 23:28:53 -04:00
index.d.ts React web UI with flask-socketio API (#429) 2022-09-16 13:18:15 -04:00
index.html Add New WebUI and Desktop Mode 2022-10-03 23:28:53 -04:00
package.json Adds staging area 2022-11-27 03:35:49 +13:00
README.md Rebases against development 2022-11-27 03:35:49 +13:00
tsconfig.json Rebases against development 2022-11-27 03:35:49 +13:00
tsconfig.node.json Rebases against development 2022-11-27 03:35:49 +13:00
vite.config.ts Rebases against development 2022-11-27 03:35:49 +13:00
yarn.lock Adds staging area 2022-11-27 03:35:49 +13:00

Stable Diffusion Web UI

Run

Evironment

Install node (includes npm) and optionally yarn.

From frontend/ run npm install / yarn install to install the frontend packages.

Dev

  1. From frontend/, run npm dev / yarn dev to start the dev server.
  2. Run python scripts/dream.py --web.
  3. Navigate to the dev server address e.g. http://localhost:5173/.

To build for dev: npm build-dev / yarn build-dev

To build for production: npm build / yarn build

TODO

  • Search repo for "TODO"