ht-emr 0.7.4 → 0.7.6
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 +7028 -6626
- package/dist/canvas-editor.umd.cjs +80 -80
- package/dist/src/editor/core/command/CommandAdapt.d.ts +1 -1
- package/dist/src/editor/core/draw/Draw.d.ts +2 -0
- package/dist/src/editor/core/draw/control/Control.d.ts +10 -0
- package/dist/src/editor/core/draw/control/interactive/ControlSearch.d.ts +2 -0
- package/dist/src/editor/core/draw/particle/table/TableParticle.d.ts +3 -0
- package/dist/src/editor/dataset/constant/Control.d.ts +1 -0
- package/dist/src/editor/interface/Control.d.ts +1 -0
- package/dist/src/editor/interface/Listener.d.ts +2 -0
- package/dist/src/editor/interface/contextmenu/ContextMenu.d.ts +2 -0
- package/package.json +1 -1
|
@@ -832,6 +832,8 @@ export declare class Draw {
|
|
|
832
832
|
*/
|
|
833
833
|
render(payload?: IDrawOption): void;
|
|
834
834
|
fixPosition(prev?: boolean): number | undefined;
|
|
835
|
+
private getInlineBackgroundControlType;
|
|
836
|
+
private getIsHideInlineBackgroundControlCursor;
|
|
835
837
|
setCursor(curIndex: number | undefined): number | undefined;
|
|
836
838
|
submitHistory(curIndex: number | undefined): void;
|
|
837
839
|
destroy(): void;
|
|
@@ -20,7 +20,9 @@ export declare class Control {
|
|
|
20
20
|
private activeControl;
|
|
21
21
|
private activeControlValue;
|
|
22
22
|
private preElement;
|
|
23
|
+
private isPopupAwakeDisabled;
|
|
23
24
|
constructor(draw: Draw);
|
|
25
|
+
setPopupAwakeDisabled(isDisabled: boolean): void;
|
|
24
26
|
setHighlightList(payload: IControlHighlight[]): void;
|
|
25
27
|
computeHighlightList(): void;
|
|
26
28
|
renderHighlightList(ctx: CanvasRenderingContext2D, pageNo: number): void;
|
|
@@ -34,6 +36,7 @@ export declare class Control {
|
|
|
34
36
|
getIsDisabledPasteControl(context?: IControlContext): boolean;
|
|
35
37
|
getIsExistValueByElementListIndex(elementList: IElement[], index: number): boolean;
|
|
36
38
|
getControlHighlight(elementList: IElement[], index: number): string;
|
|
39
|
+
getIsInlineControlBackground(elementList: IElement[], index: number): boolean;
|
|
37
40
|
getContainer(): HTMLDivElement;
|
|
38
41
|
getElementList(): IElement[];
|
|
39
42
|
getPosition(): IElementPosition | null;
|
|
@@ -86,6 +89,13 @@ export declare class Control {
|
|
|
86
89
|
startTextFieldUnderline(controlId: string, x: number, y: number): void;
|
|
87
90
|
recordTextFieldUnderlineWidth(width: number): void;
|
|
88
91
|
drawTextFieldUnderline(ctx: CanvasRenderingContext2D): void;
|
|
92
|
+
private _getControlIdentity;
|
|
93
|
+
private _isSameControlIdentity;
|
|
94
|
+
private _isNestedParentControlElement;
|
|
95
|
+
private _isNestedTextContainerElement;
|
|
96
|
+
private _getCurrentControlIdentity;
|
|
97
|
+
private _getControlNavigationIndex;
|
|
98
|
+
private _isTrailingNestedControlBoundary;
|
|
89
99
|
getPreControlContext(): INextControlContext | null;
|
|
90
100
|
getNextControlContext(): INextControlContext | null;
|
|
91
101
|
initNextControl(option?: IInitNextControlOption): void;
|
|
@@ -11,6 +11,8 @@ export declare class ControlSearch {
|
|
|
11
11
|
private highlightMatchResult;
|
|
12
12
|
constructor(control: Control);
|
|
13
13
|
getControlHighlight(elementList: IElement[], index: number): string;
|
|
14
|
+
getIsInlineControlBackground(elementList: IElement[], index: number): boolean;
|
|
15
|
+
private _getControlType;
|
|
14
16
|
getHighlightMatchResult(): IHighlightMatchResult;
|
|
15
17
|
getHighlightList(): IControlHighlight[];
|
|
16
18
|
setHighlightList(payload: IControlHighlight[]): void;
|
|
@@ -13,6 +13,9 @@ export declare class TableParticle {
|
|
|
13
13
|
getTrListGroupByCol(payload: ITr[]): ITr[];
|
|
14
14
|
getRangeRowCol(): ITd[][] | null;
|
|
15
15
|
private _drawOuterBorder;
|
|
16
|
+
private _drawHorizontalBorder;
|
|
17
|
+
private _mergeHorizontalBorderRanges;
|
|
18
|
+
private _getPagingContinuationTopBorderRanges;
|
|
16
19
|
private _drawSlash;
|
|
17
20
|
private _drawBorder;
|
|
18
21
|
private _drawBackgroundColor;
|
|
@@ -141,6 +141,7 @@ export interface IControlOption {
|
|
|
141
141
|
disabledBackgroundColor?: string;
|
|
142
142
|
existValueBackgroundColor?: string;
|
|
143
143
|
noValueBackgroundColor?: string;
|
|
144
|
+
inlineControlBackgroundColor?: string;
|
|
144
145
|
}
|
|
145
146
|
export interface IControlInitOption {
|
|
146
147
|
index: number;
|
|
@@ -74,6 +74,8 @@ export type IButtonClick = (payload: {
|
|
|
74
74
|
export type IControlEditAttribute = (payload: {
|
|
75
75
|
controlId: string | undefined;
|
|
76
76
|
element: IElement | IElement[];
|
|
77
|
+
targetElement?: IElement | null;
|
|
78
|
+
isControl?: boolean;
|
|
77
79
|
}) => void;
|
|
78
80
|
export type ILabelMousedown = (payload: {
|
|
79
81
|
evt: MouseEvent;
|
|
@@ -6,6 +6,8 @@ import { IElement } from '../Element';
|
|
|
6
6
|
export interface IContextMenuContext {
|
|
7
7
|
startElement: IElement | null;
|
|
8
8
|
endElement: IElement | null;
|
|
9
|
+
hitElement: IElement | null;
|
|
10
|
+
hitTableElement: IElement | null;
|
|
9
11
|
isReadonly: boolean;
|
|
10
12
|
editorHasSelection: boolean;
|
|
11
13
|
editorTextFocus: boolean;
|