@hailin-zheng/editor-core 2.2.22 → 2.2.24

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.
@@ -466,6 +466,10 @@ export declare class DocEditor {
466
466
  getTextContent(): string;
467
467
  emit(event: string, args: any): void;
468
468
  createResizableElement(): VNode;
469
+ /**
470
+ * 读取操作日志,并返回是否修改的标志
471
+ * @returns
472
+ */
469
473
  private readDocChangeLog;
470
474
  /**
471
475
  * 处理候选词
@@ -11,10 +11,6 @@ import { TextGroupElement, TextGroupRenderObject } from "../impl/text/text-impl"
11
11
  import { TrackRunElement, TrackRunTypeEnum } from "../impl/text/track-run-impl";
12
12
  import { BlockContainerRenderObject, BlockContentRenderObject, BorderType, BranchRenderObject, CursorType, InlineGroupRenderObject, LeafRenderObject, RenderObject } from "../render-define";
13
13
  import { DataElementGroupElement } from "../impl";
14
- declare type PAIR = {
15
- x: number;
16
- y: number;
17
- };
18
14
  export declare class ElementUtil {
19
15
  static setCanvasProps(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, viewOptions: {
20
16
  width: number;
@@ -194,14 +190,7 @@ export declare class ElementUtil {
194
190
  * 主要限制页眉页脚的编辑模式
195
191
  */
196
192
  static verifyHitable(sourceElement: LeafElement | null | undefined): boolean;
197
- /**
198
- * 获取一个点到一个矩形最短的距离
199
- * @param rect
200
- * @param p
201
- * @returns
202
- */
203
- static getDistanceToRect(rect: Rect, p: Position): number;
204
- static minDistance(A: PAIR, B: PAIR, E: PAIR): number;
193
+ static getDistanceToRect(rect: Rect, point: Position): number;
205
194
  /**
206
195
  * 获取父级层级渲染对象
207
196
  * @param render
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "2.2.22",
7
+ "version": "2.2.24",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "moment": "^2.29.3",