Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow for the creation of elements with the attribute syntax #796

Closed
saivan opened this issue Feb 1, 2018 · 0 comments
Closed

Allow for the creation of elements with the attribute syntax #796

saivan opened this issue Feb 1, 2018 · 0 comments
Assignees
Milestone

Comments

@saivan
Copy link
Member

saivan commented Feb 1, 2018

Currently, we can make a rectangle with

draw.rect(30, 50)

But we would also like the ability to use:

draw.rect({width: 30, height: 50, fill: "blue"})

This will be equivalent to calling:

draw.rect().attr({width: 30, height: 50, fill: "blue"})
@saivan saivan added this to the 3.0.0 milestone Feb 28, 2018
Fuzzyma added a commit that referenced this issue Nov 8, 2018
…#796)

e.g.
- `canvas.rect({x:100})` or
- `canvas.rect(100, 100, {x:100})`
Fuzzyma added a commit that referenced this issue Nov 9, 2018
added possibility to pass in additional attribues to element creators (#796)
@Fuzzyma Fuzzyma closed this as completed Nov 12, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants