@hailin-zheng/editor-core 1.0.60 → 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.
@@ -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
  */
@@ -247,6 +247,7 @@ export declare class ViewOptions {
247
247
  viewBackcolor: string;
248
248
  paraSymbolColor: string;
249
249
  dataGroupColor: string;
250
+ defaultLineHeight: number;
250
251
  trackInsColor: string;
251
252
  trackDelColor: string;
252
253
  showLineRect: boolean;
@@ -277,6 +278,7 @@ export declare class ViewOptions {
277
278
  pageNumFormat: string;
278
279
  pageNumOffset: number;
279
280
  pageLayoutMode: PageLayoutMode;
281
+ defaultIndent: number;
280
282
  get contentWidth(): number;
281
283
  /**
282
284
  * 内容区域的高度
@@ -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: number;
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, Element, SerializeProps, ViewOptions, readElementProps } from "../../element-define";
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
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "1.0.60",
7
+ "version": "1.0.62",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "bwip-js": "^3.0.5",
@@ -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
- }