flowgram.ai
flowgram.ai copied to clipboard
[Bug] 使用node.toJSON获取节点数据,没有返回blocks和edges字段
使用clientContext.document.toJSON获取节点信息,节点中是有blocks和edges字段的,但是通过node.toJSON获取却没有
另外还有个疑问,node上有个allChildren字段,这个字段是不是应该返回所有的子节点和子连线数据呀。目前看跟children字段一样,只返回了字节点数据,没有连线数据。
嗯,这是 bug,我后续修复下,你先用 ctx.document.toNodeJSON(node)
https://github.com/bytedance/flowgram.ai/pull/418