Commit 286de59
* feat: Introduce Mover class, moving mode
Introduce the Mover class, with shortcuts that will put a workspace
into (and exit from) moving mode.
While in moving mode, cursor navigation via the cursor keys is
disabled.
* feat: Save block starting location and connections
* feat: Experiment: unconstrained movement using Dragger
Create an experimental implementation of unconstrained dragging
using the existing Dragger class. Implement this on a new
Mover subclass DragMover, to keep this experimental code (that
will probably be thrown away) separate from the main Mover
implementation.
Known bugs:
* Blocks lurch around somewhat wildly while being moved.
* Moving top-level blocks works reasonably well, but attempting
to move a non-top-level block will result in it being deleted
unless the move is aborted.
* feat: Add Move Block (M) context menu item
* fix: Allow ctrl+arrows to also perform unconstrained moves
Alt+arrows causes browser navigation on Windows. :-(
* fix: Use better fake PointerEvents to prevent random deletions
There was a bug that would often cause blocks to be deleted. This
was because the dragger thought the block was on the toolbox,
which is a delete area.
Fix this by giving the dragger much better fake PointerEvents,
so that it knows where the block actually is - good enough that
you can move the block to the trash can and it will be deleted!
* chore: address feedback from RaspberryPiFoundation#317
* chore: lint and format
* fix: remove allowCollision for m
* fix: RaspberryPiFoundation#356 by hiding the connection preview before reverting a drag
* fix: spelling
---------
Co-authored-by: Christopher Allen <[email protected]>
feat: heuristic insert (RaspberryPiFoundation#355)
* chore: simplify tryToConnectNodes
We only insert blocks so remove other cases.
* feat: heurstic insertion logic
- use first statement or value input
- in statement inputs move to the last next connection in the chain
- use next connections over previous connections
chore: convert webdriverio tests to TypeScript (RaspberryPiFoundation#353)
* chore: convert webdriverio tests to TypeScript
* chore: comment typo fix
feat: allow for toolbox with multiple tab stops (RaspberryPiFoundation#358)
- Switch to focusin/out for toolbox (maybe in future elsewhere)
- Drop the tab index fiddling as it's not practical to get it right in the face
of more than one tab stop in the toolbox, especially if that toolbox has a
DOM structure not known to the plugin.
Given that we're reinstating the ability to shift-tab flyout->toolbox it
makes sense to allow tab to the flyout. Shift-tab to the flyout remains not
possible in the auto-hide case but that's not unreasonable.
This version can be made to work with MakeCode without further modifications.
feat: use ts and factor out helper functions
1 parent a21ccce commit 286de59
File tree
4 files changed
+221
-202
lines changed- test/webdriverio/test
4 files changed
+221
-202
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
0 commit comments