canvas-editor-engine 2.1.24 → 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 CHANGED
@@ -1473,15 +1473,7 @@ var ThroughHistoryService = function() {
1473
1473
  }();
1474
1474
 
1475
1475
  var AppStoreRepository = function() {
1476
- function AppStoreRepository() {
1477
- AppStoreRepository.repositories.push(this);
1478
- }
1479
- AppStoreRepository.setStore = function(storeInstanse) {
1480
- AppStoreRepository.repositories.forEach((function(repositories) {
1481
- repositories.store = storeInstanse;
1482
- }));
1483
- };
1484
- AppStoreRepository.repositories = [];
1476
+ function AppStoreRepository() {}
1485
1477
  return AppStoreRepository;
1486
1478
  }();
1487
1479
 
@@ -1949,13 +1941,14 @@ var DrawService = function() {
1949
1941
  if (!this.imageProcessor) {
1950
1942
  throw new Error("No valid ImageProcessor instance found");
1951
1943
  }
1952
- 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() {
1953
1947
  return _this.eventService.dispatch("loading-end");
1954
1948
  }));
1955
1949
  };
1956
1950
  DrawService.prototype.updateImageStateAfterVague = function(data) {
1957
1951
  var imageData = data.imageData, position = data.position, size = data.size, quality = data.quality;
1958
- console.log("this", this);
1959
1952
  this.appStoreRepository.store.imageState.reduce({
1960
1953
  tempImageData: imageData,
1961
1954
  position,
@@ -1,7 +1,4 @@
1
1
  import { Store } from "./store";
2
2
  export default class AppStoreRepository {
3
3
  store: Store;
4
- private static repositories;
5
- constructor();
6
- static setStore(storeInstanse: Store): void;
7
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.1.24",
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",