Stay organized with collections
Save and categorize content based on your preferences.
blockly > WorkspaceSvg > cleanUp
WorkspaceSvg.cleanUp() method
Clean up the workspace by ordering all the blocks in a column such that none overlap.
Signature:
cleanUp(): void;
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 2025-05-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-16 UTC."],[[["\u003cp\u003eThis method, \u003ccode\u003ecleanUp()\u003c/code\u003e, is part of the \u003ccode\u003eWorkspaceSvg\u003c/code\u003e class in Blockly and is used to organize the workspace.\u003c/p\u003e\n"],["\u003cp\u003eIt arranges all blocks into a single column, providing a clean and structured workspace view.\u003c/p\u003e\n"],["\u003cp\u003eThe method does not return any value (void) and is called without any arguments.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [WorkspaceSvg](./blockly.workspacesvg_class.md) \\\u003e [cleanUp](./blockly.workspacesvg_class.cleanup_1_method.md)\n\nWorkspaceSvg.cleanUp() method\n-----------------------------\n\nClean up the workspace by ordering all the blocks in a column such that none overlap.\n\n**Signature:** \n\n cleanUp(): void;\n\n**Returns:**\n\nvoid"]]