canvas-editor-engine 2.1.24 → 2.1.25

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
 
@@ -1954,13 +1946,17 @@ var DrawService = function() {
1954
1946
  }));
1955
1947
  };
1956
1948
  DrawService.prototype.updateImageStateAfterVague = function(data) {
1949
+ var _this = this;
1957
1950
  var imageData = data.imageData, position = data.position, size = data.size, quality = data.quality;
1958
1951
  console.log("this", this);
1959
- this.appStoreRepository.store.imageState.reduce({
1960
- tempImageData: imageData,
1961
- position,
1962
- size
1963
- }, "[Filter Vague] quality: ".concat(quality));
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);
1964
1960
  };
1965
1961
  DrawService.prototype.getFilterArgs = function(useStore, options) {
1966
1962
  var _a, _b;
@@ -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.25",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",