canvas-editor-engine 2.3.57 → 2.3.58

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,12 +2620,11 @@ var DrawLayersService = function() {
2620
2620
  var replaceableIdx = _this.layerList.findIndex((function(layer) {
2621
2621
  return layer.order === newOrder;
2622
2622
  }));
2623
- _this.layerList.slice(layerIdx + 1, replaceableIdx + 1).forEach((function(layer, idx) {
2624
- _this.layerList[idx].order = layer.order - 1;
2623
+ _this.layerList.slice(layerIdx + 1, replaceableIdx + 1).forEach((function(rlayer, idx) {
2624
+ _this.layerList[idx].order = rlayer.order - 1;
2625
2625
  _this.appStoreRepository.store.drawLayersState.reduce("UPDATE_LAYER", _this.layerList[idx]);
2626
2626
  }));
2627
- layer.order = newOrder;
2628
- _this.layerList[layerIdx] = layer;
2627
+ _this.layerList[layerIdx].order = newOrder;
2629
2628
  _this.appStoreRepository.store.drawLayersState.reduce("UPDATE_LAYER", layer);
2630
2629
  } else {
2631
2630
  layer.order = newOrder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.3.57",
3
+ "version": "2.3.58",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",