@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.
@@ -238,6 +238,11 @@ export declare class DocumentChange {
238
238
  * @returns
239
239
  */
240
240
  onPaste(evt: ClipboardEvent): void;
241
+ /**
242
+ * 处理粘贴的内容
243
+ * @private
244
+ */
245
+ private handlePasteContent;
241
246
  insertSoftBr(): void;
242
247
  /**
243
248
  * 处理黏贴的纯文本
@@ -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;
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.53",
7
+ "version": "1.0.56",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",