blockly > MetricsManager > getPaddedContent_
MetricsManager.getPaddedContent_() yöntemi
İçerik alanını ek dolguyla döndürür.
İmza:
protected getPaddedContent_(viewMetrics: ContainerRegion, contentMetrics: ContainerRegion): {
top: number;
bottom: number;
left: number;
right: number;
};
Parametreler
Parametre |
Tür |
Açıklama |
viewMetrics |
ContainerRegion |
Görüntüleme metrikleri |
contentMetrics |
ContainerRegion |
İçerik metrikleri |
İadeler:
{ top: number; bottom: sayı; left: sayı; right: sayı; }
Dolgulu içerik alanı.
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: 2024-10-11 UTC.
[null,null,["Son güncelleme tarihi: 2024-10-11 UTC."],[[["`MetricsManager.getPaddedContent_()` calculates and returns the content area with added padding, essential for layout and positioning within Blockly workspaces."],["This protected method uses view and content metrics (provided as `ContainerRegion` objects) to determine the padding dimensions (top, bottom, left, right)."],["The result is returned as an object defining the padded content area."]]],[]]