ht-emr 0.7.5 → 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.
@@ -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;
@@ -36,6 +36,7 @@ export declare class Control {
36
36
  getIsDisabledPasteControl(context?: IControlContext): boolean;
37
37
  getIsExistValueByElementListIndex(elementList: IElement[], index: number): boolean;
38
38
  getControlHighlight(elementList: IElement[], index: number): string;
39
+ getIsInlineControlBackground(elementList: IElement[], index: number): boolean;
39
40
  getContainer(): HTMLDivElement;
40
41
  getElementList(): IElement[];
41
42
  getPosition(): IElementPosition | null;
@@ -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;
@@ -15,4 +15,5 @@ export declare const defaultControlOption: {
15
15
  disabledBackgroundColor: string;
16
16
  existValueBackgroundColor: string;
17
17
  noValueBackgroundColor: string;
18
+ inlineControlBackgroundColor: string;
18
19
  };
@@ -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;
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.5",
5
+ "version": "0.7.6",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",