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:
@ -1,6 +1,5 @@
|
||||
let currentPalette = [];
|
||||
|
||||
|
||||
/** Adds the given color to the palette
|
||||
*
|
||||
* @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
|
||||
let layerList;
|
||||
// A single layer entry (used as a prototype to create the new ones)
|
||||
|
@ -12,6 +12,7 @@
|
||||
//=include utilities/hslToRgb.js
|
||||
//=include libraries/cookies.js
|
||||
//=include _pixelEditorUtility.js
|
||||
//=include sortable.js
|
||||
|
||||
/**init**/
|
||||
//=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