@hufe921/canvas-editor 0.9.68 → 0.9.70

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.
@@ -106,6 +106,7 @@ export declare class Command {
106
106
  getLocale: CommandAdapt['getLocale'];
107
107
  getGroupIds: CommandAdapt['getGroupIds'];
108
108
  getControlValue: CommandAdapt['getControlValue'];
109
+ getControlList: CommandAdapt['getControlList'];
109
110
  getContainer: CommandAdapt['getContainer'];
110
111
  constructor(adapt: CommandAdapt);
111
112
  }
@@ -57,8 +57,8 @@ export declare class CommandAdapt {
57
57
  strikeout(): void;
58
58
  superscript(): void;
59
59
  subscript(): void;
60
- color(payload: string): void;
61
- highlight(payload: string): void;
60
+ color(payload: string | null): void;
61
+ highlight(payload: string | null): void;
62
62
  title(payload: TitleLevel | null): void;
63
63
  list(listType: ListType | null, listStyle?: ListStyle): void;
64
64
  rowFlex(payload: RowFlex): void;
@@ -138,5 +138,6 @@ export declare class CommandAdapt {
138
138
  setControlExtension(payload: ISetControlExtensionOption): void;
139
139
  setControlProperties(payload: ISetControlProperties): void;
140
140
  setControlHighlight(payload: ISetControlHighlightOption): void;
141
+ getControlList(): IElement[];
141
142
  getContainer(): HTMLDivElement;
142
143
  }
@@ -47,5 +47,6 @@ export declare class Control {
47
47
  setValueByConceptId(payload: ISetControlValueOption): void;
48
48
  setExtensionByConceptId(payload: ISetControlExtensionOption): void;
49
49
  setPropertiesByConceptId(payload: ISetControlProperties): void;
50
+ getList(): IElement[];
50
51
  }
51
52
  export {};
@@ -1,5 +1,4 @@
1
1
  import { IElement, IElementPosition } from '../../../../interface/Element';
2
- import { IRowElement } from '../../../../interface/Row';
3
2
  import { Draw } from '../../Draw';
4
3
  export declare class DateParticle {
5
4
  private draw;
@@ -10,5 +9,4 @@ export declare class DateParticle {
10
9
  getDateElementRange(): [number, number] | null;
11
10
  clearDatePicker(): void;
12
11
  renderDatePicker(element: IElement, position: IElementPosition): void;
13
- render(ctx: CanvasRenderingContext2D, element: IRowElement, x: number, y: number): void;
14
12
  }
@@ -0,0 +1,2 @@
1
+ import { CanvasEvent } from '../../CanvasEvent';
2
+ export declare function backspace(evt: KeyboardEvent, host: CanvasEvent): void;
@@ -0,0 +1,2 @@
1
+ import { CanvasEvent } from '../../CanvasEvent';
2
+ export declare function del(evt: KeyboardEvent, host: CanvasEvent): void;
@@ -0,0 +1,2 @@
1
+ import { CanvasEvent } from '../../CanvasEvent';
2
+ export declare function left(evt: KeyboardEvent, host: CanvasEvent): void;
@@ -0,0 +1,2 @@
1
+ import { CanvasEvent } from '../../CanvasEvent';
2
+ export declare function right(evt: KeyboardEvent, host: CanvasEvent): void;
@@ -0,0 +1,2 @@
1
+ import { CanvasEvent } from '../../CanvasEvent';
2
+ export declare function tab(evt: KeyboardEvent, host: CanvasEvent): void;
@@ -0,0 +1,2 @@
1
+ import { CanvasEvent } from '../../CanvasEvent';
2
+ export declare function updown(evt: KeyboardEvent, host: CanvasEvent): void;
@@ -18,6 +18,7 @@ export declare class Position {
18
18
  getOriginalMainPositionList(): IElementPosition[];
19
19
  getSelectionPositionList(): IElementPosition[] | null;
20
20
  setPositionList(payload: IElementPosition[]): void;
21
+ setFloatPositionList(payload: IFloatPosition[]): void;
21
22
  computePageRowPosition(payload: IComputePageRowPositionPayload): IComputePageRowPositionResult;
22
23
  computePositionList(): void;
23
24
  computeRowPosition(payload: IComputeRowPositionPayload): IElementPosition[];
@@ -57,6 +57,7 @@ export interface ITableElement {
57
57
  trId?: string;
58
58
  tableId?: string;
59
59
  conceptId?: string;
60
+ pagingId?: string;
60
61
  }
61
62
  export declare type ITable = ITableAttr & ITableElement;
62
63
  export interface IHyperlinkElement {
@@ -63,6 +63,7 @@ export interface IComputePageRowPositionPayload {
63
63
  tdIndex?: number;
64
64
  trIndex?: number;
65
65
  tdValueIndex?: number;
66
+ zone?: EditorZone;
66
67
  }
67
68
  export interface IComputePageRowPositionResult {
68
69
  x: number;
@@ -78,4 +79,5 @@ export interface IFloatPosition {
78
79
  tdIndex?: number;
79
80
  trIndex?: number;
80
81
  tdValueIndex?: number;
82
+ zone?: EditorZone;
81
83
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hufe921/canvas-editor",
3
3
  "author": "Hufe",
4
4
  "license": "MIT",
5
- "version": "0.9.68",
5
+ "version": "0.9.70",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",