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
在使用自定义 React 节点和内置的 dagre 布局算法时,发现边的布局效果与预期不符。具体表现为:
(使用自定义节点)边的布局效果应与使用内置节点时相同,控制点折线后应为水平线。
边的控制点折线后呈斜线,与预期不符。
https://codesandbox.io/p/sandbox/73mjj4
@antv/g6-extension-react
ReactNode
node.type: "reactNode"
antv-dagre
rankdir: "LR"
🆕 5.x
macOS
Chrome, Firefox
No response
The text was updated successfully, but these errors were encountered:
html 节点原点在左上角,这里需要额外处理一下,添加属性 { "dx": -size[0]/2, "dy": -size[1]/2 }
{ "dx": -size[0]/2, "dy": -size[1]/2 }
Sorry, something went wrong.
好的解决了。感觉跟 #6351 问题很像,都是自定义节点后 edge 出现问题
No branches or pull requests
Describe the bug / 问题描述
背景描述
在使用自定义 React 节点和内置的 dagre 布局算法时,发现边的布局效果与预期不符。具体表现为:
预期效果
(使用自定义节点)边的布局效果应与使用内置节点时相同,控制点折线后应为水平线。
实际效果
边的控制点折线后呈斜线,与预期不符。
Reproduction link / 重现链接
https://codesandbox.io/p/sandbox/73mjj4
Steps to Reproduce the Bug or Issue / 重现步骤
@antv/g6-extension-react
中的ReactNode
创建自定义节点node.type: "reactNode"
antv-dagre
布局,设置rankdir: "LR"
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
macOS
Browser / 浏览器
Chrome, Firefox
Additional context / 补充说明
No response
The text was updated successfully, but these errors were encountered: