ht-emr 0.7.19 → 0.7.21

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.
@@ -274,6 +274,9 @@ export declare class Draw {
274
274
  * @returns 当前编辑器模式
275
275
  */
276
276
  getMode(): EditorMode;
277
+ isPrintLikeMode(mode?: EditorMode): boolean;
278
+ isContentReadonly(): boolean;
279
+ isSelectionDisabled(): boolean;
277
280
  /**
278
281
  * 设置编辑器模式
279
282
  *
@@ -18,6 +18,7 @@ export declare enum EditorMode {
18
18
  READONLY = "readonly",
19
19
  FORM = "form",
20
20
  PRINT = "print",
21
+ COMPARE = "compare",
21
22
  DESIGN = "design",
22
23
  GRAFFITI = "graffiti"
23
24
  }
@@ -135,6 +135,7 @@ export interface IPrintModeRule {
135
135
  imagePreviewerDisabled?: boolean;
136
136
  backgroundDisabled?: boolean;
137
137
  }
138
+ export type ICompareModeRule = IPrintModeRule;
138
139
  export interface IReadonlyModeRule {
139
140
  imagePreviewerDisabled?: boolean;
140
141
  }
@@ -149,6 +150,7 @@ export interface IFormModeTraceOption {
149
150
  }
150
151
  export interface IModeRule {
151
152
  [EditorMode.PRINT]?: IPrintModeRule;
153
+ [EditorMode.COMPARE]?: ICompareModeRule;
152
154
  [EditorMode.READONLY]?: IReadonlyModeRule;
153
155
  [EditorMode.FORM]?: IFormModeRule;
154
156
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ht-emr",
3
3
  "author": "swj",
4
4
  "license": "MIT",
5
- "version": "0.7.19",
5
+ "version": "0.7.21",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",