canvas-editor-engine 2.3.47 → 2.3.48

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