แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ผู้ใช้ > svgPaths > คะแนน
utils.svgPaths.point()
สร้างสตริงที่แสดงถึงคู่ x, y ที่ระบุ ไม่ว่าพิกัดจะเป็นค่าสัมพัทธ์หรือสัมบูรณ์ ผลลัพธ์จะมีช่องว่างนำหน้าและต่อท้าย และคั่นพิกัด x และ y ด้วยเครื่องหมายจุลภาคแต่ไม่เว้นวรรค
ลายเซ็น:
export declare function point(x: number, y: number): string;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
x |
ตัวเลข |
พิกัด x |
y |
ตัวเลข |
พิกัด y |
การคืนสินค้า:
สตริง
สตริงของรูปแบบ " x,y '
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-10-15 UTC
[null,null,["อัปเดตล่าสุด 2024-10-15 UTC"],[[["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."]]],[]]