canvas-editor-engine 2.3.38 → 2.3.40

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 +3 -5
  2. package/package.json +1 -2
package/dist/index.mjs CHANGED
@@ -1,5 +1,3 @@
1
- import ExecutionDelay from "execution-delay";
2
-
3
1
  var extendStatics = function(d, b) {
4
2
  extendStatics = Object.setPrototypeOf || {
5
3
  __proto__: []
@@ -2644,9 +2642,9 @@ var DrawAccumulatorService = function() {
2644
2642
  return painter.id === painterId;
2645
2643
  }));
2646
2644
  if (!painter) return [ 2, console.warn("Painter not found") ];
2647
- filteredPainters = JSON.parse(JSON.stringify(this.painters.filter((function(painter) {
2645
+ filteredPainters = this.painters.filter((function(painter) {
2648
2646
  return painter.id !== painterId;
2649
- }))));
2647
+ }));
2650
2648
  if (!(filteredPainters === null || filteredPainters === void 0 ? void 0 : filteredPainters.length)) return [ 2, console.warn("Painter not found") ];
2651
2649
  this.painters = createDynamicPainterStore();
2652
2650
  filteredPainters.forEach((function(painter) {
@@ -2705,7 +2703,7 @@ var DrawAccumulatorService = function() {
2705
2703
  };
2706
2704
  DrawAccumulatorService.prototype.update = function() {
2707
2705
  var _this = this;
2708
- ExecutionDelay.add("[DrawAccumulatorService] update", (function() {
2706
+ setTimeout((function() {
2709
2707
  _this.clearCanvas();
2710
2708
  _this.invokePaintersOnLayers();
2711
2709
  }), 1e3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.3.38",
3
+ "version": "2.3.40",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -30,7 +30,6 @@
30
30
  "typescript": "^5.7.2"
31
31
  },
32
32
  "dependencies": {
33
- "execution-delay": "^1.0.3",
34
33
  "rollup-plugin-multi-input": "^1.5.0",
35
34
  "tslib": "^2.8.1"
36
35
  }