canvas-editor-engine 2.3.48 → 2.3.49
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 +9 -9
- 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
|
-
|
2563
|
-
|
2564
|
-
|
2565
|
-
|
2566
|
-
|
2567
|
-
|
2568
|
-
|
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;
|