mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #1248 from asolove/svg-text-anchor
Add svg text-anchor attribute
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user