Skip to content

webapp: new APIs #585

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

Merged
merged 2 commits into from
Dec 1, 2014
Merged

webapp: new APIs #585

merged 2 commits into from
Dec 1, 2014

Conversation

cpirich
Copy link
Contributor

@cpirich cpirich commented Dec 1, 2014

  • added createTextLabel, setPosition, setParent
  • added canvasSetStrokeColor, canvasSetLineWidth, canvasSetFillColor
  • add width,height parameters to createCanvas - optional
  • changed generateDropletPalette() to create multiple categories if categoryInfo is passed in
  • leveraged this new change for webapp by creating a separate Canvas category in droplet

return false;
};

Webapp.canvasSetLineWidth = function (opts) {
Copy link
Member

Choose a reason for hiding this comment

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

A brief comment on each of these methods would be helpful, at least listing which properties on "opts" are being used.

@davidsbailey
Copy link
Member

LGTM

cpirich added a commit that referenced this pull request Dec 1, 2014
@cpirich cpirich merged commit c8175d8 into staging Dec 1, 2014
@cpirich cpirich deleted the webapp_new_APIs branch December 1, 2014 19:06
deploy-code-org added a commit that referenced this pull request Dec 1, 2014
commit c8175d8
Merge: a27a5c0 99b0ab5
Author: cpirich <[email protected]>
Date:   Mon Dec 1 11:02:39 2014 -0800

    Merge pull request #585 from code-dot-org/webapp_new_APIs

    webapp: new APIs

commit 99b0ab5
Author: cpirich <[email protected]>
Date:   Mon Dec 1 11:01:23 2014 -0800

    make fillColor work

commit a27a5c0
Author: Tanya Parker <[email protected]>
Date:   Mon Dec 1 10:53:54 2014 -0800

    add support contact to hourofcode.com/ro
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