Commit Graph

192 Commits

Author SHA1 Message Date
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
Neil Fraser 98a98bcce6 Add Blockly.utils.dom.XLINK_NS
And fix provide/require mixup.
2019-06-07 10:32:57 -07:00
Neil Fraser 848d3a3509 Move setCssTransform & createSvgElement to dom.
Also move SVG_NS and HTML_NS properties.
2019-06-07 10:32:57 -07:00
Neil Fraser 566f182fa8 Move Blockly.userAgent to Blockly.utils.userAgent 2019-06-07 10:32:57 -07:00
Neil Fraser d1a29739d8 Move utilities into own directory.
TODO: There are more functions which may be migrated into dom and string.
2019-06-07 10:32:57 -07:00