Restored square templates in splash page

This commit is contained in:
Nicola
2021-12-27 19:40:23 +01:00
parent a52fc647e3
commit fd3daecba5
6 changed files with 29 additions and 7 deletions

View File

@ -16,6 +16,8 @@ const ToolManager = (() => {
{type:'cursor', style:'crosshair'}, switchTool, tools["brush"]);
tools["rectselect"] = new RectangularSelectionTool("rectselect",
{type: 'cursor', style:'crosshair'}, switchTool, tools["moveselection"]);
tools["lassoselect"] = new LassoSelectionTool("lassoselect",
{type: 'cursor', style:'crosshair'}, switchTool, tools["moveselection"]);
currTool = tools["brush"];
currTool.onSelect();

View File

@ -42,6 +42,7 @@
//=include tools/PanTool.js
//=include tools/ZoomTool.js
//=include tools/RectangularSelectionTool.js
//=include tools/LassoSelectionTool.js
//=include tools/MoveSelectionTool.js
/** MODULES AND MENUS **/

View File

@ -1,6 +1,6 @@
class LassoSelectionTool extends SelectionTool {
constructor (name, options, switchFunc, moveTool) {
super(name, options, switchFunc, moveTool);
}
onStart(mousePos) {