antvis/G6
The issue has been closed
怎么实现:虚线+实箭头? #3336
wl1532502541 posted onGitHub
<!-- ⚠️ ⚠️ ⚠️ 注意:请使用下面的链接来新建 issue: ⚠️ ⚠️ ⚠️ https://antv-issue-helper.surge.sh 不是用上面的链接创建的 issue 会被立即关闭。 -->
写的代码如下:
// 返回虚线
return {
id: edge.id,
// type: "line",
endArrow: {
path: G6.Arrow.vee(10, 20, 10), // 内置箭头,参数为箭头宽度、长度、偏移量
fill: "#000000",
},
style: {
lineDash: [5],
},
};
加了lineDash以后不仅线,连箭头也变虚了,就算设置了箭头的fill属性也没用,有什么办法吗?
<!-- ⚠️ ⚠️ ⚠️ IMPORTANT: Please use the following link to create a new issue: ⚠️ ⚠️ ⚠️ https://antv-issue-helper.surge.sh If your issue was not created by using the link above, it will be closed immediately. -->