Skip to content

Extract code for rendering the right side of a reporter #1107

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

Conversation

rachel-fenichel
Copy link
Collaborator

This PR builds on #1106 and is intended to be merged after the other. The new code is in the second commit.

Resolves

None

Proposed Changes

Cleanup of code in renderDrawRight_. This creates a separate function for drawing the correct right-side edge shape for a reporter.

Reason for Changes

Code readability: breaks rendering code into named pieces with explanations of what each piece of code does and where it expects to start drawing. There's no change in behaviour.

Test Coverage

Visually confirmed that all blocks render and look good in the vertical playground.

@rachel-fenichel
Copy link
Collaborator Author

Friendly ping.

Copy link
Contributor

@paulkaplan paulkaplan left a comment

Choose a reason for hiding this comment

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

LG!

@rachel-fenichel rachel-fenichel merged commit e2dae5b into scratchfoundation:develop Oct 4, 2017
@rachel-fenichel rachel-fenichel deleted the cleanup/edge_shape_right branch October 4, 2017 18:37
griffpatch pushed a commit to griffpatch/scratch-blocks that referenced this pull request Oct 12, 2017
Edit generators to read in Variable Models.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants