diff options
author | Saivan <savian@me.com> | 2018-05-17 17:51:36 +1000 |
---|---|---|
committer | Saivan <savian@me.com> | 2018-05-17 17:51:36 +1000 |
commit | 69b4111399015e1ad5ba28951bb264bafea21861 (patch) | |
tree | db7200f5565dd3f84a550a5422ac69ad9bf32e6d /src/helpers.js | |
parent | 82b3524c10b10094c7a6129639a34ca7c034dbdc (diff) | |
download | svg.js-69b4111399015e1ad5ba28951bb264bafea21861.tar.gz svg.js-69b4111399015e1ad5ba28951bb264bafea21861.zip |
Most of the animations are working
Diffstat (limited to 'src/helpers.js')
-rw-r--r-- | src/helpers.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/helpers.js b/src/helpers.js index fd8b376..84b78ad 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -229,17 +229,16 @@ function formatTransforms (o) { : flipY var shear = o.shear || 0 var theta = o.rotate || 0 - var origin = new SVG.Point(o.ox == null ? o.origin : o.ox, o.oy) + var origin = new SVG.Point(o.origin || o.ox || o.originX, o.oy || o.originY) var ox = origin.x var oy = origin.y - var position = new SVG.Point(o.px == null - ? o.position : o.px, o.py, {x: null, y: null}) + var position = new SVG.Point(o.origin || o.px || o.positionX, o.py || o.positionY) var px = position.x var py = position.y - var translate = new SVG.Point(o.tx == null ? o.translate : o.tx, o.ty) + var translate = new SVG.Point(o.translate || o.tx || o.translateX, o.ty || o.translateY) var tx = translate.x var ty = translate.y - var relative = new SVG.Point(o.rx == null ? o.relative : o.rx, o.ry) + var relative = new SVG.Point(o.relative || o.rx || o.relativeX, o.ry || o.relativeY) var rx = relative.x var ry = relative.y |