Beka Westberg
af9be6d9c3
Update some inline docs in block.js ( #4241 )
...
* Update some inline docs in block.js
* Fix build error
2020-09-01 10:27:17 -07:00
Rachel Fenichel
98b436031c
Use registry for connection checker
2020-07-17 10:51:39 -06:00
Rachel Fenichel
809148b435
Fix compiler errors
2020-07-16 17:40:13 -06:00
Rachel Fenichel
7288c66294
Rename connectionTypeChecker->connectionChecker
2020-07-16 17:40:13 -06:00
Rachel Fenichel
01d33ce2e7
Fix type checks
2020-07-16 17:40:13 -06:00
Rachel Fenichel
c743a92bb9
Start work on connection type checker
2020-07-16 17:40:12 -06:00
Maribeth Bottorff
e4bbd451a3
Use Context Menu registry for block-level menu options ( #4032 )
...
Use registry for block-level context menu items.
2020-07-10 19:11:48 -07:00
Rachel Fenichel
c9c8af12a7
Remove some old deprecated functions
2020-07-08 17:31:16 -07:00
Monica Kozbial
8a2caf5c32
Distinguish between unset maxInstance and set to 0. ( #3949 )
2020-06-09 16:38:16 -07:00
Sam El-Husseini
1052f7548b
Enable unusedPrivateMembers check ( #3924 )
...
* Add unusedPrivateMembers check
2020-05-28 17:44:16 -07:00
Sam El-Husseini
317834ff59
Add accessibility interfaces and fix navigation types ( #3908 )
...
* Add accessibility interfaces and fix navigation types
2020-05-21 11:18:10 -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
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
Monica Kozbial
c84ee46a89
Setting default options in workspace constructor. ( #3592 )
...
* Setting default options in workspace constructor.
* Changing logic for parsing workspace options.
* Adding gridPattern declaration to options and updating options handling for workspace.
* Addressing PR comments.
* Moving objects to constructor.
* Using constructor instead of casting for Blockly.Options.
* fix eslint
* Adding types.
* Change in type.
* eslint fix.
* Fix typings.
2020-01-17 15:16:20 -08:00
Beka Westberg
6d1bb201f7
feat: Improved procedure arg interaction. ( #3527 )
...
* feat: Improved procedure arg interaction.
* Added docs.
* Fixed typos and typings.
* Fixed typings?
* Changed visibility to private.
2020-01-07 13:55:46 -08:00
alschmiedt
4ce67bb108
Fix moving cursor when block mutates ( #3535 )
...
* Fix moving cursor when block mutates
2020-01-02 15:12:06 -08:00
alschmiedt
481fe63302
Marker manager ( #3497 )
...
* Adds a marker manager
2019-12-10 10:53:34 -08:00
alschmiedt
10b3a9aa9a
Refactor marker and cursor ( #3484 )
...
* Refactor marker and cursor
2019-12-04 14:50:58 -08:00
Sam El-Husseini
30343c8cf6
Move the theme manager into WorkspaceSvg ( #3400 )
2019-11-05 10:44:51 -08:00
Neil Fraser
123f436e04
Add parens around inline assignments ( #3381 )
2019-10-31 15:17:35 -07:00
alschmiedt
cbf867f441
Add keyboard navigation support for multiple workspaces ( #3352 )
...
* Add keyboard navigation support for multiple workspaces
2019-10-28 12:53:51 -07:00
Sam El-Husseini
759875a6c0
Resolve remaining compiler type warnings ( #3334 )
...
* Resolve remaining compiler warnings with inconsistent types.
2019-10-25 19:07:17 -04:00
Sam El-Husseini
d387841db2
Resolve remaining compiler warnings with visibility issues ( #3335 )
2019-10-24 19:13:51 -04:00
Sam El-Husseini
90ad0789f6
Fix 11 warnings related to variables and variable_model. ( #3278 )
...
* Fix 10 warnings related to variables and variable_model.
2019-10-22 14:26:59 -04:00
Sam El-Husseini
e07a3f03a9
Fix 14 warnings related to workspace svg ( #3273 )
...
* Fix warnings related to workspace svg
2019-10-17 15:06:22 -05:00
Sam El-Husseini
664cc3d6cd
Fix warnings related to number of arguments passed. ( #3270 )
2019-10-17 11:47:30 -05:00
Sam El-Husseini
3c2c4677df
Fix 55 warnings related to flyouts. ( #3211 )
...
* Fix 55 warnings related to flyouts.
2019-10-16 12:13:37 -05:00
alschmiedt
cf04a9529b
Fix compilier warnings for keyboard nav ( #3196 )
...
* Fix compilier warnings for keyboard nav
2019-10-08 11:34:39 -07:00
Sam El-Husseini
2ac4149d98
Misc compiler warnings. ( #3172 )
...
* Fix misc compiler warnings. Use ws.getToolbox() instead of ws.toolbox_
2019-10-07 11:06:56 -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
1236660efd
Actually make WS comments optional ( #3130 )
...
* Remove last reference to ws comments since its an optional module
* Also remove from workspace
2019-10-02 11:41:51 -07:00
Monica Kozbial
f4136fdc2a
Adding test and updating TODO. ( #3102 )
...
* Adding test and updating TODO.
* changing bug number referenced in TODO
2019-09-27 11:12:37 -07:00
Sam El-Husseini
870824bc3e
Workspace theme ( #3093 )
...
* Move the theme object so it's on the workspace.
* Add support for subscribing UI elements to theme component styles and changes.
2019-09-26 16:52:17 -07:00
kozbial
60e6b8c6df
style and doc updates.
2019-09-19 10:38:23 -07:00
kozbial
c533a0d943
Setting cursor and marker directly in Workspace and adding check to setCursor/setDrawer.
2019-09-19 10:38:23 -07:00
alschmiedt
2c98ecaed6
Update APIs and Add New Cursor Look ( #3009 )
...
* Updates methods to be private in navigation.js
* Update cursor with new look
2019-09-16 12:33:43 -07:00
alschmiedt
ec07a36e44
Update cursor api ( #3002 )
...
* Move over to new implementation for cursor
2019-09-11 18:16:05 -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
70ab436876
Math.sign -> Math.sin ( #2802 )
...
There was a typo at some point.
2019-08-12 12:40:16 -07:00
alschmiedt
9466c6b7df
Move marker creation to the workspace ( #2742 )
...
* Move marker creation to the workspace
2019-07-31 09:04:53 -07:00
alschmiedt
6dc9a07810
Integrates cursor into develop ( #2710 )
...
* Integrates cursor into blockly
* Fix review comments
* Add dispose to cursor
* Fixes dispose functionality
* Remove unnecessary dispose method
2019-07-25 11:14:40 -07:00
Neil Fraser
829dcc207c
Make type and variabletype attributes optional
...
If a variable doesn’t have a type, then don’t add these empty attributes in the XML.
2019-07-15 14:37:27 -07:00
alschmiedt
f30d79fbc8
Fixes bug with using dynamic variable in toolbox
2019-07-09 11:02:02 -07:00
alschmiedt
8ef9be2fdf
Fixes theme error for headless workspaces
2019-07-01 10:38:28 -07:00
Neil Fraser
9f6c1c316a
Refactor workspace.connectionDBList
...
It seems wrong that Blockly.ConnectionDB.init reaches in to create a property on workspace.
It seems wrong that this database isn’t disposed of when the workspace is.
It seems unnecessary that disposed connections need to drop their reference *to* the workspace’s database since the connection object is going away anyway, and the databases aren’t.
2019-06-12 13:15:39 -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
Neil Fraser
9f528922a7
Fix some dependencies
2019-05-24 15:45:05 -07:00
Neil Fraser
f118d33855
Corrections to JSDoc comments
2019-03-29 15:24:37 -07:00
Neil Fraser
51bfa9455d
More comprehensive approach to gesture detection.
...
Search all workspaces. The flaw with looking at the workspace of the selected block is that dragging a workspace is a gesture but has no selected block.
2019-03-29 15:24:37 -07:00
Neil Fraser
e9de083361
Fix @return JSDocs.
2019-03-29 15:24:37 -07:00