研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >实用程序 >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 坐标。 |
返回:
字符串
“M x y '
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-15。
[null,null,["最后更新时间 (UTC):2024-10-15。"],[[["The `utils.svgPaths.moveTo()` function moves a cursor to a specified position (x, y) without drawing a line."],["It uses absolute coordinates in the user coordinate system, meaning they are unitless."],["The function returns a string in the format ' M x,y ', which represents the move command in SVG path notation."]]],[]]