Scratch Blocks is a library for building creative computing interfaces.
Find a file
Tim Mickel e6cf4451aa Implement block shapes to latest spec
-Convert most constants in the code to use multiplications of GRID_UNIT (4px). This lets us be consistent with Carl's specs and helps explain the numbers a little better.
-Implement notches using cubic curves instead of arcs. This version matches the spec pretty much exactly. As part of this, remove NOTCH_BASE_HEIGHT which is no longer relevant.
-Slight simplification of renderCompute_ (which calculates metrics).
-Fixed SEP_SPACE_X and SEP_SPACE_Y to be the correct number of grid units. Our blocks before were slightly too small, now they are the right size.
-Implement the correct corner radius, hat/end hat radius.
-Add fixed ICON_WIDTH and ICON_HEIGHT, i.e., always size the icons to 40x40px as according to the spec.
-Add fixed STATEMENT_BLOCK_SPACE to represent the size of the bar above forever/repeat/pants blocks. Previously the code was assuming this was SEP_SPACE_Y, when in fact the spec has it as larger (4 units).
-Add accurate MIN_BLOCK_X and MIN_BLOCK_Y for simpler calculation of minimum bay size.
-Remove some unused SVG paths (INNER_TOP_LEFT_CORNER, INNER_BOTTOM_LEFT_CORNER).
-Remove extra code in getHeightWidth which caused a bug in rendering forever-in-repeat.
-Fix stroke width around the blocks to be 1px, according to spec.

I've checked that everything lines up with Carl's spec images at 8x zoom.

This should implement #69, #70, #71, #72, #74, and #75 (not 73 as we haven't done that input yet).
2016-03-01 15:27:52 -05:00
appengine Adding more type documentation. 2015-07-13 15:03:22 -07:00
blocks Merge branch 'master' of github.com:google/blockly into merge/google-2016 2016-02-18 13:29:25 -05:00
blocks_horizontal Consistent naming of input_statements for substacks #77 2016-03-01 13:25:25 -05:00
core Implement block shapes to latest spec 2016-03-01 15:27:52 -05:00
demos Add audio demo 2016-02-26 11:45:34 -05:00
generators Add sample say block to horizontal playground 2016-02-23 16:59:54 -05:00
i18n Handle non ascii characters in keys with an error. 2015-06-22 16:58:30 +02:00
media Revert "Remove Blockly sounds from media" for demo 2016-02-26 11:25:12 -05:00
msg Fix RTL XML. 2016-02-16 13:04:47 -08:00
tests Add runJavaScriptTextInputPanelWithPrompt 2016-03-01 13:18:10 -05:00
.editorconfig Add basic .editorconfig for Blockly JS style 2016-02-24 15:24:52 -05:00
.gitignore cleaned up merge 2015-11-14 21:56:05 +08:00
.jshintignore Add basic lint options for npm 2015-08-03 20:34:07 +02:00
blockly_compressed_horizontal.js Refactor block_svg to share code between horizontal and vertical versionss. 2016-02-24 10:19:59 -08:00
blockly_compressed_vertical.js Refactor block_svg to share code between horizontal and vertical versionss. 2016-02-24 10:19:59 -08:00
blockly_uncompressed_horizontal.js Refactor block_svg to share code between horizontal and vertical versionss. 2016-02-24 10:19:59 -08:00
blockly_uncompressed_vertical.js Refactor block_svg to share code between horizontal and vertical versionss. 2016-02-24 10:19:59 -08:00
blocks_compressed.js Merge branch 'master' of github.com:google/blockly into merge/google-2016 2016-02-18 13:29:25 -05:00
build.py Refactor block_svg to share code between horizontal and vertical versionss. 2016-02-24 10:19:59 -08:00
COPYING New initial commit with .svn directories and their contents ignored. 2013-10-30 14:46:03 -07:00
dart_compressed.js Routine recompile. 2016-02-11 21:48:14 -08:00
javascript_compressed.js Add sample say block to horizontal playground 2016-02-23 16:59:54 -05:00
package.json Update name for better compatibility 2015-11-15 13:19:32 +08:00
php_compressed.js Routine recompile. 2016-02-11 21:48:14 -08:00
python_compressed.js Remove old realtime. 2016-01-08 13:03:22 -08:00
README.md Readme typo (issue 42). 2015-01-08 09:57:28 -08:00

Blockly

Google's Blockly is a web-based, visual programming editor. Users can drag blocks together to build programs. All code is free and open source.

The project page is https://developers.google.com/blockly/