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
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
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
Beka Westberg
0872d022e1
Changed utils.fields -> fieldRegistry. Also removed useless tooltip requires.
2019-08-16 09:57:28 -07:00
Beka Westberg
16c59d2ffc
Added tests and remove jsunit fields test file.
2019-08-16 09:57:27 -07:00
Beka Westberg
cdc90f4059
Refactored field utilities.
2019-08-16 09:57:27 -07:00
Sam El-Husseini
f9d7af7125
Add Blockly aria utils ( #2813 )
...
* Add aria utils
2019-08-14 11:22:36 -07:00
Sam El-Husseini
b9d932559c
Add a singleton id generator util ( #2815 )
...
* Add a singleton id generator utility
2019-08-14 10:06:46 -07:00
Sam El-Husseini
a0dcf7f495
Add extra style methods used by closure components ( #2816 )
2019-08-13 18:34:48 -07:00
Sam El-Husseini
a41a3c5f33
Add keycode utils to reference keycodes via an enum ( #2814 )
2019-08-13 16:25:26 -07:00
Sam El-Husseini
109e32b866
Revert "Add extra style methods used by closure components"
...
This reverts commit cb461b2c94 .
2019-08-13 14:19:25 -07:00
Sam El-Husseini
cb461b2c94
Add extra style methods used by closure components
2019-08-13 14:18:40 -07:00
Sam El-Husseini
6425287daa
Support getting sizes of elements that are not visible ( #2786 )
...
* Support getting sizes of elements that are not visible
2019-08-08 21:09:15 -07:00
Sam El-Husseini
f34f2beac7
Remove all calls to goog.style ( #2781 )
...
* Remove dependency on goog.style
2019-08-06 14:54:13 -07:00
Neil Fraser
6aedfab4d1
Misc JSDoc fixes. ( #2747 )
2019-07-30 16:28:48 -07:00
Sam El-Husseini
57868e7e83
Remove all calls to goog.math ( #2739 )
...
* Replace calls to goog.math.Size and goog.math.Coordinate with Blockly equivelants
2019-07-30 11:22:08 -07:00
Sam El-Husseini
5ce8c68833
Fix node build and add node tests ( #2736 )
...
* Fix node build and add node tests
2019-07-30 11:13:52 -07:00
Rachel Fenichel
087eaa2665
rename Blockly.utils.Paths -> Blockly.utils.svgPath
2019-07-17 15:46:55 -07:00
Abby
fe4bff70da
Add @public annotation
2019-07-17 11:52:14 -07:00
Abby
0f4a417052
Remove @packages annotation from public methods
2019-07-17 11:38:08 -07:00
Neil Fraser
20d4a27f0a
Add namespacing to XML
...
Fixes #1978 .
2019-07-08 13:29:43 -07:00
Neil Fraser
74be35e23d
Rename Blockly.Xml.utils to Blockly.utils.xml
2019-07-08 13:29:43 -07:00
Rachel Fenichel
f2be890f9f
More cleanup
2019-06-28 16:55:04 -07:00
Rachel Fenichel
2aa1bed83f
Add some spaces
2019-06-28 16:36:59 -07:00
Rachel Fenichel
f1e05b1e68
Lowercase l in comments
2019-06-28 15:09:59 -07:00
Rachel Fenichel
1f82f9d9e2
Create svg_utils file
2019-06-28 15:00:09 -07:00
Neil Fraser
b8cbd9e7df
Resolve 13 warnings
...
Reduce count from 632 to 619.
Eliminate copy-paste code duplication in Field.prototype.setValue
2019-06-12 10:59:33 -07:00
Neil Fraser
6947010c49
Change Rect to use top/bottom/left/right
...
Instead of top/left/height/width. Given our uses of Rect, it makes the math slightly simpler.
This is a setup for using Rect in other places. Currently it is only used to describe delete areas.
2019-06-07 10:32:57 -07:00