(renderer, parentGfx, d, attrs)
| 47 | } |
| 48 | // 绘制路径元素 |
| 49 | export function drawPath(renderer, parentGfx, d, attrs) { |
| 50 | attrs = renderer._styles.computeStyle(attrs, ["no-fill"], { |
| 51 | strokeWidth: 2, |
| 52 | stroke: "black" |
| 53 | }); |
| 54 | const path = svgCreate("path"); |
| 55 | svgAttr(path, { d: d }); |
| 56 | svgAttr(path, attrs); |
| 57 | svgAppend(parentGfx, path); |
| 58 | return path; |
| 59 | } |
no outgoing calls
no test coverage detected