Andrew n marshall
b5f91dd054
Typo in comment.
2017-03-02 08:34:27 -08:00
Rachel Fenichel
aa8e996799
Handle mutations with both mixins and functions
2017-02-23 17:07:06 -08:00
Andrew n marshall
a4cfd5cbc8
Porting Loop blocks to JSON ( #919 )
...
* Improved documentation on `Blockly.Extensions.buildTooltipForDropdown`
* Replaced incorrect uses of `@mixes` JSDoc annotation (on mixin extensions) with `@augments Blockly.Block`.
* Added Blockly.Extensions.buildTooltipWithFieldValue() extension helper.
2017-02-08 11:36:38 -08:00
Andrew n marshall
d97edf0dde
Blockly.Constants.Math and Blockly.Constants.Colour extension constants ( #916 )
...
Also, correcting quotes in logic.js.
2017-02-06 16:20:48 -08:00
Andrew n marshall
680fc4b6d3
Porting Logic blocks to JSON ( #913 )
...
Extensions, mixins, mutators and constants now grouped under the new namespace Blockly.Constants.Logic.
2017-02-06 13:40:05 -08:00
Rachel Fenichel
e429e0c42f
Merge pull request #912 from rachel-fenichel/lint
...
Fix some lint errors
2017-02-06 12:39:45 -08:00
Andrew n marshall
15827c5d30
Adds Block.prototype.mixin() and Blockly.Extensions.registerMixin(). ( #907 )
...
Adds Block.prototype.mixin() and Blockly.Extensions.registerMixin().
This adds support for a common use pattern in extensions, and adds
error checking to avoid future incompatibilities.
2017-02-06 10:00:08 -08:00
Rachel Fenichel
4152542c2f
Fix some lint errors
2017-02-03 14:01:18 -08:00
Andrew n marshall
709295a689
Correcting math_change color
2017-01-23 17:03:05 -08:00
Andrew n marshall
7b0275cd70
Porting math.js blocks to JSON ( #846 )
...
Moving all `math.js` definitions into a single JSON array, complete with i18n syntax for all messages, dropdowns, and tooltips.
Adding Blockly.Extensions.buildTooltipForDropdown(..) to facilitate the creation and error-checking of tooltips that update based on the value of a dropdown.
Now warn on raw string in JSON 'extensions'.
2017-01-23 10:23:55 -08:00
Andrew n marshall
78dc5ed9c2
JSON definitions for colour blocks ( #838 )
...
Replaces old colour block definitions with a Blockly.defineBlocksWithJsonArray(..) call. Generator unit tests continue to load and pass, signifying compatibility with prior block definitions.
Replaces extension 'math_number_tooltip' with the reusable 'parent_tooltip_when_inline' extension, also used by colour_picker. Includes tests.
2017-01-18 13:48:46 -08:00
Andrew n marshall
a47bd93f4c
Adding extensions for JSON support of dynamic blocks. ( #834 )
...
Adding support for extensions, functions that can assist with loading blocks, much like init functions, but that can be referenced from JSON definitions. This allows JSON definitions to define dynamic blocks such as onchange handlers and mutators.
Rewrote math_number as an example pure JSON block.
2017-01-18 12:45:39 -08:00
Rachel Fenichel
5418843c12
Move the change block to the variables category
2016-07-07 14:39:45 -07:00
Neil Fraser
732e9b0659
Start using field_number.
2016-06-21 04:10:32 -07:00
rachel-fenichel
f468b6a6cb
Merge pull request #357 from rachel-fenichel/feature/field_number_js
...
Add lightweight field_number
2016-05-05 12:32:01 -07:00
Rachel Fenichel
d89d8a2113
Add lightweight field_number
2016-05-04 13:30:18 -07:00
Neil Fraser
ea71cec0c7
Trivial blocks only inherit tooltip from parent if on external inputs.
...
Recompile.
2016-05-03 17:49:10 -07:00
Neil Fraser
05f5af3df1
JSON some math block.
2016-04-04 14:56:00 -07:00
Neil Fraser
4c542240e2
Provide default getVars and renameVar functions. Issue 265.
2016-02-27 12:28:32 -08:00
Neil Fraser
06858e8972
Trivial number/text/colour blocks should inherit parent's tooltip.
2016-02-02 16:20:02 -08:00
Neil Fraser
8d87f73f45
Fix types in lists_split block.
2015-07-28 13:00:03 -07:00
Neil Fraser
179052792c
Save dynamic output types in XML.
2015-07-22 17:17:01 -07:00
Neil Fraser
e300931071
Allow multiple interpolation messages. Fix variable context menus.
2015-06-27 12:49:01 -07:00
Neil Fraser
edd3e3bf33
Lint corrections.
2015-06-17 13:05:24 -07:00
Neil Fraser
059c2f1778
Add automatic mode for internal/external input layout.
2015-06-10 18:45:15 -07:00
Neil Fraser
838a6a954b
Remove interpolateMsg.
2015-06-08 18:38:33 -07:00
Neil Fraser
9050e32954
Adding JsonInit method of creating blocks.
2015-06-08 15:54:18 -07:00
Neil Fraser
ddcf1ac969
Factor out hues into constants.
2015-01-26 01:20:03 -08:00
Neil Fraser
e69f5f4502
Add list/text join/split block.
2015-01-18 16:54:30 -08: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
08f4022b38
Automatic commit Sat Jan 11 03:00:02 PST 2014
2014-01-11 03:00:02 -08:00
ellen.spertus
ea211c5080
Manual commit
2013-12-20 16:25:26 -08:00
ellen.spertus
a8acffd81c
New initial commit with .svn directories and their contents ignored.
2013-10-30 14:46:03 -07:00