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