@hailin-zheng/editor-core 1.0.61 → 1.0.62
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.
- package/README.md +91 -2
- package/index-cjs.js +77 -97
- package/index-cjs.js.map +1 -1
- package/index.js +78 -98
- package/index.js.map +1 -1
- package/med_editor/framework/document-change.d.ts +1 -4
- package/med_editor/framework/element-define.d.ts +1 -0
- package/med_editor/framework/element-props.d.ts +7 -1
- package/med_editor/framework/impl/paragraph/p-impl.d.ts +1 -1
- package/med_editor/texteditor.d.ts +0 -1
- package/package.json +1 -1
- package/med_editor/framework/impl/paragraph/p-line-impl.d.ts +0 -24
@@ -1,14 +1,11 @@
|
|
1
1
|
import { DocumentInput, InputData } from "./document-input-cursor";
|
2
2
|
import { SelectionState } from "./document-selection";
|
3
3
|
import { Element, LeafElement, SelectionContentRange } from "./element-define";
|
4
|
-
import { TextGroupElement } from "./impl";
|
5
|
-
import { ParagraphElement } from "./impl";
|
6
|
-
import { TableElement } from "./impl";
|
4
|
+
import { ParagraphElement, TableElement, TextGroupElement, TrackRunTypeEnum } from "./impl";
|
7
5
|
import { ParagraphProps, TextProps } from "./element-props";
|
8
6
|
import { ElementReader } from "./element-reader";
|
9
7
|
import { EditorContext } from "./document-context";
|
10
8
|
import { DocumentComment } from "./document-comment";
|
11
|
-
import { TrackRunTypeEnum } from "./impl";
|
12
9
|
/**
|
13
10
|
* 文档内容改变
|
14
11
|
*/
|
@@ -37,12 +37,17 @@ export declare class TextProps extends INotifyPropertyChanged {
|
|
37
37
|
getFont(): string;
|
38
38
|
equals(props: TextProps): boolean;
|
39
39
|
}
|
40
|
+
export declare enum ParagraphNumberType {
|
41
|
+
none = -1,
|
42
|
+
ul = 0,
|
43
|
+
ol = 1
|
44
|
+
}
|
40
45
|
export declare class ParagraphProps extends INotifyPropertyChanged {
|
41
46
|
indent: number;
|
42
47
|
hanging: number;
|
43
48
|
lineHeight: number;
|
44
49
|
textAlign: TextAlign;
|
45
|
-
numberType:
|
50
|
+
numberType: ParagraphNumberType;
|
46
51
|
pageBreak: boolean;
|
47
52
|
clone(dest?: ParagraphProps | null): ParagraphProps;
|
48
53
|
getSerializeProps(viewOptions: ViewOptions): any;
|
@@ -270,6 +275,7 @@ export declare class ValidateProps {
|
|
270
275
|
id: string;
|
271
276
|
title: string;
|
272
277
|
msg: string;
|
278
|
+
clone(dest: ValidateProps | null): ValidateProps;
|
273
279
|
}
|
274
280
|
export declare class DataElementGroupProps {
|
275
281
|
id: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BlockContentElement, ElementFactory,
|
1
|
+
import { BlockContentElement, Element, ElementFactory, readElementProps, SerializeProps, ViewOptions } from "../../element-define";
|
2
2
|
import { ParagraphProps } from "../../element-props";
|
3
3
|
import { RenderContextType } from "../../render-context";
|
4
4
|
import { BlockLineRectRenderObject, IRenderData, MuiltBlockLineRenderObject, RenderObject } from "../../render-define";
|
@@ -295,7 +295,6 @@ export declare class CanvasTextEditor {
|
|
295
295
|
getControlById(index: number): Element<any> | null;
|
296
296
|
getControlId(ele: Element): number;
|
297
297
|
switchPageLayout(mode: PageLayoutMode): void;
|
298
|
-
test2(): void;
|
299
298
|
}
|
300
299
|
export declare type EditorCurrentPos = {
|
301
300
|
pos: Position;
|
package/package.json
CHANGED
@@ -1,24 +0,0 @@
|
|
1
|
-
import { ElementFactory, LeafElement, readElementProps, SerializeProps, ViewOptions, Element } from "../../element-define";
|
2
|
-
import { RenderContextType } from "../../render-context";
|
3
|
-
import { IRenderData, LeafRenderObject, RenderObject } from "../../render-define";
|
4
|
-
/**
|
5
|
-
* 段落行
|
6
|
-
*/
|
7
|
-
export declare class ParaLineElement extends LeafElement<ParaLineProps> {
|
8
|
-
constructor();
|
9
|
-
clone(data: boolean): Element;
|
10
|
-
createRenderObject(options: ViewOptions, renderCtx: RenderContextType): RenderObject | null;
|
11
|
-
serialize(viewOptions: ViewOptions): SerializeProps | null;
|
12
|
-
}
|
13
|
-
export declare class ParaLineRenderObject extends LeafRenderObject {
|
14
|
-
clone(): RenderObject;
|
15
|
-
render(e: IRenderData): void;
|
16
|
-
}
|
17
|
-
export declare class ParaLineElementFactory extends ElementFactory<ParaLineProps> {
|
18
|
-
createElement(data: readElementProps<ParaLineProps>, renderCtx: RenderContextType): Element;
|
19
|
-
match(type: string): boolean;
|
20
|
-
}
|
21
|
-
export declare class ParaLineProps {
|
22
|
-
lineType: 'solid' | 'dash';
|
23
|
-
clone(dest?: ParaLineProps): ParaLineProps;
|
24
|
-
}
|