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.
@@ -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 syncControlValue;
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;
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.33",
5
+ "version": "0.7.34",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",