Commit Graph

34 Commits

Author SHA1 Message Date
Theo Cavignac
0e676184a9 Fix a bug due to non standard attribute. 2022-12-23 00:00:54 +01:00
Jaman Brundage
12a3283790 another push
Fixed issue with color saving
Redesigned color select section
2022-03-23 08:47:57 -04: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
428ffe80f8 Fixed #82 2022-01-29 21:36:25 +01:00
Nicola
f78d99053b Implemented empty ellipse 2022-01-23 12:41:42 +01:00
Nicola
832f36992b Added ellipse tool setup 2022-01-22 16:02:10 +01:00
Nicola
fd688a3e86 Fixed bugs in new selection system 2022-01-22 12:18:10 +01:00
Nicola
eada0f7ab1 Continued MagicWand
Only missing moving the selected pixels
2022-01-10 23:37:21 +01:00
Nicola
4c4fbede6e Started magic wand 2022-01-09 23:53:28 +01:00
Nicola
ac18dff161 Merge branch 'master' into next-update 2022-01-08 17:10:30 +01:00
Joao Vitor
ddb882faae Fixed EyeDropperTool bug
The EyeDropperTool was not working properly, the reason was the class name.
2022-01-08 00:56:39 -03:00
Nicola
d6062c51ad Fixed canvas resizing bug
Every time the user opened the window, the events were rebinded and added multiple times. So every popup added a canvas resizing operation.
2022-01-05 17:41:13 +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
62130ae90d Polished previous bug fix
Now it's possible to use all non-resizable tool and even copy a locked layer to paste it on an unlocked one.
2021-12-12 22:50:21 +01:00
Nicola
1d9ef0f372 Fixed #46 2021-12-12 22:22:46 +01:00
Nicola
be852d9aae Fixed #48 and #47 2021-12-12 18:37:16 +01:00
unsettledgames
05beab6929 Removed a few dependencies, refactored pixel-editor.js 2021-12-07 12:11:40 +01:00
unsettledgames
b2f5521750 Removed all global variables, worked on File class and put canvas resizing functions in File 2021-12-06 17:37:43 +01:00
unsettledgames
d972f9c530 Turned the PaleteBlock into an IIFE 2021-12-06 11:26:42 +01:00
unsettledgames
73f7c980eb Added back eyedropper alt key binding 2021-11-09 12:53:19 +01:00
unsettledgames
2ca5aa75b4 Added back tool shortctus
Made Events an IIFE instead of a class, fixed a bug in the selection tool.
2021-11-09 12:19:57 +01:00
unsettledgames
3c62a1f0fd Added back tool resizing 2021-11-08 23:12:51 +01:00
unsettledgames
ea45fa4842 Added back rect selection 2021-11-08 22:25:30 +01:00
unsettledgames
a56d7092fc Added ResizableTool and SelectionTool 2021-11-01 13:02:18 +01:00
unsettledgames
2d8974f9d6 Added back zoom 2021-11-01 12:31:09 +01:00
unsettledgames
c1aba0a89e Added back pan and missing sprite scaling functions
Also fixed bug that let the user change the brush size to 0
2021-11-01 12:01:31 +01:00
unsettledgames
32fb4ca943 Added back eyedropper 2021-11-01 11:33:18 +01:00
unsettledgames
d034bbc659 Added back fill tool 2021-10-31 18:31:45 +01:00
unsettledgames
26bd57cc92 Added back line tool 2021-10-31 18:03:21 +01:00
unsettledgames
6b739f0ea7 Added back rectangle tool 2021-10-31 12:49:38 +01:00
unsettledgames
b2fef6154d Added back eraser tool 2021-10-27 10:43:51 +02:00
unsettledgames
35cbe31a71 Added back brush with new tool system 2021-10-27 10:02:21 +02:00
unsettledgames
0fcb309cc7 Added basic structure and comments for Tools
Fixed lpe palette loading, added custom events
2021-10-25 19:23:06 +02:00