@logicflow/core 1.2.8 → 1.2.9
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/package.json
CHANGED
|
@@ -310,6 +310,14 @@ declare class GraphModel {
|
|
|
310
310
|
* 移动边,内部方法,请勿直接使用
|
|
311
311
|
*/
|
|
312
312
|
moveEdge(nodeId: BaseNodeModelId, deltaX: number, deltaY: number): void;
|
|
313
|
+
/**
|
|
314
|
+
* 如果有文案了,当节点移动引起文案位置修改时,找出当前文案位置与最新边距离最短距离的点
|
|
315
|
+
* 最大程度保持节点位置不变且在边上
|
|
316
|
+
* @param edgeModel 边的数据管理类
|
|
317
|
+
* @param x X轴移动距离
|
|
318
|
+
* @param y Y轴移动距离
|
|
319
|
+
*/
|
|
320
|
+
handleEdgeTextMove(edgeModel: BaseEdgeModel, x: number, y: number): void;
|
|
313
321
|
/**
|
|
314
322
|
* 删除两节点之间的边
|
|
315
323
|
* @param sourceNodeId 边的起始节点
|
package/types/util/edge.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const filterRepeatPoints: (points: PolyPoint[]) => PolyPoint[];
|
|
|
27
27
|
export declare const getSimplePolyline: (sPoint: PolyPoint, tPoint: PolyPoint) => PolyPoint[];
|
|
28
28
|
export declare const getExpandedBBox: (bbox: PBBox, offset: number) => PBBox;
|
|
29
29
|
export declare const pointDirection: (point: PolyPoint, bbox: PBBox) => Direction;
|
|
30
|
-
export declare const getExpandedBBoxPoint: (bbox: PBBox, point: PolyPoint) => PolyPoint;
|
|
30
|
+
export declare const getExpandedBBoxPoint: (expendBBox: PBBox, bbox: PBBox, point: PolyPoint) => PolyPoint;
|
|
31
31
|
export declare const mergeBBox: (b1: PBBox, b2: PBBox) => PBBox;
|
|
32
32
|
export declare const getBBoxOfPoints: (points?: PolyPoint[], offset?: number) => PBBox;
|
|
33
33
|
export declare const getPointsFromBBox: (bbox: PBBox) => PolyPoint[];
|