Skip to content

feat: Add support for going to the beginning of a block#9629

Open
bbrudastyy wants to merge 1 commit intoRaspberryPiFoundation:mainfrom
bbrudastyy:main
Open

feat: Add support for going to the beginning of a block#9629
bbrudastyy wants to merge 1 commit intoRaspberryPiFoundation:mainfrom
bbrudastyy:main

Conversation

@bbrudastyy
Copy link

The basics

The details

Resolves

Fixes #9628

Proposed Changes

Allows you to center a block at its beginning.

Reason for Changes

Centering takes place in the center of the block, which is inconvenient, for example, when switching to defining a procedure.
image

You can use the changes to go to the beginning.
image

Test Coverage

The changes do not affect existing tests and do not require writing new ones.

Documentation

JSDoc has been updated
https://developers.google.com/blockly/reference/js/blockly.workspacesvg_class.centeronblock_1_method?hl=it

Additional Information

No

@bbrudastyy bbrudastyy requested a review from a team as a code owner March 11, 2026 10:15
@bbrudastyy bbrudastyy requested a review from gonfunko March 11, 2026 10:15
@github-actions github-actions bot added the PR: feature Adds a feature label Mar 11, 2026
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome! It looks like this is your first pull request in Blockly, so here are a couple of tips:

  • You can find tips about contributing to Blockly and how to validate your changes on our developer site.
  • We use conventional commits to make versioning the package easier. Make sure your commit message is in the proper format or learn how to fix it.
  • If any of the other checks on this PR fail, you can click on them to learn why. It might be that your change caused a test failure, or that you need to double-check the style guide.
    Thank you for opening this PR! A member of the Blockly team will review it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feature Adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Center on start block

3 participants