@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.
- package/index-cjs.js +101 -83
- package/index-cjs.js.map +1 -1
- package/index.js +101 -83
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +4 -0
- package/med_editor/framework/util/element-util.d.ts +1 -12
- package/package.json +1 -1
@@ -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
|