alschmiedt
034bcb00bb
Replace setting colour to setting style in block definitions
2018-12-18 10:01:05 -08:00
alschmiedt
9a1d6684d0
Pulls from MakeCode fork the ability to rename and delete variables in flyout
2018-11-29 14:17:56 -08:00
Nadya Febiana Djojosantoso
633bbbc8fa
Add math_atan2 block with two inputs
2018-10-11 13:12:23 -07:00
Rachel Fenichel
6092e4c517
Calls to getAllBlocks should pass a value for _ordered_
2018-09-13 16:06:19 -07:00
duzc2dtw@gmail.com
0ea4878958
fix Missing semicolonsemi
2018-09-13 01:35:10 +08:00
duzc2dtw@gmail.com
0dfc93f72d
get the variable from the field and use its type.
2018-09-12 11:19:17 +08:00
duzc2dtw@gmail.com
6e589e3491
fix bug.
...
when create get/set dynamic variable block from set/get ,
lost the type.
2018-09-11 00:44:27 +08:00
RoboErikG
9eacd7d3b9
Disable/enable function calls along with their definitions ( #2019 )
...
Fixes #1344
Extends the event listener on procedure caller blocks to also check
for their definition being enabled/disabled and update their own
state in response.
2018-08-23 11:18:29 -07:00
Andrew n marshall
dec9a2c743
Correcting annotations of procedure block mixin functions.
2018-08-22 12:55:16 -07:00
Gokula Krishna
eef7e8f923
Change the XML attribute key from var-id to varid
2018-07-25 10:56:22 +08:00
Gokula Krishna
2c3ef64609
Remove varId attribute while saving
2018-07-24 17:29:35 +08:00
Gokula Krishna
97d3956c43
Prioritize current key var-id
2018-07-24 13:31:04 +08:00
Gokula Krishna
6275c6eef7
Change XML attribute for procedure from varId to var-id
2018-07-24 11:12:17 +08:00
Andrew n marshall
4860e34f51
Removing goog.* uses from blocks/*.js files ( #1975 )
...
* Removing goog.arrays.equals() in blocks/procedures.js, with minor refactor.
* Replacing goog.dom.createDom() in blocks/procedures.js, blocks/variables.js, blocks/variables_dynamic.js, and blocks/loops.js.
2018-07-16 17:01:12 -07:00
Neil Fraser
c8bfc888c8
Throw errors instead of strings. ( #1974 )
...
Blocks and generators
2018-07-16 16:33:44 -07:00
Rachel Fenichel
5b1e249adc
Fix lint
2018-06-25 12:12:24 -07:00
Neil Fraser
6319cab317
Simplify RTL handling of '<' and '>'. ( #1823 )
...
Tested in Playground and RTL demo.
2018-05-10 15:34:06 -07:00
Neil Fraser
4cb4b42f8d
Use named properties on Msg.
2018-04-27 11:50:51 -07:00
Andrew n marshall
ab8692652a
Revert "Removing namespace declarations for deprecated and unused namespaces. ( #1796 )" ( #1809 )
...
This reverts commit 75459abfdd .
2018-04-20 08:08:11 -07:00
Andrew n marshall
75459abfdd
Removing namespace declarations for deprecated and unused namespaces. ( #1796 )
...
These namespaces use to contain the original block hue constants,
but were deprecated (via comment, except for procedures) over a year
ago. With the removal of those constants, the declarations were
creating empty, unused objects.
2018-04-18 15:32:26 -07:00
Andrew n marshall
b2cb96b5b1
Mark Blockly.Constants.Colour and .Lists depreacted. ( #1797 )
...
Both are only used by the hue constants, which are already deprecated.
2018-04-17 13:29:50 -07:00
Rachel Fenichel
f52b75a198
Merge pull request #1778 from AnmAtAnm/shadow-pop
...
Rewrote LOGIC_COMPARE_ONCHANGE_MIXIN to fix #1408 .
2018-04-13 17:04:12 -07:00
Andrew n marshall
ef23b0e4ef
Do not reconnect a previous shadow block.
...
Assume unplug() will recreate a new correct shadow.
2018-04-13 16:26:20 -07:00
Andrew n marshall
c0e220214c
Rewrote LOGIC_COMPARE_ONCHANGE_MIXIN to fix #1408 .
...
* Create prevBlock_ upon first call to onchange.
* Revert state upon an incompatible combination, bumping the new incompatible
block, instead of the old block. Thus, the shadow is never the bumped block.
Bug:
* The undo stack get caught in a loop, and will never undo back to a state
equivalent to the previous action.
2018-04-12 17:27:20 -07:00
Rachel Fenichel
23666664fa
Fix context menus on blocks with variables
2018-04-12 16:56:07 -07:00
Andrew n marshall
e9d8e00a55
Making all blocks use the MSG colour values. ( #1749 )
...
* Making all blocks use the MSG colour values.
* Deprecating Blockly.Constants.Lists.HUE and similar constants.
* Removing deprecated Blockly.Blocks.lists.HUE constants.
* Allowing message references in the Block.setColour() parameter.
* Adding checking of older constants, ensuring they are not overwritten.
2018-04-09 17:37:47 -07:00
Rachel Fenichel
3a4adb3b0d
Scroll to the procedure definition from the procedure call context menu
2018-04-05 17:57:47 -07:00
Sam El-Husseini
134b32fe56
Don't show create var getter in block contextmenu when in flyout
2018-03-27 23:40:54 -07:00
Rachel Fenichel
b402f3c204
Add @this annotations in blocks/text.js
2018-03-26 14:32:49 -07:00
Rachel Fenichel
6d83b9bc28
Add keyword-spacing rule to eslint
2018-03-19 13:10:29 -07:00
zgtm
14aa53e0fa
Move ordinal in block 'text_getSubstring' ( #1656 )
...
On updating the block 'text_getSubstring', the ordinal string 'ORDINAL1' is moved when the corresponding corresponding input field is moved so that the ordinal string does not end up at the end of the block.
2018-02-26 10:44:01 -08:00
Rachel Fenichel
20b7b7a8eb
Update comment on loop types
...
See https://groups.google.com/d/msg/blockly/v6W3BGN9P_o/RH91g94RBAAJ
2018-02-20 17:01:29 -08:00
Rachel Fenichel
c4d114eb0f
Merge pull request #1644 from rachel-fenichel/bugfix/1642
...
Serialize variable IDs in procedure definitions
2018-02-20 14:20:52 -08:00
Rachel Fenichel
74fd58131b
Serialize variable IDs in procedure definitions
2018-02-20 13:18:48 -08:00
Andrew n marshall
f45c6faf05
Fix #1619 . buildTooltipWithFieldValue() => buildTooltipWithFieldText() ( #1638 )
...
Fix #1619 . buildTooltipWithFieldValue() => buildTooltipWithFieldText()
The "value" of FieldVariables was the variable id.
However, we usually want the field text for the human visible tooltip.
Refactoring and renaming buildTooltipWithFieldValue to use the field
text.
2018-02-16 16:51:18 -08:00
Rachel Fenichel
af59e27d96
Cleanup
2018-02-16 11:02:03 -08:00
Rachel Fenichel
f3a4664dea
Delete extra variables at the end of a procedure argument edit
2018-02-15 17:18:23 -08:00
RoboErikG
551b05b4f1
Fix typo in BKY message key ( #1616 )
...
We had {% instead of %{
Fixes #1613
2018-02-14 10:52:49 -08:00
Rachel Fenichel
3e62ffc20a
Split at higher level for multiline function calls
2018-01-24 11:26:41 -08:00
Rachel Fenichel
9a53e96d53
More lint fixes
2018-01-23 18:22:53 -08:00
Rachel Fenichel
3f61f71f35
Merge pull request #1531 from google/variables_by_id
...
Variables by ID
2018-01-16 17:54:55 -08:00
Rachel Fenichel
b593d44379
Make the potential variable map null when not needed
2018-01-12 14:51:02 -08:00
Rachel Fenichel
1fa27fa043
Update comments and remove unused functions
2018-01-12 12:03:28 -08:00
Neil Fraser
870f7b7f8a
Fix document detection.
...
Andrew LGTMs in person.
2018-01-08 15:10:14 -08:00
Rachel Fenichel
5d6d7519cd
Remove some TODOs; add a variable-referencing block to the simple playground flyout
2018-01-08 14:14:26 -08:00
Neil Fraser
7413db1089
Code style
2018-01-05 15:56:20 -08:00
Rachel Fenichel
ea6bf607fa
Add displayRenamedVar to procedures_defnoreturn
2018-01-04 16:38:36 -08:00
Rachel Fenichel
832dae009e
Cleanup
2018-01-04 16:32:23 -08:00
Rachel Fenichel
77cf3ddc33
Track variable IDs for procedure arguments
2018-01-04 16:16:12 -08:00
Rachel Fenichel
9b091a8f9e
Update procedure generators
2018-01-02 16:27:17 -08:00