antvis/G6

createEdge后,clear清空画布重新读取数据,锚点改变 #4954

chyhshqx posted onGitHub

问题描述

通过接连锚点创建边,边也连接在锚点上,如果设置linkCenter: true,可以实现不变,但是创建边的时候会自动吸附到中心点,二不会在锚点上 1.刚开始边连接的位置挺好的 image 2.在另一数据中手动创建边 image 3.重新切换到图二目录,图形歪了,锚点位置不知道怎么切换的 image

重现链接

wu

重现步骤

wu

预期行为

创建边后,希望不会影响别的图

平台

  • 操作系统: [ Windows, React ]
  • 网页浏览器: [Google Chrome, S]
  • G6 版本: [4.8.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


给个在线复现的 demo 我看看呢

posted by Yanyan-Wang over 1 year ago

您好,有事正在忙,如果看到邮件会第一时间回复

posted by chyhshqx over 1 year ago

暂时提供不了,等过几天。我现在解决的方式是在创建边的时候设置linkCenter:false,切换拓扑图设置linkCenter:true。还有个问题:graph.data(data)边的默认渲染是不是就是linkCenter:true ,初始new实例时设置linkCenter:false,在初始化数据edges中也设置了sourceAnchor和targetAnchor,似乎没有效果

------------------ 原始邮件 ------------------ 发件人: "Yanyan @.*>; 发送时间: 2023年9月13日(星期三) 下午2:40 收件人: *@.>; 抄送: @.*>; *@.>; 主题: Re: [antvis/G6] createEdge后,clear清空画布重新读取数据,锚点改变 (Issue #4954)

给个在线复现的 demo 我看看呢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

posted by chyhshqx over 1 year ago

默认是没有 linkCenter:true 的

posted by Yanyan-Wang over 1 year ago

This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

您好,有事正在忙,如果看到邮件会第一时间回复

posted by chyhshqx 10 months ago

Fund this Issue

$0.00
Funded

Pull requests