blockly > utils > svgPaths > moveTo
utils.svgPaths.moveTo() 函数
在不绘制线条的情况下将光标移至指定位置。坐标为绝对坐标。这些坐标没有单位,因此属于用户坐标系。请参阅 developer.mozilla.org/zh-CN/docs/Web/SVG/Tutorial/Paths#Line_commands
Signature:
export declare function moveTo(x: number, y: number): string;
参数
参数 | 类型 | 说明 |
---|---|---|
x | number | 绝对 x 坐标。 |
y | number | 绝对 y 坐标。 |
返回:
string
格式为“ M x,y ”的字符串