Mr-Jpelaez / blockly

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

Custom svg shape #66

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? What do you see instead?
May I add new SVG shape for Blockly? Like as UML workflow chart? Everyone tell 
me that is what they want to see.
Thanks a lot.

Original issue reported on code.google.com by hsuva...@gmail.com on 13 Aug 2012 at 1:55

GoogleCodeExporter commented 8 years ago
Images (PNG, GIF, JPG, SVG, BMP, etc) may now be added to blocks.

Open the block factory:
http://blockly-demo.appspot.com/blockly/demos/blockfactory/index.html
Drag an image block from the title menu and add it to the title field of the 
base block.  This should make a star image appear on the preview block to the 
right.

You can change the URL to an SVG:
https://upload.wikimedia.org/wikipedia/commons/2/22/SVG_Simple_Logo.svg
Then set the height and width to be larger.

The documentation for FieldImage is on this page:
http://code.google.com/p/blockly/wiki/DefiningBlocks

Original comment by neil.fra...@gmail.com on 3 Oct 2012 at 9:00