canvas-editor-engine 2.1.17 → 2.1.19
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 +10 -2
- package/dist/store/storeRepository.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1473,7 +1473,15 @@ var ThroughHistoryService = function() {
|
|
1473
1473
|
}();
|
1474
1474
|
|
1475
1475
|
var AppStoreRepository = function() {
|
1476
|
-
function AppStoreRepository() {
|
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 = [];
|
1477
1485
|
return AppStoreRepository;
|
1478
1486
|
}();
|
1479
1487
|
|
@@ -1946,6 +1954,7 @@ var DrawService = function() {
|
|
1946
1954
|
};
|
1947
1955
|
DrawService.prototype.updateImageStateAfterVague = function(data) {
|
1948
1956
|
var imageData = data.imageData, position = data.position, size = data.size, quality = data.quality;
|
1957
|
+
console.log("this.appStoreRepository.store.imageState", this.appStoreRepository.store.imageState);
|
1949
1958
|
this.appStoreRepository.store.imageState.reduce({
|
1950
1959
|
tempImageData: imageData,
|
1951
1960
|
position,
|
@@ -2168,7 +2177,6 @@ var WebComponent = function(_super) {
|
|
2168
2177
|
this.throughHistoryService = new ThroughHistoryService(this.appConfig, this.appStoreRepository);
|
2169
2178
|
this.appStore = new AppStore(this.throughHistoryService, this.appStoreRepository);
|
2170
2179
|
this.pullProjectService = new PullProjectService(this.throughHistoryService, this.appStoreRepository);
|
2171
|
-
console.log("this.appStoreRepository", this.appStoreRepository);
|
2172
2180
|
this.drawService = new DrawService(this.appConfig, this.appStoreRepository, this.eventService);
|
2173
2181
|
this.downloadService = new DownloadService(this.canvasComponent);
|
2174
2182
|
var _a = this.canvasComponent.getComponent(), canvasTemplate = _a.canvasTemplate, canvasStyle = _a.canvasStyle;
|