antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

[Bug]: Parallel edge settings do not support custom edges #6733

hehh51 posted onGitHub

Describe the bug / 问题描述

在使用自定义边开启平行边的设置时,自定义的边会变成默认的边line(改变曲率) image image

No response

Steps to Reproduce the Bug or Issue / 重现步骤

在边数据的定义中配置了type为自定义边,并且在图实例化时没有配置默认边 开启平行边转换后自定义边不显示,显示了默认的实线边line

G6 Version / G6 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

感谢您报告这个问题。根据您的描述,在使用自定义边并开启平行边设置时,自定义的边会被替换为默认的边线样式。这可能是由于在平行边设置中没有正确处理自定义边的类型。

为了更好地帮助您解决这个问题,您可以尝试以下步骤:

  1. 确保在定义边数据时,正确设置了自定义边的 type 属性。
  2. 检查在图实例化时是否有任何默认边的配置可能影响了自定义边的显示。
  3. 查看是否有任何关于平行边设置的文档或示例代码,确保自定义边的配置与平行边设置兼容。

如果问题仍然存在,您可以提供一个最小可复现的代码示例,以便更详细地分析问题。

如果您需要进一步的帮助,请随时告诉我。

<details> <summary>🪧 Tips</summary> For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. </details>

posted by petercat-assistant[bot] 3 months ago

并且在开启平行边转换后其他所有在数据层面设置好的边类型(包括自定义边和内置的边)都变成默认的line

posted by HHH-bot-code 3 months ago

目前没有发现与您描述的问题相似的其他问题。这个问题可能是一个新的问题。

为了帮助您解决这个问题,您可以尝试以下步骤:

  1. 确保在定义边数据时,正确配置了自定义边的类型。
  2. 检查图实例化时的配置,确保没有设置默认边。
  3. 如果问题依然存在,您可以尝试在 GitHub 上提供一个最小可复现的示例,以便开发团队更好地理解和解决问题。

如果您有更多信息或需要进一步的帮助,请随时告诉我。

<details> <summary>🪧 Tips</summary> For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. </details>

posted by petercat-assistant[bot] 3 months ago

我们后面有计划会修复平行边与自定义边的兼容问题

posted by zhongyunWan about 2 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests