canvas-editor-engine 2.3.52 → 2.3.53
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 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -2600,6 +2600,10 @@ var DrawLayersService = function() {
|
|
2600
2600
|
var replaceableIndex = _this.layerList.findIndex((function(layer) {
|
2601
2601
|
return layer.order === newOrder;
|
2602
2602
|
}));
|
2603
|
+
if (replaceableIndex === layerIndex) return reject({
|
2604
|
+
status: "error",
|
2605
|
+
message: "Layer order equals to replaceable layer order"
|
2606
|
+
});
|
2603
2607
|
if (replaceableIndex === -1) return reject({
|
2604
2608
|
status: "error",
|
2605
2609
|
message: "Replaceable layer not found"
|