antvis / G

💥 A flexible rendering engine for visualization.
https://g.antv.antgroup.com/
1.04k stars 192 forks source link

Path不能显示 #1703

Closed yyyt2020 closed 1 month ago

yyyt2020 commented 1 month ago

注:https://antv-issue-helper.surge.sh 链接不能选择版本号,导致不能提交问题。

相关仓库:G

重现问题步骤: 第一步:打开https://g.antv.antgroup.com/zh/examples/shape/path/#l-command 第二步:点击代码上方的stackblitz 第三步:在stackblitz中调试代码看不到Path的显示

预览 QQ截图20240530165147

yyyt2020 commented 1 month ago

试着path无效,改为d是可以的,代码如下: const line = new Path({ style: { d: 'M 100 100 L 200 200', stroke: '#F04864', lineDash: [10], }, });

xiaoiver commented 1 month ago

感谢反馈,文档还没有更新