Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate hideChaff() from Blockly to WorkspaceSvg #5460

Merged
merged 7 commits into from
Sep 15, 2021

Conversation

gonfunko
Copy link
Contributor

The basics

  • I branched from goog_module
  • My pull request is against goog_module
  • My code follows the style guide
  • My code is presented in the form suggested in the module
    conversion guide
  • I have run npm test.

The details

Resolves

Part of #5208

Proposed Changes

Migrates hideChaff() from Blockly to WorkspaceSvg. This slightly changes the semantics of the method; before, it would hide global modal items (eg tooltips), and autohideables on the main workspace. Since the method is now a workspace instance method, it still hides global modals but hides autohideables on the workspace it is called on. The old behavior can be achieved by Blockly.common.getMainWorkspace().hideChaff().

This PR makes Blockly.hideChaff() deprecated and passes through calls to the main workspace. It also updates core and demos to use the new method.

@gonfunko gonfunko requested a review from a team as a code owner September 14, 2021 16:09
@google-cla google-cla bot added the cla: yes Used by Google's CLA checker. label Sep 14, 2021
@github-actions github-actions bot added this to the 2021_q3_release milestone Sep 14, 2021
core/blockly.js Outdated Show resolved Hide resolved
core/shortcut_items.js Show resolved Hide resolved
core/theme_manager.js Outdated Show resolved Hide resolved
core/workspace_svg.js Outdated Show resolved Hide resolved
core/workspace_svg.js Outdated Show resolved Hide resolved
@gonfunko gonfunko merged commit 6a4a359 into google:goog_module Sep 15, 2021
@gonfunko gonfunko deleted the wheat branch September 15, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by Google's CLA checker. type: cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants