alschmiedt
0f3c06306f
chore: runs clang format on all files ( #5627 )
2021-10-21 15:22:24 -07:00
Rachel Fenichel
e8d6f7f408
chore: auto-fix violations of comma-dangle rule ( #5625 )
2021-10-21 09:01:51 -07:00
Aaron Dodson
3851b14627
refactor: Migrate to named exports ( #5623 )
...
* refactor: Migrate to named exports
* fix: Sort requires
* fix: Remove duplicate deps
2021-10-20 15:53:23 -07:00
Neil Fraser
90b3f75d82
Remove @author tags ( #5601 )
...
Our files are up to a decade old, and have churned so much, that the initial author of the file no longer has much meaning.
Furthermore, this will encourage developers to post to the developer group, rather than emailing Googlers (usually me) directly.
2021-10-15 09:50:46 -07:00
Neil Fraser
c929b3015b
chore: Convert == to === and != to !== where possible. ( #5599 )
2021-10-15 09:17:04 -07:00
Monica Kozbial
d8fbe1b05b
Add namespace and alias annotations to jsdoc ( #5550 )
...
* Add annotations to files under core/events
* Add annotations to files under core/interfaces
* Add annotations to files under core/keyboard_nav
* Add annotations to files under core/renderers
* Add annotations to files under core/serialization
* Add annotations to files under core/theme
* Add annotations to files under core/toolbox
* Add annotations to files under core/utils
* Add annotations to files under core
2021-09-27 14:42:54 -07:00
Aaron Dodson
e0693a65d2
chore: Remove declareLegacyNamespace() from files in core ( #5525 )
...
* chore: Remove declareLegacyNamespace() from files in core
* fix: Update missing/errant re-exports in blockly.js
2021-09-23 14:48:52 -07:00
kozbial
d7d74f4fba
Remove usage of deprecated method in onKeyDown handler
2021-09-23 12:31:55 -07:00
Rachel Fenichel
3adfaaf6d9
chore: named exports for block* files ( #5512 )
...
* chore: named export for block.js
* chore: named export for block_drag_surface.js
* chore: named export for block_dragger.js
* chore: named export for block_svg.js
* Fix import ordering
* chore: fix imports using requireType
* Remove extra require
2021-09-22 08:46:19 -07:00
Beka Westberg
f77526e558
Move browser event utils from utils.js to browser_events.js ( #5464 )
...
* fix: move browser event utils to browserEvents
* fix: mark browser event utils in utils as deprecated
* fix: move uses of browser event funcs to browserEvents
* fix: remove browserEvents definition of noEvent
* fix: add renames for browser event utils
* docs: add suggested alternatives for browser event utils
* fix: change deprecations to stubs
* fix: PR comments
2021-09-17 14:49:01 -07:00
Maribeth Bottorff
6dbc534dcc
refactor: Move Blockly.svgResize to Blockly.common ( #5485 )
...
* refactor: Move Blockly.svgResize to Blockly.common
* fix formatting and deps
2021-09-16 15:53:33 -07:00
Maribeth Bottorff
1334bd3f1b
refactor: Migrate Blockly.onKeyDown out of blockly.js ( #5476 )
...
* refactor: move Blockly.onKeyDown to inject.js
* fix the tests
2021-09-16 14:48:03 -07:00
Aaron Dodson
6a4a359f7b
Migrate hideChaff() from Blockly to WorkspaceSvg ( #5460 )
...
* Add hideChaff() to core/workspace_svg.js
* Mark Blockly.hideChaff as deprecated
* Update uses of Blockly.hideChaff() to WorkspaceSvg.hideChaff() in core
* Update uses of Blockly.hideChaff() to WorkspaceSvg.hideChaff() in demos
* Style and formatting fixes
* Switch from accessor to stub wrapper for Blockly.hideChaff
Co-authored-by: Christopher Allen <cpcallen+github@gmail.com >
Co-authored-by: Christopher Allen <cpcallen+github@gmail.com >
2021-09-15 13:41:20 -07:00
Rachel Fenichel
9b8cd7ce5b
Migrate core/inject.js to goog_module syntax ( #5456 )
...
* Move bump objects function into a separate module
* Fix types
* Migrate core/inject.js to ES6 const/let
* Migrate core/inject.js to goog.module and move more functions to bump_objects.js
* Migrate core/inject.js named requires
* clang-format core/inject.js
* Rename private functions
2021-09-15 08:15:25 -07:00
Rachel Fenichel
f4430e9e47
Move bump objects function into a separate module ( #5453 )
...
* Move bump objects function into a separate module
* Fix types
* Update core/bump_objects.js
Fix missing newline.
Co-authored-by: Christopher Allen <cpcallen+github@gmail.com >
Co-authored-by: Christopher Allen <cpcallen+github@gmail.com >
2021-09-14 10:02:38 -07:00
kozbial
9561cb20c9
Migrate core/touch.js to goog.module
2021-08-17 14:42:31 -07:00
kozbial
b834d9026b
Add requireType calls for Blockly.WorkspaceComment and Blockly.WorkspaceCommentSvg
2021-08-06 18:05:53 -07:00
kozbial
ef0fcdbcdd
Split Blockly.BlocklyOptions into a separate file
2021-08-05 10:50:44 -07:00
Rachel Fenichel
084c421597
Remove some unused functions and add deprecation warnings
2021-08-04 15:59:41 -07:00
Rachel Fenichel
2e30bbe7ce
Update uses of mainWorkspace in core
2021-07-30 11:30:34 -07:00
Monica Kozbial
e40093dc23
Add API to IDragTarget to prevent block move ( #4886 )
2021-06-10 16:17:07 -07:00
alschmiedt
9eaca6a1e1
Adds necessary methods for scroll-options plugin ( #4893 )
2021-06-10 15:50:42 -07:00
Neil Fraser
cff7b359f4
Make comments more consistent.
2021-06-09 11:41:42 -07:00
alschmiedt
e7bf54e82e
Fixes a check in bump into bounds ( #4872 )
2021-06-08 08:17:00 -07:00
Neil Fraser
c5a7b481bc
Code simplifications
2021-06-03 08:23:01 -07:00
Monica Kozbial
6259579c64
Add positioning helpers for trashcan and zoom controls ( #4807 )
2021-05-07 17:13:48 -07:00
Sam El-Husseini
f2f878db8c
Fix multiple strict require warnings ( #4793 )
2021-04-21 16:46:04 -07:00
Monica Kozbial
f837f1e44e
Add zoom support for single-direction-scroll ( #4653 )
...
* Add zoom support for single-direction scroll
2021-03-05 14:37:41 -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
4844a1038c
Adding single-direction scroll options to inject options ( #4651 )
...
* Adding single directions scroll config to inject options
2021-03-03 12:29:10 -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
Rachel Fenichel
1d8c234d33
Update uses of bindEvent_, bindEventWithChecks_, and unbindEvent_. Add missing requires for Blockly.browserEvents.
2021-02-23 11:23:28 -08:00
Rachel Fenichel
a392fcc57c
More missing requireType calls
2021-02-17 11:32:54 -08:00
Monica Kozbial
17d7d1b449
Use ScrollbarPair and WorkspaceDragger in flyouts ( #4607 )
...
* Use ScrollbarPair for flyouts
* Address PR comments
* Fix compile error
2021-02-02 11:46:06 -08:00
alschmiedt
f1498e7f07
Keyboard shortcuts ( #4421 )
...
* Adds shortcut registry and removes action and key map (#4398 )
* Adds Shortcut tests and refactored navigation tests (#4412 )
* Adds shortcut items (#4408 )
* Add shortcuts for navigation (#4409 )
* Add final keyboard shortcut cleanup (#4413 )
2020-11-02 13:30:05 -08:00
alschmiedt
624e126121
Remove component file ( #4379 )
2020-10-16 16:47:44 -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
Monica Kozbial
0a36117885
Replace console "WARNING" log calls with warn call ( #4171 )
2020-08-13 10:53:04 -07:00
alschmiedt
0f00f42580
Adds Ability to Add a Flyout as a Plugin ( #4059 )
2020-07-22 17:13:19 -07: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
Sam El-Husseini
e3babee1f3
Add Blockly.utils.Metrics @record ( #3913 )
...
* Add Blockly.utils.Metrics
2020-05-21 15:03:17 -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
1d3a1655c6
Support multiple renderer / theme combos on the same page. ( #3732 )
...
* Support multiple renderer / theme combos on the same page.
2020-03-11 20:09:00 -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
alschmiedt
a1ed9ab791
Update component names ( #3549 )
2020-01-06 13:18:15 -08:00
Sam El-Husseini
f9dcb60f82
Zelos replacement highlight ( #3431 )
...
* Zelos replacement highlight
2019-11-13 17:14:28 -08:00
Neil Fraser
a15d9611d0
Add missing requires.
2019-11-12 13:15:06 -08:00
alschmiedt
40bdfac017
Fix setting focus for workspace ( #3425 )
...
* Fix setting focus for workspace
2019-11-11 16:44:58 -08:00