@hailin-zheng/editor-core 2.2.0 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/editor.css +54 -2
- package/index-cjs.js +282 -153
- package/index-cjs.js.map +1 -1
- package/index.js +281 -154
- 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 +4 -7
- package/med_editor/framework/document-paginator.d.ts +5 -0
- package/med_editor/framework/element-props.d.ts +0 -2
- package/med_editor/framework/impl/data-element/data-element-base-impl.d.ts +13 -0
- 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
|
*/
|
@@ -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;
|