Commit graph

47 commits

Author SHA1 Message Date
Tim Mickel
a5d563e03e Add workspace colour from spec 2016-03-01 15:31:00 -05:00
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
Tim Mickel
c0974717fb Fully remove .blocklyDragging CSS properties 2016-02-29 17:23:30 -05:00
Tim Mickel
9cfe992b5a Remove block transparency during drag 2016-02-29 16:20:19 -05:00
Ray Schamp
9d82e79e9c Update inputs to match spec 2016-02-23 16:59:53 -05:00
Rachel Fenichel
8f23434703 render toolbox and flyout at start/end in horizontal mode 2016-02-17 11:02:26 -08:00
Ray Schamp
a8d3ca7df3 Merge pull request #46 from thisandagain/feature/rendering
WIP - Horizontal block rendering
2016-02-09 12:07:57 -05:00
Andrew Sliwinski
d4a364e2b5 WIP horizontal block rendering 2016-01-28 20:30:35 -05:00
Rachel Fenichel
1672e28f12 Horizontal toolbox layout and option to enable it. 2016-01-26 12:35:50 -08:00
Andrew Sliwinski
6a708da899 Initial SVG rendering modifications. 2016-01-26 14:57:43 -05:00
Neil Fraser
19263bdd5b Vectorize icons. 2015-12-13 11:06:15 +01:00
Neil Fraser
00ba0acf40 Clean up build file from previous PR. 2015-11-13 21:11:24 -08:00
Neil Fraser
3d2e9b3a17 Move category colours to be on left. 2015-10-14 14:02:09 -07:00
Neil Fraser
59cadcb2d7 Add optional colour tabs on toolbox categories. 2015-10-12 17:30:41 -07:00
Neil Fraser
349146743b Remove dependency on goog.cssom. 2015-09-29 15:40:19 -07:00
Neil Fraser
5b7fec7092 Add zooming feature.
By carloslfu.
2015-08-19 17:21:05 -07:00
Allison Lamm
6070b9473d Update type annotation for Blockly cursor 2015-08-10 14:17:11 -05:00
carlosperate
3cc4c4e141 Contain the height of the field dropdown to the window viewport height. 2015-07-16 22:08:50 +01:00
Neil Fraser
f2c9c89dd3 Darken the flyout scrollbars. 2015-07-15 14:09:19 -07:00
Neil Fraser
6291e98473 Remove scrollbar background UI. 2015-07-14 17:22:35 -07:00
Neil Fraser
e0f90e6e33 Adding more type documentation. 2015-07-13 15:03:22 -07:00
Neil Fraser
b37fb2bf8c Move datepicker CSS out of main codebase. 2015-06-13 16:29:21 -07:00
Neil Fraser
af056f9028 Reduce highlight width by a pixel. 2015-06-03 23:04:28 -07:00
Neil Fraser
6fdab711b2 Fix several RTL bugs. 2015-05-19 12:02:49 -07:00
Neil Fraser
17961f7f58 Support multiple Blockly instances. 2015-04-28 13:51:25 -07:00
Neil Fraser
6d1df4dfb5 Revert "De-singleton Blockly. Part 1."
This reverts commit 3122c8a93f.
2015-04-07 21:01:37 -07:00
Neil Fraser
29976c4c4d Remove outside border from Blockly (issue 92). 2015-04-07 20:27:26 -07:00
Neil Fraser
3122c8a93f De-singleton Blockly. Part 1. 2015-04-06 18:36:53 -07:00
Neil Fraser
e2af14c32f Replace drawn icons with images (issue 45). 2015-03-25 23:58:58 -07:00
Neil Fraser
612b190ef4 Add background grid for snapping. 2015-03-08 12:48:42 -07:00
Paul Kendall
b3b9ef8ce3 Add a new FieldDate input type 2015-02-05 07:29:48 +13:00
Neil Fraser
816aa86992 Replace <hr> with <sep></sep> (issue 50). Alphabetize CSS. 2015-01-23 18:24:15 -08:00
Neil Fraser
1c39a638e3 Lint fixes. 2015-01-22 15:58:10 -08:00
Neil Fraser
f8365e9eba Inject CSS rule for cursors regardless of CSS flag. 2015-01-22 13:54:00 -08:00
Neil Fraser
63c2cc8ca4 Fix stylesheet lookup to get correct sheet. 2014-12-02 23:38:51 -08:00
Neil Fraser
c9169285d9 Add red 'X' to mouse cursor if blocks are over toolbox. 2014-12-02 15:00:10 -08:00
Neil Fraser
674625c47e Add red 'X' to mouse cursor if blocks are over flyout. 2014-11-28 21:43:39 -08:00
Neil Fraser
208e49c9e6 Add red 'X' to mouse cursor if blocks are over the trash can. 2014-11-26 12:03:21 -08:00
Neil Fraser
5aed33b678 Add separators to toolbox. 2014-11-24 17:34:27 -08:00
Neil Fraser
0cb49f2682 Add 'media' config option. Deprecate 'path' config option. 2014-11-09 16:02:24 -08:00
Neil Fraser
f5108ba043 Move closure-library-read-only to closure-library (due to the Closure project's move). 2014-10-29 22:51:12 -07:00
Neil Fraser
6539211104 Change official project URL. 2014-10-07 13:09:55 -07:00
Neil Fraser
7122410373 Changing project location from Google Code to GitHub. 2014-09-08 15:18:02 -07:00
Neil Fraser
d998a1c8ec Update to latest version. 2014-09-08 14:26:52 -07:00
ellen.spertus
6ee38cdec3 Automatic commit Tue Jan 28 03:00:09 PST 2014 2014-01-28 03:00:09 -08:00
ellen.spertus
eb5895d70a Automatic commit Sat Dec 14 03:00:02 PST 2013 2013-12-14 03:00:02 -08:00
ellen.spertus
a8acffd81c New initial commit with .svn directories and their contents ignored. 2013-10-30 14:46:03 -07:00