@hailin-zheng/editor-core 2.2.17 → 2.2.18
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.
@@ -239,6 +239,7 @@ export declare class PageOptions {
|
|
239
239
|
}
|
240
240
|
export declare type OrientType = 'landscape' | 'portrait';
|
241
241
|
export declare type PageLayoutMode = 'singlePage' | 'multiPage' | 'fit-page';
|
242
|
+
export declare type DataDecoratorMode = 'none' | 'outline' | 'background' | 'all';
|
242
243
|
export declare class ViewOptions {
|
243
244
|
copyRightInfo: string;
|
244
245
|
trialVersion: boolean;
|
@@ -260,13 +261,19 @@ export declare class ViewOptions {
|
|
260
261
|
showDataEleDecorator: boolean;
|
261
262
|
dataEleEmptyBgColor: string;
|
262
263
|
dataEleMouseEnterBgColor: string;
|
264
|
+
dataEleMouseEnterDecoratorMode: DataDecoratorMode;
|
263
265
|
dataEleReadOnlyBgColor: string;
|
264
266
|
dataEleFocusedBgColor: string;
|
267
|
+
dataEleFocusedDecoratorMode: DataDecoratorMode;
|
265
268
|
dataEleNormalBgColor: string;
|
269
|
+
dataEleOutlineColor: string;
|
270
|
+
dataGroupOutlineColor: string;
|
266
271
|
dataEleErrorBgColor: string;
|
267
272
|
dataGroupDecoratorNormalColor: string;
|
268
273
|
dataGroupDecoratorMouseEnterColor: string;
|
274
|
+
dataGroupMouseEnterDecoratorMode: DataDecoratorMode;
|
269
275
|
dataGroupDecoratorFocusedColor: string;
|
276
|
+
dataGroupFocusedDecoratorMode: DataDecoratorMode;
|
270
277
|
dataGroupNormalBgColor: string;
|
271
278
|
dataGroupEmptyBgColor: string;
|
272
279
|
dataGroupMouseEnterBgColor: string;
|
@@ -280,7 +287,6 @@ export declare class ViewOptions {
|
|
280
287
|
trackDelColor: string;
|
281
288
|
showLineRect: boolean;
|
282
289
|
showCharRect: boolean;
|
283
|
-
dataEleDecoratorMode: 'none' | 'outline' | 'overlay';
|
284
290
|
showTabChar: boolean;
|
285
291
|
showSpaceChar: boolean;
|
286
292
|
showLineBreak: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Element, ElementFactory, IBeginMeasureData, ICreateRenderData, InlineGroupElement, LeafElement } from "../../element-define";
|
1
|
+
import { Element, ElementFactory, IBeginMeasureData, ICreateRenderData, InlineGroupElement, LeafElement, Position } from "../../element-define";
|
2
2
|
import { IEditorVNodeOptions, InlineGroupRenderObject, RenderObject } from "../../render-define";
|
3
3
|
import { GotCursorEvent } from "../../element-event-define";
|
4
4
|
import { DataEleBaseProps, TextProps } from "../../element-props";
|
@@ -110,4 +110,11 @@ export declare function renderErrorTip(event: IEditorVNodeOptions, r: InlineGrou
|
|
110
110
|
* 渲染底部波浪线
|
111
111
|
*/
|
112
112
|
export declare function renderUnderWavyLine(event: IEditorVNodeOptions, r: InlineGroupRenderObject, color: string): void;
|
113
|
+
/**
|
114
|
+
* 获取渲染元素相对稳当的位置
|
115
|
+
* @param render
|
116
|
+
* @param refPos
|
117
|
+
*/
|
118
|
+
export declare function getRenderPosToDoc(render: RenderObject, refPos?: Position | null): Position;
|
119
|
+
export declare function getCurrentParaGroupRenders(r: InlineGroupRenderObject): InlineGroupRenderObject[];
|
113
120
|
export declare function renderUnderline(event: IEditorVNodeOptions, render: RenderObject): void;
|