Added back line tool

This commit is contained in:
unsettledgames
2021-10-31 18:03:21 +01:00
parent 6b739f0ea7
commit 26bd57cc92
8 changed files with 106 additions and 76 deletions

View File

@ -1,9 +1,11 @@
const ToolManager = (() => {
brush = new BrushTool("brush", {type: 'html'}, switchTool);
eraser = new EraserTool("eraser", {type: 'html'}, switchTool);
rectangle = new RectangleTool("rectangle", {type: 'html'}, switchTool);
brushTool = new BrushTool("brush", {type: 'html'}, switchTool);
eraserTool = new EraserTool("eraser", {type: 'html'}, switchTool);
rectangleTool = new RectangleTool("rectangle", {type: 'html'}, switchTool);
lineTool = new LineTool("line", {type: 'html'}, switchTool);
currTool = brush;
currTool = brushTool;
currTool.onSelect();
Events.on("mouseup", window, onMouseUp);
Events.on("mousemove", window, onMouseMove);