canvas-editor-engine 2.1.18 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +15 -14
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1396,19 +1396,6 @@ var ImageState = function() {
1396
1396
  return ImageState;
1397
1397
  }();
1398
1398
 
1399
- var AppStoreRepository = function() {
1400
- function AppStoreRepository() {
1401
- AppStoreRepository.repositories.push(this);
1402
- }
1403
- AppStoreRepository.setStore = function(storeInstanse) {
1404
- AppStoreRepository.repositories.forEach((function(repositories) {
1405
- repositories.store = storeInstanse;
1406
- }));
1407
- };
1408
- AppStoreRepository.repositories = [];
1409
- return AppStoreRepository;
1410
- }();
1411
-
1412
1399
  var Store = function() {
1413
1400
  function Store(imageState, historyState) {
1414
1401
  this.imageState = imageState;
@@ -1425,7 +1412,7 @@ var AppStore = function() {
1425
1412
  function AppStore(throughHistoryService, appStoreRepository) {
1426
1413
  this.throughHistoryService = throughHistoryService;
1427
1414
  this.appStoreRepository = appStoreRepository;
1428
- AppStoreRepository.setStore(new Store(new ImageState(this.appStoreRepository), new HistoryState(this.throughHistoryService)));
1415
+ this.appStoreRepository.store = new Store(new ImageState(this.appStoreRepository), new HistoryState(this.throughHistoryService));
1429
1416
  }
1430
1417
  AppStore.prototype.subscribe = function(to, completeIt) {
1431
1418
  if (to === "history") {
@@ -1485,6 +1472,19 @@ var ThroughHistoryService = function() {
1485
1472
  return ThroughHistoryService;
1486
1473
  }();
1487
1474
 
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 = [];
1485
+ return AppStoreRepository;
1486
+ }();
1487
+
1488
1488
  var ProjectFileSerializer = function() {
1489
1489
  function ProjectFileSerializer(file) {
1490
1490
  this.projects = [];
@@ -1954,6 +1954,7 @@ var DrawService = function() {
1954
1954
  };
1955
1955
  DrawService.prototype.updateImageStateAfterVague = function(data) {
1956
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);
1957
1958
  this.appStoreRepository.store.imageState.reduce({
1958
1959
  tempImageData: imageData,
1959
1960
  position,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",