common namespace
Functions
Function | Description |
|---|---|
Define blocks from an array of JSON block definitions, as might be generated by the Blockly Developer Tools. | |
Add the specified block definitions to the block definitions dictionary (Blockly.Blocks). | |
Define blocks from an array of JSON block definitions, as might be generated by the Blockly Developer Tools. | |
Find all workspaces. | |
Get a map of all the block's descendants mapping their type to the number of children with that type. | |
Returns the last used top level workspace (based on focus). Try not to use this function, particularly if there are multiple Blockly instances on a page. | |
Get the container element in which to render the WidgetDiv, DropDownDiv and Tooltip. | |
Returns the current selection. | |
Find the workspace with the specified ID. | |
Register a workspace in the workspace db. | |
Sets last used main workspace. | |
Set the parent container. This is the container element that the WidgetDiv, DropDownDiv, and Tooltip are rendered into the first time | |
Size the SVG image to completely fill its container. Call this when the view actually changes sizes (e.g. on a window resize/device orientation change). See workspace.resizeContents to resize the workspace when the contents change (e.g. when a block is added or removed). Record the height/width of the SVG image. | |
Unregister a workspace from the workspace db. |
Variables
Variable | Description |
|---|---|
All of the connections on blocks that are currently being dragged. | |