แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > IASTNodeLocationSvg > setCursorSvg
เมธอด IASTNodeLocationSvg.setCursorSvg()
เพิ่ม SVG ของเคอร์เซอร์ลงในกลุ่ม SVG ของโหนดนี้
ลายเซ็น:
setCursorSvg(cursorSvg: SVGElement | null): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
cursorSvg |
SVGElement | ค่าว่าง |
ราก SVG ของเคอร์เซอร์ที่จะเพิ่มลงในกลุ่ม SVG |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-21 UTC
[null,null,["อัปเดตล่าสุด 2024-08-21 UTC"],[[["The `setCursorSvg` method adds an SVG cursor element to a node's SVG group within Blockly's Abstract Syntax Tree (AST) visual representation."],["It accepts a single parameter, `cursorSvg`, which can be an SVGElement or null, representing the root of the cursor SVG to be added."],["Calling this method updates the visual representation of the AST node by including the specified cursor SVG."]]],[]]