Commit Graph

4611 Commits

Author SHA1 Message Date
Sam El-Husseini
20e55b67d7 Fix bug with dropdown menu propagating the opening click event to a menu item (#3570)
* Prevent dropdown field menu from propagating a click event onto a menu item when the dropdown appears above the field
2020-01-09 18:08:29 -08:00
Sam El-Husseini
e162f3b45f [zelos] Don't add next notch in a statement input if the connection block doesn't have a next connection (#3562)
* Don't add a next notch for statement inputs that have a connected block without a next connection.
2020-01-09 08:37:20 -08:00
Sam El-Husseini
e530f209cd Fix bug in zelos tight nesting code. (#3565) 2020-01-08 08:47:10 -08:00
Monica Kozbial
26db9167db Move of render contant START_HAT into ConstantProvider. (#3563)
* Move of render contant START_HAT into ConstantProvider.
2020-01-07 16:18:05 -08:00
Sam El-Husseini
c3867443f5 Fix value to stack width measurement (#3559)
* Include width of connected block in value to stack width measurement.
2020-01-07 16:05:34 -08:00
Sam El-Husseini
7ac83a318b Remove Firefox fix for avoiding dropdown scrollbars as it no longer repros (#3560) 2020-01-07 16:05:08 -08:00
Beka Westberg
f10c48648e Changed mutator getWorkspace to package. (#3561) 2020-01-07 14:47:28 -08:00
Sam El-Husseini
8151b94c2c Add output shape on a block. Add squared shape. (#3558)
* Add output shape on the block. Add squared shape.
2020-01-07 14:10:51 -08:00
Beka Westberg
6d1bb201f7 feat: Improved procedure arg interaction. (#3527)
* feat: Improved procedure arg interaction.

* Added docs.

* Fixed typos and typings.

* Fixed typings?

* Changed visibility to private.
2020-01-07 13:55:46 -08:00
Sam El-Husseini
267877115f Adjust single field row alignment so that it takes up less vertical space (#3557) 2020-01-07 13:52:57 -08:00
Sam El-Husseini
016a4f1b0a Fix bottom horizontal flyout delete areas (#3551) 2020-01-06 17:03:41 -08:00
Monica Kozbial
835a6120a2 Removing leftover constant MIN_BLOCK_Y in BlockSvg. (#3552) 2020-01-06 16:34:51 -08:00
Sam El-Husseini
c1ff28fcd2 Rename arrowTop and arrowBottom css classes to blocklyArrowTop and blocklyArrowBottom (#3548) 2020-01-06 16:09:23 -08:00
alschmiedt
a1ed9ab791 Update component names (#3549) 2020-01-06 13:18:15 -08:00
Sam El-Husseini
8d6ff39e64 [zelos] Support dropdown fields with no border rect (#3547)
* Dropdown fields without a border rect.
2020-01-06 13:16:59 -08:00
Sam El-Husseini
ec0ba27afc Reduce an empty row surrounded by statement inputs to match size of bottom row (#3544) 2020-01-06 12:39:07 -08:00
Sam El-Husseini
6794f282d4 [zelos] Fix breakout loop block (#3545)
* Fix breakout loop block by only applying the small padding if the block doesn't have a statement input
2020-01-06 12:38:54 -08:00
Neil Fraser
cd1d18b7a0 STRICT is no longer supported by Closure Compiler
Apparently 'PRUNE' is the new option, but it's undocumented.  More info:
https://github.com/google/blockly-games/issues/176
2020-01-06 11:04:24 -08:00
translatewiki.net
f17c0ae21c Localisation updates from https://translatewiki.net. 2020-01-06 17:39:50 +01:00
alschmiedt
6f82667d62 Fix key map (#3539)
* Update key map functions access to public
2020-01-03 16:12:40 -08:00
Sam El-Husseini
b6596ceddb Deal with the case where we have two dummy inputs on the same row, one with left alignment and the other right. (#3540) 2020-01-03 15:31:28 -08:00
Sam El-Husseini
8c80c3e509 [zelos] Bump / tight nest for all rows that are preceded and followed by a notch (#3541)
* Bump inputs past notch for every row that has a prev and next notch. Use the same logic for tight nesting.
2020-01-03 15:31:11 -08:00
alschmiedt
bfa6fa6581 Removes ability to enter accessibility mode using shift click (#3538)
* Removes ability to enter accessibility mode using shift click
2020-01-03 11:21:42 -08:00
Sam El-Husseini
f06d7b3cfd Fix scrolled text input widgetdiv positioning. (#3533)
* Fix scrolled text input widgetdiv positioning.

* Fix dropdown div bounds element when scrolled.
2020-01-02 17:19:32 -08:00
alschmiedt
4ce67bb108 Fix moving cursor when block mutates (#3535)
* Fix moving cursor when block mutates
2020-01-02 15:12:06 -08:00
Sam El-Husseini
06c714d13b Fix dropdown field alignment in zelos when baseline is not centered (IE / Edge) (#3534) 2020-01-02 14:36:06 -08:00
translatewiki.net
5651ed31b8 Localisation updates from https://translatewiki.net. 2020-01-02 14:31:00 +01:00
translatewiki.net
34bc1e579b Localisation updates from https://translatewiki.net. 2019-12-31 07:23:26 +01:00
translatewiki.net
b27d6ff043 Localisation updates from https://translatewiki.net. 2019-12-26 12:31:15 +01:00
translatewiki.net
54cb686dcd Localisation updates from https://translatewiki.net. 2019-12-23 15:45:23 +01:00
alschmiedt
9347348f46 Update the keyboard nav demo (#3512) 2019-12-18 09:37:02 -08:00
Sam El-Husseini
3d66eab311 [zelos] Output connection position (#3516)
* Move connection point for output connections to the left and centerline
2019-12-16 14:06:10 -08:00
Sam El-Husseini
88451457a2 [zelos] Jagged teeth (#3514)
* Update jagged teeth code to use height / width, and use 0 for zelos.
2019-12-16 14:05:50 -08:00
Sam El-Husseini
034ae878c6 Fix gulp blocks compile build (#3519)
* Fix gulp build by adding Comment, Mutator and Warning to the remove regex.
2019-12-16 14:05:31 -08:00
translatewiki.net
b861b7868a Localisation updates from https://translatewiki.net. 2019-12-16 15:51:35 +01:00
Sam El-Husseini
38e2b9d3ca [zelos] Statement input centreline (#3513)
* Make statement inputs in zelos use the top row centreline.
2019-12-15 02:34:58 -08:00
Sam El-Husseini
c892496668 Update zelos constants to use GRID UNIT, add shadow dummy input height (#3515) 2019-12-15 02:34:39 -08:00
translatewiki.net
77951c585e Localisation updates from https://translatewiki.net. 2019-12-12 15:18:47 +01:00
alschmiedt
7b35cfa02d Ws cursor move (#3509)
* Add actions to move the cursor around the workspace
2019-12-11 21:37:52 -08:00
Sam El-Husseini
595bc5270f Remove BEFORE/AFTER statement input spacer measurable (#3506)
* Remove before / after statement input measurable and use spacer properties instead.
2019-12-11 19:29:31 -08:00
Sam El-Husseini
adc06cc544 [zelos] Add extra offset for statement input to account for right corner width (#3508)
* Add additional offset to the statement input in zelos to account for the width of right corner.

* inside corners
2019-12-11 17:00:22 -08:00
Sam El-Husseini
bb5939f77c [zelos] Multi-line rendering (#3501)
* Add isMultiRow property and computation for padding with multirow blocks.
2019-12-11 14:12:36 -08:00
Beka Westberg
78e2fb2f4b Fixed adding a variable field programmatically when it has a following field. (#3468)
* Fixed adding a var field through mutator error.
2019-12-11 14:10:38 -08:00
Rachel Fenichel
17fa526e0e Merge pull request #3315 from shakao/hex
Handle 0x hex values in color parsing
2019-12-11 14:00:03 -08:00
Zufeng
07b31489b5 Allow code demo to shrink more (#3345)
If the width goes below a certain threshold,
some tabs are replaced with a single tab with a select menu.
2019-12-11 13:53:37 -08:00
Rachel Fenichel
680377684f Merge pull request #3505 from google/fraser-grid
Restore support for 0-length grid lines.
2019-12-11 13:50:33 -08:00
Sam El-Husseini
2b335dcb6b Make alignment common renderer behaviour (#3498)
* Make alignment common
2019-12-11 13:42:10 -08:00
Neil Fraser
5b46652e90 Restore support for 0-length grid lines.
Resolves #3503
2019-12-11 01:24:51 -08:00
Sam El-Husseini
38fe5189bb [zelos] Limit vertical tightnesting (#3504)
* Limit vertical tight nesting to blocks with a certain height

* Use const.
2019-12-10 16:51:36 -08:00
Sam El-Husseini
5852bef90d Inject constants CSS in createDom (#3502)
* Inject constants CSS in createDom instead. Use a random identifier to pre-emptively set CSS that uses the disabled pattern id.
2019-12-10 15:00:32 -08:00