@hailin-zheng/editor-core 1.0.44 → 1.0.47
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 +184 -206
- package/index.js +184 -206
- package/med_editor/framework/document-change.d.ts +6 -0
- package/med_editor/framework/element-measure.d.ts +0 -5
- package/med_editor/framework/element-props.d.ts +0 -1
- package/med_editor/framework/element-trace-manage.d.ts +1 -2
- package/med_editor/framework/element-trace-tracking.d.ts +1 -1
- package/med_editor/texteditor.d.ts +1 -0
- package/package.json +1 -1
@@ -61,9 +61,15 @@ export declare class DocumentChange {
|
|
61
61
|
/**
|
62
62
|
* 获取当前输入节点的文本属性
|
63
63
|
* @param startControl
|
64
|
+
* @param offset
|
64
65
|
* @returns
|
65
66
|
*/
|
66
67
|
getDefaultTextProps(startControl: LeafElement, offset: number): TextProps;
|
68
|
+
/**
|
69
|
+
* 根据选项配置返回创建文本的默认文本属性
|
70
|
+
* @private
|
71
|
+
*/
|
72
|
+
private getDefaultTextPropsByOptions;
|
67
73
|
/**
|
68
74
|
* 当前元素位于留痕区域内,但是当前编辑模式为非留痕模式,需要将当前留痕元素分割开来,插入新普通文本元素对象,并返回
|
69
75
|
* @param startControl
|
@@ -25,11 +25,6 @@ export declare class ElementMeasure {
|
|
25
25
|
* @param render
|
26
26
|
*/
|
27
27
|
measureParagraph(para: ParagraphElement, render: ParagraphRenderObject): void;
|
28
|
-
/**
|
29
|
-
* 设置段落默认文本属性
|
30
|
-
* 当前段落属于空段落时,键入文本时,文本的默认属性
|
31
|
-
*/
|
32
|
-
setParagraphDefaultTextProps(para: ParagraphElement): void;
|
33
28
|
/**
|
34
29
|
* 根据段落UI元素,进行排列
|
35
30
|
* @param render
|
@@ -38,7 +38,6 @@ export declare class TextProps extends INotifyPropertyChanged {
|
|
38
38
|
equals(props: TextProps): boolean;
|
39
39
|
}
|
40
40
|
export declare class ParagraphProps extends INotifyPropertyChanged {
|
41
|
-
textProps: TextProps;
|
42
41
|
indent: number;
|
43
42
|
hanging: number;
|
44
43
|
lineHeight: number;
|
@@ -25,7 +25,7 @@ export declare class ElementTrackManage {
|
|
25
25
|
generateSelectionLog(): void;
|
26
26
|
clear(): void;
|
27
27
|
/**
|
28
|
-
*
|
28
|
+
* 生成历史操作信息
|
29
29
|
*/
|
30
30
|
generateTrack(): void;
|
31
31
|
/**
|
@@ -99,6 +99,5 @@ interface SelectionLog {
|
|
99
99
|
endIndex: number;
|
100
100
|
endOffset: number;
|
101
101
|
editable: boolean;
|
102
|
-
collapsed: boolean;
|
103
102
|
}
|
104
103
|
export {};
|
@@ -61,7 +61,7 @@ export declare function setTraceTrackingFlag(flag: boolean): void;
|
|
61
61
|
* 抑制变更的追踪修改
|
62
62
|
* 在某些情况下不需要进行修改的跟踪,例如:在初始化加载文档时,为了提高效率,增加底层开关
|
63
63
|
*/
|
64
|
-
export declare function suppressTracking(cb: () =>
|
64
|
+
export declare function suppressTracking<T>(cb: () => T): T;
|
65
65
|
export declare function insertEle(ele: Element): void;
|
66
66
|
export declare function removeEle(ele: Element): void;
|
67
67
|
export declare function inputText(ele: Element, startIndex: number, input: string): void;
|
@@ -289,6 +289,7 @@ export declare class CanvasTextEditor {
|
|
289
289
|
getControlById(index: number): Element<any> | null;
|
290
290
|
getControlId(ele: Element): number;
|
291
291
|
switchPageLayout(mode: PageLayoutMode): void;
|
292
|
+
test(): void;
|
292
293
|
}
|
293
294
|
export declare type EditorCurrentPos = {
|
294
295
|
pos: Position;
|