Commit Graph

4161 Commits

Author SHA1 Message Date
Beka Westberg 093467aed1 Added More Procedure Unit Tests (#2630)
* Added more procedure unit tests.

* Cleanup from rebase.

* Cleanup.
2019-09-18 16:14:06 -07:00
Neil Fraser ec34698c53 Make trashcan and zoomcontrols optional modules. (#3043)
Saves 6 KB when compiled if there is no trashcan nor zoomcontrols.
2019-09-18 15:55:12 -07:00
Neil Fraser ebdaf4dd46 Remove now unneeded requires from compile test. 2019-09-18 13:38:44 -07:00
Sam El-Husseini c524980f31 Cache dynamic dropdown options (#3036)
* Cache dynamic dropdown options and only re-generate on initialization and render.
2019-09-18 13:05:25 -07:00
Sam El-Husseini 7d76cafd61 Apply the same patch to the gulp build script. 2019-09-18 13:00:44 -07:00
Neil Fraser 63dd911338 Use regular expressions to simplify removals. 2019-09-18 13:00:44 -07:00
Neil Fraser 0add3a5e3e Add require statements to all block files. 2019-09-18 13:00:44 -07:00
alschmiedt 8b3d48b148 Update demo (#3033)
* Update the cursor demo to use the basic cursor

* Change <br> to <br />
2019-09-18 12:01:50 -07:00
Sam El-Husseini 8fae0411f7 Check if a type exists before testing instanceof (#3031)
* Check if a type exists before instance of
2019-09-17 16:28:18 -07:00
Sam El-Husseini 99c624db34 Fix Blockly.utils.global when wrapped in a module. (#3035)
* Fix Blockly.utils.global when wrapped in a module.
2019-09-17 14:07:03 -07:00
alschmiedt 9004346f7d Remove moving on the workspace (#3029)
* Remove moving on the workspace
2019-09-17 10:58:34 -07:00
Neil Fraser d9fd214850 Simplify build script (#3020)
* Remove unused imports and reorder.
* Compute default values during argument parsing, not at every end-point.
* Always rebuild JSON messages, since it just takes a split second.  Removes a complicated file-timestamp check.
* Describe what “old argument style” is, and treat it more strictly.
* Restore Python 3 compatibility (injecting Blockly version number only works on strings, not bytes).
2019-09-16 17:26:29 -07:00
Monica Kozbial e551db41e0 Merge pull request #3017 from moniika/moniika-debug-render-checkmarks
Adding checkboxes for debug rendering options to playground.
2019-09-16 17:18:32 -07:00
kozbial 94dd4e609b htmlFor > for 2019-09-16 17:16:25 -07:00
Neil Fraser 51fedc6fdb Fix compiled test. (#3030) 2019-09-16 17:05:45 -07:00
kozbial 550c13739c Removing foreach usage. 2019-09-16 17:04:18 -07:00
Beka Westberg 92eea22628 Label Field Config (#2984)
* Added label field configuration.
2019-09-16 16:53:06 -07:00
Neil Fraser bbd76368e2 Test commit 2019-09-16 16:20:51 -07:00
Neil Fraser ff33d923a2 Fix compile test.
(partially)
LGTM in person by Sam.
2019-09-16 16:15:34 -07:00
Sam El-Husseini 5cb203167e Test commit 2019-09-16 16:14:56 -07:00
Sam El-Husseini d9fcfdbc07 Blockly entry point (#3019)
* Move fields and renderers into their own entry point so folks are able to be more selective about which fields and renderers they include in their bundle.
2019-09-16 12:36:02 -07:00
alschmiedt 2c98ecaed6 Update APIs and Add New Cursor Look (#3009)
* Updates methods to be private in navigation.js

* Update cursor with new look
2019-09-16 12:33:43 -07:00
Rachel Fenichel 77185906d8 Renderers define which paths a block has. (#2981)
* Move render elements into a path object.
2019-09-16 12:13:32 -07:00
kozbial 53cb811f78 Addressing PR comments. 2019-09-16 11:42:28 -07:00
kozbial 02e5b77a20 Adding checkboxes for debug rendering options to playground. 2019-09-16 11:42:28 -07:00
Beka Westberg e05e26ab45 Fixed insertFieldAt (#2939)
* Fixed insertFieldAt.
* Updated tests to reflect upcomming config changes.
2019-09-16 11:11:18 -07:00
Beka Westberg b149aabd16 Image Field Config (#2983)
* Added image field configuration.
2019-09-16 11:05:32 -07:00
Beka Westberg 8b9816abcb Text Field Config (#2986)
* Added text input field configuration.
2019-09-16 10:08:46 -07:00
Beka Westberg af81239c42 Number Field Configuration (#2985)
* Added number field configuration.
2019-09-16 09:52:08 -07:00
translatewiki.net c2b13e81aa Localisation updates from https://translatewiki.net. 2019-09-16 18:45:59 +02:00
Sam El-Husseini e339ae26bc Move the rendering object to live on the workspace_svg (#3016)
* Move the rendering object onto the workspace allowing the various workspaces to have different renderers.
2019-09-13 14:20:34 -07:00
Sam El-Husseini fc420b7037 Support for registering renderers and switching between them (#3013)
* Added support for registering renderers and for choosing which renderer the workspace wants to use.
2019-09-13 10:30:20 -07:00
Jasper Pilgrim b517f3d7a3 Fix typo in readme (#3015)
'reqeusts' -> 'requests'
2019-09-13 08:26:07 -07:00
Sam El-Husseini e2588152c0 Merge pull request #3011 from google/fraser-delete
Code cleanup
2019-09-12 19:52:07 -07:00
Neil Fraser 5650fe51a2 Typos. 2019-09-12 18:24:48 -07:00
Neil Fraser e43e19d19a Remove three functions deprecated in 2015
We’ve had four years of console warnings, and this next release is known to be breaking.  Each is trivial to fix in code.
2019-09-12 18:04:45 -07:00
Neil Fraser 23caa12571 Error is a constructor, ‘new’ is not required. 2019-09-12 18:02:59 -07:00
Neil Fraser bf31b41a4e Delete orphaned file.
Nowhere requires ‘Blockly.DraggedConnectionManager’
2019-09-12 18:01:45 -07:00
Neil Fraser d6cb6b9832 Remove last @export tag (#3010)
* Remove last @export tag
2019-09-12 17:01:51 -07:00
Sam El-Husseini f3f3329355 Fix configure method (#2915)
* Fix configure method.
2019-09-12 17:01:03 -07:00
Monica Kozbial 7f2a1aef4d Merge pull request #3006 from moniika/moniika-dummy-input
Fix logic in shouldStartNewRow_ and between row padding in geras.
2019-09-12 13:47:07 -07:00
kozbial 8a00ed9eb2 Remove duplicate check and undo changes in debugger render. 2019-09-12 13:36:45 -07:00
kozbial 90a10e5f44 Fix logic in shouldStartNewRow_ and between row padding in geras. 2019-09-12 11:34:08 -07:00
Monica Kozbial 82e9344b8e Merge pull request #3003 from moniika/moniika-misaligned-flyout
Fixing x positioning of blocks with output connections in vertical fl…
2019-09-12 11:17:10 -07:00
kozbial a12a47e0f8 Fixing require ordering and bug in horizontal layout computation. 2019-09-12 11:05:30 -07:00
kozbial b26f50ab8d Fixing x positioning of blocks with output connections in vertical flyout. 2019-09-12 11:05:30 -07:00
translatewiki.net f0dd5d8954 Localisation updates from https://translatewiki.net. 2019-09-12 15:53:06 +02:00
alschmiedt ec07a36e44 Update cursor api (#3002)
* Move over to new implementation for cursor
2019-09-11 18:16:05 -07:00
Rachel Fenichel 6f4476c962 Textarea Field, Multiline Block (from acbart) (#2663)
* Field Textarea, text_multiline block, generators
2019-09-11 17:57:46 -07:00
Rachel Fenichel f717add5a5 Block annotations (#2997)
* Replace `@this Blockly.Block` with `@this {Blockly.Block}` in all block files.

* Fix 9 compiler warnings (JSC_USED_GLOBAL_THIS)
2019-09-11 17:50:52 -07:00