feat: improved freedraw (#3512)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Steve Ruiz 2021-05-09 16:42:10 +01:00 committed by GitHub
parent 198800136e
commit 49c6bdd520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 786 additions and 247 deletions

View file

@ -106,7 +106,7 @@ describe("regression tests", () => {
mouse.click(30, 10);
Keyboard.keyPress(KEYS.ENTER);
UI.clickTool("draw");
UI.clickTool("freedraw");
mouse.down(40, -20);
mouse.up(50, 10);
@ -118,7 +118,7 @@ describe("regression tests", () => {
"line",
"arrow",
"line",
"draw",
"freedraw",
]);
});
@ -146,7 +146,7 @@ describe("regression tests", () => {
[`4${KEYS.E}`, "ellipse", true],
[`5${KEYS.A}`, "arrow", true],
[`6${KEYS.L}`, "line", true],
[`7${KEYS.X}`, "draw", false],
[`7${KEYS.X}`, "freedraw", false],
] as [string, ExcalidrawElement["type"], boolean][]) {
for (const key of keys) {
it(`key ${key} selects ${shape} tool`, () => {