antvis/G6

[v5.0.1]polyline edge绘制bug,style中没有controlPoints,绘制结果却有拐点 #5848

zzjjbbaa posted onGitHub

Describe the bug / 问题描述

https://github.com/antvis/G6/assets/54572770/f7698069-ce3c-47ae-bce0-f1b9b55a65f6

根据视频中演示; 1.生成了两条polyline,上面一条的polyline.style.controlPoints不是空的;另一条的controlPoints是空的。 2.但是最终的渲染效果,两条edge共用了上面一条的controlPoints。 附上两个edge的数据: image 附上两个edge的渲染效果 image

No response

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

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Edge

Additional context / 补充说明


更新一个临时解决方案,在生成edge时,必须默认指定controlPoints:[] #5849

posted by zzjjbbaa 11 months ago
posted by Aarebecca 11 months ago

Fund this Issue

$0.00
Funded

Pull requests