aboutsummaryrefslogtreecommitdiffstats
path: root/src/relative.js
blob: 7759bb943afceba3a297e205e4c632f9d6473246 (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.x() + x)
  }
  // Relative move over y axis
, dy: function(y) {
    return this.y(this.y() + y)
  }
  // Relative move over x and y axes
, dmove: function(x, y) {
    return this.dx(x).dy(y)
  }

})