canvas-editor-engine 2.3.6 → 2.3.8

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 +7 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2157,7 +2157,9 @@ var DrawAccumulator = function() {
2157
2157
  try {
2158
2158
  if (typeof (value === null || value === void 0 ? void 0 : value.object) !== "undefined") {
2159
2159
  target[name] = value.object;
2160
+ console.log("Proxy set:", name);
2160
2161
  value.update();
2162
+ console.log("UPDATE:", name);
2161
2163
  return true;
2162
2164
  } else {
2163
2165
  if (name != "length") {
@@ -2219,8 +2221,11 @@ var DrawAccumulator = function() {
2219
2221
  }));
2220
2222
  };
2221
2223
  DrawAccumulator.prototype.update = function() {
2222
- this.clearCanvas();
2223
- this.invokePaintersOnLayers();
2224
+ var _this = this;
2225
+ setTimeout((function() {
2226
+ _this.clearCanvas();
2227
+ _this.invokePaintersOnLayers();
2228
+ }), 500);
2224
2229
  };
2225
2230
  Object.defineProperty(DrawAccumulator.prototype, "gradient", {
2226
2231
  get: function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",