แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ผู้ใช้ > svgPaths > moveBy
utils.svgPaths.moveBy()
เลื่อนเคอร์เซอร์ไปยังตำแหน่งที่กำหนดโดยไม่ต้องวาดเส้น พิกัดเป็นแบบสัมพัทธ์ พิกัดเหล่านี้จะไม่มีหน่วย ดังนั้นในระบบพิกัดของผู้ใช้ โปรดดู developer.mozilla.org/th-TH/docs/Web/SVG/Tutorial/Paths#Line_commands
ลายเซ็น:
export declare function moveBy(dx: number, dy: number): string;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
dx |
ตัวเลข |
พิกัด x สัมพัทธ์ |
Dy |
ตัวเลข |
พิกัด y สัมพัทธ์ |
การคืนสินค้า:
สตริง
สตริงของรูปแบบ " m dx,dy '
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-22 UTC
[null,null,["อัปเดตล่าสุด 2024-08-22 UTC"],[[["The `moveBy` function generates an SVG path command to move the cursor without drawing, using relative coordinates."],["It accepts `dx` and `dy` parameters representing the relative horizontal and vertical movement, respectively."],["The function returns a string in the format ' m dx,dy ', which can be incorporated into an SVG path string."],["The coordinates provided are unitless and within the user coordinate system."]]],[]]