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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -4
  2. 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
- console.log(_this.layerList[layerIdx_1].order > newOrder, _this.layerList[layerIdx_1].order, newOrder);
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 >= layerIdx_1 && idx <= replaceableIdx_1) {
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 >= replaceableIdx_1 && idx <= layerIdx_1) {
2632
+ if (idx > replaceableIdx_1 && idx <= layerIdx_1) {
2634
2633
  item.order += 1;
2635
2634
  }
2636
2635
  return item;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.3.68",
3
+ "version": "2.3.69",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",