mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Started implementing sortable layers (revert here)
This commit is contained in:
@ -12,6 +12,8 @@ The next version is mostly focused on adding missing essential features and port
|
|||||||
|
|
||||||
Suggestions / Planned features:
|
Suggestions / Planned features:
|
||||||
|
|
||||||
|
- Documentation
|
||||||
|
|
||||||
- Line tool
|
- Line tool
|
||||||
- Tiled mode
|
- Tiled mode
|
||||||
- Load palette from LPE file
|
- Load palette from LPE file
|
||||||
@ -32,15 +34,15 @@ Suggestions / Planned features:
|
|||||||
- Possibly add collaborate function
|
- Possibly add collaborate function
|
||||||
|
|
||||||
- Polish:
|
- Polish:
|
||||||
- ctrl + a to select everything / selection -> all, same for deselection
|
- ctrl a to select everything / selection -> all, same for deselection
|
||||||
- Show colors which would need to be added to palette
|
|
||||||
- Warning windows for wrong inputs
|
- Warning windows for wrong inputs
|
||||||
- Palette option remove unused colors
|
- Palette option remove unused colors
|
||||||
- Move selection with arrows
|
- Move selection with arrows
|
||||||
- Update pivot buttons when resizing canvas
|
- Update pivot buttons when resizing canvas
|
||||||
- Update borders by dragging the canvas' edges with the mouse when resizing canvas
|
- Update borders by dragging the canvas' edges with the mouse when resizing canvas
|
||||||
- Move the canvases so they're centered after resizing the canvas (maybe a .center() method in layer class)
|
- Move the canvases so they're centered after resizing the canvas (maybe a .center() method in layer class)
|
||||||
- Trim canvas
|
- Scale selection
|
||||||
|
- Use sortable.js for sorting the layers
|
||||||
|
|
||||||
## How to Contribute
|
## How to Contribute
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
let currentPalette = [];
|
let currentPalette = [];
|
||||||
|
|
||||||
|
|
||||||
/** Adds the given color to the palette
|
/** Adds the given color to the palette
|
||||||
*
|
*
|
||||||
* @param {*} newColor the colour to add
|
* @param {*} newColor the colour to add
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
// Making the palette list sortable
|
||||||
|
new Sortable(document.getElementById("layers-menu"), {
|
||||||
|
animation: 100
|
||||||
|
});
|
||||||
|
|
||||||
// HTML element that contains the layer entries
|
// HTML element that contains the layer entries
|
||||||
let layerList;
|
let layerList;
|
||||||
// A single layer entry (used as a prototype to create the new ones)
|
// A single layer entry (used as a prototype to create the new ones)
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
//=include utilities/hslToRgb.js
|
//=include utilities/hslToRgb.js
|
||||||
//=include libraries/cookies.js
|
//=include libraries/cookies.js
|
||||||
//=include _pixelEditorUtility.js
|
//=include _pixelEditorUtility.js
|
||||||
|
//=include sortable.js
|
||||||
|
|
||||||
/**init**/
|
/**init**/
|
||||||
//=include _consts.js
|
//=include _consts.js
|
||||||
|
3709
js/sortable.js
Normal file
3709
js/sortable.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user