Merge pull request #1248 from asolove/svg-text-anchor

Add svg text-anchor attribute
This commit is contained in:
Paul O’Shannessy
2014-03-16 22:33:00 -07:00
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -72,6 +72,6 @@ There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here
```
cx cy d fill fx fy gradientTransform gradientUnits offset points r rx ry
spreadMethod stopColor stopOpacity stroke strokeLinecap strokeWidth transform
spreadMethod stopColor stopOpacity stroke strokeLinecap strokeWidth textAnchor transform
version viewBox x1 x2 x y1 y2 y
```
@@ -154,6 +154,7 @@ var DefaultDOMPropertyConfig = {
stroke: MUST_USE_ATTRIBUTE,
strokeLinecap: MUST_USE_ATTRIBUTE,
strokeWidth: MUST_USE_ATTRIBUTE,
textAnchor: MUST_USE_ATTRIBUTE,
transform: MUST_USE_ATTRIBUTE,
version: MUST_USE_ATTRIBUTE,
viewBox: MUST_USE_ATTRIBUTE,
@@ -174,6 +175,7 @@ var DefaultDOMPropertyConfig = {
stopOpacity: 'stop-opacity',
strokeLinecap: 'stroke-linecap',
strokeWidth: 'stroke-width',
textAnchor: 'text-anchor',
viewBox: 'viewBox'
},
DOMPropertyNames: {