Stay organized with collections
Save and categorize content based on your preferences.
blockly > utils > svgPaths > moveTo
utils.svgPaths.moveTo() function
Move the cursor to the given position without drawing a line. The coordinates are absolute. These coordinates are unitless and hence in the user coordinate system. See developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths#Line_commands
Signature:
export declare function moveTo(x: number, y: number): string;
Parameters
Parameter |
Type |
Description |
x |
number |
The absolute x coordinate. |
y |
number |
The absolute y coordinate. |
Returns:
string
A string of the format ' M x,y '
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["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."]]],[]]