Commit Graph

338 Commits

Author SHA1 Message Date
Nicola
f31fd5b505 Attempted to resize palette squares on scroll 2022-10-06 11:20:09 +02:00
Nicola
7672a034c8 Fixed canvas-view being a div and not a canvas 2022-10-06 10:16:19 +02:00
Jaman Brundage
12a3283790 another push
Fixed issue with color saving
Redesigned color select section
2022-03-23 08:47:57 -04:00
pxlvxl
5f09ceddcf push7 2022-02-27 09:44:16 -05:00
pxlvxl
bc7561b72d push6 2022-02-27 09:20:08 -05:00
pxlvxl
fedca8f95e push5 2022-02-27 09:14:42 -05:00
pxlvxl
6ac04e5338 push3 2022-02-25 14:06:44 -05:00
pxlvxl
012f96ae8d push2 2022-02-25 09:49:30 -05:00
pxlvxl
ca32746d48 Merge branch 'master' of https://github.com/pxlvxl/pixel-editor 2022-02-23 11:52:41 -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
pxlvxl
a1757553cf 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:16:23 -05:00
Nicola
40299853ca Fixed tool tutorials preventing user to draw under them even when hidden 2022-02-05 18:35:51 +01: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
cdabbb4a5c Added tool size in the top bar 2022-01-31 23:12:28 +01:00
Nicola
82aa5ab114 Fixed topbar css
Aded InputComponents.js to take care (dynamically create, add events) of input elements.
2022-01-31 00:16:27 +01:00
Nicola
79a3c07b82 Fixed ellipse bug, fixed brush size bug 2022-01-30 22:53:59 +01:00
Nicola
edf5d77ffd Finished tooltorials 2022-01-30 00:09:43 +01:00
Nicola
428ffe80f8 Fixed #82 2022-01-29 21:36:25 +01:00
Nicola
b616579c65 Continued tool tutorials
Also fixed fill tool history bug
2022-01-25 23:47:01 +01:00
Nicola
2e360dcf51 Started tool tutorials 2022-01-25 00:33:23 +01:00
Nicola
33f362ef09 Merge branch 'master' into next-update 2022-01-24 22:10:05 +01:00
Nicola
1b42c0b7ca Fixed brush not working on start 2022-01-23 18:56:55 +01:00
Nicola
cd1d0cd5eb Merge branch 'master' into next-update 2022-01-23 16:45:27 +01:00
Nicola
d762c04ba0 Fixed fill tool bug 2022-01-23 16:07:04 +01:00
Nicola
cc460446b6 Finished ellipse tool 2022-01-23 13:32:23 +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
6900ecb0c0 Removed selection reconstruction
Selecting out of bounds isn't a problem anymore
2022-01-22 12:23:39 +01:00
Nicola
fd688a3e86 Fixed bugs in new selection system 2022-01-22 12:18:10 +01:00
Nicola
86ab2e08e6 Finished magic wand 2022-01-14 17:58:40 +01:00
Sam Keddy
c135e2838d fixed urls
changed all urls to be relative (no starting slash) and without /pixel-editor/. Fixed the testing server to deal with these requests (and also include some better logging).
2022-01-13 14:40:35 -05:00
Nicola
37d21f5dec Fixed pasting selection with cusor out of canvas 2022-01-12 23:13:53 +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
8eebb35df6 Refined partially external selections 2022-01-09 23:42:37 +01:00
Nicola
d92a2cd1cd Fixed lasso selection 2022-01-08 19:16:15 +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
fa1da7ca4c Added back copy cut paste 2022-01-07 23:22:42 +01:00
Nicola
afff386e5f Added back selection pasting and end of selection 2022-01-07 23:10:50 +01:00
Nicola
06f534e38e Started selection dragging 2022-01-06 23:12:09 +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
240b0176c3 Merge branch 'master' into next-update 2022-01-05 17:42:33 +01: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
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