G icon indicating copy to clipboard operation
G copied to clipboard

BUG: SVG渲染模式下,endArrow 和 startArrow 中的 d 参数没有考虑 path 切线方向的的变化(canvas 模式下考虑了)

Open qingniaotonghua opened this issue 5 years ago • 3 comments

Summary

Environment

Expected behavior

Actual behavior

Steps to reproduce the behavior

qingniaotonghua avatar Jul 21 '19 07:07 qingniaotonghua

  • @qingniaotonghua 能否给一个例子说明下?

dengfuping avatar Aug 19 '19 07:08 dengfuping

Hello @qingniaotonghua. Please provide a online reproduction by forking this link https://codesandbox.io/s/g-reproduction-template-w9gb5 or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 7 days.

你好 @qingniaotonghua, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。

antv-bot avatar Aug 19 '19 10:08 antv-bot

示例如下:https://codesandbox.io/s/g-reproduction-template-dy1q5 。在 svg 渲染模式下线条的arrow 的 d 属性的配置导致线条和箭头断裂开来,没有连接在一起,如下图: image

这在 canvas 渲染模式下是不存在的,还有一点就是,同一份配置,在两种渲染模式下箭头的样式表现不一致,在 canvas 模式下上图的表现如下: image

qingniaotonghua avatar Aug 19 '19 11:08 qingniaotonghua