Commit Graph

14 Commits

Author SHA1 Message Date
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
1bac62be4c Fixed #45, #44, #40, #38 2021-12-11 12:48:12 +01:00
Nicola
a238fb1b47 Fixed #43, #41, #37 and #35 2021-12-11 10:48:14 +01:00
unsettledgames
55f514b92e Fixed pixel grid bug 2021-12-07 23:01:49 +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
ea45fa4842 Added back rect selection 2021-11-08 22:25:30 +01:00
unsettledgames
a930fabcba Solved conflict 2021-09-18 22:32:58 +02:00
unsettledgames
366c2d9e2a Turned _settings.js into an IIFE 2021-07-23 18:45:23 +02:00
unsettledgames
e4415a5358 Removed all Layer-related global variables 2021-07-23 16:25:15 +02:00
unsettledgames
7084988de4 Removed global layerList and moved it to LayerList.js 2021-07-23 15:15:17 +02:00
unsettledgames
17b2a54d8a Moved right click layer menu from Layer to LayerList 2021-07-23 14:49:55 +02:00
unsettledgames
d3781979b4 Removed layerListEntry from global variables 2021-07-23 13:08:04 +02:00
unsettledgames
6e4ab3990d Added LayerList to handle all the functions that involve more than 1 layer
Merge, flatten, add layer, delete layer etc, I'm planning to move a few global variables in Layer to LayerList.
2021-07-22 22:42:41 +02:00