getOutgoers()
此实用程序用于告诉你哪些节点(如果有)连接到给定节点作为边缘的目标。
¥This util is used to tell you what nodes, if any, are connected to the given node as the target of an edge.
import { getOutgoers } from '@xyflow/react';
 
const nodes = [];
const edges = [];
 
const outgoers = getOutgoers(
  { id: '1', position: { x: 0, y: 0 }, data: { label: 'node' } },
  nodes,
  edges,
);签名
¥Signature
Parameters:| Name | Type | Default | 
|---|---|---|
node | NodeType | { id: string; }The node to get the connected nodes from.  | |
nodes | NodeType[]The array of all nodes.  | |
edges | EdgeType[]The array of all edges.  | 
Last updated on