blockly > ZoomControls > getBoundingRectangle
ZoomControls.getBoundingRectangle() method
Returns the bounding rectangle of the UI element in pixel units relative to the Blockly injection div.
Signature:
getBoundingRectangle(): Rect | null;
Returns:
Rect | null
The UI elements's bounding box. Null if bounding box should be ignored by other UI elements.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `getBoundingRectangle()` method returns the bounding rectangle of the Zoom Controls UI element."],["This rectangle is relative to the Blockly injection div and is expressed in pixel units."],["The return value is a `Rect` object representing the bounding box or `null` if it should be ignored by other UI elements."]]],[]]