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

Add output shape on a block. Add squared shape. #3558

Merged
merged 4 commits into from
Jan 7, 2020

Conversation

samelhusseini
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

Fixes #3414

Proposed Changes

Add ouput shape property on a block and parse from json.
Add implementation for a square shape in zelos.
Use a block's output shape if one exists when deciding on what shape to use.

Reason for Changes

Zelos rendering.

Test Coverage

Tested with pxt-blockly blocks in zelos rendering playground.

Tested on:

Documentation

Additional Information

Copy link
Contributor

@alschmiedt alschmiedt left a comment

Choose a reason for hiding this comment

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

two nits then lgtm

core/renderers/zelos/constants.js Show resolved Hide resolved
core/renderers/zelos/constants.js Outdated Show resolved Hide resolved
@samelhusseini
Copy link
Contributor Author

@alschmiedt I've fixed up the comments for how all the shapes are drawn (rounded, hexagonal and squared). Let me know if those comments make sense.

@mattbishop
Copy link

Also a picture would be nice...

@samelhusseini
Copy link
Contributor Author

Sample of a square shaped block:
Screen Shot 2020-01-07 at 1 54 43 PM

core/renderers/zelos/constants.js Outdated Show resolved Hide resolved
core/renderers/zelos/constants.js Outdated Show resolved Hide resolved
@samelhusseini samelhusseini merged commit 8151b94 into google:develop Jan 7, 2020
@samelhusseini samelhusseini deleted the block_shape branch January 7, 2020 22:10
moniika pushed a commit to moniika/blockly that referenced this pull request Jan 10, 2020
* Add output shape on the block. Add squared shape.
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.

4 participants