getOutgoers()

GitHubのソース

このユーティリティは、指定されたノードにエッジの*ターゲット*として接続されているノードがあるかどうかを判断するために使用されます。

import { getOutgoers } from '@xyflow/react';
 
const nodes = [];
const edges = [];
 
const outgoers = getOutgoers(
  { id: '1', position: { x: 0, y: 0 }, data: { label: 'node' } },
  nodes,
  edges,
);

シグネチャ

#パラメータ
#node
Node
#nodes
Node[]
#edges
Edge[]
#戻り値
Node[]