ht-emr 0.7.34 → 0.7.36

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.
@@ -19,7 +19,11 @@ export declare class MacroParticle {
19
19
  * @param y y坐标
20
20
  */
21
21
  render(ctx: CanvasRenderingContext2D, element: IRowElement, x: number, y: number): void;
22
- activateInlineEditor(element: IElement, index: number): boolean;
22
+ activateInlineEditor(element: IElement, index: number, clickX?: number): boolean;
23
+ input(data: string, isComposing?: boolean): boolean;
24
+ compositionStart(): boolean;
25
+ compositionEnd(data: string): boolean;
26
+ keydown(evt: KeyboardEvent): boolean;
23
27
  clearInlineEditor(options?: {
24
28
  isSubmitHistory?: boolean;
25
29
  isRestore?: boolean;
@@ -51,12 +55,20 @@ export declare class MacroParticle {
51
55
  * Draw rounded rectangle
52
56
  */
53
57
  private _drawRoundedRect;
54
- private _createTextEditor;
55
- private _createSelectEditor;
56
- private _syncInlineEditorPosition;
57
- private _getInlineEditorBaseStyle;
58
+ private _createSelectPopup;
59
+ private _getCursorOffset;
60
+ private _focusInputAgent;
61
+ private _renderActiveEditor;
62
+ private _syncInlineCursor;
63
+ private _renderTextSelection;
64
+ private _getIsActiveElement;
65
+ private _getControlColor;
66
+ private _getValueColor;
58
67
  private _getInlineEditorElement;
59
68
  private _getInlineEditorPosition;
60
69
  private _ensureMacroConfig;
70
+ private _getInlineEditorValue;
71
+ private _setInlineEditorValue;
72
+ private _restoreInlineEditorValue;
61
73
  private _getSelectLabelByCode;
62
74
  }
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.34",
5
+ "version": "0.7.36",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",