封鎖 >blockRendering >MarkerSvg >getSvgRoot
blockRendering.MarkerSvg.getSvgRoot() 方法
傳回 SVG 的根節點;如果不存在,則傳回空值。
Signature:
getSvgRoot(): SVGElement | null;
傳回:
SVGElement |空值
根 SVG 節點。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-14 (世界標準時間)。
[null,null,["上次更新時間:2024-10-14 (世界標準時間)。"],[[["The `blockRendering.MarkerSvg.getSvgRoot()` method provides access to the root element of an SVG associated with a marker."],["If no root SVG element exists for the marker, the method returns `null`."],["This method is crucial for manipulating or interacting with the marker's SVG representation within Blockly's block rendering system."]]],["The `getSvgRoot()` method, part of the `MarkerSvg` class within the `blockRendering` namespace, retrieves the root SVG node. It returns either the root SVG element (`SVGElement`) if it exists, or `null` if no root node is present. This method's sole function is to provide access to the SVG element's root within the rendering structure.\n"]]