Rachel Fenichel
969fcac455
chore: Move functions from utils ( #5706 )
...
* chore: move functions from utils to more specific files
* chore: use new names for utils functions
* chore: run clang-format
* chore: add deprecation warnings back to utils.js
2021-11-15 15:59:27 -08: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
49bc2b1ae4
Replace namespace annotation with class annotation in files that define a class ( #5566 )
2021-09-28 15:57:09 -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
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
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
kozbial
540088f25f
Update require to requireType
2021-07-30 15:51:45 -07:00
kozbial
0367b9845f
clang-format core/scrollbar.js and core/scrollbar_pair.js
2021-07-30 15:51:45 -07:00
kozbial
cb42316830
Migrate core/scrollbar.js and core/scrollbar_pair.js named requires
2021-07-30 15:51:45 -07:00
kozbial
5bbc49c21a
Migrate core/scrollbar.js and core/scrollbar_pair.js to goog.module
2021-07-30 15:51:45 -07:00
kozbial
308d03bd50
Migrate core/scrollbar.js and core/scrollbar_pair.js to ES6 const/let
2021-07-30 15:51:45 -07:00
kozbial
4b2e481340
Split core/scrollbar.js into 2 files
2021-07-30 15:51:45 -07:00
Neil Fraser
e661c92a36
More JSDoc improvements
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
Monica Kozbial
e295102eda
Update Flyout metrics and implement adjustable margin for scrollbars. ( #4763 )
2021-04-09 11:16:34 -07: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
Monica Kozbial
88625bc3ae
Adding requiresResize check ( #4649 )
2021-02-26 13:40:34 -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
0b09d179ae
Merge pull request #4642 from rachel-fenichel/event_data_type
...
Move bind/unbind events functions to new file, with example usage.
2021-02-25 12:00:22 -08:00
Monica Kozbial
dd7e365882
Scrolling readability refactor ( #4643 )
...
* Refactors scrolling logic in scrollbars and adds comments to be more readable
* Updates JSDoc description for ScrollbarPair.set and Scrollbar.set
2021-02-24 15:09:43 -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
107181d6f5
Missing requires, r through v
2021-02-17 14:52:06 -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
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
739b8b3adc
Viewport change event ( #4180 )
...
* Adding viewport ui event emitting and tests
* comment out viewport ui event logic and add TODO for reference
2020-08-31 18:41:20 -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
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
alschmiedt
a1ed9ab791
Update component names ( #3549 )
2020-01-06 13:18:15 -08:00
Sam El-Husseini
c0c9c0e3d4
Fix scrollbar warnings. ( #3310 )
2019-10-22 15:52:30 -04: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
Sam El-Husseini
986e965be8
Private/protected visibility cleanup ( #3263 )
...
* Fix a number of private visibility issues
2019-10-16 11:48:09 -05: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
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
Neil Fraser
76af463ec4
Removing require for Blockly.FlyoutButton
...
Should have been in the previous PR, since that’s the point.
Also, a recompile given all the recent dependency changes.
2019-09-24 12:15:03 -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
a9fdf7844a
Fix ordering of requires
...
Search and replace of a name strikes again.
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
Neil Fraser
5bf7069a2f
Remove goog.math.Coordinate
2019-06-07 10:32:57 -07:00
Neil Fraser
e8d8798ecf
Remove goog.events.BrowserFeature dependency.
2019-06-07 10:32:57 -07:00
Andrew n marshall
411ec9724e
Replacing node.parentNode.removeChild(node)
...
...with Blockly.utils.removeNode(..), which includes
a null/undefined check on parentNode before continuing.
2018-09-04 13:31:53 -07:00
Neil Fraser
c6afb08c4b
Add unit tests and code cleanup to utils ( #1993 )
...
* Add unit tests for new util functions
* Utils functions shouldn’t be package, not private.
* Use existing utility function for insertAfter
2018-08-03 14:31:50 -07:00
Neil Fraser
c51cf0b79c
Remove goog.dom.removeNode
2018-07-11 12:20:02 -07:00
Neil Fraser
51e86263c7
Correct requires for goog.math.*
2018-07-11 12:20:02 -07:00
Neil Fraser
8f7674ea08
Correct requires for goog.events
2018-07-11 12:20:02 -07:00
Neil Fraser
284b79407e
Require Blockly.utils where needed.
2018-07-11 12:20:02 -07:00
Neil Fraser
3909bd420a
Remove all goog.asserts and goog.isXxx
...
First step to reducing Closure’s footprint.
2018-07-11 12:20:02 -07:00