@hailin-zheng/editor-core 1.0.45 → 1.0.48

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;
@@ -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.45",
7
+ "version": "1.0.48",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",