canvas-editor-engine 1.1.14 → 1.1.15

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HistoryState = void 0;
4
+ const through_history_service_1 = require("../services/through-history.service");
4
5
  ;
5
6
  class HistoryState {
6
7
  default = {
@@ -18,9 +19,11 @@ class HistoryState {
18
19
  switch (name) {
19
20
  case 'SET_HISTORY':
20
21
  reducer.setHistoryLines(payload);
22
+ through_history_service_1.default.clearCache();
21
23
  break;
22
24
  case 'UPDATE_HISTORY':
23
25
  reducer.updateHistoryLines(payload);
26
+ through_history_service_1.default.clearCache();
24
27
  break;
25
28
  case 'REDO':
26
29
  reducer.updateHistoryLines(payload);
@@ -1,15 +1,6 @@
1
- import { IPosition, ISize } from "./general";
2
1
  export interface IHistoryLine {
3
2
  stateName: string;
4
3
  stateValue: any;
5
4
  view: string;
6
5
  }
7
6
  export type TReducerNames = 'SET_HISTORY' | 'UPDATE_HISTORY' | 'UNDO' | 'REDO';
8
- export interface IImageLoggingData {
9
- imageData: ImageData;
10
- size: ISize;
11
- position: IPosition;
12
- }
13
- export interface IImageLoggingDataVague extends IImageLoggingData {
14
- quality: number;
15
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",