canvas-editor-engine 2.1.23 → 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
 
@@ -1922,6 +1914,7 @@ var DrawService = function() {
1922
1914
  y: 0
1923
1915
  };
1924
1916
  var imageData = filter.copy(zeroPosition);
1917
+ console.log(_this);
1925
1918
  _this.appStoreRepository.store.imageState.reduce({
1926
1919
  tempImageData: imageData,
1927
1920
  position: zeroPosition,
@@ -1953,13 +1946,17 @@ var DrawService = function() {
1953
1946
  }));
1954
1947
  };
1955
1948
  DrawService.prototype.updateImageStateAfterVague = function(data) {
1949
+ var _this = this;
1956
1950
  var imageData = data.imageData, position = data.position, size = data.size, quality = data.quality;
1957
1951
  console.log("this", this);
1958
- this.appStoreRepository.store.imageState.reduce({
1959
- tempImageData: imageData,
1960
- position,
1961
- size
1962
- }, "[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);
1963
1960
  };
1964
1961
  DrawService.prototype.getFilterArgs = function(useStore, options) {
1965
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.23",
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",