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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -11
  2. 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(this.updateImageStateAfterVague).finally((function() {
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
- console.log("this", this);
1952
- var reduce = function(quality) {
1953
- _this.appStoreRepository.store.imageState.reduce({
1954
- tempImageData: imageData,
1955
- position,
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.1.25",
3
+ "version": "2.1.26",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",