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 +4 -11
- package/dist/store/storeRepository.d.ts +0 -3
- package/package.json +1 -1
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(
|
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,
|