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

Updating to Blockly v11 #10003

Merged
merged 11 commits into from
Jul 30, 2024
Merged

Updating to Blockly v11 #10003

merged 11 commits into from
Jul 30, 2024

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented May 2, 2024

Opening this as a draft because it relies on a pre-release version of Blockly.

This PR upgrades us to v11 of Blockly and in doing so restores the last of the features we lost with the great blockly swap. That includes:

  • The ability to duplicate shadow blocks on drag
  • Updated rendering for Workspace comments
  • Updated rendering for Block comments to match workspace comments

The biggest chunk of code comes from re-implementing the block comments. The bubble code is mostly the same as Blockly's with the rendering re-implemented to resemble the workspace comment rendering. Unfortunately, the classes in Blockly make extensive use of the private keyword so I had to copy the whole implementations just to swap the rendering.

@riknoll riknoll requested a review from a team May 2, 2024 20:07
@riknoll riknoll changed the title Updating to Blockly v11 (pre-release) Updating to Blockly v11 Jul 29, 2024
@riknoll riknoll marked this pull request as ready for review July 29, 2024 16:53
@riknoll
Copy link
Member Author

riknoll commented Jul 29, 2024

Fixes microsoft/pxt-microbit#5433

@riknoll riknoll merged commit f53bd26 into master Jul 30, 2024
6 checks passed
@riknoll riknoll deleted the dev/riknoll/new-blockly-comments branch July 30, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants