blockly > bumpObjects > bumpTopObjectsIntoBounds
bumpObjects.bumpTopObjectsIntoBounds() function
Bumps the top objects in the given workspace into bounds.
Signature:
export declare function bumpTopObjectsIntoBounds(workspace: WorkspaceSvg): void;
Parameters
Parameter |
Type |
Description |
workspace |
WorkspaceSvg |
The workspace. |
Returns:
void
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."],[[["`bumpTopObjectsIntoBounds` ensures the top-level objects within a Blockly workspace stay within its defined boundaries."],["This function iteratively repositions any overflowing objects by nudging them back inside the workspace's visual limits."],["It accepts a single argument: the `WorkspaceSvg` instance where the objects reside and need repositioning."],["The function modifies the workspace directly and does not return any specific value."]]],[]]