ht-emr 0.7.33 → 0.7.34
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 +4073 -3918
- package/dist/canvas-editor.umd.cjs +87 -82
- package/dist/src/editor/core/draw/Draw.d.ts +2 -0
- package/dist/src/editor/core/draw/control/button/ButtonControl.d.ts +10 -1
- package/dist/src/editor/interface/Element.d.ts +1 -0
- package/dist/src/editor/utils/element.d.ts +1 -0
- package/package.json +1 -1
|
@@ -275,6 +275,8 @@ export declare class Draw {
|
|
|
275
275
|
*/
|
|
276
276
|
getMode(): EditorMode;
|
|
277
277
|
isPrintLikeMode(mode?: EditorMode): boolean;
|
|
278
|
+
private getIsButtonRowStartPrefix;
|
|
279
|
+
private getElementLayoutWidth;
|
|
278
280
|
isContentReadonly(): boolean;
|
|
279
281
|
isSelectionDisabled(): boolean;
|
|
280
282
|
/**
|
|
@@ -17,7 +17,16 @@ export declare class ButtonControl implements IControlInstance {
|
|
|
17
17
|
getIsPopup(): boolean;
|
|
18
18
|
getValue(context?: IControlContext): IElement[];
|
|
19
19
|
setValue(data: IElement[], context?: IControlContext, options?: IControlRuleOption): number;
|
|
20
|
-
private
|
|
20
|
+
private isSameButtonElement;
|
|
21
|
+
private getButtonControlBounds;
|
|
22
|
+
private getButtonBusinessOffset;
|
|
23
|
+
private toButtonBusinessElement;
|
|
24
|
+
private splitButtonBusinessElements;
|
|
25
|
+
private getButtonBusinessElements;
|
|
26
|
+
private getButtonBusinessText;
|
|
27
|
+
private createButtonRenderedValueElements;
|
|
28
|
+
private getCursorIndexByBusinessOffset;
|
|
29
|
+
private replaceButtonBusinessElements;
|
|
21
30
|
clearSelect(context?: IControlContext, options?: IControlRuleOption): number;
|
|
22
31
|
keydown(evt: KeyboardEvent): number | null;
|
|
23
32
|
removeByValue(array: IElement[], controlId: string): Promise<unknown>;
|
|
@@ -110,6 +110,7 @@ export interface IControlElement {
|
|
|
110
110
|
originControlId?: string;
|
|
111
111
|
controlComponent?: ControlComponent;
|
|
112
112
|
buttonValueLayout?: boolean;
|
|
113
|
+
buttonValueLayoutPrefixOffset?: boolean;
|
|
113
114
|
}
|
|
114
115
|
export interface ICheckboxElement {
|
|
115
116
|
checkbox?: ICheckbox;
|
|
@@ -30,6 +30,7 @@ export declare function isButtonValueLayoutElement(element?: IElement): boolean;
|
|
|
30
30
|
export declare function splitButtonValueWithLayout(text: string, control?: IControl): Array<{
|
|
31
31
|
value: string;
|
|
32
32
|
buttonValueLayout?: boolean;
|
|
33
|
+
buttonValueLayoutPrefixOffset?: boolean;
|
|
33
34
|
}>;
|
|
34
35
|
export declare function getReadonlyControlText(control?: IControl | null): string;
|
|
35
36
|
export declare function getReadonlyElementText(element: IElement): string;
|