調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >blockRendering >MarkerSvg >getSvgRoot
blockRendering.MarkerSvg.getSvgRoot() メソッド
SVG のルートノードを返します。存在しない場合は null を返します。
署名:
getSvgRoot(): SVGElement | null;
戻り値:
SVGElement |null
ルート SVG ノード。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-14 UTC。
[null,null,["最終更新日 2024-10-14 UTC。"],[[["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"]]