canvas-editor-engine 2.3.34 → 2.3.36
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 +10 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -2595,6 +2595,14 @@ var DrawAccumulatorService = function() {
|
|
2595
2595
|
console.error("Proxy set error:", error);
|
2596
2596
|
return false;
|
2597
2597
|
}
|
2598
|
+
},
|
2599
|
+
deleteProperty: function(target, prop) {
|
2600
|
+
if (prop in target) {
|
2601
|
+
delete target[prop];
|
2602
|
+
console.log("property removed: ".concat(prop));
|
2603
|
+
return true;
|
2604
|
+
}
|
2605
|
+
return false;
|
2598
2606
|
}
|
2599
2607
|
});
|
2600
2608
|
}
|
@@ -2615,6 +2623,7 @@ var DrawAccumulatorService = function() {
|
|
2615
2623
|
object: painter,
|
2616
2624
|
update: this.update.bind(this)
|
2617
2625
|
});
|
2626
|
+
console.log(this.painters);
|
2618
2627
|
this.drawLayersService.addToLayer(layerId, painter);
|
2619
2628
|
this.invokePainter(drawType, painter.drawService);
|
2620
2629
|
return [ 2 ];
|
@@ -2625,6 +2634,7 @@ var DrawAccumulatorService = function() {
|
|
2625
2634
|
return __awaiter(this, void 0, void 0, (function() {
|
2626
2635
|
var painterIndex;
|
2627
2636
|
return __generator(this, (function(_a) {
|
2637
|
+
console.log(this.painters);
|
2628
2638
|
painterIndex = this.painters.findIndex((function(painter) {
|
2629
2639
|
return painter.id === painterId;
|
2630
2640
|
}));
|