Add ability to add blocks by type (#3928)

* Add ability to add blocks by type
This commit is contained in:
alschmiedt
2020-06-04 12:49:04 -07:00
committed by GitHub
parent 4b0e202761
commit 26e84fef11
3 changed files with 111 additions and 97 deletions

View File

@@ -17,7 +17,10 @@ goog.provide('Blockly.utils.toolbox');
* The information needed to create a block in the toolbox.
* @typedef {{
* kind:string,
* blockxml:(string|Node)
* blockxml:(?string|Node),
* type: ?string,
* gap: (?string|?number),
* disabled: (?string|?boolean)
* }}
*/
Blockly.utils.toolbox.Block;