canvas-editor-engine 2.3.10 → 2.3.12

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