Commit Graph

47 Commits

Author SHA1 Message Date
Neil Fraser
2d696aa731 Normalize order of languages. 2016-04-08 22:56:42 -07:00
Neil Fraser
4e42a1b78e Swap order of arguments on domToWorkspace. 2016-04-04 18:31:41 -07:00
Neil Fraser
601ea15b75 Rename JSON's 'id' to 'type'. Issue #245. 2016-04-04 16:40:08 -07:00
Neil Fraser
5be735f24f Fix issue #309, unneeded names for dummy inputs in Block Factory. 2016-04-02 04:52:24 -07:00
Neil Fraser
92f224dd52 Merge pull request #297 from picklesrus/develop-perf-1
Remove Blockly.removeAllRanges and replace it with calls to add/remove
2016-03-28 12:17:11 -07:00
Katelyn Mann
b11bd4fb71 Remove Blockly.removeAllRanges and replace it with calls to add/remove
css to mark text as unselectable instead.  I can't prove this is
significantly faster with numbers since the call to setup the time out
costs ~.1ms and the call when the timer fires is ~.05.  This happens on almost
every mouse event though.  Plus, it seems to remove a flicker of highlighting when
frames are skipped and keeps scrolling via the scrollbar from highlighting.
2016-03-28 10:06:43 -07:00
Neil Fraser
e7fcc39e78 Remove redundant movable check from checkType. 2016-03-27 01:46:53 -07:00
Neil Fraser
05fc1ad91b Add workspace.clearUndo 2016-03-25 19:03:18 -07:00
Rodrigo Queiro
a5d3f340e5 Add a Lua code generator
This is based on the JS generator, with a lot of inspiration from Ellen
Spertus's blockly-lua: https://github.com/espertus/blockly-lua

All unit tests pass with Lua 5.3.2.
2016-03-10 10:24:25 +01:00
Neil Fraser
55a94a14f0 Add naked variable to generator test. 2016-03-09 11:51:57 -08:00
Neil Fraser
a22b936229 Fix invalid colours in Block Factory. 2016-02-26 21:20:39 -08:00
Neil Fraser
211595075e Make colour optional in JSON. Add ;/n in generator stub. 2016-01-28 14:25:38 -05:00
Neil Fraser
6acaf35967 Add workspace.newBlock, deprecate Blockly.Block.obtain. 2015-12-07 16:40:45 +01:00
Neil Fraser
00ba0acf40 Clean up build file from previous PR. 2015-11-13 21:11:24 -08:00
Neil Fraser
8fb16b61a3 Simplify Block factory init. 2015-10-04 17:41:59 -07:00
carlosperate
6926da48c9 Block factory: close workspace drop downs and unfocus selections on manual edit. 2015-07-16 04:05:26 +01:00
Neil Fraser
e0f90e6e33 Adding more type documentation. 2015-07-13 15:03:22 -07:00
Neil Fraser
774a76f275 Allowing manual code editing in Block Factory. 2015-06-30 22:51:06 -07:00
Neil Fraser
345b0cb668 Remove selection in Block Factory when switching modes. 2015-06-29 17:06:36 -07:00
Neil Fraser
e300931071 Allow multiple interpolation messages. Fix variable context menus. 2015-06-27 12:49:01 -07:00
Neil Fraser
b37fb2bf8c Move datepicker CSS out of main codebase. 2015-06-13 16:29:21 -07:00
Neil Fraser
7e90591a21 Fix lastDummyAlign in Block Factory. 2015-06-12 18:19:53 -07:00
Neil Fraser
842783f442 Add block name as JSON id. 2015-06-11 18:06:44 -07:00
Neil Fraser
9bfca8b019 Tighten statement connections. 2015-06-11 15:28:45 -07:00
Neil Fraser
d817575767 Block Factory should show empty dummy inputs. 2015-06-10 23:15:09 -07:00
Neil Fraser
059c2f1778 Add automatic mode for internal/external input layout. 2015-06-10 18:45:15 -07:00
Neil Fraser
9050e32954 Adding JsonInit method of creating blocks. 2015-06-08 15:54:18 -07:00
Neil Fraser
e8d68fd95d Fix 'any' type in Block Factory. 2015-06-04 18:10:38 -07:00
daarond
ced61e5c58 updating demos 2015-05-14 17:09:19 -05:00
Neil Fraser
3acf862876 Restore scrollbars on Block Factory preview. 2015-05-07 17:51:29 -07:00
Neil Fraser
e6032ac093 Fix Block Factory save links (issue 95). 2015-05-04 10:45:24 -07:00
Neil Fraser
c5b88b1116 Kill SVG when disposing main workspace. 2015-05-02 21:08:18 -07:00
Neil Fraser
3ff69d47fe Inject can now take an ID. Also, fix unit tests. 2015-04-29 20:26:04 -07:00
Neil Fraser
17961f7f58 Support multiple Blockly instances. 2015-04-28 13:51:25 -07:00
Neil Fraser
29976c4c4d Remove outside border from Blockly (issue 92). 2015-04-07 20:27:26 -07:00
Neil Fraser
66fc235721 Comment out date picker (it increases compile size by 60%). 2015-02-25 01:06:10 -08:00
Neil Fraser
cbb7204c27 Internationalize date picker. 2015-02-04 22:57:45 -08:00
Neil Fraser
4db568a9bc Add help URLs to Block Factory. 2015-02-02 11:31:33 -08:00
Neil Fraser
8dce3aa271 Fix preview position in Block Factory. 2015-01-17 09:35:39 -08:00
Neil Fraser
ae69c3fbcf Improve porformance of colour changes. 2015-01-08 16:06:05 -08:00
Neil Fraser
a8414a0ecb Remove unneeded HTML attributes (Google style guide). 2014-12-02 18:22:46 -08:00
Neil Fraser
8d53788810 Move Plane app to demos. 2014-11-18 22:21:00 -08:00
Neil Fraser
ca966979a4 Fix Block Factory when types are saved. 2014-11-11 14:06:02 -08:00
Neil Fraser
0cb49f2682 Add 'media' config option. Deprecate 'path' config option. 2014-11-09 16:02:24 -08:00
Neil Fraser
448be04e59 Add help button to Block Factory. 2014-10-29 23:38:02 -07: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
6909e38fc8 Move Block Factory from apps to demos. Add icons to demos. 2014-10-16 16:58:32 -07:00