We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果设置了grid的size属性后,使用addNode方法,会造成节点有偏移。 以官方示例https://site.logic-flow.cn/zh/examples/react/registry#customReact
在new LogicFlow(),(34行)添加代码 grid: { size: 12 }, lf.addNode调用后, 之后输出 lf.getGraphData(),可发现node位移
Originally posted by @HunterHeroHan in #1806 (comment)
The text was updated successfully, but these errors were encountered:
这个目前看是符合预期的,因为设置 gridSize 之后,我们会把节点的中心吸附在grid 的中心点上
Sorry, something went wrong.
那如何才能避免连续addNode时候节点重叠?单纯的算偏移嘛,还是有方法可以把吸附关掉?
No branches or pull requests
如果设置了grid的size属性后,使用addNode方法,会造成节点有偏移。
以官方示例https://site.logic-flow.cn/zh/examples/react/registry#customReact
在new LogicFlow(),(34行)添加代码 grid: { size: 12 },
lf.addNode调用后,
之后输出 lf.getGraphData(),可发现node位移
Originally posted by @HunterHeroHan in #1806 (comment)
The text was updated successfully, but these errors were encountered: