封鎖 >utils >svgPaths >點
utils.svgPaths.point() 函式
建立代表指定 x, y 組合的字串。座標是相對還是絕對值。結果會包含開頭和結尾的空格,並將 x 和 y 座標以半形逗號 (但無空格) 分隔。
Signature:
export declare function point(x: number, y: number): string;
參數
參數 |
類型 |
說明 |
x |
數字 |
x 座標。 |
y |
數字 |
y 座標。 |
傳回:
字串
格式為「x,y'
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-15 (世界標準時間)。
[null,null,["上次更新時間:2024-10-15 (世界標準時間)。"],[[["The `utils.svgPaths.point()` function generates a string representing an x, y coordinate pair for SVG paths."],["The output string is formatted as ' x,y ', with leading and trailing spaces and a comma separating the coordinates."],["This function is used within Blockly's SVG path utilities to create path data strings."],["The function accepts two arguments: `x` and `y`, representing the coordinates of the point."]]],[]]