transform-origin
in coordinates
.5 .5
doesn't work with
patternUnits="objectBoundingBox"
, though these coordinates properly work for
gradientTransform
with
gradientUnits="objectBoundingBox"
(see
demo
).
To place
transform-origin
in the center of the pattern, coordinates of the center of the SVG element was scaled to fit the shape to which pattern was applied.
<pattern id="pattern"
patternUnits="objectBoundingBox"
patternContentUnits="objectBoundingBox"
patternTransform="rotate(45, 200, 135)">
...
</pattern>