blockly > IPositionable > getBoundingRectangle
Metodo IPositionable.getBoundingRettangolo()
Restituisce il rettangolo di delimitazione dell'elemento UI in unità pixel rispetto al div di inserimento Blockly.
Firma:
getBoundingRectangle(): Rect | null;
Resi:
Rettangolo | null
Il riquadro di delimitazione degli elementi UI. Null se il riquadro di delimitazione deve essere ignorato da altri elementi dell'interfaccia utente.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-10-11 UTC.
[null,null,["Ultimo aggiornamento 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"]]