Commit Graph

2492 Commits

Author SHA1 Message Date
Sam El-Husseini
acb5d895f8 Move flyout label css into the renderer (#3780)
* Move flyout label css into the renderer and add theme options
2020-04-01 15:29:34 -07:00
Sam El-Husseini
a3dbbfd7ab Support a custom container element for the dropdowndiv, widgetdiv and tooltip. (#3772)
* Support a custom container element for the dropdowndiv, widgetdiv and tooltip
2020-03-27 17:13:46 -07:00
Monica Kozbial
a9223b0b22 Typo fixes. (#3769) 2020-03-25 15:47:27 -07:00
Sam El-Husseini
71f7285333 Fix mutator field scale (#3763)
* Fix mutator zoom scale
2020-03-23 17:34:12 -07:00
Sam El-Husseini
c7620bc3fc Fix issue #714 bubbling event when hitting a tree control group (#3761) 2020-03-23 16:32:27 -07:00
alschmiedt
7f9539e64b Fix inner html (#3759)
* Fix ie11 bug by switching from innerHtml to innerText

* Change to textContent
2020-03-20 13:46:59 -07:00
Sam El-Husseini
7e1f81cf11 Insertion marker properties in theme (#3752)
* Pipe inseriton marker colour and opacity from theme
2020-03-18 10:15:30 -07:00
alschmiedt
7d5dcf6562 Move registering objects to constructor (#3753) 2020-03-17 13:57:10 -07:00
Sam El-Husseini
2d169eabd3 Fix flyout createBlock annotation (#3749) 2020-03-16 08:45:22 -07:00
Jakub Vrána
00bb99e0ff Add non-nullable modifier to return type of functions never returning null (#3742) 2020-03-16 08:14:47 -07:00
Sam El-Husseini
14428a0da4 Fix two memory leaks (#3747)
* Fix two memory leaks
2020-03-13 14:49:08 -07:00
alschmiedt
877063b5bd Fix marker css (#3745)
* Fix marker css

* Move to css.js file
2020-03-12 15:03:02 -07:00
Sam El-Husseini
9b071ff7f7 [Zelos] Value to stack block support (#3741)
* Zelos value to stack block support
2020-03-12 11:47:47 -07:00
Sam El-Husseini
0db1f418ab Fix block connected bounds for Zelos and minimalist renderers. (#3740)
* Fix block connected bounds for zelos and minimalist renderers.
2020-03-12 11:04:29 -07:00
Sam El-Husseini
5db1574852 Move cursor on tab if we're in keyboard nav mode. (#3738) 2020-03-12 09:42:19 -07:00
Sam El-Husseini
21c7626c16 Position the zeros circle marker in the middle on top of the connection point. (#3739) 2020-03-12 09:42:10 -07:00
Sam El-Husseini
1d3a1655c6 Support multiple renderer / theme combos on the same page. (#3732)
* Support multiple renderer / theme combos on the same page.
2020-03-11 20:09:00 -07:00
Sam El-Husseini
29dc7bd7f7 Adjust marker and cursor colours from the theme (#3735)
* Support adjusting marker and cursor colours from the theme
2020-03-11 11:23:29 -07:00
Sam El-Husseini
eb07793ba8 Cleanup Blockly UI components. (#3723)
* Cleanup Blockly UI components. Remove unnecessary getters
2020-03-11 10:40:16 -07:00
Sam El-Husseini
13ac939b91 Support passing renderer overrides in options (#3734)
* Support passing in renderer options through workspace options.
2020-03-10 18:36:29 -07:00
Sam El-Husseini
a9e10807ca Support extending themes with a base theme property. (#3731)
* Support extending themes with a base theme property.
2020-03-10 10:30:13 -07:00
Sam El-Husseini
f96d1c9768 Fix warning text color. Make it black. (#3730) 2020-03-09 17:58:15 -07:00
alschmiedt
52e76dfa1d Make keyboard accessibility public (#3729) 2020-03-09 17:46:44 -07:00
Sam El-Husseini
21763b7e00 Support enabling start hats from themes (#3722)
* Support themes configuring the start hats of blocks. Add test themes
2020-03-05 17:34:31 -08:00
Sam El-Husseini
8c5c33902b Flash on render (#3721)
* Flash a block when it's renderered in debug mode
2020-03-05 13:26:10 -08:00
Sam El-Husseini
458401e48b Insertion markers to take on the inputsinline property of the source block (#3719) 2020-03-05 11:02:24 -08:00
Monica Kozbial
b14bbe7e66 Check if WidgetDiv is visible before hide logic. (#3716) 2020-02-27 10:30:14 -08:00
Beka Westberg
ec8d76f143 Add workspace comment context menu option to playground (#3708)
* Add WScomment context menu option to playground
2020-02-25 14:32:51 -08:00
Sam El-Husseini
97eb86f988 Configure zelos selected glow properties in theme (#3715)
* Configure selected and replacement glow size and colour in zelos from the theme.
2020-02-25 14:29:45 -08:00
Sam El-Husseini
60db399a8d Use flex to compute measure font metrics (#3714)
* Use flexbox to compute font dimensions instead of inline-block
2020-02-24 17:36:01 -08:00
Monica Kozbial
4432ca2e93 Cleanup centerOnBlock. (#3699) 2020-02-24 13:35:36 -08:00
Beka Westberg
981c0b5d12 Fix checkbox field rerendering on setCheckChar (#3704)
* Fix checkbox field rerendering on setCheckChar
2020-02-24 11:13:48 -08:00
Beka Westberg
868d3cf30f Fix geras collapsed rendering incorrect in RTL (#3709) 2020-02-24 11:13:05 -08:00
Sam El-Husseini
56ca1e4330 [zelos] Fix centered textinputs (#3703)
* Fix bug in centering text inputs. Shouldn't add right corner element for output only blocks.
2020-02-21 12:03:28 -08:00
Sam El-Husseini
eb40ca44ba Dynamic fonts (#3698)
* Piping themes into the renderer and ensuring fields update their size information when constants change.
2020-02-20 17:16:01 -08:00
Sam El-Husseini
8524da903b Support renderers that are ES6 classes (#3702) 2020-02-20 15:03:24 -08:00
Beka Westberg
392d25eb39 fix: Break breaking undo. 2020-02-18 16:01:18 -08:00
alschmiedt
0c60c119a2 Update to use knew variable (#3694) 2020-02-17 14:08:27 -08:00
Neil Fraser
4e2f8e6e02 Use SPDX licences.
This is a followup to #3127.
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
Rachel Fenichel
d2ef7f1c68 Merge pull request #3675 from BeksOmega/feat/empty-trashcan
Added empty trashcan function.
2020-02-10 13:52:30 -08:00
Sam El-Husseini
33e082414d Adjust what the spacers at after the top and before the bottom rows depend on. Make them depend on the top row's minHeight and desired height. (#3686) 2020-02-10 08:58:07 -08:00
Sam El-Husseini
95aadbffb1 [zelos] Set a maximum width for dynamic connection shapes. (#3685)
* Set a maximum width for dynamic connection shapes.

* Only render the left side connection if a block has a statement input
2020-02-07 15:13:51 -08:00
Beka Westberg
4416be2a30 Added const tags and fixed visibility. 2020-02-07 13:34:09 -08:00
alschmiedt
e1bb1d667e Add back setters for theme (#3674) 2020-02-07 09:20:21 -08:00
Beka Westberg
b0cd803211 Added empty trashcan function. 2020-01-31 13:15:03 -08:00
Beka Westberg
c02f703629 Added constants to animation code. 2020-01-31 13:14:39 -08:00
alschmiedt
88ad660c51 Remove check for same theme when refreshing (#3672)
* Remove check for same theme when refreshing
2020-01-30 16:05:24 -08:00
Sam El-Husseini
97d0001512 Unhighlight current item when hovering over disabled menu items (#3655) 2020-01-30 16:04:21 -08:00
alschmiedt
513e85bf4a Checks keyboardAccessibility flag before rendering (#3671) 2020-01-30 14:11:47 -08:00
Sam El-Husseini
4a94dc8a85 Unpack self-closing tags when converting domToText (#3665)
* Unpack self-closing tags when converting domToText
2020-01-27 15:32:12 -08:00