Add svg text-anchor attribute.
Adam Solove committed
Mar 12, 2014 at 10:07 UTC
6a01752f3dc95375ccdccd513c0d8010c2815dba
2 files changed
+3
-1
docs/docs/ref-04-tags-and-attributes.md
+1
-1
@@ -72,6 +72,6 @@ There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here
72
73
```
74
cx cy d fill fx fy gradientTransform gradientUnits offset points r rx ry
75
-spreadMethod stopColor stopOpacity stroke strokeLinecap strokeWidth transform
75
+spreadMethod stopColor stopOpacity stroke strokeLinecap strokeWidth textAnchor transform
76
version viewBox x1 x2 x y1 y2 y
77
```
src/browser/ui/dom/DefaultDOMPropertyConfig.js
+2
@@ -154,6 +154,7 @@ var DefaultDOMPropertyConfig = {
154
stroke: MUST_USE_ATTRIBUTE,
155
strokeLinecap: MUST_USE_ATTRIBUTE,
156
strokeWidth: MUST_USE_ATTRIBUTE,
157
+ textAnchor: MUST_USE_ATTRIBUTE,
158
transform: MUST_USE_ATTRIBUTE,
159
version: MUST_USE_ATTRIBUTE,
160
viewBox: MUST_USE_ATTRIBUTE,
@@ -174,6 +175,7 @@ var DefaultDOMPropertyConfig = {
175
stopOpacity: 'stop-opacity',
176
strokeLinecap: 'stroke-linecap',
177
strokeWidth: 'stroke-width',
178
+ textAnchor: 'text-anchor',
179
viewBox: 'viewBox'
180
},
181
DOMPropertyNames: {