Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > Campo > getSvgRoot
Metodo Field.getSvgRoot()
Ottiene l'elemento del gruppo per questo campo modificabile. Utilizzato per misurare le dimensioni e per il posizionamento.
Firma:
getSvgRoot(): SVGGElement | null;
Resi:
SVGGElement | null
L'elemento del gruppo.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-25 UTC."],[[["The `getSvgRoot()` method retrieves the SVG group element associated with an editable field."],["This group element is crucial for determining the field's size and position within the Blockly workspace."],["The method returns the `SVGGElement` representing the group, or `null` if it's not found."]]],["The `getSvgRoot()` method, part of the Field class, retrieves the group element associated with an editable field. This element is crucial for tasks like determining the field's size and its placement within the interface. The method returns either an `SVGGElement`, representing the group element, or `null` if no such element exists. It's signature does not accept any parameters.\n"]]