OnInit
OnInit 类型定义了在 ReactFlow 实例初始化时调用的回调函数。该回调函数将 ReactFlow 实例作为其参数接收。
🌐 The OnInit type defines the callback function that is called when the ReactFlow instance is initialized. This callback receives the ReactFlow instance as its argument.
type OnInit = (reactFlowInstance: ReactFlowInstance) => void;| Name | Type | Default |
|---|---|---|
reactFlowInstance | ReactFlowInstance<NodeType, EdgeType> |
Last updated on