From 94c2f961fdcea18b318d6179f0022c1bf3656551 Mon Sep 17 00:00:00 2001 From: Stephen Murphy Date: Wed, 26 Mar 2014 16:57:50 -0700 Subject: [PATCH] added dx and dy for laying out text with relative offsets --- docs/docs/ref-04-tags-and-attributes.md | 2 +- src/browser/ui/dom/DefaultDOMPropertyConfig.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docs/ref-04-tags-and-attributes.md b/docs/docs/ref-04-tags-and-attributes.md index 4b35b4bc29..9b71c8e832 100644 --- a/docs/docs/ref-04-tags-and-attributes.md +++ b/docs/docs/ref-04-tags-and-attributes.md @@ -71,7 +71,7 @@ There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here ### SVG Attributes ``` -cx cy d fill fx fy gradientTransform gradientUnits offset points r rx ry +cx cy d dx dy fill fx fy gradientTransform gradientUnits offset points r rx ry spreadMethod stopColor stopOpacity stroke strokeLinecap strokeWidth textAnchor transform version viewBox x1 x2 x y1 y2 y ``` diff --git a/src/browser/ui/dom/DefaultDOMPropertyConfig.js b/src/browser/ui/dom/DefaultDOMPropertyConfig.js index 3723d6f645..a59587523b 100644 --- a/src/browser/ui/dom/DefaultDOMPropertyConfig.js +++ b/src/browser/ui/dom/DefaultDOMPropertyConfig.js @@ -138,6 +138,8 @@ var DefaultDOMPropertyConfig = { cx: MUST_USE_ATTRIBUTE, cy: MUST_USE_ATTRIBUTE, d: MUST_USE_ATTRIBUTE, + dx: MUST_USE_ATTRIBUTE, + dy: MUST_USE_ATTRIBUTE, fill: MUST_USE_ATTRIBUTE, fx: MUST_USE_ATTRIBUTE, fy: MUST_USE_ATTRIBUTE,