RoboErikG
52a6992dfc
Remove multi-line comments to avoid escaping ( #3231 ) ( #3232 )
...
Fixes #3230 by removing multi-line comments for procedures.
2019-10-14 11:22:08 -07:00
RoboErikG
6ff3ff2e85
Set correct defaults for Fields ( #3179 ) ( #3195 )
...
null was being converted to 0 by Number() when it should cause the
default value to be set instead. This updates FieldNumber and
FieldAngle to handle nulls correctly. Also update jsdoc.
Fixes #3177
2019-10-08 11:31:48 -07:00
Sam El-Husseini
d0772ad496
Fix compiler warnings related to fields. ( #3144 )
...
* Fix compiler warnings related to fields.
2019-10-03 15:58:46 -07:00
Sam El-Husseini
e92bae1dda
Download screenshot in playground ( #3148 )
...
* Add an option on the playground to download a screenshot of the blocks on the workspace.
2019-10-03 14:35:12 -07:00
Neil Fraser
b46a4fe286
Bring our license format up to date ( #3127 )
...
* Google changed from an Inc to an LLC.
This happened back in 2017 but we didn’t notice. Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.
* Remove project description/titles from licenses
This is no longer part of Google’s header requirements. Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).
* License no longer requires URL.
* Fix license regexps.
2019-10-02 14:46:56 -07:00
Sam El-Husseini
31a2544989
Rename sample renderer to minimalist ( #3137 )
...
* Rename sample to minimalist
2019-10-02 14:16:36 -07:00
Sam El-Husseini
d28e897e47
Add a sample renderer instance. ( #3136 )
...
* Add a sample renderer instance.
2019-10-02 13:22:54 -07:00
Sam El-Husseini
d7a7c7b4d5
Support XML serialization in Node.js ( #3126 )
...
* Support XML serialization in Node.js
2019-10-01 14:40:35 -07:00
Beka Westberg
afbb2cca1e
Moved all database related code out of headless and into rendered.
2019-09-27 18:00:06 -07:00
Beka Westberg
d5e9e4c3b4
Removed TODO.
2019-09-27 16:38:37 -07:00
Beka Westberg
1baf7d1dcf
Added a bunch of connection related tests.
2019-09-27 15:56:29 -07:00
alschmiedt
468b673b73
Fix bugs ( #3108 )
...
* Fix various bugs around keyboard nav
2019-09-27 14:34:28 -07:00
Sam El-Husseini
edf3d0cfe2
Don't require everything in uncompressed. ( #3120 )
...
* Don't require everything in uncompressed.
2019-09-27 14:26:10 -07:00
Neil Fraser
27f554c647
Strip out unused Closure functions ( #3121 )
...
No functional changes.
2019-09-27 13:30:53 -07:00
Neil Fraser
b701475984
Simplify trashcan code ( #3110 )
...
Also delete unused props in CSS.
2019-09-27 11:43:56 -07:00
Monica Kozbial
328f2c3373
Removing deprecated renderMode reference in playground. ( #3107 )
2019-09-27 11:12:49 -07:00
Monica Kozbial
f4136fdc2a
Adding test and updating TODO. ( #3102 )
...
* Adding test and updating TODO.
* changing bug number referenced in TODO
2019-09-27 11:12:37 -07:00
Sam El-Husseini
6a771a8636
Remove old node module, update tests to use the npm one. ( #3111 )
2019-09-27 10:32:52 -07:00
Sam El-Husseini
870824bc3e
Workspace theme ( #3093 )
...
* Move the theme object so it's on the workspace.
* Add support for subscribing UI elements to theme component styles and changes.
2019-09-26 16:52:17 -07:00
alschmiedt
b587ad71c5
Fix changing category color in multi playground ( #3103 )
2019-09-26 16:05:47 -07:00
Monica Kozbial
22e79ae496
Updating behavior of register functions and adding unregister. ( #3085 )
...
* Updating behavior of register functions and adding unregister.
* Updates jsdoc comments.
2019-09-26 13:23:45 -07:00
Monica Kozbial
8619ad1a0a
Re-enable block delete test. ( #3088 )
2019-09-26 13:19:25 -07:00
Neil Fraser
ddb04a3bc2
Partial code review of nav ( #3091 )
...
* Partial code review of nav
Had a few minutes free.
* Move getTopStackBlock to block
This is a generally useful function.
2019-09-26 10:19:40 -07:00
Rachel Fenichel
269f0dc381
Enable eslint rule spaced-comment
...
Fix up all remaining violations and turn the rule on.
2019-09-25 16:04:05 -07:00
RoboErikG
e69db137a7
Add a test for built file size ( #3075 )
...
* Add a test for built file size
Adds a script test for building Blockly's compressed files and
checking their size to prevent unexpected increases.
* Update size for new changes
* Add full stop
2019-09-25 15:03:31 -07:00
Monica Kozbial
e1e9513e86
Disconnect child block always for block.dispose(/* healStack */ true) ( #3073 )
...
* Disconnecting child block even if it cannot be connected to parent block.
* Bump disconnected child block.
* Added method for behavior on failed connection and updated expected behavior of unplug in unit tests.
* Removing obsolete TODO and calling new helper method in tests.
2019-09-25 10:47:29 -07:00
Neil Fraser
ddb8e46b87
Make flyouts be optional modules.
...
No Blockly instances need both Horizontal and Vertical flyouts. Dropping one of these saves 2 KB. Some don’t need flyouts at all (e.g. Blockly Games Puzzle or readonly documentation blocks).
2019-09-23 22:02:59 -07:00
Beka Westberg
593383e18a
Changed variable field to use configuration ( #3065 )
...
* Changed variable field to use new configuration.
2019-09-23 11:14:03 -07:00
Beka Westberg
9e5df6216a
Fixed comment ownership. ( #2923 )
...
* Moved comment icons to use a model-based system. The block holds the model of the comment, and the comment icon holds a reference to it.
* Reorganized the setVisible function.
* Changed how xml.js serializes and deserializes comments.
2019-09-20 13:16:07 -07:00
Sam El-Husseini
cb564053b3
Merge toolbox navigation ( #3054 )
...
* Merge both types of keyboard navigation (with and without accessibility mode).
2019-09-19 16:36:39 -07:00
Beka Westberg
1c3db256fa
Added angle field config ( #3038 )
...
* Added angle field configuration.
2019-09-19 16:15:20 -07:00
alschmiedt
6516363469
Change setLocation to setCurNode ( #3051 )
...
* Change setLocation to setCurNode
2019-09-19 15:15:14 -07:00
Beka Westberg
a8a8c320d5
Changed multiline field to use new configuration ( #3044 )
...
* Changed multilineinput field to new configuration.
2019-09-18 16:30:17 -07:00
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
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
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
alschmiedt
9004346f7d
Remove moving on the workspace ( #3029 )
...
* Remove moving on the workspace
2019-09-17 10:58:34 -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
ff33d923a2
Fix compile test.
...
(partially)
LGTM in person by Sam.
2019-09-16 16:15:34 -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
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