Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Alan > getSvgRoot
Field.getSvgRoot() yöntemi
Bu düzenlenebilir alan için grup öğesini alır. Boyutu ölçmek ve konumlandırmak için kullanılır.
İmza:
getSvgRoot(): SVGGElement | null;
Şunu döndürür:
SVGGElement | boş
Grup öğesi.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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"]]