סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > DragTarget > getClientRect
שיטת DragTarget.getClientRect()
מחזירה את המלבן התוחם של אזור יעד הגרירה ביחידות פיקסלים ביחס ל-div (החדרת חסימה ב-blockly).
Signature:
getClientRect(): Rect | null;
החזרות:
Rect | null
התיבה התוחמת של הרכיב. הערך ריק אם יש להתעלם מאזור היעד לגרירה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 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."]]],[]]