canvas-editor-engine 2.3.68 → 2.3.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -2620,17 +2620,16 @@ var DrawLayersService = function() {
|
|
2620
2620
|
var replaceableIdx_1 = _this.layerList.findIndex((function(layer) {
|
2621
2621
|
return layer.order === newOrder;
|
2622
2622
|
}));
|
2623
|
-
|
2624
|
-
if (_this.layerList[layerIdx_1].order > newOrder) {
|
2623
|
+
if (_this.layerList[layerIdx_1].order < newOrder) {
|
2625
2624
|
_this.layerList = _this.layerList.map((function(item, idx) {
|
2626
|
-
if (idx
|
2625
|
+
if (idx > layerIdx_1 && idx <= replaceableIdx_1) {
|
2627
2626
|
item.order -= 1;
|
2628
2627
|
}
|
2629
2628
|
return item;
|
2630
2629
|
}));
|
2631
2630
|
} else {
|
2632
2631
|
_this.layerList = _this.layerList.map((function(item, idx) {
|
2633
|
-
if (idx
|
2632
|
+
if (idx > replaceableIdx_1 && idx <= layerIdx_1) {
|
2634
2633
|
item.order += 1;
|
2635
2634
|
}
|
2636
2635
|
return item;
|