The edge's arrow style config not working
See original GitHub issue- G6 Version: 3.4.4
- Platform: MacOS Chrome v80.0.3987.132
- Mini Showcase(like screenshots):
Pic A: The code of default edge with endArrow
Pic B: The edge’s code (marker-end attribute’s content refer to endArrow shape)
Pic C: The code of endArrow’s shape, but the endArrow’s shape fill and stroke attribute won’t be set as the config what I given in Pic A
I add custom edge style in the default edge config like Pic A (and the code I copy from the official document : https://g6.antv.vision/en/docs/manual/advanced/custom-edge#2-configuring-in-data) most part attributes including type, stroke, lineWidth and path of endArrow are working pretty well. but “fill”, “stroke”, “opacity” this 3 attributes about endArrow I already given, not work on the graph.
I found this sistuaion will happen when render with svg and canvas
BTW, In renderer: 'svg'
mode
I found the marker-end
attribute of path (edge) will reference to a marker
and the marker’s “fill”, “stroke”, “opacity” attributes (excluding “path”) won’t be set as endArrow’s config in Pic A.
Would u can help me to solve this problem? Thanks for ur patient and help!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top GitHub Comments
@Yanyan-Wang Did you fix this issue? Or have a plan to fix this.
非常抱歉,当前版本(3.x、4.x)依赖的底层渲染引擎暂时不会考虑 SVG 问题的修复,渲染引擎目前正在大升级,我们也将在新版本接入新渲染引擎,届时应当可以解决 SVG 各种 bug
Dear user, sorry to say that we may not fix the problems in SVG renderer in current versions (G6 3.x - 4.x) since it is caused by the old rendering engine which we unable to maintain any more. The rendering engine is being upgraded right now, the problems about SVG will be solved by new version in few months. And G6 will be upgraded to 5.x with new rendering engine next year.