canvas-editor-engine 2.3.46 → 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.
- package/dist/index.mjs +4 -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
|
2564
|
+
return layer.order--;
|
2565
2565
|
} else if (options.direction === "down") {
|
2566
|
-
return layer.order
|
2566
|
+
return layer.order++;
|
2567
2567
|
} else {
|
2568
2568
|
return layer.order;
|
2569
2569
|
}
|
@@ -2837,10 +2837,12 @@ var DrawAccumulatorService = function() {
|
|
2837
2837
|
DrawAccumulatorService.prototype.changeLayerOrder = function(layerId, options) {
|
2838
2838
|
var _this = this;
|
2839
2839
|
this.drawLayersService.changeLayerOrder(layerId, options).then((function(res) {
|
2840
|
+
console.log("res", res);
|
2840
2841
|
if (res.status === "success") {
|
2841
2842
|
_this.update();
|
2842
2843
|
}
|
2843
2844
|
})).catch((function(ex) {
|
2845
|
+
console.log("ex", ex);
|
2844
2846
|
if (ex.status === "error") {
|
2845
2847
|
console.warn(ex.message);
|
2846
2848
|
}
|