Commit Graph

2618 Commits

Author SHA1 Message Date
Rachel Fenichel
1fdf109b4b Rebuild all files 2018-04-13 17:09:32 -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
Rachel Fenichel
eaafc23c09 Merge pull request #1781 from rachel-fenichel/master_to_develop
Master to develop
2018-04-13 16:41:25 -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
Rachel Fenichel
f49521b88b Rebuild core files 2018-04-13 14:51:30 -07:00
Rachel Fenichel
b5ac0b71a3 Merge branch 'master' into master_to_develop 2018-04-13 14:46:50 -07:00
Rachel Fenichel
91f36345f6 Merge pull request #1777 from rachel-fenichel/bugfix/1658
Fix context menus on blocks with variables
2018-04-13 13:46:15 -07:00
Rachel Fenichel
1dfb53b337 Fix comment 2018-04-13 13:39:28 -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
5c541c6f99 Setting the value of math_numnber toolbox blocks to 123. (#1773)
Using 123 as a better indicator to the user this block can represent any number,
and the user should replace this value with their own desired number.
2018-04-12 14:46:37 -07:00
Rachel Fenichel
df3e826087 Merge pull request #1774 from rachel-fenichel/bugfix/1425
Work around a problem with RTL mutators
2018-04-12 13:30:35 -07:00
Rachel Fenichel
abde1134c7 Merge pull request #1772 from rachel-fenichel/feature/local_build
Create a script to do local builds of core Blockly.
2018-04-12 12:01:29 -07:00
translatewiki.net
bdfbdeeae9 Localisation updates from https://translatewiki.net. 2018-04-12 09:09:23 +02:00
Rachel Fenichel
01e48608fb Fix my definition of plausible 2018-04-11 18:08:49 -07:00
Rachel Fenichel
6606c7c6fc Fix excess newlines 2018-04-11 17:08:18 -07:00
Neil Fraser
0ac5b2773e Remove rogue line breaks in translated messages. 2018-04-11 17:01:15 -07:00
Rachel Fenichel
40e74d4d65 Check if the browser's value was plausible, and use it if so. 2018-04-11 17:00:39 -07:00
Neil Fraser
1d385f8d69 Require goog.userAgent in the correct files. 2018-04-11 16:59:35 -07:00
Rachel Fenichel
29571e91e2 Work around a problem with RTL mutators 2018-04-11 16:17:06 -07:00
Rachel Fenichel
42cb962cef Apply review feedback. 2018-04-11 15:26:05 -07:00
Rachel Fenichel
b5b7aeaf1b Create a script to do local builds of core Blockly. 2018-04-11 14:19:49 -07:00
Rachel Fenichel
9a62e6aa70 Merge pull request #1767 from rachel-fenichel/metrics_test
Simple tests for getContentDimensions
2018-04-11 13:41:12 -07:00
Rachel Fenichel
e11ec48ed3 Break tests out into individual cases 2018-04-11 13:35:54 -07:00
Andrew n marshall
ecc41372d7 Fixing issue 1760: nulls in JSON array for block definitions. (#1768)
JSON array with null or undefined value will now skip the offending item, and proceed to load following items. Added tests for null and undefined array elements.

* Testing handling null and undefined id in block definition.
* Adding test utility function to capture console warnings.
* Test assumption that creating a simple block will not cause a warning. This is assumed when later checking warning counts.
2018-04-11 10:22:30 -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
9f07d04709 Simple tests for getContentDimensions 2018-04-09 11:28:18 -07:00
translatewiki.net
d3a9d96841 Localisation updates from https://translatewiki.net. 2018-04-09 08:14:44 +02:00
Rachel Fenichel
59faff4979 Merge pull request #1766 from rachel-fenichel/lint/args_ignore_pattern
Add argsIgnorePattern to the eslintrc
2018-04-06 17:49:28 -07:00
Rachel Fenichel
52e0241f66 Add argsIgnorePattern to the eslintrc 2018-04-06 13:29:22 -07:00
Rachel Fenichel
bd42a09f31 Merge pull request #1763 from rachel-fenichel/feature/goto_block
Add a function to scroll the workspace to center on a given block
2018-04-06 11:42:10 -07:00
Rachel Fenichel
112f48592f Return early if there's no block 2018-04-05 18:19:56 -07:00
Rachel Fenichel
5964278e7d Handle RTL 2018-04-05 18:16:05 -07:00
Rachel Fenichel
3a4adb3b0d Scroll to the procedure definition from the procedure call context menu 2018-04-05 17:57:47 -07:00
Rachel Fenichel
2884bdfaa8 Use hideChaff instead of WidgetDiv.hide; move function closer to similar functions. 2018-04-05 17:42:37 -07:00
Neil Fraser
35f7357878 Strip coordinates from storage of single block stacks.
When loading, place blocks with no coordinates at 10,10 instead of 0,0.
2018-04-05 14:04:06 -07:00
Rachel Fenichel
8609d502c9 Add a function to scroll the workspace to center on a given block 2018-04-05 11:33:06 -07:00
translatewiki.net
d06ebea082 Localisation updates from https://translatewiki.net. 2018-04-05 09:14:08 +02:00
Rachel Fenichel
172b60f404 Merge pull request #1761 from trodi/disabled-toolbox-block
Allow block xml disable tag to be more accepting
2018-04-04 13:32:08 -07:00
Troy McKinnon
65d0b8fda7 Allow block xml disable tag to be more accepting 2018-04-04 13:42:01 -05:00
Rachel Fenichel
65fe7cc96a Merge pull request #1752 from samelhusseini/develop_unplugblock
Snap a single block from a stack (if meta key is pressed)
2018-04-02 09:27:09 -07:00
Sam El-Husseini
3926b3f7aa Heal stack of any of the meta keys are pressed when dragging. Fixes Google/blockly#1485 2018-03-30 14:25:50 -07:00
Rachel Fenichel
ccca62b263 Merge pull request #1751 from jandrewb/jandrewb-patch-1
Fix #1745
2018-03-30 13:59:19 -07:00
jandrewb
237a7d5590 Fix #1745 2018-03-29 19:46:16 -05:00
picklesrus
063b5d880c Add a test block with a dropdown containing both text and images (#1748) 2018-03-29 13:15:20 -07:00
translatewiki.net
d13d303fa8 Localisation updates from https://translatewiki.net. 2018-03-29 09:03:35 +02:00
Rachel Fenichel
9304b6bddb Merge pull request #1742 from samelhusseini/contextmenuflyout
Don't show create VAR and create Function context menu options when in the flyout
2018-03-28 10:52:47 -07:00
Rachel Fenichel
a8ff2af394 Merge pull request #1737 from rachel-fenichel/feature/enable_pinch_to_zoom
Enable touch gestures and pinch-to-zoom
2018-03-28 10:24:12 -07:00
Rachel Fenichel
24b7ab1052 Merge pull request #1738 from rachel-fenichel/bugfix/1484
Create an empty pattern if there is no grid.
2018-03-28 10:23:54 -07:00
Sam El-Husseini
c248ff8f43 Remove chromedriver 2018-03-27 23:42:16 -07:00