Aaron Dodson
289d8ac857
Adjusted line wrapping.
2021-06-15 15:22:51 +00:00
Neil Fraser
0eef4f34f6
'navigator' may be renamed by the compiler.
...
Use quoted name instead. Also, navigator doesn't exist in Node, or non-browser environments.
2021-06-14 22:32:55 -07:00
Aaron Dodson
c29afbcd27
Updated user agent parsing to detect iPads posing as desktop Safari.
2021-06-14 22:14:46 +00:00
Maribeth Bottorff
f0143b6d6c
Add a clone method to Coordinate
2021-06-10 16:12:48 -07:00
Neil Fraser
cff7b359f4
Make comments more consistent.
2021-06-09 11:41:42 -07:00
Neil Fraser
76b5517008
Use null-prototype objects for maps
...
A {} has a bunch of names already defined on it (like ‘toString’). When using an object as a map with arbitrary keys, it should not inherit from Object.prototype.
2021-06-09 11:41:42 -07:00
Neil Fraser
f64c11d74e
Make JSDoc object nullability more strict.
...
Also make Blockly.utils.deprecation.warn apply to properties.
2021-05-27 21:30:26 -07:00
Neil Fraser
9869269ce2
Add procedures to name DB in init
...
This enables the generator for any block to see all variable names and procedure names in the whole program, including those that haven’t generated yet.
2021-05-27 21:30:26 -07:00
Neil Fraser
17f9209f2f
Add missing extern
2021-05-27 21:30:26 -07:00
Neil Fraser
d919b0af21
Update JSDoc from Array.<> to Array<>
...
Same with Object.
2021-05-27 21:30:26 -07:00
Neil Fraser
dd0314bc0b
Normalize comments
2021-05-19 09:57:14 -07:00
Rachel Fenichel
256eaa9497
Remove rules forbidding es6
2021-04-13 16:02:11 -07:00
alschmiedt
869e4eb366
Update flyout metrics to work with the new metrics manager ( #4684 )
2021-03-09 17:09:49 -08:00
Rachel Fenichel
f7e0d5f4ea
Use existing toolbox position enum
2021-03-05 14:16:43 -08:00
Rachel Fenichel
59084a043c
TOOLBOX_AT_TOP and friends -> constants.toolboxPosition.TOP, etc
2021-03-05 13:48:45 -08:00
Sam El-Husseini
63d26dc186
Add extra requires check ( #4677 )
...
* Add extra requires check
2021-03-05 09:50:51 -08:00
Monica Kozbial
f2cec81584
Adding Positionable interface ( #4669 )
...
* Adding IPositionable interface.
2021-03-02 16:17:17 -08:00
Monica Kozbial
57749e6eb8
Updating bump logic to support single-direction scrollbars ( #4652 )
...
* Updating bump logic to support single-direction scrollbars
2021-03-01 12:20:12 -08:00
Sam El-Husseini
ab8a11784d
Fix event related missing requires ( #4656 )
...
* Fix event related missing requires
2021-02-25 14:28:11 -08:00
Sam El-Husseini
3a3ca0b0eb
Always access properties on Blockly.utils.global using quotes ( #4574 )
2021-01-08 14:48:17 -08:00
alschmiedt
edbd6991b4
Small fixes to the toolbox ( #4380 )
2020-10-19 09:43:41 -07:00
Sam El-Husseini
fba35d342c
Add missing require Blockly.constants ( #4366 )
2020-10-12 17:56:42 -04:00
michellammertink
b27231c0e3
Add Blockly.constants dependency to utils/toolbox.js ( #4360 )
2020-10-12 11:53:49 -07:00
alschmiedt
a0c0b86679
Fix toolbox types ( #4355 )
2020-10-07 11:04:10 -07:00
alschmiedt
bdfdb2ece5
Fix jsdoc errors and warnings ( #4309 )
2020-09-23 13:26:58 -07:00
Sam El-Husseini
db40e44b7c
Move Blockly.utils.dom.SvgElementType to Blockly.utils.Svg ( #4285 )
...
* Move SVGElementType to its own file shaving off 2.7KB
2020-09-16 14:42:58 -07:00
Maribeth Bottorff
f6688d0339
Convert toolbox position to enum ( #4284 )
...
Convert toolbox position to enum
2020-09-16 10:54:17 -07:00
alschmiedt
d01169fa79
Toolbox Rewrite ( #4223 )
...
Rewrite the toolbox in order to get rid of old closure code and make it easier to extend.
Co-authored-by: Maribeth Bottorff <maribethb@google.com >
2020-09-02 08:13:07 -07:00
Sam El-Husseini
5d43d256e2
Move test blocks to dev-tools, refactor advanced playground ( #4057 )
...
* Remove remaining advanced playground actions, and remove test blocks
2020-07-24 13:53:00 -07:00
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