@hailin-zheng/editor-core 1.0.53 → 1.0.56
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/index-cjs.js +83 -39
- package/index-cjs.js.map +1 -1
- package/index.js +83 -39
- package/index.js.map +1 -1
- package/med_editor/framework/document-change.d.ts +5 -0
- package/med_editor/framework/document-selection.d.ts +11 -3
- package/med_editor/framework/impl/data-element/data-element-base-impl.d.ts +6 -0
- package/package.json +1 -1
@@ -12,8 +12,8 @@ export declare class DocumentSelection {
|
|
12
12
|
endHitInfo: HitEventInfo;
|
13
13
|
}): void;
|
14
14
|
/**
|
15
|
-
|
16
|
-
|
15
|
+
* 获取选区共同的祖先控件
|
16
|
+
*/
|
17
17
|
static getAncestorCommonControl(startControl: LeafElement, endControl: LeafElement): BranchElement;
|
18
18
|
/**
|
19
19
|
* 获取向上的嵌套父级节点集合
|
@@ -22,13 +22,17 @@ export declare class DocumentSelection {
|
|
22
22
|
*/
|
23
23
|
static getNestParents(control: BranchElement | null): Array<BranchElement>;
|
24
24
|
static getCommonParenet(control: BranchElement | null, array: Array<BranchElement>): BranchElement | null;
|
25
|
+
/**
|
26
|
+
* 更新选区对象
|
27
|
+
* return:当前选区是否改变
|
28
|
+
* @private
|
29
|
+
*/
|
25
30
|
updateSelectionState(): boolean;
|
26
31
|
/**
|
27
32
|
* 获取当前选区区域内是否支持留痕
|
28
33
|
* @private
|
29
34
|
*/
|
30
35
|
private getEnableTrackChanges;
|
31
|
-
private compareSelectionEquals;
|
32
36
|
/**
|
33
37
|
* 转换选区内容
|
34
38
|
* 处理结束选区在开始选区之前
|
@@ -60,6 +64,10 @@ export declare class SelectionState {
|
|
60
64
|
enableTrackChanges: boolean;
|
61
65
|
constructor();
|
62
66
|
clear(): void;
|
67
|
+
/**
|
68
|
+
* 当前选区是否发生改变
|
69
|
+
*/
|
70
|
+
rangeDirty: boolean;
|
63
71
|
addRange(range: SelectionRange): void;
|
64
72
|
resetRange(startControl: Element, startOffset: number): SelectionRange;
|
65
73
|
surround(ele: Element): void;
|
@@ -54,6 +54,12 @@ export declare abstract class DataElementInlineGroup<P extends DataEleBaseProps
|
|
54
54
|
}
|
55
55
|
export declare abstract class DataElementRenderObject<T extends DataElementInlineGroup = DataElementInlineGroup> extends InlineGroupRenderObject<T> {
|
56
56
|
render(e: IRenderData): void;
|
57
|
+
/**
|
58
|
+
* 绘制数据元标题
|
59
|
+
* @param e
|
60
|
+
* @private
|
61
|
+
*/
|
62
|
+
private drawCaption;
|
57
63
|
}
|
58
64
|
export declare const validateDataEle: (ele: Element) => boolean;
|
59
65
|
export declare const validateDataEleRenderObj: (renderObj: RenderObject) => boolean;
|