blockly > BlockSvg > getSvgRoot
Methode BlockSvg.getSvgRoot()
Gibt den Stammknoten der SVG zurück oder null, wenn keiner vorhanden ist.
Unterschrift:
getSvgRoot(): SVGGElement;
Gibt zurück:
SVGGElement
Der SVG-Stammknoten (wahrscheinlich eine Gruppe).
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-12 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-12 (UTC)."],[[["The `getSvgRoot()` method, belonging to the `BlockSvg` class within Blockly, retrieves the primary SVG node of a block."],["It returns the root SVG node, typically an SVGGElement representing a group, or null if no such node is found."]]],["The `getSvgRoot()` method, part of the `BlockSvg` class, retrieves the root node of the SVG element. It returns an `SVGGElement`, which is the root SVG node, likely a group. If no root node exists, it returns null. This method's core function is to provide access to the SVG's top-level element within the Blockly block structure.\n"]]