mirror of
https://github.com/excalidraw/excalidraw.git
synced 2024-04-21 12:42:26 +00:00
code cleanup
This commit is contained in:
@@ -155,7 +155,7 @@ export const COLOR_VOICE_CALL = "#a2f1a6";
|
||||
|
||||
export const CANVAS_ONLY_ACTIONS = ["selectAll"];
|
||||
|
||||
export const GRID_SIZE = 10; // TODO make it configurable?
|
||||
export const GRID_SIZE = 20; // TODO make it configurable?
|
||||
|
||||
export const IMAGE_MIME_TYPES = {
|
||||
svg: "image/svg+xml",
|
||||
|
||||
@@ -2607,8 +2607,8 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
|
||||
"version": 4,
|
||||
"versionNonce": 400692809,
|
||||
"width": 20,
|
||||
"x": -5,
|
||||
"y": 5,
|
||||
"x": 0,
|
||||
"y": 10,
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -2744,8 +2744,8 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
|
||||
"version": 4,
|
||||
"versionNonce": 400692809,
|
||||
"width": 20,
|
||||
"x": -5,
|
||||
"y": 5,
|
||||
"x": 0,
|
||||
"y": 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -4466,7 +4466,7 @@ exports[`regression tests > click to select a shape > [end of test] history 1`]
|
||||
"versionNonce": 238820263,
|
||||
"width": 10,
|
||||
"x": 32,
|
||||
"y": 8,
|
||||
"y": 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -106,8 +106,6 @@ describe("contextMenu element", () => {
|
||||
mouse.down(10, 10);
|
||||
mouse.up(20, 20);
|
||||
|
||||
console.log(h.elements);
|
||||
|
||||
fireEvent.contextMenu(GlobalTestState.interactiveCanvas, {
|
||||
button: 2,
|
||||
clientX: 1,
|
||||
|
||||
@@ -120,7 +120,7 @@ describe("regression tests", () => {
|
||||
const firstRectPos = mouse.getPosition();
|
||||
|
||||
UI.clickTool("rectangle");
|
||||
mouse.down(12, -12);
|
||||
mouse.down(12, -10);
|
||||
mouse.up(10, 10);
|
||||
|
||||
const prevSelectedId = API.getSelectedElement().id;
|
||||
@@ -249,8 +249,6 @@ describe("regression tests", () => {
|
||||
.filter((element) => element.type === "rectangle")
|
||||
.map((element) => ({ x: element.x, y: element.y }));
|
||||
|
||||
console.log("prevRectsXY", prevRectsXY);
|
||||
|
||||
mouse.reset();
|
||||
mouse.click(10, 10);
|
||||
Keyboard.withModifierKeys({ shift: true }, () => {
|
||||
@@ -260,8 +258,6 @@ describe("regression tests", () => {
|
||||
mouse.down();
|
||||
mouse.up(10, 10);
|
||||
|
||||
console.log("h.elements", h.elements);
|
||||
|
||||
h.elements
|
||||
.filter((element) => element.type === "rectangle")
|
||||
.forEach((element, i) => {
|
||||
|
||||
Reference in New Issue
Block a user