@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.
@@ -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: () => void): void;
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;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "1.0.44",
7
+ "version": "1.0.47",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",