mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Feature : merge layers
Added feature to merge a layer with the layer below Done at #jsconfeu2014 :) New icon in icons : merge-icon.png TODO : reorder the icons folder, it's waaaaaaay too messy !!
This commit is contained in:
@@ -73,6 +73,10 @@
|
||||
this.layers.push(layer);
|
||||
};
|
||||
|
||||
ns.Piskel.prototype.addLayerAt = function (layer, index) {
|
||||
this.layers.splice(index, 0, layer);
|
||||
};
|
||||
|
||||
ns.Piskel.prototype.moveLayerUp = function (layer) {
|
||||
var index = this.layers.indexOf(layer);
|
||||
if (index > -1 && index < this.layers.length-1) {
|
||||
|
||||
Reference in New Issue
Block a user