@hufe921/canvas-editor 0.9.47 → 0.9.48
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 +15 -0
- package/dist/canvas-editor.es.js +69 -15
- package/dist/canvas-editor.es.js.map +1 -1
- package/dist/canvas-editor.umd.js +26 -26
- package/dist/canvas-editor.umd.js.map +1 -1
- package/dist/src/editor/core/draw/Draw.d.ts +3 -0
- package/dist/src/editor/core/draw/particle/TextParticle.d.ts +1 -0
- package/dist/src/editor/dataset/constant/Common.d.ts +12 -0
- package/dist/src/editor/dataset/constant/Regular.d.ts +0 -2
- package/dist/src/editor/index.d.ts +2 -1
- package/dist/src/editor/interface/Control.d.ts +2 -0
- package/dist/src/editor/interface/Editor.d.ts +1 -0
- package/dist/src/editor/interface/Element.d.ts +1 -0
- package/dist/src/editor/interface/Row.d.ts +1 -0
- package/package.json +1 -1
|
@@ -83,6 +83,8 @@ export declare class Draw {
|
|
|
83
83
|
private scrollObserver;
|
|
84
84
|
private selectionObserver;
|
|
85
85
|
private imageObserver;
|
|
86
|
+
private LETTER_REG;
|
|
87
|
+
private WORD_LIKE_REG;
|
|
86
88
|
private rowList;
|
|
87
89
|
private pageRowList;
|
|
88
90
|
private painterStyle;
|
|
@@ -92,6 +94,7 @@ export declare class Draw {
|
|
|
92
94
|
private lazyRenderIntersectionObserver;
|
|
93
95
|
private printModeData;
|
|
94
96
|
constructor(rootContainer: HTMLElement, options: DeepRequired<IEditorOption>, data: IEditorData, listener: Listener, eventBus: EventBus<EventBusMap>, override: Override);
|
|
97
|
+
getLetterReg(): RegExp;
|
|
95
98
|
getMode(): EditorMode;
|
|
96
99
|
setMode(payload: EditorMode): void;
|
|
97
100
|
isReadonly(): boolean;
|
|
@@ -6,3 +6,15 @@ export declare const NBSP = " ";
|
|
|
6
6
|
export declare const NON_BREAKING_SPACE = " ";
|
|
7
7
|
export declare const PUNCTUATION_LIST: string[];
|
|
8
8
|
export declare const maxHeightRadioMapping: Record<MaxHeightRatio, number>;
|
|
9
|
+
export declare const LETTER_CLASS: {
|
|
10
|
+
ENGLISH: string;
|
|
11
|
+
SPANISH: string;
|
|
12
|
+
FRENCH: string;
|
|
13
|
+
GERMAN: string;
|
|
14
|
+
RUSSIAN: string;
|
|
15
|
+
PORTUGUESE: string;
|
|
16
|
+
ITALIAN: string;
|
|
17
|
+
DUTCH: string;
|
|
18
|
+
SWEDISH: string;
|
|
19
|
+
GREEK: string;
|
|
20
|
+
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export declare const NUMBER_REG: RegExp;
|
|
2
|
-
export declare const LETTER_REG: RegExp;
|
|
3
2
|
export declare const NUMBER_LIKE_REG: RegExp;
|
|
4
3
|
export declare const CHINESE_REG: RegExp;
|
|
5
|
-
export declare const WORD_LIKE_REG: RegExp;
|
|
6
4
|
export declare const SURROGATE_PAIR_REG: RegExp;
|
|
7
5
|
export declare const EMOJI_REG: RegExp;
|
|
8
6
|
export declare const UNICODE_SYMBOL_REG: RegExp;
|
|
@@ -27,6 +27,7 @@ import { EventBus } from './core/event/eventbus/EventBus';
|
|
|
27
27
|
import { EventBusMap } from './interface/EventBus';
|
|
28
28
|
import { IRangeStyle } from './interface/Listener';
|
|
29
29
|
import { Override } from './core/override/Override';
|
|
30
|
+
import { LETTER_CLASS } from './dataset/constant/Common';
|
|
30
31
|
export default class Editor {
|
|
31
32
|
command: Command;
|
|
32
33
|
listener: Listener;
|
|
@@ -37,5 +38,5 @@ export default class Editor {
|
|
|
37
38
|
use: UsePlugin;
|
|
38
39
|
constructor(container: HTMLDivElement, data: IEditorData | IElement[], options?: IEditorOption);
|
|
39
40
|
}
|
|
40
|
-
export { Editor, RowFlex, VerticalAlign, EditorZone, EditorMode, ElementType, ControlType, EditorComponent,
|
|
41
|
+
export { EDITOR_COMPONENT, LETTER_CLASS, Editor, RowFlex, VerticalAlign, EditorZone, EditorMode, ElementType, ControlType, EditorComponent, PageMode, ImageDisplay, Command, KeyMap, BlockType, PaperDirection, TableBorder, TdBorder, MaxHeightRatio, NumberType, TitleLevel, ListType, ListStyle, WordBreak };
|
|
41
42
|
export type { IElement, IEditorData, IEditorOption, IEditorResult, IContextMenuContext, IRegisterContextMenu, IWatermark, INavigateInfo, IBlock, ILang, ICatalog, ICatalogItem, IRangeStyle };
|
|
@@ -23,6 +23,8 @@ export interface IControlBasic {
|
|
|
23
23
|
conceptId?: string;
|
|
24
24
|
prefix?: string;
|
|
25
25
|
postfix?: string;
|
|
26
|
+
minWidth?: number;
|
|
27
|
+
underline?: boolean;
|
|
26
28
|
}
|
|
27
29
|
export declare type IControl = IControlBasic & Partial<IControlSelect> & Partial<IControlCheckbox>;
|
|
28
30
|
export interface IControlOption {
|