Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

如何自定义 edge 的样式,去掉箭头呢 #122

Open
hh23485 opened this issue Jun 21, 2019 · 2 comments
Open

如何自定义 edge 的样式,去掉箭头呢 #122

hh23485 opened this issue Jun 21, 2019 · 2 comments

Comments

@hh23485
Copy link

hh23485 commented Jun 21, 2019

我想用来画无向的拓扑图,所以希望能够去掉默认连接线上的箭头。有没有人指点一下这个是由哪个属性或者控件控制的呢?

@hh23485
Copy link
Author

hh23485 commented Jun 21, 2019

https://www.yuque.com/antv/g6/custom-edge 找到了文档,我先试试看

@guozhaolong
Copy link

style里面有个endArrow属性,可以直接设置为

endArrow: {
    path: 'M 0,0 L -10,-4 S -8 0,-10 4 Z',
}

希望对你有帮助

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants