Skip to content

Commit 3f29d5d

Browse files
nhunzakerzpao
authored andcommitted
Add support for patternUnits attribute.
The patternUnits attribute defines how a pattern's coordinate system is defined (x, y, width, height). This is particularly important when using repeatable patterns in SVG. This commit adds this attribute to the lists of known properties. Closes facebook#1548
1 parent aebb326 commit 3f29d5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/browser/ui/dom/SVGDOMPropertyConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var SVGDOMPropertyConfig = {
3737
gradientTransform: MUST_USE_ATTRIBUTE,
3838
gradientUnits: MUST_USE_ATTRIBUTE,
3939
offset: MUST_USE_ATTRIBUTE,
40+
patternUnits: MUST_USE_ATTRIBUTE,
4041
points: MUST_USE_ATTRIBUTE,
4142
preserveAspectRatio: MUST_USE_ATTRIBUTE,
4243
r: MUST_USE_ATTRIBUTE,
@@ -63,6 +64,7 @@ var SVGDOMPropertyConfig = {
6364
DOMAttributeNames: {
6465
gradientTransform: 'gradientTransform',
6566
gradientUnits: 'gradientUnits',
67+
patternUnits: 'patternUnits',
6668
preserveAspectRatio: 'preserveAspectRatio',
6769
spreadMethod: 'spreadMethod',
6870
stopColor: 'stop-color',

0 commit comments

Comments
 (0)