Commit Graph

20 Commits

Author SHA1 Message Date
Nicola 74665db3de Fixed tool color
Fixed ellipse filling the whole canvas when changing tool
2022-10-24 15:04:09 +02:00
pxlvxl 012f96ae8d push2 2022-02-25 09:49:30 -05:00
pxlvxl f499662afc Various changes
- added `/:paletteSlug/:resolution` functionality for localhost testing
	- created `currFile.sublayers` for *things that should zoom with the canvas layers*
	- `currFile.layers` now solely contains the canvas layers
	- added `getProjectData` to `FileManager`'s exported methods
	---
	- added `FileManager.localStorageSave` (it's basically just: localStorage.setItem("lpe-cache",FileManager.getProjectData()))
	- added `FileManager.localStorageCheck` (it's basically just: `!!localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageLoad` (it's basically just: `return localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageReset` (for debugging purity)
	---
	- calling `FileManager.localStorageSave()` on mouse up (we should stress test this)
	---
	- changed lpe file format to `{canvasWidth:number,canvasHeight:number,selectedLayer:number,colors:[],layers:[]}`
	- added backward compatibility for the old lpe file format
	---
	- added some canvas utility functions in `canvas_util`
	- added Unsettled's color similarity utility functions in `color_util2`
	---
	- html boilerplate - wang tiles
	-
	- POC - tiny text boilerplate
	- POC - tiny text font scraper
	---
	- WIP - added two optional url route parameters `/:paletteSlug/:resolution/:prefillWidth/:prefillBinaryStr`
	- WIP POC - hbs_parser.js (outputs tree data about hbs file relationships)
2022-02-23 11:36:15 -05:00
Nicola 953dc40bc4 Fixed bugs
Hid brush size arrows in firefox, let the user cancel a selection by clicking outside the canvas, fixed lasso tool not detecting the selection if ending it outside the canvas.
2022-02-04 22:13:11 +01:00
Nicola c5ede4cc69 Fixed selection tools dragging when the cursor is not in the selection 2022-01-31 23:17:15 +01:00
Nicola edf5d77ffd Finished tooltorials 2022-01-30 00:09:43 +01:00
Nicola fd688a3e86 Fixed bugs in new selection system 2022-01-22 12:18:10 +01:00
Nicola d92a2cd1cd Fixed lasso selection 2022-01-08 19:16:15 +01:00
Nicola de2479b007 Started making selection tools more generic
Will also hopefully remove MoveSelection.js and put its functions in SelectionTool
2022-01-05 23:54:29 +01:00
Nicola 4179393e91 Optimized lasso tool selection 2022-01-05 12:20:51 +01:00
Nicola e139a6cc41 Committing right algorithm before optimizing it 2022-01-05 12:02:35 +01:00
Nicola bb657976e8 Got back to BFS 2022-01-05 00:10:02 +01:00
Nicola bd1a806f11 Revert "Commit before dropping the fill tool idea and reverting to the first lasso version"
This reverts commit 5b6b3d33bc.
2022-01-02 21:57:35 +01:00
Nicola 5b6b3d33bc Commit before dropping the fill tool idea and reverting to the first lasso version 2022-01-02 21:57:20 +01:00
Nicola 908cc1b17c Started lasso selection computing 2021-12-29 23:16:16 +01:00
Nicola b37d050af8 Moved cursor in selection check to selection tool 2021-12-28 23:38:28 +01:00
Nicola 69d7f12790 Slightly refactored selection tool
Now the move tool doesn't depend on how the selection has been made anymore
2021-12-28 23:14:37 +01:00
Nicola 8df8b3ac54 Started lasso selection preview 2021-12-28 22:51:18 +01:00
Nicola fd3daecba5 Restored square templates in splash page 2021-12-27 19:40:23 +01:00
Nicola a52fc647e3 Reduced tool size
Moved tool size buttons on the right, started lasso tool
2021-12-27 19:11:59 +01:00