ht-emr 0.6.8 → 0.7.0

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.
@@ -89,6 +89,11 @@ export declare class Control {
89
89
  getPreControlContext(): INextControlContext | null;
90
90
  getNextControlContext(): INextControlContext | null;
91
91
  initNextControl(option?: IInitNextControlOption): void;
92
+ private getControlKey;
93
+ private getControlStartIndex;
94
+ private getControlEnterIndex;
95
+ private isNavigableControlElement;
96
+ private getOrderedNavigableControlContexts;
92
97
  setMinWidthControlInfo(option: ISetControlRowFlexOption): void;
93
98
  mergeControl(context?: IControlContext): IMergeControlContext;
94
99
  }
@@ -1,4 +1,5 @@
1
1
  import { IRowElement } from '../../../interface/Row';
2
+ import { IElement } from '../../../interface/Element';
2
3
  import { Draw } from '../Draw';
3
4
  /**
4
5
  * 宏元素渲染器
@@ -7,6 +8,7 @@ import { Draw } from '../Draw';
7
8
  export declare class MacroParticle {
8
9
  private options;
9
10
  private draw;
11
+ private activeInlineEditor;
10
12
  constructor(draw: Draw);
11
13
  /**
12
14
  * 渲染宏元素
@@ -17,6 +19,11 @@ export declare class MacroParticle {
17
19
  * @param y y坐标
18
20
  */
19
21
  render(ctx: CanvasRenderingContext2D, element: IRowElement, x: number, y: number): void;
22
+ activateInlineEditor(element: IElement, index: number): boolean;
23
+ clearInlineEditor(options?: {
24
+ isSubmitHistory?: boolean;
25
+ isRestore?: boolean;
26
+ }): void;
20
27
  /**
21
28
  * 渲染纯文本
22
29
  * Render plain text
@@ -44,4 +51,12 @@ export declare class MacroParticle {
44
51
  * Draw rounded rectangle
45
52
  */
46
53
  private _drawRoundedRect;
54
+ private _createTextEditor;
55
+ private _createSelectEditor;
56
+ private _syncInlineEditorPosition;
57
+ private _getInlineEditorBaseStyle;
58
+ private _getInlineEditorElement;
59
+ private _getInlineEditorPosition;
60
+ private _ensureMacroConfig;
61
+ private _getSelectLabelByCode;
47
62
  }
@@ -63,6 +63,7 @@ export interface IControlRule {
63
63
  disabled?: boolean;
64
64
  pasteDisabled?: boolean;
65
65
  hide?: boolean;
66
+ readonly?: boolean;
66
67
  }
67
68
  export interface IControlBasic {
68
69
  type: ControlType;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ht-emr",
3
3
  "author": "swj",
4
4
  "license": "MIT",
5
- "version": "0.6.8",
5
+ "version": "0.7.0",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",