Registry Mirror
Skip to content

Conversation

@samelhusseini

Copy link
Copy Markdown
Contributor

The basics

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

The details

Resolves

#2977

Proposed Changes

This is just an initial PR, there's more work to be done here, but this gets us the following:
Screen Shot 2019-09-06 at 9 20 39 AM

We still need to figure out how this should render for external inputs. #2978 tracking that.
I have removed the drawing of empty inline inputs in this change but hope to tackle that in a separate change: #2979

Reason for Changes

Rendering feature.

Additional Information

@samelhusseini samelhusseini changed the title Dyanmic output shapes Dynamic output shapes Sep 6, 2019
@samelhusseini

Copy link
Copy Markdown
Contributor Author

@rachel-fenichel I've split up the dynamic connection logic so it's in the one spot. This is ready for another look

@rachel-fenichel rachel-fenichel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One question then lgtm

return makeMainPath(height, true);
},
pathRightDown: function(height) {
return makeMainPath(height, false, true);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why are some of these passing three arguments and some passing two?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixing.

Blockly.zelos.TopRow.prototype.hasLeftSquareCorner = function(_block) {
return false;
Blockly.zelos.TopRow.prototype.hasLeftSquareCorner = function(block) {
return block.outputConnection;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does closure compiler complain about the types here? I expect a warning that the return type is supposed to be boolean, and is instead Blockly.Connection.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let me check, the correct way to do this is to do !!block.outputConnection.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It sure does, good catch! Fixing

@samelhusseini
samelhusseini merged commit 4c8e28c into RaspberryPiFoundation:develop Sep 6, 2019
@samelhusseini
samelhusseini deleted the drafts/inputshapes branch September 6, 2019 20:04
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