Neil Fraser
8fba5cd044
Fix selection border on blocks that have been highlighted.
2016-11-15 17:49:51 -08:00
Neil Fraser
c27841f8df
Fix compiler errors.
2016-11-15 16:41:11 -08:00
Andrew n marshall
e5d25bb686
String reference in JSON string messages ( #741 )
...
* Adds message references to message string interpolation, in the form of %{BKY_STRING}.
* Re-adding CONTROLS_IFELSE block using the new syntax, referencing to CONTROL_IF equivalents.
2016-11-15 15:51:51 -08:00
Neil Fraser
f6aef459fc
API-breaking cleanup. But doubtful anyone will be affected. ( #748 )
...
* Make add/removeClass return whether they did anything.
* Move more functions onto utils.
* Move bind functions to Blockly.
* Routine recompile.
2016-11-15 13:54:33 -08:00
picklesrus
7f02c19bfe
Improve performance of block dragging. This is a backport of the blo… ( #732 )
...
Improve performance of block dragging. This is a backport of the block drag surface from scratch-blocks. At the beginning of a block drag, blocks get moved to a drag surface which then translates using translate3d to avoid repainting the entire svg on every mouse move. At the end of the drag, the blocks are dropped back in the svg in their new position.
2016-11-15 13:19:49 -08:00
Rachel Fenichel
1f67654088
Merge pull request #736 from google/fraser-develop
...
Allow images in dropdown menus.
2016-11-15 13:07:46 -08:00
Neil Fraser
594c46785f
Remove obsolete Gecko image hack. Apparently this has been fixed in Gecko.
2016-11-14 17:36:02 -08:00
Rachel Fenichel
b5822e2925
Revert "Revert "Rebuild nov 3 16""
...
This reverts commit c8ca24a000 .
2016-11-11 17:05:13 -08:00
Rachel Fenichel
d04d8280c7
Merge branch 'master' into merge_master_to_develop_nov_11_16
2016-11-11 16:17:53 -08:00
Neil Fraser
32713726dc
Don't split dropdown text if there is an image.
2016-11-11 04:27:54 -08:00
Rachel Fenichel
1e631965c1
Merge pull request #729 from rachel-fenichel/feature/import_definitions
...
Add ability to define blocks with a json array
2016-11-09 13:43:30 -08:00
Rachel Fenichel
26c10fe585
lint
2016-11-09 13:42:58 -08:00
Rachel Fenichel
34a6d5e6e4
simplification
2016-11-09 13:12:18 -08:00
Rachel Fenichel
d91ba9e2f9
Move injected css to start of head
2016-11-08 16:54:35 -08:00
Neil Fraser
c8ca24a000
Revert "Rebuild nov 3 16"
2016-11-08 16:46:00 -08:00
Rachel Fenichel
da5c7bcd2a
Fix workspace factory bug and rebuild
2016-11-08 16:44:16 -08:00
Rachel Fenichel
80e9a5663c
Fix bug with longpress and touch on ios
2016-11-08 16:18:05 -08:00
Rachel Fenichel
406fe8c26a
Message fixes and lint
2016-11-08 16:16:02 -08:00
Neil Fraser
01ab0b4ab6
Add arrow to images in dropdown menus. Fold updateTextNode_ into render_.
2016-11-06 21:19:07 -08:00
Neil Fraser
98c341bcfb
Allow images in dropdown menus.
2016-11-05 00:17:07 -07:00
Neil Fraser
5b033e2f7b
Misc cleanup.
2016-11-05 00:15:39 -07:00
Rachel Fenichel
08efd1381c
Merge pull request #640 from rachel-fenichel/feature/disallow_shadow_variables
...
disallow variables on shadow blocks
2016-11-03 16:59:07 -07:00
picklesrus
71f5f59642
Slightly simplify flyout setBackgroundPath method by passing the height and width calculated in similar ways. Before we were doing some calculations inside setBackgroundPath and some outside. ( #730 )
2016-11-03 12:06:03 -07:00
Neil Fraser
917b8ff542
Lint and style tweaks.
2016-11-02 17:11:41 -07:00
Rachel Fenichel
f9385d98d3
Add ability to define blocks with a json array
2016-11-02 16:52:37 -07:00
Andrew n marshall
52ffc64f6a
Refactor variable rename to handle UI actions more directly. ( #726 )
...
FieldDropdown now has onItemSelected(..) method to handle the menu item selection action. Variable renames and deletes are now handled here, instead of during validation.
Also fixes an issue deleting variables used by less than two blocks.
Fixes #723 .
2016-11-01 16:32:10 -07:00
Rachel Fenichel
afca4264ca
Add option to style flyout buttons as labels
2016-10-31 15:20:16 -07:00
Rachel Fenichel
4d02e9bee6
lint
2016-10-31 14:38:55 -07:00
Rachel Fenichel
703bd96f7e
Allow creation of buttons with developer-designated callbacks
2016-10-31 14:24:00 -07:00
Neil Fraser
ddf3b72a7f
Prevent custom indents from getting into an infinite loop.
2016-10-31 11:32:04 -07:00
Andrew n marshall
0156f2e103
Addressing comments from #703
2016-10-28 16:04:57 -07:00
Rachel Fenichel
0c015fd439
Merge pull request #710 from rachel-fenichel/feature/save_load_optimization
...
Disable resizing the workspace during clearing and loading from xml, …
2016-10-28 15:01:05 -07:00
Neil Fraser
144be4d49f
Block highlighting
...
* Separate block selection (editing) from highlighting (execution).
* Remove add/removeDragging functions. They clutter the API for no reason.
2016-10-26 18:39:56 -07:00
Neil Fraser
6300faf85e
Set main workspace when scrollbar clicked. Issue #704
2016-10-23 20:31:59 -07:00
Neil Fraser
12e6a7a535
Also listen to right-button in menus. #456
2016-10-23 07:31:15 -07:00
Neil Fraser
4d65b606bd
Set current workspace when clicking zoom controls. Issue #440
2016-10-23 06:38:04 -07:00
rachel-fenichel
3d53b1e7fb
Fix annotation
2016-10-21 17:34:59 -07:00
Rachel Fenichel
e2e2a3e298
Disable resizing the workspace during clearing and loading from xml, as an optimization
2016-10-21 14:30:30 -07:00
Andrew n marshall
81499e4392
Merge pull request #703 from AnmAtAnm/alert-confirm-prompt
...
Adding hooks to support custom alert, confirm, and prompt dialogs
2016-10-20 17:20:00 -07:00
Andrew n marshall
8f3b4bcb5e
Replaces calls to window.alert(), window.confirm(), and window.prompt() with Blockly.alert(), Blockly.confirm(), and Blockly.prompt(). These are designed to allow app developers to replace the dialogs with versions that match their own open app, possibly avoiding modal browser dialogs. They each take a callback, so the developer has the opportunity to implement non-modal behavior.
2016-10-20 16:30:40 -07:00
Neil Fraser
c2bf01ab48
Dragging blocks towards the toolbox should create blocks rather than do nothing.
2016-10-19 17:15:57 -07:00
Rachel Fenichel
0537f4829e
Merge pull request #685 from trodi/toolbox-typing
...
Add a few missing type definitions
2016-10-18 17:31:54 -07:00
Rachel Fenichel
8d4401430c
Merge pull request #690 from twodee/upstream
...
Stops duplicating on rename of old ID to old ID.
2016-10-17 16:30:51 -07:00
Rachel Fenichel
0d9ac67920
Merge pull request #597 from svbatalov/toolbox-hscroll-patch-event
...
Fix toolbox scrolling in horizontal layout
2016-10-17 13:12:14 -07:00
Neil Fraser
7550cb1e96
Fix loading of Block Factory in Firefox.
2016-10-14 02:20:25 -07:00
Neil Fraser
ff48285a86
Block factory cleanup. Fix one-based list option.
2016-10-13 20:18:44 -07:00
Neil Fraser
5df55ddea0
Block(ly) Factory prompts should have defaults. Drop unused copy of colourpicker code.
2016-10-11 12:16:17 -07:00
picklesrus
dad6e47f86
Fix null pointer bug from commit 7928fac3ce. In this context the options object is in "this", not workspace. ( #692 )
2016-10-11 11:03:03 -07:00
Rachel Fenichel
acaf81185e
Mouseover behaviour fixes ( #684 )
...
* fix broken tooltips
* use bindEvent to make mouseover and mouseout work in the flyout
2016-10-11 10:55:42 -07:00
Chris Johnson
832df810c1
Stops duplicating on rename of old ID to old ID.
2016-10-09 13:11:21 -05:00