סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > IPositionable > getBoundingRectangle
שיטת IPositionable.getBoundingRectangle()
מחזירה את המלבן התוחם של רכיב ממשק המשתמש ביחידות פיקסלים ביחס ל-div (החדרת חסימה ב-Blockly).
Signature:
getBoundingRectangle(): Rect | null;
החזרות:
Rect | null
התיבה התוחמת של רכיבי ממשק המשתמש. null אם רכיבים אחרים בממשק המשתמש צריכים להתעלם מהתיבה התוחמת,
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-10-11 (שעון UTC).
[null,null,["עדכון אחרון: 2024-10-11 (שעון UTC)."],[[["The `getBoundingRectangle()` method provides the coordinates and dimensions of an IPositionable element within the Blockly workspace."],["It returns a `Rect` object containing the element's bounding box information or `null` if it should be disregarded by other UI elements."]]],["The `getBoundingRectangle()` method, part of the `IPositionable` interface, calculates and returns the bounding rectangle of a UI element. This rectangle is defined in pixel units relative to the Blockly injection div. The method's return value is either a `Rect` object representing the bounding box or `null` if the bounding box should be ignored. This information allows other UI elements to determine their position.\n"]]