סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > Toolbox > getClientRect
הפונקציה מחזירה את המלבן המקיף של אזור היעד לגרירה ביחידות פיקסלים ביחס לאזור התצוגה.
Signature:
getClientRect(): Rect | null;
החזרים:
Rect | null
התיבה התוחמת (bounding box) של הרכיב. הערך Null אם צריך להתעלם מאזור היעד של הגרירה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-22 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-22 (שעון UTC)."],[[["The `getClientRect()` method provides the coordinates and size of the toolbox's drag target area."],["This method returns a `Rect` object containing the bounding box information, or `null` if the drag target should be disregarded."],["The returned rectangle's coordinates are relative to the viewport, enabling precise positioning within the browser window."]]],[]]