@hailin-zheng/editor-core 2.0.50 → 2.0.52

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.
@@ -1,7 +1,6 @@
1
1
  import { ContentMenuItem } from './framework/element-event-define';
2
2
  import { ElementReader } from './framework/element-reader';
3
3
  import { SelectionState } from './framework/document-selection';
4
- import { DocumentChange } from './framework/document-change';
5
4
  import { BranchElement, Element, ICancelTokenFn, LeafElement, MarginProps, OrientType, PageLayoutMode, Position, Rect, ViewOptions } from './framework/element-define';
6
5
  import { DataElementInlineGroup, DataElementLeaf, DocumentElement, ParagraphElement, TableCellElement, TableElement, TableRowElement } from './framework/impl';
7
6
  import { CellDiagonal, ParagraphNumberType, ParagraphProps, TextProps } from './framework/element-props';
@@ -23,7 +22,7 @@ export declare class DocEditor {
23
22
  private documentEvent;
24
23
  private documentSelection;
25
24
  private documentInput;
26
- documentChange: DocumentChange;
25
+ private documentChange;
27
26
  private selectionOverlays;
28
27
  historyMange: ElementTrackManage;
29
28
  selectionChanged: Subject<SelectionState>;
@@ -31,6 +30,7 @@ export declare class DocEditor {
31
30
  afterRenderSubject: Subject<void>;
32
31
  onBeforeSetCursorSubject: Subject<{
33
32
  result: boolean;
33
+ ss: SelectionState;
34
34
  }>;
35
35
  contentChanged: Subject<void>;
36
36
  onShouldRender: Subject<void>;
@@ -173,6 +173,10 @@ export declare class DocEditor {
173
173
  * @param cols
174
174
  */
175
175
  insertTable(rows: number, cols: number): void;
176
+ /**
177
+ * 插入软换行符
178
+ */
179
+ insertSoftBr(): void;
176
180
  /**
177
181
  * 打印所有文档
178
182
  */
@@ -318,7 +318,8 @@ export declare class DataElementBarcodeProps {
318
318
  height: number;
319
319
  };
320
320
  }
321
- export declare class BodyPartProps {
321
+ export declare class BodyPartProps extends INotifyPropertyChanged {
322
322
  partId: string;
323
+ getSerializeProps(viewOptions: ViewOptions): any;
323
324
  }
324
325
  export {};
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "2.0.50",
7
+ "version": "2.0.52",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",