Commit Graph

71 Commits

Author SHA1 Message Date
unsettledgames
ab4129546c Added layer move
The user can now move layers and choose which one to put on top of each other just by dragging and dropping them in the layer menu. Also fixed a bug in the eyedropper, that can now pick a colour even though the layer it's on is not selected.
2020-06-19 23:31:36 +02:00
unsettledgames
6cdc764586 Started drag and drop system 2020-06-19 16:20:51 +02:00
unsettledgames
10aa6134cc Fixed button visibility
Now if a layer is locked or hidden, the icon will always be shown.
2020-06-19 15:25:25 +02:00
unsettledgames
c498a495d5 Added canvas preview to layer menu
Decided to apply the same width / height ratio of the canvas to the preview.
2020-06-19 15:16:22 +02:00
unsettledgames
6cf6f86a91 Currently debugging the add layer function
At the moment the new canvas is correclty added and it's possible to draw on it after selecting the corresponding layer. There's a bug that doesn't let the user select a layer after the first time.
2020-06-18 16:04:45 +02:00
unsettledgames
51d86cee77 Continued basic layer layout
Added "Add layer" button, must find a nice way to add svgs
2020-06-17 23:09:11 +02:00
unsettledgames
4b9d51200f Started layers menu
Horrible colors included for free
2020-06-16 23:23:12 +02:00
Sam Keddy
91da252f49 created tool class which keeps track of cursors, incorporates changeTool; made changelog data its own file 2020-04-15 00:01:31 +00:00
Lospec
7c29ba2d35
Merge branch 'master' into master 2020-03-07 17:52:45 -05:00
Sam Keddy
d899929816 updates 2020-03-07 22:46:25 +00:00
unsettledgames
0786f99d76 Started rectangle tool
Added icons and buttons.
2020-03-06 21:39:30 +01:00
unsettledgames
f1ae36c54c Finished the selection tool 2020-03-05 16:13:23 +01:00
unsettledgames
7ec24fc046 Added tmp layer
The temporary layer (tmp layer) will store selections while the user decides where to put them, so that content below it doesn't get overridden.
2020-03-04 19:46:19 +01:00
unsettledgames
8c94a951e2 Started implementing preview rect
At the moment there's a bug in the getCursorPos function, may have something to do with offsets. The rect is correctly drawn, but with a weird offset.

Added vfx canvas for tools previews.
2020-03-04 15:46:25 +01:00
unsettledgames
efaa8e3c34 Connected events to rect selection
_rectSelect.js now knows when the user started and finished drawing a rect and is able to edit a preview.
2020-03-04 14:36:40 +01:00
npalomba
8f4f4c2478 Solved bug that made the colour picker appear in the canvas.
Signed-off-by: npalomba <nicola.palomba@studenti.galileilivorno.gov.it>
2019-03-31 19:53:39 +02:00
npalomba
bd96d01970 Fixed visibility of canvas before canvas generation. 2019-03-31 18:44:09 +02:00
npalomba
a9d380ec1d Implemented eraser tool. Must move and resize layers at the same time.
Signed-off-by: npalomba <nicola.palomba@studenti.galileilivorno.gov.it>
2019-03-31 16:32:49 +02:00
npalomba
e68f495d50 Added functions for canvas management in order to create multiple underlying canvases for implementing layers.
Signed-off-by: npalomba <nicola.palomba@studenti.galileilivorno.gov.it>
2019-03-31 15:55:08 +02:00
npalomba
5bbfff5fae Added eraser icon, added management of eraser size, added event listener for R key (connected to the eraser tool). Started eraser cursor management in _updateCursors.js
Signed-off-by: npalomba <nicola.palomba@studenti.galileilivorno.gov.it>
2019-03-31 12:17:32 +02:00
Sam Keddy
7126e83f5f first commit 2019-03-26 23:20:54 +00:00