@hufe921/canvas-editor 0.9.130 → 0.9.131
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 +37 -14
- package/dist/canvas-editor.es.js.map +1 -1
- package/dist/canvas-editor.umd.js +38 -38
- package/dist/canvas-editor.umd.js.map +1 -1
- package/dist/src/editor/core/worker/WorkerManager.d.ts +1 -0
- package/dist/src/editor/dataset/enum/Watermark.d.ts +4 -0
- package/dist/src/editor/index.d.ts +2 -2
- package/dist/src/editor/interface/Editor.d.ts +1 -0
- package/dist/src/editor/interface/Watermark.d.ts +2 -1
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import { TextDecorationStyle } from './dataset/enum/Text';
|
|
|
38
38
|
import { LineNumberType } from './dataset/enum/LineNumber';
|
|
39
39
|
import { AreaMode } from './dataset/enum/Area';
|
|
40
40
|
import { IBadge } from './interface/Badge';
|
|
41
|
-
import { WatermarkType } from './dataset/enum/Watermark';
|
|
41
|
+
import { WatermarkType, WatermarkLayer } from './dataset/enum/Watermark';
|
|
42
42
|
import { INTERNAL_SHORTCUT_KEY } from './dataset/constant/Shortcut';
|
|
43
43
|
export default class Editor {
|
|
44
44
|
command: Command;
|
|
@@ -53,5 +53,5 @@ export default class Editor {
|
|
|
53
53
|
}
|
|
54
54
|
export { splitText, createDomFromElementList, getElementListByHTML, getTextFromElementList };
|
|
55
55
|
export { EDITOR_COMPONENT, LETTER_CLASS, INTERNAL_CONTEXT_MENU_KEY, INTERNAL_SHORTCUT_KEY, EDITOR_CLIPBOARD };
|
|
56
|
-
export { Editor, RowFlex, VerticalAlign, EditorZone, EditorMode, ElementType, ControlType, EditorComponent, PageMode, RenderMode, ImageDisplay, Command, KeyMap, BlockType, PaperDirection, TableBorder, TdBorder, TdSlash, MaxHeightRatio, NumberType, TitleLevel, ListType, ListStyle, WordBreak, ControlIndentation, ControlComponent, BackgroundRepeat, BackgroundSize, TextDecorationStyle, LineNumberType, LocationPosition, AreaMode, ControlState, FlexDirection, WatermarkType };
|
|
56
|
+
export { Editor, RowFlex, VerticalAlign, EditorZone, EditorMode, ElementType, ControlType, EditorComponent, PageMode, RenderMode, ImageDisplay, Command, KeyMap, BlockType, PaperDirection, TableBorder, TdBorder, TdSlash, MaxHeightRatio, NumberType, TitleLevel, ListType, ListStyle, WordBreak, ControlIndentation, ControlComponent, BackgroundRepeat, BackgroundSize, TextDecorationStyle, LineNumberType, LocationPosition, AreaMode, ControlState, FlexDirection, WatermarkType, WatermarkLayer };
|
|
57
57
|
export type { IElement, IEditorData, IEditorOption, IEditorResult, IContextMenuContext, IRegisterContextMenu, IWatermark, INavigateInfo, IBlock, ILang, ICatalog, ICatalogItem, IRange, IRangeStyle, IBadge, IGetElementListByHTMLOption };
|
|
@@ -129,6 +129,7 @@ export interface IFocusOption {
|
|
|
129
129
|
export interface IPrintModeRule {
|
|
130
130
|
imagePreviewerDisabled?: boolean;
|
|
131
131
|
backgroundDisabled?: boolean;
|
|
132
|
+
filterEmptyControl?: boolean;
|
|
132
133
|
}
|
|
133
134
|
export interface IReadonlyModeRule {
|
|
134
135
|
imagePreviewerDisabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NumberType } from '../dataset/enum/Common';
|
|
2
|
-
import { WatermarkType } from '../dataset/enum/Watermark';
|
|
2
|
+
import { WatermarkLayer, WatermarkType } from '../dataset/enum/Watermark';
|
|
3
3
|
export interface IWatermark {
|
|
4
4
|
data: string;
|
|
5
5
|
type?: WatermarkType;
|
|
@@ -12,4 +12,5 @@ export interface IWatermark {
|
|
|
12
12
|
repeat?: boolean;
|
|
13
13
|
numberType?: NumberType;
|
|
14
14
|
gap?: [horizontal: number, vertical: number];
|
|
15
|
+
layer?: WatermarkLayer;
|
|
15
16
|
}
|
package/package.json
CHANGED