Skip to content

frontend / shared/ui/BlocklyCanvas / createStartBlock

Function: createStartBlock() ​

createStartBlock(ws): void

Defined in: shared/ui/BlocklyCanvas.tsx:44

Creates Blockly block with type start_block on given workspace and marks it non-deletable and non-movable.

Called automatically on mount and after project loading. External code can recreate block after workspace is cleared. See useNewProject.

Parameters ​

ws ​

WorkspaceSvg

Returns ​

void