blockly > Workspace > remainingCapacity

Workspace.remainingCapacity() method

The number of blocks that may be added to the workspace before reaching the maxBlocks.

Signature:

remainingCapacity(): number;

Returns:

number

Number of blocks left.