Commit Graph

53 Commits

Author SHA1 Message Date
Rachel Fenichel
db26c4c541 use goog.string.startswith instead of string.startswith (#1065) 2017-04-25 14:12:21 -07:00
vicng
ae2aaa2159 - Allows use of Blockly's messaging format for category name, colour,… (#1028)
...in toolbox XML.
- Updated code editor demo to use this message format
- Re-built blockly_compressed.js
2017-04-07 15:32:50 -07:00
Rachel Fenichel
17258990fd fix missing semicolon 2016-12-05 16:11:59 -08:00
Neil Fraser
4f08f2536f Replace category colour pallet with correctly calculated colours. 2016-10-23 01:05:13 -07:00
Rachel Fenichel
350e1ff2cc Merge remote-tracking branch 'upstream/develop' into feature/variable_management_merge_develop 2016-08-08 16:58:51 -07:00
Hasso Tepper
b94dff049e Add Estonian translations to the code and plane demos (#505) 2016-07-26 17:20:54 -07:00
Rachel Fenichel
9a6cbe1b34 Lint and remove math_change wherever necessary 2016-07-07 14:40:59 -07:00
Neil Fraser
685288836f Use simpler message interpolation in Code demo. 2016-06-22 13:01:37 -07:00
picklesrus
213469a479 Change the blockly workspace resizing strategy. (#386)
* Add a new method to be called when the contents of the workspace change and
the scrollbars need to be adjusted but the the chrome (trash, toolbox, etc)
are expected to stay in the same place.

Change a bunch of calls to svgResize to either be removed or call the new
method instead.  This is a nice performance win since the offsetHeight/Width
call in svgResize can be expensive, especially when called as often as we do -
there was some layout thrashing.

This also paves the way for moving calls to recordDeleteAreas
(which is also expensive) to a more cacheable spot than on every
mouse down/touch event.

of things (namely the scrollbars)

* Fix size of graph demo when it first loads by calling svgResize.
The graph starts with fixed width and was relying on a resize event
to fire (which I believe was removed in commit
217c681b86).

* Fix the resizing of the code demo.  The demo's tab min-width used to
match the toolbox's width was only being set on a resize event, but
commit 217c681b86 changed how that worked.

* Fix up some comments.

* Use specific workspaces rather than Blockly.getMainWorkspace().

* Make workspace required for resizeSvgContents and update
some calls to send real workspaces rather than ones that are
null.

Remove the private tag on terminateDrag_ because it is only
actually called from outside the BlockSvg object.

* Remove a rogue period.

* Recategorize BlockSvg.terminateDrag_ to @package instead of @private so that
other developers don't use it, but it still can be used by other Blockly classes.

* Add a TODO to fix issue #307.

* Add @package to workspace resizeContents.
2016-06-03 16:11:55 -07:00
Rachel Fenichel
e0cda58701 fix variable naming in createnewblock. 2016-05-11 15:15:12 -07:00
Dan LaLiberte
55eba0a39b Rebuild, add lists_sort block to demos/code/index.html 2016-05-06 11:14:23 -04:00
Neil Fraser
83c04c474a Merge branch 'master' into develop 2016-04-15 23:46:06 -07:00
Neil Fraser
49fff433e3 Merge pull request #234 from pjkui/patch-1
fixed a translation error
2016-04-14 16:50:16 -07:00
Neil Fraser
2d696aa731 Normalize order of languages. 2016-04-08 22:56:42 -07:00
Neil Fraser
bb2214581c Corrections to ms. 2016-04-08 18:40:20 -07:00
Neil Fraser
4e42a1b78e Swap order of arguments on domToWorkspace. 2016-04-04 18:31:41 -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
Quinn Pan
296eab7b99 fixed a translate error
change "簡體中文" to "简体中文"
2016-01-13 17:21:57 +08:00
Neil Fraser
80f36f0629 Clean up for demo apps. 2016-01-08 13:58:18 -08:00
Neil Fraser
19c71573b7 Update messages.
Remove unused PROCEDURES_CALLNORETURN_CALL.  Add
PROCEDURES_DEFNORETURN_COMMENT and PROCEDURES_IFRETURN_HELPURL.
2015-12-17 15:34:23 -08:00
Neil Fraser
fa279b91ce Add option to delete all blocks on workspace. 2015-12-02 22:10:09 -08:00
Neil Fraser
d717546cdc Adding Tamil to Code demo. 2015-12-01 12:45:29 -08:00
Muthiah Annamalai
86f35a40f9 1) Tamil translations to Blockly from generally accepted conventions of ezhillang.org and other implementations of Tamil programming scripts.
2) Resolves issue #144 on google/blockly
2015-11-21 16:38:16 -05:00
Neil Fraser
dcd463b550 Add 'startScale' and remove 'enabled' options on zoom. 2015-10-21 13:25:02 -07:00
Neil Fraser
b503dd7d80 Add shadow blocks and category colours to code demo. 2015-10-12 21:00:29 -07:00
Prof Gra
d489c132db Typo: evironment -> environment. 2015-10-03 22:56:10 +02:00
Neil Fraser
ac9de0d915 Deprecate empty list block. 2015-10-02 15:38:39 -07:00
Neil Fraser
0c3dad0e1c Resize Code demo before injection to eliminate loading reflow. 2015-09-14 15:23:42 -07:00
Neil Fraser
5085ebfb24 Revert "Adding தமிழ்."
This reverts commit 02d75ca60b.
2015-08-19 18:03:47 -07:00
Neil Fraser
02d75ca60b Adding தமிழ். 2015-08-19 17:51:15 -07:00
Neil Fraser
5b7fec7092 Add zooming feature.
By carloslfu.
2015-08-19 17:21:05 -07:00
Neil Fraser
e0f90e6e33 Adding more type documentation. 2015-07-13 15:03:22 -07:00
Neil Fraser
9c1e8588ba Merge pull request #101 from daarond/master
PHP Generator Support
2015-06-04 15:06:26 -07:00
Neil Fraser
e8ab929b6a Fix visibility changes with toolbox. 2015-05-22 17:08:59 -07:00
Carlos Galarza
8314929e2d Remove resolved firefox bug comment 2015-05-22 17:08:35 -05:00
daarond
f240b6dcda Merge branch 'master' of https://github.com/google/blockly 2015-05-21 11:45:15 -05:00
Neil Fraser
6fdab711b2 Fix several RTL bugs. 2015-05-19 12:02:49 -07:00
daarond
6809e9b49e Merge remote-tracking branch 'googleblockly/master'
Conflicts:
	blockly_uncompressed.js
2015-05-15 16:58:22 -05:00
daarond
ced61e5c58 updating demos 2015-05-14 17:09:19 -05:00
Neil Fraser
2a9993e5f3 Fix cloud storage (issue 100) 2015-05-13 22:45:51 -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
89d1aafd5b Update demos to use non-deprecated workspace calls. 2015-04-28 15:07:33 -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
b06c6b3a94 Add grid to code demo. 2015-03-10 18:28:11 -07:00
Neil Fraser
816aa86992 Replace <hr> with <sep></sep> (issue 50). Alphabetize CSS. 2015-01-23 18:24:15 -08:00
Neil Fraser
0d857e0aa7 Add spaghetti stress test to playground. 2015-01-20 17:14:47 -08:00
Neil Fraser
e69f5f4502 Add list/text join/split block. 2015-01-18 16:54:30 -08:00
Neil Fraser
e095147b11 Fix alignment of blocks tab in Code demo. 2014-12-17 20:25:14 -08:00
Neil Fraser
a8414a0ecb Remove unneeded HTML attributes (Google style guide). 2014-12-02 18:22:46 -08:00