ReactFlowJsonObject
与 JSON 兼容的流程表示。你可以使用它将流保存到数据库,然后稍后再加载回来。
¥A JSON-compatible representation of your flow. You can use this to save the flow to a database for example and load it back in later.
export type ReactFlowJsonObject<T, U> = {
nodes: Node<T>[];
edges: Edge<U>[];
viewport: Viewport;
};
字段
¥Fields
Name | Type | Default |
---|---|---|
nodes | NodeType[] | |
edges | EdgeType[] | |
viewport | Viewport |
Last updated on