Rachel Fenichel
6990ac5efd
Fix annotation and remove redundant 'Blockly.'
2020-07-16 14:08:27 -06:00
Rachel Fenichel
2f5663b1ec
Add deprecation helper + 2 uses
2020-07-16 13:59:32 -06:00
Sam El-Husseini
0f3db47fa5
Use generics to derive SVG element type ( #4036 )
...
* Encapsulate type in a generic to automatically derive type of SVG element when using createSvgElement
2020-07-13 10:40:31 -07:00
alschmiedt
95986574cc
Update Console Logs for Toolbox ( #3986 )
...
* Add check for toolbox categories
* Fix
2020-06-22 16:26:30 -07:00
alschmiedt
b1211f6dd2
Add a console warning for defining a toolbox using JSON ( #3937 )
2020-06-10 11:11:28 -07:00
Sam El-Husseini
717e342b82
Register themes ( #3932 )
...
* Add theme registry:
* Fix mocha tests
2020-06-05 09:23:00 -07:00
alschmiedt
b77a30450e
Fix performance ( #3931 )
...
* Speed up performance for converting the xml to json
2020-06-05 09:22:52 -07:00
Sam El-Husseini
d6ad7c488b
Add theme registry:
2020-06-04 17:56:56 -07:00
alschmiedt
26e84fef11
Add ability to add blocks by type ( #3928 )
...
* Add ability to add blocks by type
2020-06-04 12:49:04 -07:00
Sam El-Husseini
e3babee1f3
Add Blockly.utils.Metrics @record ( #3913 )
...
* Add Blockly.utils.Metrics
2020-05-21 15:03:17 -07:00
Sam El-Husseini
fd916fdb9b
Bounding Box interface ( #3906 )
...
* Add an interface describing a bounding box registered on the workspace
* Clear the bounding box array
* PR comments
* Update chromedriver
2020-05-19 18:06:11 -07:00
alschmiedt
d0e91a15a2
Toolbox definition ( #3891 )
...
* Add support for creating a toolbox with JSON
2020-05-13 08:16:53 -07:00
Sam El-Husseini
60a8eb63fe
Fix contextmenu / dropdown field menu accessibility ( #3892 )
...
* Fix contextmenu and dropdown field accessibility
2020-05-08 09:22:28 -07:00
Sam El-Husseini
33cb4d6feb
Fix defineTheme startHats ( #3842 )
...
typeof null === "object", go figure..
2020-04-22 15:38:50 -07:00
Sam El-Husseini
493c89869e
Rename dom Node enum ( #3824 )
...
* Rename Node enum to NodeType to avoid conflict with type Node
2020-04-15 15:54:36 -07:00
Sam El-Husseini
a4a390ba6d
Add user agent types so they appear in dts ( #3825 )
2020-04-15 15:46:42 -07:00
Monica Kozbial
a9223b0b22
Typo fixes. ( #3769 )
2020-03-25 15:47:27 -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
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
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
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
17fa526e0e
Merge pull request #3315 from shakao/hex
...
Handle 0x hex values in color parsing
2019-12-11 14:00:03 -08:00
Sam El-Husseini
9fcc532977
[zelos] Cross browser pixel perfect text input ( #3466 )
...
* Align text and widget div text input pixel perfect on all browsers
2019-11-25 15:54:24 -08:00
Sam El-Husseini
ee09aafd57
[zelos] Add input outlines on the path object. ( #3410 )
...
* Add input outlines on the path object.
2019-11-07 15:15:49 -08:00
Sam El-Husseini
43224afbf7
Move parseBlockColour into Blockly.utils ( #3399 )
...
* Move parseBlockColour into utils and add missing require.
2019-11-04 22:39:18 -08:00
Shannon Kao
ef28386356
Update jsdoc and parameter to reflect additional colour parsing
2019-11-01 15:06:35 -07:00
Rachel Fenichel
46fad66ab1
Review feedback.
2019-10-30 15:58:53 -07:00
Rachel Fenichel
5ef08fc0d4
Switch to using the style object in the path object.
2019-10-30 14:47:23 -07:00
Rachel Fenichel
ca1e49bf8e
Fields now go through blockSvg for colours.
2019-10-30 14:43:42 -07:00
Rachel Fenichel
6f520335ea
Cleanup of colouring code, and move it into path_object.
2019-10-30 14:42:13 -07:00
Sam El-Husseini
7d174727b0
Fix warnings for code used by blocks ( #3362 )
2019-10-30 08:11:18 -07:00
Sam El-Husseini
649dc116ed
Using a HTML canvas for computing the text width ( #3000 )
...
* Use a helper HTML canvas element to measure text width for better performance
2019-10-24 13:02:32 -04:00
Sam El-Husseini
18fea2adb3
Fix 8 warnings related to utils. ( #3294 )
2019-10-22 14:28:17 -04:00
Shannon Kao
b977280566
Handle 0x hex values in color parsing
2019-10-22 11:15:05 -07:00
Sam El-Husseini
6d8f22f39a
Add a lint plugin to ensure we only use ES5 syntax. ( #3160 )
...
* Add a lint plugin to ensure we only use ES5 only syntax.
2019-10-21 21:26:26 -04:00
Sam El-Husseini
19018a5e8e
Fix compiler warnings related to XML ( #3277 )
...
* Fix 5 warnings.
2019-10-17 17:58:15 -05:00
Sam El-Husseini
8eba82b906
Fix 4 misc warnings ( #3283 )
2019-10-17 16:52:52 -05:00
Neil Fraser
01b6992efd
Normalize to one spelling of color/colour.
2019-10-16 09:46:47 -07:00
Neil Fraser
013f2714a3
Cleanup aria usage. ( #3261 )
...
Use enums instead of arbitrary strings.
Delete unused Aria properties
Add missing requires.
Delete unused code.
2019-10-15 22:43:23 -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
d7a7c7b4d5
Support XML serialization in Node.js ( #3126 )
...
* Support XML serialization in Node.js
2019-10-01 14:40:35 -07:00
Neil Fraser
28953d8ea0
Simplify Blockly.utils.IdGenerator
...
Also drop unused menu highlight hook.
2019-09-20 10:36:06 -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
Neil Fraser
5650fe51a2
Typos.
2019-09-12 18:24:48 -07:00
Sam El-Husseini
fb74181589
Add Object values helper method to fix IE ( #3005 )
2019-09-11 17:44:41 -07:00
Sam El-Husseini
8ab51c8639
Remove closure base file dependency ( #2976 )
...
* Trim down closure's base dependency even further by removing the dependency on closure's base file.
2019-09-11 17:30:51 -07:00
Sam El-Husseini
8ce619e827
Renaming base util to global as that's all it's used for. ( #2958 )
...
* Renaming base util to global as that's all it's used for.
2019-09-04 10:09:56 -07:00
Neil Fraser
096959fde9
Cleanup of last fortnight’s commits. ( #2865 )
...
No functional changes.
2019-08-19 14:07:48 -07:00
Sam El-Husseini
ca83f97074
Colour field accessibility ( #2836 )
...
* Implement key board navigation and aria accessibility for the colour field.
2019-08-16 13:49:05 -07:00
Beka Westberg
ae3e8895b7
Maybe fix Mocha?
2019-08-16 10:00:46 -07:00