Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Pole > getSvgRoot
Metoda Field.getSvgRoot()
Pobiera element grupy dla tego pola z możliwością edycji. Służy do pomiaru rozmiaru i pozycjonowania.
Podpis:
getSvgRoot(): SVGGElement | null;
Zwroty:
SVGGElement | wartość null
Element grupy.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-10-11 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-10-11 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"]]