@hailin-zheng/editor-core 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
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;
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.1",
7
+ "version": "2.2.2",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "moment": "^2.29.3",