Stay organized with collections
Save and categorize content based on your preferences.
blockly > comments > CommentView > getSvgRoot
Returns the root SVG group element of the comment view.
Signature:
getSvgRoot(): SVGGElement;
Returns:
SVGGElement
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egetSvgRoot()\u003c/code\u003e method belongs to the \u003ccode\u003eCommentView\u003c/code\u003e class within the \u003ccode\u003ecomments\u003c/code\u003e namespace of Blockly.\u003c/p\u003e\n"],["\u003cp\u003eThis method provides access to the primary SVG group element that constitutes the visual representation of a comment.\u003c/p\u003e\n"],["\u003cp\u003eIt returns an \u003ccode\u003eSVGGElement\u003c/code\u003e object, which represents this root SVG group.\u003c/p\u003e\n"]]],["The `getSvgRoot()` method, part of the `comments.CommentView` class, retrieves the root SVG group element of a comment view. It returns an `SVGGElement`, which represents the top-level SVG element encompassing the entire comment's visual representation. This method's signature indicates it takes no arguments and solely provides access to this root SVG element.\n"],null,["[blockly](./blockly.md) \\\u003e [comments](./blockly.comments_namespace.md) \\\u003e [CommentView](./blockly.comments_namespace.commentview_class.md) \\\u003e [getSvgRoot](./blockly.comments_namespace.commentview_class.getsvgroot_1_method.md)\n\ncomments.CommentView.getSvgRoot() method\n----------------------------------------\n\nReturns the root SVG group element of the comment view.\n\n**Signature:** \n\n getSvgRoot(): SVGGElement;\n\n**Returns:**\n\nSVGGElement"]]