Commit a6c57be
(G)rab, (R)otate, and (S)cale layers with hotkeys (#356)
* Add handler and input mapping.
* Selecting transform type
* Add translation and axis constraints
* Remove unnecessary Key::
* Add rotation
* Centre pivot point for rotation
* Add scaling
* Select Tool bounding box now updates when transforming
* Add typing
* Shift to slow mouse movements
* Add snapping
* Refactor modifier keys
* Refactor to apply only 1 operation per frame
* Refactor to fix scale 0 issue
* Remove logging
* Avoid multiple decimol points in queue
* Add typing negative
* Add typing negative values
* Fix bounding box on apply/abort; fix some variable names
* Allow transform to daffine2 identity
* Revert previous operation when changing operation
* Remove repopulate transforms method
* Code readability tweaks
Co-authored-by: Keavon Chambers <keavon@keavon.com>1 parent 40e91b3 commit a6c57be
File tree
10 files changed
+610
-3
lines changed- editor/src
- document
- input
- frontend/wasm/src
- graphene/src/layers
10 files changed
+610
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
| 268 | + | |
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| |||
361 | 367 | | |
362 | 368 | | |
363 | 369 | | |
| 370 | + | |
364 | 371 | | |
365 | 372 | | |
366 | 373 | | |
| |||
710 | 717 | | |
711 | 718 | | |
712 | 719 | | |
| 720 | + | |
713 | 721 | | |
714 | 722 | | |
715 | 723 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
0 commit comments