mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added back pan and missing sprite scaling functions
Also fixed bug that let the user change the brush size to 0
This commit is contained in:
@ -3,8 +3,9 @@ const ToolManager = (() => {
|
||||
eraserTool = new EraserTool("eraser", {type: 'html'}, switchTool);
|
||||
rectangleTool = new RectangleTool("rectangle", {type: 'html'}, switchTool);
|
||||
lineTool = new LineTool("line", {type: 'html'}, switchTool);
|
||||
fillTool = new FillTool("fill", {type: 'cursor', pic: 'fill.png'}, switchTool);
|
||||
eyedropperTool = new EyedropperTool("eyedropper", {type: 'cursor', pic: 'none'}, switchTool);
|
||||
fillTool = new FillTool("fill", {type: 'cursor', style: 'crosshair'}, switchTool);
|
||||
eyedropperTool = new EyedropperTool("eyedropper", {type: 'cursor', style: 'crosshair'}, switchTool);
|
||||
panTool = new PanTool("pan", {type: 'custom'}, switchTool);
|
||||
|
||||
currTool = brushTool;
|
||||
currTool.onSelect();
|
||||
|
Reference in New Issue
Block a user