封鎖 >utils >svgPaths >moveTo
utils.svgPaths.moveTo() 函式
將遊標移到指定位置,但不繪製線條。座標是絕對的。這些座標為無單位,因此在使用者座標系統中。詳情請參閱 developer.mozilla.org/zh-TW/docs/Web/SVG/Tutorial/Paths#Line_commands
Signature:
export declare function moveTo(x: number, y: number): string;
參數
參數 |
類型 |
說明 |
x |
數字 |
絕對的 x 座標。 |
y |
數字 |
絕對的 y 座標。 |
傳回:
字串
格式為「M x,y'
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-15 (世界標準時間)。
[null,null,["上次更新時間: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."]]],[]]