summaryrefslogtreecommitdiffstats
path: root/src/matrix.js
diff options
context:
space:
mode:
authorSaivan <savian@me.com>2018-07-03 22:07:53 +1000
committerSaivan <savian@me.com>2018-07-03 22:07:53 +1000
commit5a1be483befaa644fd996b7be74ef59655160f95 (patch)
treed43c98bcaa973ec7b61ff2542b4f95f81e4a31df /src/matrix.js
parentea8767c90953f494d82acf9049fed11cbecfc51d (diff)
downloadsvg.js-5a1be483befaa644fd996b7be74ef59655160f95.tar.gz
svg.js-5a1be483befaa644fd996b7be74ef59655160f95.zip
Fixed an issue that occurred when we applied more than one transform
This commit allows us to apply more than one transform to an element, and have them correctly applied to the element.
Diffstat (limited to 'src/matrix.js')
-rw-r--r--src/matrix.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/matrix.js b/src/matrix.js
index 4396816..07dc82b 100644
--- a/src/matrix.js
+++ b/src/matrix.js
@@ -48,7 +48,7 @@ SVG.Matrix = SVG.invent({
var currentTransform = new SVG.Matrix(this)
// Construct the resulting matrix
- var transformer = new SVG.Matrix()
+ var transformer = new SVG.Matrix(currentTransform)
.translate(-t.ox, -t.oy)
.scale(t.scaleX, t.scaleY)
.skew(t.skewX, t.skewY)
@@ -56,7 +56,6 @@ SVG.Matrix = SVG.invent({
.rotate(t.theta)
.translate(t.ox, t.oy)
.translate(t.rx, t.ry)
- .lmultiply(currentTransform)
// If we want the origin at a particular place, we force it there
if (isFinite(t.px) || isFinite(t.py)) {