aboutsummaryrefslogtreecommitdiffstats
path: root/src/relative.js
blob: 6bb11b7f5cc0c80973e6b0433338234228108f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
SVG.extend(SVG.Element, SVG.FX, {
  // Relative move over x axis
  dx: function(x) {
    return this.x((this.target || this).x() + x)
  }
  // Relative move over y axis
, dy: function(y) {
    return this.y((this.target || this).y() + y)
  }
  // Relative move over x and y axes
, dmove: function(x, y) {
    return this.dx(x).dy(y)
  }

})