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.
- package/dist/canvas-editor.js +5732 -5605
- package/dist/canvas-editor.umd.cjs +80 -80
- package/dist/src/editor/core/draw/particle/MacroParticle.d.ts +17 -5
- package/package.json +1 -1
|
@@ -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
|
|
55
|
-
private
|
|
56
|
-
private
|
|
57
|
-
private
|
|
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
|
}
|