editor-svg 1.0.19 → 1.0.21

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.
@@ -143,5 +143,6 @@ export declare class Command {
143
143
  getTitleValue: CommandAdapt['getTitleValue'];
144
144
  getPositionContextByEvent: CommandAdapt['getPositionContextByEvent'];
145
145
  getElementById: CommandAdapt['getElementById'];
146
+ getPageRowList: CommandAdapt['getPageRowList'];
146
147
  constructor(adapt: CommandAdapt);
147
148
  }
@@ -187,4 +187,5 @@ export declare class CommandAdapt {
187
187
  setAreaProperties(payload: ISetAreaPropertiesOption): void;
188
188
  locationArea(areaId: string, options?: ILocationAreaOption): void;
189
189
  clearGraffiti(): void;
190
+ getPageRowList(): import("../..").IRow[][];
190
191
  }
@@ -1,6 +1,7 @@
1
1
  import './assets/css/index.css';
2
2
  import { IEditorData, IEditorOption, IEditorResult } from './interface/Editor';
3
3
  import { IElement } from './interface/Element';
4
+ import { IRow } from './interface/Row';
4
5
  import { Command } from './core/command/Command';
5
6
  import { Listener } from './core/listener/Listener';
6
7
  import { RowFlex } from './dataset/enum/Row';
@@ -54,4 +55,4 @@ export default class Editor {
54
55
  export { splitText, createDomFromElementList, getElementListByHTML, getTextFromElementList };
55
56
  export { EDITOR_COMPONENT, LETTER_CLASS, INTERNAL_CONTEXT_MENU_KEY, INTERNAL_SHORTCUT_KEY, EDITOR_CLIPBOARD };
56
57
  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 };
57
- export type { IElement, IEditorData, IEditorOption, IEditorResult, IContextMenuContext, IRegisterContextMenu, IWatermark, INavigateInfo, IBlock, ILang, ICatalog, ICatalogItem, IRange, IRangeStyle, IBadge, IGetElementListByHTMLOption };
58
+ export type { IElement, IEditorData, IEditorOption, IEditorResult, IContextMenuContext, IRegisterContextMenu, IWatermark, INavigateInfo, IBlock, ILang, ICatalog, ICatalogItem, IRange, IRangeStyle, IBadge, IGetElementListByHTMLOption, IRow };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editor-svg",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "type": "module",
5
5
  "description": "基于canvas-editor的二次开发",
6
6
  "keywords": [
@@ -41,6 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@rollup/plugin-typescript": "^10.0.1",
44
+ "@types/color": "^3.0.4",
44
45
  "@types/node": "16.18.96",
45
46
  "@types/prismjs": "^1.26.0",
46
47
  "@typescript-eslint/eslint-plugin": "5.62.0",
@@ -53,7 +54,11 @@
53
54
  "vite": "^2.4.2",
54
55
  "vite-plugin-css-injected-by-js": "^2.1.1",
55
56
  "vitepress": "1.0.0-beta.6",
56
- "vue": "^3.2.45"
57
+ "vue": "^3.2.45",
58
+ "color": "^4.2.3",
59
+ "docx": "^8.2.2",
60
+ "mammoth": "^1.6.0",
61
+ "prismjs": "^1.29.0"
57
62
  },
58
63
  "simple-git-hooks": {
59
64
  "pre-commit": "npm run lint && npm run type:check",