@logicflow/core 1.2.19 → 1.2.23
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
|
@@ -420,6 +420,14 @@ declare class GraphModel {
|
|
|
420
420
|
* 获取所有以此节点为起点的边
|
|
421
421
|
*/
|
|
422
422
|
getNodeOutgoingEdge(nodeId: any): any[];
|
|
423
|
+
/**
|
|
424
|
+
* 获取所有以此锚点为终点的边
|
|
425
|
+
*/
|
|
426
|
+
getAnchorIncomingEdge(anchorId: any): any[];
|
|
427
|
+
/**
|
|
428
|
+
* 获取所有以此锚点为起点的边
|
|
429
|
+
*/
|
|
430
|
+
getAnchorOutcomingEdge(anchorId: any): any[];
|
|
423
431
|
/**
|
|
424
432
|
* 获取节点连接到的所有起始节点
|
|
425
433
|
*/
|
|
@@ -141,13 +141,13 @@ declare class BaseEdgeModel implements IBaseModel {
|
|
|
141
141
|
get targetNode(): import("..").BaseNodeModel;
|
|
142
142
|
get textPosition(): Point;
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
144
|
+
* 内部方法,计算两个节点相连时的起点位置
|
|
145
145
|
*/
|
|
146
|
-
getBeginAnchor(sourceNode: any, targetNode: any): Point | undefined;
|
|
146
|
+
getBeginAnchor(sourceNode: any, targetNode: any, sourceAnchorId: any): Point | undefined;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* 内部方法,计算两个节点相连时的终点位置
|
|
149
149
|
*/
|
|
150
|
-
getEndAnchor(targetNode: any): Point | undefined;
|
|
150
|
+
getEndAnchor(targetNode: any, targetAnchorId: any): Point | undefined;
|
|
151
151
|
/**
|
|
152
152
|
* 获取当前边的properties
|
|
153
153
|
*/
|
package/types/view/Anchor.d.ts
CHANGED
|
@@ -42,6 +42,10 @@ declare class Anchor extends Component<IProps, IState> {
|
|
|
42
42
|
event: any;
|
|
43
43
|
}) => void;
|
|
44
44
|
get customTrajectory(): (props: import("..").CustomAnchorLineProps) => import("preact").VNode<{}>;
|
|
45
|
+
get relateEdges(): {
|
|
46
|
+
incomingEdgeList: any[];
|
|
47
|
+
outcomingEdgeList: any[];
|
|
48
|
+
};
|
|
45
49
|
checkEnd: (event: MouseEvent) => BaseEdgeModel | null;
|
|
46
50
|
moveAnchorEnd(endX: number, endY: number): void;
|
|
47
51
|
isShowLine(): boolean;
|