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.
- package/dist/canvas-editor.js +3207 -3167
- package/dist/canvas-editor.js.map +1 -1
- package/dist/canvas-editor.umd.cjs +53 -53
- package/dist/canvas-editor.umd.cjs.map +1 -1
- package/dist/src/editor/core/draw/control/Control.d.ts +5 -0
- package/dist/src/editor/core/draw/particle/MacroParticle.d.ts +15 -0
- package/dist/src/editor/interface/Control.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
}
|