* Align text by consistent baseline * Helvetica * CORNER_RADIUS in grid units * Separate MIN_BLOCK_X for reporters from single-field shadows * Update Blockly.BlockSvg.FIELD_WIDTH * Remove padding on htmlInput * Also apply border-radius to htmlInput_ to avoid weird edge effect in Chrome * Update MIN_BLOCK_X to spec * Fix horizontal sizing of blocks to include right corner. * Add EDITABLE_FIELD_PADDING This gives extra width to editable text fields. * Add correct height for reporters * Fix INLINE_PADDING_Y and reporter sizing to spec * Remove unused case for input.renderWidth * Instrument vertical rendering with right/left row padding. * Revert renderWidth change * Fix calculation of input shape widths * Output padding to spec, fixing #376 * Update horizontal FIELD_TOP_PADDING for new dominant baseline * Update padding language to be LTR/RTL neutral * Remove broken RTL SEP_SPACE_X from input shape drawing |
||
---|---|---|
blocks | ||
blocks_horizontal | ||
blocks_vertical | ||
core | ||
i18n | ||
media | ||
msg | ||
tests | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
blockly_compressed_horizontal.js | ||
blockly_compressed_vertical.js | ||
blockly_uncompressed_horizontal.js | ||
blockly_uncompressed_vertical.js | ||
blocks_compressed.js | ||
blocks_compressed_horizontal.js | ||
blocks_compressed_vertical.js | ||
build.py | ||
LICENSE | ||
package.json | ||
README.md | ||
TRADEMARK |
scratch-blocks
Scratch Blocks is a library for building creative computing interfaces.
Introduction
Scratch Blocks is a fork of Google's Blockly project that provides a design specification and codebase for building creative computing interfaces. Together with the Scratch Virtual Machine (VM) this codebase allows for the rapid design and development of visual programming interfaces.
This project is in active development and should be considered a "developer preview" at this time.
Two Types of Blocks
Scratch Blocks brings together two different programming "grammars" that the Scratch Team has designed and continued to refine over the past decade. The standard Scratch grammar uses blocks that snap together vertically, much like LEGO bricks. For our ScratchJr software, intended for younger children, we developed blocks that are labelled with icons rather than words, and snap together horizontally rather than vertically. We have found that the horizontal grammar is not only friendlier for beginning programmers but also better suited for devices with small screens.
Only the horizontal grammar is available for preview at this time. The vertical grammar is in the design phase and will be added to the project over the next several months.
Documentation
The "getting started" guide including FAQ and design documentation can be found in the wiki.
Donate
We provide Scratch free of charge, and want to keep it that way! Please consider making a donation to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you!