We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f72f00 commit b6501b3Copy full SHA for b6501b3
packages/react-property/src/svg/index.js
@@ -0,0 +1,14 @@
1
+var attributeToProperty = require('../../lib/svg/attribute-to-property');
2
+var attributes = require('../../lib/svg/attributes');
3
+
4
+var attributeMap = {};
5
+var attributeName;
6
+var propertyName;
7
8
+for (var i = 0, len = attributes.length; i < len; i++) {
9
+ attributeName = attributes[i];
10
+ propertyName = attributeToProperty[attributeName] || attributeName;
11
+ attributeMap[attributeName] = { propertyName: propertyName };
12
+}
13
14
+module.exports = attributeMap;
0 commit comments