utils.svgPaths.arc() 函数
绘制椭圆弧曲线。这些坐标是无单位的,因此是用户坐标系中的坐标。请访问 developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/d#Elliptical_Arc_Curve
Signature:
export declare function arc(command: string, flags: string, radius: number, point: string): string;
参数
| 参数 | 类型 | 说明 |
|---|---|---|
| command | 字符串 | 命令字符串。“a”或或“A”。 |
| flags | 字符串 | 标志字符串。有关说明和示例,请参阅 MDN 文档。 |
| 半径 | number | 要绘制的弧形的半径。 |
| 点 | 字符串 | 绘制弧形之后要将光标移动到的点,以绝对坐标或相对坐标指定,具体取决于命令。 |
返回:
字符串
格式为“命令半径半径标志点”的字符串