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
Neil Fraser
2fd931cab9
Add comment regarding async nature of listening.
2019-03-29 15:24:37 -07:00
Neil Fraser
405b1e4e78
Lint issues found while debugging.
2019-03-27 15:47:29 -07:00
Rachel Fenichel
8e6f39175a
Ignore insertion markers in getAllBlocks; add accessors for inseriton markers
2019-01-29 11:57:43 -08:00
Rachel Fenichel
d0fb99918f
Ignore insertion markers when checking remaining capacity
2019-01-25 11:28:51 -08:00
BeksOmega
1c4ba38300
Added Max Instances Property to Workspace Options ( #2130 )
...
* Added Max Instances property to Blocks
* eslint cleanup
* eslint cleanup 2
* Moved maxInstances property from block to workspace (as a map of block type to max instances). isDuplicate() changed to correctly handle siblings/branches.
* eslint cleanup
* Changed checking types to map. Added hasBlockLimits. Fixed Nits.
* Added limit_instances test block. eslint fixes.
* fixup! Added limit_instances test block. eslint fixes.
* Changed sorting objects to a private static function of the workspace. Fixed nits. Undeleted .eslintrc
* Reverted .gitignore file.
* Added getBlockTypeCounts() to utils. Added isCapacityAvailable() to workspace. Changed clipboard to save typeCountsMap rather than object.
2018-11-27 16:34:21 -08:00
Neil Fraser
c7e391c71a
Fix lint error.
2018-10-16 11:34:10 -07:00
Neil Fraser
aa09ad9175
Line wrap at 80.
2018-10-16 11:34:10 -07:00
Neil Fraser
7531b323b2
Honour reductions to MAX_UNDO ( #2078 )
...
* Honour reductions to MAX_UNDO
If MAX_UNDO is reduced, we now throw away the extra records in the stack, as opposed to just not growing it anymore.
* shift != unshift
Apparently I need a new brain.
* Ensure MAX_UNDO isn’t negative.
2018-10-12 06:34:23 -07:00
Neil Fraser
dce60fd152
Replace ReferenceError with Error.
...
Change to 4-space indentation rather than aligning with parent structure.
2018-07-11 12:20:02 -07:00
Neil Fraser
60cce6cd0c
Remove goog.math angle functions.
2018-07-11 12:20:02 -07:00
Neil Fraser
06d90c9b34
Remove goog.array
2018-07-11 12:20:02 -07:00