@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.
- package/editor.css +52 -1
- package/index-cjs.js +125 -105
- package/index-cjs.js.map +1 -1
- package/index.js +125 -105
- package/index.js.map +1 -1
- package/med_editor/framework/doc-layout/document-arrange.d.ts +6 -0
- package/med_editor/framework/document-context.d.ts +3 -6
- package/med_editor/framework/document-paginator.d.ts +5 -0
- package/med_editor/framework/element-props.d.ts +0 -1
- package/package.json +1 -1
@@ -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
|
*/
|