canvas-editor-engine 2.3.12 → 2.3.14
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 +7 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -2156,12 +2156,8 @@ 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
|
-
resolve(true);
|
2162
|
-
})).then((function() {
|
2163
|
-
value.update();
|
2164
|
-
}));
|
2159
|
+
target[name] = value.object;
|
2160
|
+
value.update();
|
2165
2161
|
return true;
|
2166
2162
|
} else {
|
2167
2163
|
if (name != "length") {
|
@@ -2223,8 +2219,11 @@ var DrawAccumulator = function() {
|
|
2223
2219
|
}));
|
2224
2220
|
};
|
2225
2221
|
DrawAccumulator.prototype.update = function() {
|
2226
|
-
this
|
2227
|
-
|
2222
|
+
var _this = this;
|
2223
|
+
setTimeout((function() {
|
2224
|
+
_this.clearCanvas();
|
2225
|
+
_this.invokePaintersOnLayers();
|
2226
|
+
}), 1e3);
|
2228
2227
|
};
|
2229
2228
|
Object.defineProperty(DrawAccumulator.prototype, "gradient", {
|
2230
2229
|
get: function() {
|