Add free draw mode (#1570)

This commit is contained in:
Kostas Bariotis 2020-05-12 20:10:11 +01:00 committed by GitHub
parent 36e0c439fb
commit 9ec43d2626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 344 additions and 49 deletions

View file

@ -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`, () => {