@hailin-zheng/editor-core 2.2.0 → 2.2.2

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.
@@ -24,6 +24,12 @@ export declare class DocumentArrange {
24
24
  * 3.2完成页体子内容测量,并分页切分
25
25
  */
26
26
  measureDoc(): Array<DocumentRenderObject>;
27
+ /**
28
+ * 重置文档测量的相关信息
29
+ * @param data
30
+ * @private
31
+ */
32
+ private reset;
27
33
  private arrangeDoc;
28
34
  private createEmptyBodyRender;
29
35
  private measureControl;
@@ -1,4 +1,3 @@
1
- import { DocumentEvalFunc } from "./code-interpreter/document-eval-func";
2
1
  import { SelectionState } from "./selection/document-selection";
3
2
  import { BranchElement, Element, ElementHandler, Rect, RefreshType, ViewOptions } from "./element-define";
4
3
  import { ElementEvent, EventTypes } from "./element-event-define";
@@ -15,10 +14,11 @@ export declare class EditorContext {
15
14
  cursorRect: Rect | null;
16
15
  private _document;
17
16
  syncRefresh: () => void;
18
- dynamicFunc: DocumentEvalFunc;
19
17
  docChange: DocumentChange;
20
18
  clearPrevDocCb: (() => void) | null;
21
- nextViewFn: (() => void) | null;
19
+ nextViewFns: Array<() => void>;
20
+ commentFlag: boolean;
21
+ trackFlag: boolean;
22
22
  constructor(selectionState: SelectionState, viewOptions: ViewOptions);
23
23
  onNextView(cb: (() => void) | null): void;
24
24
  get document(): DocumentElement;
@@ -37,15 +37,12 @@ export declare class EditorContext {
37
37
  * 切换行打印模式
38
38
  */
39
39
  switchTextlineMode(): void;
40
- /**
41
- * 实例化动态脚本
42
- */
43
- private initScripts;
44
40
  /**
45
41
  * 替换数据元
46
42
  */
47
43
  replaceDataElement(oldDataElement: DataElementLeaf | DataElementInlineGroup, newElement: DataElementLeaf | DataElementInlineGroup, ss: SelectionState): void;
48
44
  get refreshType(): RefreshType | null;
45
+ adaptiveScale(): number;
49
46
  }
50
47
  /**
51
48
  * 文档上下文
@@ -14,6 +14,11 @@ export declare class DocumentPaginator {
14
14
  private viewOptions;
15
15
  constructor(renderContext: RenderContextType, docCtx: EditorContext, seo: SelectionEffectObject);
16
16
  rePages(): void;
17
+ /**
18
+ * 处理计算提示框布局宽度
19
+ * @private
20
+ */
21
+ private adjustTipLayoutWidth;
17
22
  /**
18
23
  * 文档页面显示布局
19
24
  */
@@ -71,7 +71,6 @@ export declare class DocumentProps extends INotifyPropertyChanged {
71
71
  createUserId: string;
72
72
  createUserName: string;
73
73
  createDate: string;
74
- scripts: string;
75
74
  columns: number;
76
75
  version: string;
77
76
  clone(dest: DocumentProps): DocumentProps;
@@ -169,7 +168,6 @@ export declare class DataEleBaseProps extends INotifyPropertyChanged {
169
168
  printable: boolean;
170
169
  secretBrowse: boolean;
171
170
  editable: boolean;
172
- deleteable: boolean;
173
171
  minLength: number;
174
172
  underline: boolean;
175
173
  expression: string;
@@ -80,4 +80,17 @@ export declare function IsInSideInlineGroupInputElement(control: LeafElement, of
80
80
  export declare abstract class DataElementBaseFactory<T = null> extends ElementFactory<T> {
81
81
  readCompleted(ele: Element, children: Array<Element>): void;
82
82
  }
83
+ /**
84
+ * 渲染数据元背景修饰
85
+ * @param event
86
+ * @param r
87
+ */
83
88
  export declare function exportDecoratorHTML(event: IEditorVNodeOptions, r: InlineGroupRenderObject): any;
89
+ /**
90
+ * 渲染数据源验证错误提示框
91
+ */
92
+ export declare function renderErrorTip(event: IEditorVNodeOptions, r: InlineGroupRenderObject): void;
93
+ /**
94
+ * 渲染底部波浪线
95
+ */
96
+ export declare function renderUnderWavyLine(event: IEditorVNodeOptions, r: InlineGroupRenderObject, color: string): void;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "2.2.0",
7
+ "version": "2.2.2",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "moment": "^2.29.3",