We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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"})
The text was updated successfully, but these errors were encountered:
added possibility to pass in additional attribues to element creators (…
09e7d0b
…#796) e.g. - `canvas.rect({x:100})` or - `canvas.rect(100, 100, {x:100})`
Merge pull request #924 from svgdotjs/796-add-attribute-syntax
5f957e2
added possibility to pass in additional attribues to element creators (#796)
Fuzzyma
No branches or pull requests
Currently, we can make a rectangle with
But we would also like the ability to use:
This will be equivalent to calling:
The text was updated successfully, but these errors were encountered: