blockly > DragTarget > getClientRect
DragTarget.getClientRect() yöntemi
Blok olarak yerleştirme div öğesine göre piksel birimleri cinsinden sürükleme hedefi alanının sınırlayıcı dikdörtgenini döndürür.
İmza:
getClientRect(): Rect | null;
Şunu döndürür:
Dikdörtgen | boş
Bileşenin sınırlayıcı kutusu. Sürükleme hedefi alanının yoksayılması gerekiyorsa null.
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-08-21 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-21 UTC."],[[["`getClientRect()` provides the coordinates and dimensions of the drag target area within the Blockly workspace."],["It returns a `Rect` object representing the bounding box, or `null` if the area should not be considered for dragging."],["Coordinates returned by `getClientRect()` are relative to the Blockly injection div, which is the main container of the workspace."]]],[]]