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

Adds a handful of svg props #240

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

jakeleboeuf
Copy link

Added a handful of SVG attributes to the props definition list using the MDN SVG Attribute reference. This PR adds the following attrs:

calcMode, clipPathUnits, cx, cy, and r.

@@ -172,6 +174,8 @@ var Properties = module.exports = {
"cue-after" : 1,
"cue-before" : 1,
"cursor" : 1,
"cx" : "<coordinate>",
Copy link
Contributor

Choose a reason for hiding this comment

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

The coordinate would need to be added to ValidationTypes.js . I'll see if I can do that. You're of course also welcome to add it, and a test.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks @frvge,

MDN states the <coordinate> content type's syntax is the same as <length>. I went ahead and added it to be explicit, but could have simply switched out <coordinate> for <length> in Properties.js. Let me know if you have a preference. Otherwise, I added a test for the <coordinate> type.

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks.

@@ -0,0 +1,3 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this file can be removed, or added to a gitignore file.

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