@hufe921/canvas-editor 0.9.90 → 0.9.91
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/CHANGELOG.md +17 -0
- package/dist/canvas-editor.es.js +125 -60
- package/dist/canvas-editor.es.js.map +1 -1
- package/dist/canvas-editor.umd.js +34 -33
- package/dist/canvas-editor.umd.js.map +1 -1
- package/dist/src/editor/core/draw/Draw.d.ts +1 -0
- package/dist/src/editor/core/draw/frame/PageBorder.d.ts +9 -0
- package/dist/src/editor/core/event/handlers/mousedown.d.ts +4 -0
- package/dist/src/editor/dataset/constant/PageBorder.d.ts +2 -0
- package/dist/src/editor/interface/Editor.d.ts +2 -0
- package/dist/src/editor/interface/PageBorder.d.ts +7 -0
- package/dist/src/editor/utils/element.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { CanvasEvent } from '../CanvasEvent';
|
|
2
|
+
import { IElement } from '../../../interface/Element';
|
|
3
|
+
import { Draw } from '../../draw/Draw';
|
|
2
4
|
export declare function setRangeCache(host: CanvasEvent): void;
|
|
5
|
+
export declare function hitCheckbox(element: IElement, draw: Draw): void;
|
|
6
|
+
export declare function hitRadio(element: IElement, draw: Draw): void;
|
|
3
7
|
export declare function mousedown(evt: MouseEvent, host: CanvasEvent): void;
|
|
@@ -19,6 +19,7 @@ import { IZoneOption } from './Zone';
|
|
|
19
19
|
import { ISeparatorOption } from './Separator';
|
|
20
20
|
import { ITableOption } from './table/Table';
|
|
21
21
|
import { ILineNumberOption } from './LineNumber';
|
|
22
|
+
import { IPageBorderOption } from './PageBorder';
|
|
22
23
|
export interface IEditorData {
|
|
23
24
|
header?: IElement[];
|
|
24
25
|
main: IElement[];
|
|
@@ -83,6 +84,7 @@ export interface IEditorOption {
|
|
|
83
84
|
lineBreak?: ILineBreakOption;
|
|
84
85
|
separator?: ISeparatorOption;
|
|
85
86
|
lineNumber?: ILineNumberOption;
|
|
87
|
+
pageBorder?: IPageBorderOption;
|
|
86
88
|
}
|
|
87
89
|
export interface IEditorResult {
|
|
88
90
|
version: string;
|
|
@@ -3,6 +3,7 @@ import { DeepRequired } from '../interface/Common';
|
|
|
3
3
|
export declare function unzipElementList(elementList: IElement[]): IElement[];
|
|
4
4
|
interface IFormatElementListOption {
|
|
5
5
|
isHandleFirstElement?: boolean;
|
|
6
|
+
isForceCompensation?: boolean;
|
|
6
7
|
editorOptions: DeepRequired<IEditorOption>;
|
|
7
8
|
}
|
|
8
9
|
export declare function formatElementList(elementList: IElement[], options: IFormatElementListOption): void;
|