Commit Graph

8197 Commits

Author SHA1 Message Date
psychedelicious
206d1b231a tidy(ui): remove unused state & actions 2024-09-06 21:27:36 +10:00
psychedelicious
008d8f491c feat(ui): region mask rendering 2024-09-06 21:27:36 +10:00
psychedelicious
ae5543b6fa feat(ui): esc cancels drawing buffer
maybe this is not wanted? we'll see
2024-09-06 21:27:36 +10:00
psychedelicious
2c2e6c5c25 fix(ui): render transformer over objects, fix issue w/ inpaint rect color 2024-09-06 21:27:36 +10:00
psychedelicious
718bed5758 fix(ui): brush preview fill for inpaint/region 2024-09-06 21:27:36 +10:00
psychedelicious
d2c524e7fd fix(ui): no objects rendered until vis toggled 2024-09-06 21:27:36 +10:00
psychedelicious
c172221038 feat(ui): inpaint mask transform 2024-09-06 21:27:36 +10:00
psychedelicious
b006edf9c4 fix(ui): layer accidental early set isFirstRender=false 2024-09-06 21:27:36 +10:00
psychedelicious
9f2dc4d6d1 fix(ui): inpaint mask rendering 2024-09-06 21:27:36 +10:00
psychedelicious
8816d6c0c5 feat(ui): wip inpaint mask uses new API 2024-09-06 21:27:36 +10:00
psychedelicious
6dddad01fc feat(ui): move updatePosition to transformer 2024-09-06 21:27:36 +10:00
psychedelicious
7b7f0a7380 feat(ui): move resetScale to transformer 2024-09-06 21:27:36 +10:00
psychedelicious
8f780e79e7 tidy(ui): more imperative naming 2024-09-06 21:27:36 +10:00
psychedelicious
5a2b00fb95 tidy(ui): use imperative names for setters in stateapi 2024-09-06 21:27:36 +10:00
psychedelicious
25158d4d92 fix(ui): commit drawing buffer on tool change, fixing bbox not calculating 2024-09-06 21:27:36 +10:00
psychedelicious
3c9e9fa746 fix(ui): sync transformer when requesting bbox calc 2024-09-06 21:27:36 +10:00
psychedelicious
e5a7e932cf tidy(ui): rename union CanvasEntity -> CanvasEntityState 2024-09-06 21:27:36 +10:00
psychedelicious
84d15b0c7f fix(ui): request rect calc immediately on transform, hiding rect 2024-09-06 21:27:36 +10:00
psychedelicious
79f216a491 feat(ui): move bbox calculation to transformer 2024-09-06 21:27:36 +10:00
psychedelicious
b86645c1a7 feat(ui): use set for transformer subscriptions 2024-09-06 21:27:36 +10:00
psychedelicious
3f359f1059 tidy(ui): clean up worker tasks when complete 2024-09-06 21:27:36 +10:00
psychedelicious
7c7117c39a tidy(ui): remove unused code in CanvasTool 2024-09-06 21:27:36 +10:00
psychedelicious
92b8c68b94 feat(ui): use pubsub for isTransforming on manager 2024-09-06 21:27:36 +10:00
psychedelicious
7b7d722bae docs(ui): update transformer docstrings 2024-09-06 21:27:36 +10:00
psychedelicious
227c3197b4 feat(ui): revised event pubsub, transformer logic split out 2024-09-06 21:27:35 +10:00
psychedelicious
cab1ba8970 feat(ui): add simple pubsub 2024-09-06 21:27:35 +10:00
psychedelicious
7395c94d00 feat(ui): document & clean up object renderer 2024-09-06 21:27:35 +10:00
psychedelicious
2a2dadb952 feat(ui): split out object renderer 2024-09-06 21:27:35 +10:00
psychedelicious
b60dcf8036 fix(ui): unable to hold shit while transforming to retain ratio 2024-09-06 21:27:35 +10:00
psychedelicious
edeb706d19 tidy(ui): rename canvas stuff 2024-09-06 21:27:35 +10:00
psychedelicious
cd76a2d217 tidy(ui): consolidate getLoggingContext builders 2024-09-06 21:27:35 +10:00
psychedelicious
2aaa6c3986 fix(ui): align all tools to 1px grid
- Offset brush tool by 0.5px when width is odd, ensuring each stroke edge is exactly on a pixel boundary
- Round the rect tool also
2024-09-06 21:27:35 +10:00
psychedelicious
dfdd56dbec feat(ui): disable image smoothing on layers 2024-09-06 21:27:35 +10:00
psychedelicious
f521704ade fix(ui): round position when rasterizing layer 2024-09-06 21:27:35 +10:00
psychedelicious
0e0cf9cd3e feat(ui): continue modularizing transform 2024-09-06 21:27:35 +10:00
psychedelicious
60484bd45e feat(ui): fix a few things that didn't unsubscribe correctly, add helper to manage subscriptions 2024-09-06 21:27:35 +10:00
psychedelicious
5978ba32c0 feat(ui): merge bbox outline into transformer 2024-09-06 21:27:35 +10:00
psychedelicious
45efa8f40d fix(ui): update parent's pos not transformers 2024-09-06 21:27:35 +10:00
psychedelicious
3392e1f0bf feat(ui): merge interaction rect into transformer class 2024-09-06 21:27:35 +10:00
psychedelicious
c734385f18 feat(ui): prepare staging area 2024-09-06 21:27:35 +10:00
psychedelicious
148434d833 feat(ui): typing for logging context 2024-09-06 21:27:35 +10:00
psychedelicious
d5e4a965cc feat(ui): remove inheritance of CanvasObject
JS is terrible
2024-09-06 21:27:35 +10:00
psychedelicious
c8ac4d9e1b feat(ui): split & document transformer logic, iterate on class structures 2024-09-06 21:27:35 +10:00
psychedelicious
1e17461601 feat(ui): rotation snap to nearest 45deg when holding shift 2024-09-06 21:27:35 +10:00
psychedelicious
4432244bc3 feat(ui): expose subscribe method for nanostores 2024-09-06 21:27:35 +10:00
psychedelicious
0d087f84a5 tidy(ui): remove layer scaling reducers 2024-09-06 21:27:35 +10:00
psychedelicious
286deb277b fix(ui): pixel-perfect transforms 2024-09-06 21:27:35 +10:00
psychedelicious
3f2c1139ea fix(ui): layer visibility toggle 2024-09-06 21:27:35 +10:00
psychedelicious
1f3163942a fix(nodes): fix canvas mask erode
it wasn't eroding enough and caused incorrect transparency in result images
2024-09-06 21:27:35 +10:00
psychedelicious
28affcc60a fix(ui): do not reset layer on first render 2024-09-06 21:27:35 +10:00