canvas-editor-engine 2.3.48 → 2.3.50

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 +9 -9
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2559,15 +2559,15 @@ var DrawLayersService = function() {
2559
2559
  layer.order = options.to;
2560
2560
  }
2561
2561
  if (options === null || options === void 0 ? void 0 : options.direction) {
2562
- layer.order = function() {
2563
- if (options.direction === "up") {
2564
- return layer.order--;
2565
- } else if (options.direction === "down") {
2566
- return layer.order++;
2567
- } else {
2568
- return layer.order;
2569
- }
2570
- }();
2562
+ switch (options.direction) {
2563
+ case "up":
2564
+ layer.order = layer.order - 1;
2565
+ break;
2566
+
2567
+ case "down":
2568
+ layer.order = layer.order + 1;
2569
+ break;
2570
+ }
2571
2571
  }
2572
2572
  if (options === null || options === void 0 ? void 0 : options.addendum) {
2573
2573
  var operation = options.addendum.operation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.3.48",
3
+ "version": "2.3.50",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",