51 Commits

Author SHA1 Message Date
psychedelicious
9568ac66e0 Improves scaled bbox display logic 2022-11-27 03:35:49 +13:00
psychedelicious
d4280bbaaa Adds auto-scaling for inpaint size 2022-11-27 03:35:49 +13:00
psychedelicious
52c79fa097 Lints 2022-11-27 03:35:49 +13:00
psychedelicious
62ac725ba9 Adds brush color alpha hotkey 2022-11-27 03:35:49 +13:00
psychedelicious
473869b8ed Fixes mask brush preview color 2022-11-27 03:35:49 +13:00
psychedelicious
318426b67a Changes color picker preview to circles 2022-11-27 03:35:49 +13:00
psychedelicious
6f3e99efc3 Un-floors cursor position 2022-11-27 03:35:49 +13:00
psychedelicious
8d0ef022eb Lints & builds fresh bundle 2022-11-27 03:35:49 +13:00
psychedelicious
9f1c1cf2e6 Adds color picker 2022-11-27 03:35:49 +13:00
blessedcoolant
2fcc7d9b36 Isolate Cursor Pos debug text on canvas to prevent rerenders 2022-11-27 03:35:49 +13:00
blessedcoolant
93de78b6e8 Highlight mask icon when on mask layer 2022-11-27 03:35:49 +13:00
psychedelicious
e821b97cfc Linting 2022-11-27 03:35:49 +13:00
psychedelicious
b0810e1ed7 Adds IAIAlertDialog component 2022-11-27 03:35:49 +13:00
psychedelicious
3e22160462 Updates mask options popover behavior 2022-11-27 03:35:49 +13:00
psychedelicious
6a3d725dbb Adds clear temp folder 2022-11-27 03:35:49 +13:00
psychedelicious
8a16c8a196 Crop to Bounding Box > Save Box Region Only 2022-11-27 03:35:49 +13:00
psychedelicious
90eaac5134 Masking option tweaks 2022-11-27 03:35:49 +13:00
psychedelicious
896c2532c7 Adds option to crop to bounding box on save 2022-11-27 03:35:49 +13:00
blessedcoolant
f68702520b Update Layer hotkey display to UI 2022-11-27 03:35:49 +13:00
blessedcoolant
088fd97418 Rearrange some canvas toolbar icons
Put brush stuff together and canvas movement stuff together
2022-11-27 03:35:49 +13:00
psychedelicious
e1e978b423 Adds Save to Gallery button to staging toolbar 2022-11-27 03:35:49 +13:00
psychedelicious
7dff8ccd31 Styles buttons for clearing canvas history and mask 2022-11-27 03:35:49 +13:00
psychedelicious
b72b61b790 Styling updates 2022-11-27 03:35:49 +13:00
psychedelicious
6c33d1356d Removes unused imports 2022-11-27 03:35:49 +13:00
psychedelicious
9418324030 Cleans up IAICanvasStatusText 2022-11-27 03:35:49 +13:00
psychedelicious
0f6856b719 Fixes canvas toolbar upload button 2022-11-27 03:35:49 +13:00
psychedelicious
83d8e69219 Reworks canvas toolbar 2022-11-27 03:35:49 +13:00
blessedcoolant
cde395e02f Hotkey Cleanup
- Viewer is now Z
- Canvas Move tool is V - sync with PS
- Removed some unused hotkeys
2022-11-27 03:35:49 +13:00
psychedelicious
e7f670a5b6 Fixes stage position changing on zoom 2022-11-27 03:35:49 +13:00
psychedelicious
37a356d377 Improves canvas status text and adds option to toggle debug info 2022-11-27 03:35:49 +13:00
psychedelicious
b8cebf29f2 Adds staging area hotkeys, disables gallery left/right when staging 2022-11-27 03:35:49 +13:00
psychedelicious
68aebad7ad Fixes staging area outline 2022-11-27 03:35:49 +13:00
psychedelicious
2ab868314f Reorganises app file structure 2022-11-27 03:35:49 +13:00
psychedelicious
bc46c46835 Refactors upload-related async thunks
- Now standard thunks instead of RTK createAsyncThunk()
- Adds toasts for all canvas upload-related actions
2022-11-27 03:35:49 +13:00
psychedelicious
d82a21cfb2 Integrates #1487 - touch events
Need to add:
- Pinch zoom
- Touch-specific handling (some things aren't quite right)
2022-11-27 03:35:49 +13:00
blessedcoolant
4f51680307 Staging Area delete button is now red
So it doesnt feel blended into to the rest of them.
2022-11-27 03:35:49 +13:00
blessedcoolant
d0ceabd372 Fix staging area display toggle not working 2022-11-27 03:35:49 +13:00
blessedcoolant
2bda3d6d2f Unify Brush and Eraser Sizes 2022-11-27 03:35:49 +13:00
blessedcoolant
024acf42af Update Hotkey Info
Add missing tooltip hotkeys and update the hotkeys modal to reflect the new hotkeys for the Unified Canvas.
2022-11-27 03:35:49 +13:00
psychedelicious
c69573e65d Disables canvas actions which cannot be done during processing 2022-11-27 03:35:49 +13:00
psychedelicious
84f702b6d0 Resets bounding box coords/dims when no image present 2022-11-27 03:35:49 +13:00
psychedelicious
bb70c32ad5 Improves behaviour when setting init canvas image/reset view 2022-11-27 03:35:49 +13:00
psychedelicious
425a1713ab Fixes possible hang on MaskCompositer 2022-11-27 03:35:49 +13:00
psychedelicious
70e67c45dd Fixes canvas showing spinner on first load
Also adds good default canvas scale and positioning when no image is on it
2022-11-27 03:35:49 +13:00
psychedelicious
07ca0876ec Updates hotkeys 2022-11-27 03:35:49 +13:00
psychedelicious
aa96a457b6 Adds hotkeys and refactors sharing of konva instances
Adds hotkeys to canvas. As part of this change, the access to konva instance objects was refactored:

Previously closure'd refs were used to indirectly get access to the konva instances outside of react components.

Now, a  getter and setter function are used to provide access directly to the konva objects.
2022-11-27 03:35:49 +13:00
psychedelicious
19322fc1ec Fixes save to gallery including empty area, adds download and copy image 2022-11-27 03:35:49 +13:00
psychedelicious
635e7da05d Abandons "inpainting" canvas lock 2022-11-27 03:35:49 +13:00
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
psychedelicious
1d540219fa Fixes bounding box ending up offscreen 2022-11-27 03:35:49 +13:00