canvas-editor-engine 2.1.25 → 2.1.26
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 -11
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1941,22 +1941,19 @@ var DrawService = function() {
|
|
1941
1941
|
if (!this.imageProcessor) {
|
1942
1942
|
throw new Error("No valid ImageProcessor instance found");
|
1943
1943
|
}
|
1944
|
-
this.imageProcessor.vague(filterArgs, filterOptions).then(
|
1944
|
+
this.imageProcessor.vague(filterArgs, filterOptions).then((function(data) {
|
1945
|
+
return _this.updateImageStateAfterVague(data);
|
1946
|
+
})).finally((function() {
|
1945
1947
|
return _this.eventService.dispatch("loading-end");
|
1946
1948
|
}));
|
1947
1949
|
};
|
1948
1950
|
DrawService.prototype.updateImageStateAfterVague = function(data) {
|
1949
|
-
var _this = this;
|
1950
1951
|
var imageData = data.imageData, position = data.position, size = data.size, quality = data.quality;
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
size
|
1957
|
-
}, "[Filter Vague] quality: ".concat(quality));
|
1958
|
-
};
|
1959
|
-
reduce(quality);
|
1952
|
+
this.appStoreRepository.store.imageState.reduce({
|
1953
|
+
tempImageData: imageData,
|
1954
|
+
position,
|
1955
|
+
size
|
1956
|
+
}, "[Filter Vague] quality: ".concat(quality));
|
1960
1957
|
};
|
1961
1958
|
DrawService.prototype.getFilterArgs = function(useStore, options) {
|
1962
1959
|
var _a, _b;
|