canvas-editor-engine 2.3.11 → 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.
- package/dist/index.mjs +8 -9
- 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
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
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
|
-
|
2225
|
-
|
2226
|
-
_this.clearCanvas();
|
2227
|
-
_this.invokePaintersOnLayers();
|
2228
|
-
}), 0);
|
2226
|
+
this.clearCanvas();
|
2227
|
+
this.invokePaintersOnLayers();
|
2229
2228
|
};
|
2230
2229
|
Object.defineProperty(DrawAccumulator.prototype, "gradient", {
|
2231
2230
|
get: function() {
|