xftjywx / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

is there a way to create block on the workspace manually? #215

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
is there an effective way to add a block to an empty workspace?

Original issue reported on code.google.com by nati.krisi on 19 Mar 2014 at 2:14

GoogleCodeExporter commented 8 years ago
var block = Blockly.Block.obtain(Blockly.mainWorkspace, 'logic_boolean');
block.initSvg();
block.render();

Original comment by neil.fra...@gmail.com on 19 Mar 2014 at 11:25