mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add free draw mode (#1570)
This commit is contained in:
parent
36e0c439fb
commit
9ec43d2626
21 changed files with 344 additions and 49 deletions
|
@ -265,6 +265,11 @@ describe("regression tests", () => {
|
|||
pointerMove(30, 50);
|
||||
pointerUp();
|
||||
hotkeyPress("ENTER");
|
||||
|
||||
clickTool("draw");
|
||||
pointerDown(30, 10);
|
||||
pointerMove(40, 20);
|
||||
pointerUp();
|
||||
});
|
||||
|
||||
it("click to select a shape", () => {
|
||||
|
@ -290,6 +295,7 @@ describe("regression tests", () => {
|
|||
["4e", "ellipse"],
|
||||
["5a", "arrow"],
|
||||
["6l", "line"],
|
||||
["7x", "draw"],
|
||||
] as [string, ExcalidrawElement["type"]][]) {
|
||||
for (const key of keys) {
|
||||
it(`hotkey ${key} selects ${shape} tool`, () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue