Commit Graph

351 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
Nicola
f9a87cc46e Final refinements 2022-10-24 13:06:41 +02:00
Nicola
e51f510392 Merge branch 'master' into pxlvxl-master 2022-10-24 12:48:08 +02:00
Nicola
9e250c015e Added willReadFrequently attribute 2022-10-24 12:40:34 +02:00
Nicola
dca2748a4e Added back advanced color picker support 2022-10-24 12:35:23 +02:00
Nicola
3b83727c73 Added buttons to colour menu
Added buttons to add, remove, zoom in and zoom out. Also implemented palette zooming
2022-10-24 12:11:40 +02:00
NSSure
854a937da5 Init flag to prevent duplicate window events 2022-10-22 06:02:00 -04:00
NSSure
2e8f3f414b Removed test code updating palette 2022-10-22 05:48:34 -04:00
NSSure
b8d1f11f93 Added ability to select import position 2022-10-22 05:46:48 -04:00
NSSure
eb139ef8e7 Reset import image window on open 2022-10-21 04:18:10 -04:00
NSSure
02806c7efa Added file option to import image to current layer 2022-10-21 03:52:55 -04:00
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
Matthew Daly
1a6b8320e1 Fix canvasSize undefined 2022-08-24 00:34:19 -04:00
Matthew Daly
45016fbea1 Only register export click event once (#89) 2022-08-23 23:04:18 -04: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