aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.js
blob: 03fa1b15bd11802ba0af107054310e6e239c0a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SVG.Image = function Image() {
  this.constructor.call(this, SVG.create('image'));
};

// inherit from SVG.Element
SVG.Image.prototype = new SVG.Shape();

// Add image-specific functions
SVG.extend(SVG.Image, {
  
  // (re)load image
  load: function(u) {
    return this.attr('xlink:href', u, SVG.xlink);
  }
  
});