研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >实用程序 >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 坐标。 |
Y |
number |
相对 y 坐标。 |
返回:
字符串
“dx,dy '
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["The `moveBy` function generates an SVG path command to move the cursor without drawing, using relative coordinates."],["It accepts `dx` and `dy` parameters representing the relative horizontal and vertical movement, respectively."],["The function returns a string in the format ' m dx,dy ', which can be incorporated into an SVG path string."],["The coordinates provided are unitless and within the user coordinate system."]]],[]]