mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added back rect selection
This commit is contained in:
@ -9,11 +9,11 @@ const ToolManager = (() => {
|
||||
panTool = new PanTool("pan", {type: 'custom'}, switchTool);
|
||||
zoomTool = new ZoomTool("zoom", {type:'custom'});
|
||||
|
||||
rectSelectTool = new RectangularSelectionTool("rectselect",
|
||||
{type: 'cursor', style:'crosshair'}, switchTool);
|
||||
moveSelectionTool = new MoveSelectionTool("moveselection",
|
||||
{type:'cursor', style:'crosshair'}, switchTool);
|
||||
|
||||
{type:'cursor', style:'crosshair'}, switchTool, brushTool);
|
||||
rectSelectTool = new RectangularSelectionTool("rectselect",
|
||||
{type: 'cursor', style:'crosshair'}, switchTool, moveSelectionTool);
|
||||
|
||||
currTool = brushTool;
|
||||
currTool.onSelect();
|
||||
canvasView.style.cursor = 'default';
|
||||
|
Reference in New Issue
Block a user